@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;700&display=swap');

:root {
    /* 东方美学配色 */
    --bg-color: #F7F7F5; /* 类似宣纸的米白色 */
    --bg-secondary: #EBEBE8;
    --text-primary: #1F1F1F; /* 焦墨 */
    --text-secondary: #5C5C5C; /* 淡墨 */
    --accent-color: #8E2E2E; /* 胭脂红/印泥红 - 更加沉稳 */
    --gold-color: #B09E78; /* 沉稳金 */
    
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* 留白艺术 */
.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 36px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-outline {
    border-color: var(--text-primary);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #702020;
    border-color: #702020;
}

/* Header */
header {
    padding: 30px 0;
    background-color: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-weight: 300;
    font-size: 1.6rem;
}

/* 印章效果 */
.logo::before {
    content: '星火';
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 12px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    font-family: var(--font-serif);
    margin-right: 5px;
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0.7;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--accent-color);
}

/* 竖排文字导航项 (可选，如果想极致东方) - 这里暂时保持横排但增加间距 */

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}

/* 东方水墨/留白风格 Hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 400px;
}

/* 装饰性背景图 */
.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* 竖排文字类 */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: rgba(0,0,0,0.1);
    letter-spacing: 1rem;
    z-index: 0;
    height: 60%;
    pointer-events: none;
}

/* Cards - 极简风格 */
.features-grid, .news-grid, .team-grid {
    display: grid;
    gap: 40px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    background-color: #fff;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    opacity: 0.8;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* News Cards - 雅致图文 */
.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.news-card {
    background-color: transparent;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
    transition: var(--transition);
}

.news-card:hover {
    border-bottom-color: var(--accent-color);
}

.news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(20%); /* 降低饱和度，更高级 */
    transition: var(--transition);
}

.news-card:hover img {
    filter: grayscale(0%);
}

.news-date {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
    font-style: italic;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-card a {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* About Section Styles */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
}

/* Contact Form - 极简线条 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.form-control {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    border-radius: 0;
}

.form-control:focus {
    border-bottom-color: var(--accent-color);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Footer - 极简 */
footer {
    background-color: #222; /* 深色底 */
    color: #999;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-col a {
    color: #999;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 20px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-bg-img {
        width: 100%;
        opacity: 0.2;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .about-split, .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
        margin: 15px 0;
    }
}
