/* @import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;600&display=swap'); */

:root {
    /* Brand Colors */
    --gold: #dda10e;
    --purple: #b3679d;
    --blue: #2ca3cc;
    
    /* Neutral Palette */
    --bg-color: #FDFCFB; /* Alabaster white */
    --surface-color: #FFFFFF;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #E8E6E1;
    
    /* Typography */
    --font-display: 'Noto Serif SC', 'Songti SC', serif;
    --font-body: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout */
    --container-w: 1400px;
    --section-py: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.4s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-main);
}

.display-1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 2px;
}

.display-2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.display-3 {
    font-size: 2rem;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 24px;
}

/* Layout Classes */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-py) 0;
    border-bottom: 1px solid var(--border-color);
}

.section-no-border {
    border-bottom: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: opacity 0.3s;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    border: 1px solid var(--text-main);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--surface-color);
    border-color: var(--text-main);
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Grids */
.grid-editorial {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Hero Section (Editorial Style) */
.hero-editorial {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-text-wrap {
    padding-right: 40px;
}

.hero-visual {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: filter 0.8s ease;
}

.hero-visual:hover img {
    filter: saturate(1);
}

/* Structural Elements */
.number-marker {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.service-card {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* News Editorial List & Case Cards */
.news-row {
    display: grid;
    grid-template-columns: 2fr 3fr 5fr; /* 增加图片列的宽度占比，减少左侧日期的占比 */
    gap: 40px;
    padding: 60px 0; /* 增加上下内边距让大图更有呼吸感 */
    border-bottom: 1px solid var(--border-color);
    align-items: start;
    transition: background 0.3s ease;
}

.news-row:hover {
    background: var(--surface-color);
}

.news-date {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.news-img-wrap {
    width: 100%;
    aspect-ratio: 16/10; /* 改为更宽的比例，让封面图更大气 */
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Case Card specific */
.case-card {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.case-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 20px;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: filter 0.5s ease;
}

.case-card:hover .case-img-wrap img {
    filter: saturate(1);
}

/* Forms */
.form-minimal {
    width: 100%;
}

.input-group {
    margin-bottom: 40px;
    position: relative;
}

.input-minimal {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.input-minimal:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}

.input-minimal::placeholder {
    color: #A0A0A0;
    font-weight: 300;
}

textarea.input-minimal {
    resize: none;
    height: 100px;
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    background-color: var(--text-main);
    color: var(--surface-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #A0A0A0;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--surface-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #A0A0A0;
}

/* Article Detail */
.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.article-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
}
.article-content p {
    color: var(--text-main);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content h3 {
    margin: 50px 0 20px;
    font-size: 1.6rem;
}
.article-content img {
    margin: 40px 0;
    width: 100%;
}

/* Utility Classes */
.mt-desktop-only {
    margin-top: 80px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-editorial {
        grid-template-columns: 1fr !important; /* Force single column on smaller screens */
        gap: 40px;
    }
    
    .hero-editorial {
        padding-top: 120px;
    }
    
    .hero-visual {
        height: 50vh;
    }
    
    .news-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mt-desktop-only {
        margin-top: 0 !important; /* Remove the top margin on mobile/tablet */
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 80px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .grid-3-cols, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile Menu Override */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 40px;
        border-bottom: 1px solid var(--border-color);
    }
}
