/* ============================================================
   森林氧心科技 · 共享样式
   设计语言：深森绿 + 自然白 + 金色点缀
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --green-dark: #0d3b2e;
    --green-mid: #1a5c42;
    --green-light: #2d8653;
    --green-bright: #3eab6a;
    --gold: #c9a24b;
    --gold-light: #e8c87a;
    --white: #ffffff;
    --off-white: #f5f8f5;
    --gray-light: #eaede9;
    --gray-mid: #8a9a8c;
    --text-dark: #1a2a1e;
    --text-mid: #3d5140;
    --text-light: #6b7f6e;
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-en: 'Montserrat', 'Arial', sans-serif;
    --nav-h: 64px;
    --nav-h-mb: 56px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(13,59,46,.12);
    --shadow-lg: 0 12px 48px rgba(13,59,46,.18);
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 3px;
}

/* ============================================================
   NAVBAR (shared)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
    background: rgba(13,59,46,.0);
}

    .navbar.scrolled {
        background: rgba(13,59,46,.97);
        box-shadow: 0 2px 20px rgba(0,0,0,.25);
        backdrop-filter: blur(8px);
    }

    .navbar.solid {
        background: var(--green-dark);
        box-shadow: 0 2px 20px rgba(0,0,0,.25);
    }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .04em;
}

    /* ✅ 修正：导航栏 Logo 容器 */
    .nav-logo .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        /* ✅ 修正：Logo 图片样式 */
        .nav-logo .logo-icon img.logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .nav-logo .logo-sub {
        font-size: .72rem;
        color: var(--gold-light);
        letter-spacing: .05em;
    }

.nav-menu {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: 8px;
}

    .nav-menu a {
        padding: 6px 14px;
        border-radius: 6px;
        font-size: .88rem;
        color: rgba(255,255,255,.82);
        transition: color var(--transition), background var(--transition);
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--gold-light);
            background: rgba(255,255,255,.08);
        }

.nav-btn {
    padding: 8px 20px;
    background: var(--gold);
    color: var(--green-dark);
    border-radius: 24px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    transition: background var(--transition), transform var(--transition);
}

    .nav-btn:hover {
        background: var(--gold-light);
        transform: translateY(-1px);
    }

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    margin-left: auto;
}

    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    top: var(--nav-h-mb);
    left: 0;
    right: 0;
    background: rgba(13,59,46,.97);
    padding: 16px 24px 24px;
    z-index: 999;
    transform: translateY(-120%);
    transition: transform var(--transition);
    backdrop-filter: blur(8px);
}

    .nav-drawer.open {
        transform: translateY(0);
    }

    .nav-drawer a {
        display: block;
        padding: 12px 8px;
        color: rgba(255,255,255,.85);
        font-size: .95rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
        transition: color var(--transition);
    }

        .nav-drawer a:hover, .nav-drawer a.active {
            color: var(--gold-light);
        }

/* ============================================================
   SECTION BASICS
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-bright);
    background: rgba(62,171,106,.1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

    .section-title .gold {
        color: var(--gold);
    }

    .section-title .green {
        color: var(--green-bright);
    }

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.8;
}

/* ---------- Divider ---------- */
.divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-bright), var(--gold));
    border-radius: 2px;
    margin: 16px 0 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--green-dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}


.footer-brand .f-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

}


    .footer-brand .f-logo-icon img.logo-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.footer-brand .f-logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand .f-logo-en {
    font-size: .72rem;
    color: var(--gold-light);
    letter-spacing: .05em;
}

.footer-brand p {
    font-size: .85rem;
    line-height: 1.8;
    color: rgba(255,255,255,.55);
}

.footer-col h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-col ul li a {
        font-size: .83rem;
        color: rgba(255,255,255,.55);
        transition: color var(--transition);
    }

        .footer-col ul li a:hover {
            color: var(--gold-light);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: .8rem;
}

    .footer-bottom .copy {
        color: rgba(255,255,255,.35);
    }

    .footer-bottom .icp {
        color: rgba(255,255,255,.25);
    }

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s ease, transform .7s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-in {
    opacity: 0;
    transition: opacity .8s ease;
}

    .fade-in.visible {
        opacity: 1;
    }

/* Stagger children */
.stagger > *:nth-child(1) {
    transition-delay: .05s;
}

.stagger > *:nth-child(2) {
    transition-delay: .15s;
}

.stagger > *:nth-child(3) {
    transition-delay: .25s;
}

.stagger > *:nth-child(4) {
    transition-delay: .35s;
}

.stagger > *:nth-child(5) {
    transition-delay: .45s;
}

.stagger > *:nth-child(6) {
    transition-delay: .55s;
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 32px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--green-bright), var(--green-mid));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(62,171,106,.35);
}

    .btn-primary:hover {
        box-shadow: 0 8px 30px rgba(62,171,106,.5);
    }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-dark);
    box-shadow: 0 4px 20px rgba(201,162,75,.3);
}

    .btn-gold:hover {
        box-shadow: 0 8px 30px rgba(201,162,75,.45);
    }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
}

    .btn-outline:hover {
        border-color: var(--gold-light);
        color: var(--gold-light);
    }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

.card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

    .card-img img {
        transition: transform .5s ease;
    }

.card:hover .card-img img {
    transform: scale(1.06);
}

.card-body {
    padding: 20px 22px;
}

    .card-body h3 {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--text-dark);
    }

    .card-body p {
        font-size: .85rem;
        color: var(--text-light);
        line-height: 1.7;
    }

/* ============================================================
   STAT CHIPS
   ============================================================ */
.stat-chip {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

    .stat-chip .num {
        font-size: 1.9rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--green-bright), var(--gold));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.1;
    }

    .stat-chip .unit {
        font-size: .8rem;
        color: var(--text-light);
        margin-top: 4px;
    }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
}

    .page-hero-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: var(--nav-h);
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

    .page-hero .breadcrumb a {
        color: rgba(255,255,255,.5);
        transition: color var(--transition);
    }

        .page-hero .breadcrumb a:hover {
            color: var(--gold-light);
        }

    .page-hero .breadcrumb .sep {
        color: rgba(255,255,255,.3);
    }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

    .page-hero h1 .gold {
        color: var(--gold-light);
    }

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    max-width: 520px;
}

/* ============================================================
   RESPONSIVE — mobile first breakpoints
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-h: var(--nav-h-mb);
    }

    .section {
        padding: 52px 0;
    }

    .section-inner {
        padding: 0 18px;
    }

    .navbar {
        height: var(--nav-h-mb);
        padding: 0 18px;
    }

    .nav-menu, .nav-btn {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .page-hero {
        height: 280px;
    }

    .page-hero-inner {
        padding: 0 18px;
        padding-top: var(--nav-h-mb);
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        padding: 0 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
