/* ============================================
   环球本草 · 本草通鉴（Herbarium Atlas）
   主题令牌 —— 藏青墨 / 纸白 / 朱砂印章 / 铜金线
   ============================================ */
:root {
    /* ---- 色板 ---- */
    --ink: #1B3A5C;             /* 藏青墨：主文字、线稿、深区 */
    --deep: #12283E;            /* 深藏蓝：下载区 / 页脚 */
    --deep-2: #0D1F31;          /* 页脚最深 */
    --paper: #F6F4EE;           /* 纸白：页面底 */
    --paper-2: #EFECE2;         /* 纸白-1：交替区底 */
    --jade: #3E7C59;            /* 本草绿：植物线稿点缀 */
    --seal: #B5442E;            /* 朱砂印章红：印章 / CTA */
    --brass: #C29B5A;           /* 铜金：装饰细线 */
    --text: #2A2A28;            /* 正文 */
    --muted: #6E6B62;           /* 次要文字 */
    --line: rgba(27, 58, 92, 0.16);   /* hairline 墨线 */

    /* ---- 字体 ---- */
    --font-display: 'Songti SC', 'Noto Serif SC', 'SimSun', Georgia, 'Times New Roman', serif;
    --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
    --font-data: 'SF Mono', 'Cascadia Code', Consolas, monospace;

    /* ---- 过渡 ---- */
    --t-fast: 0.2s ease;
    --t-norm: 0.35s ease;
}

/* ============================================
   全局
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    scroll-margin-top: 68px;
}

/* ============================================
   顶部导航 —— 纸白 + 底部墨线
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(246, 244, 238, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t-norm), border-color var(--t-norm);
}

.top-nav.scrolled {
    border-bottom-color: rgba(27, 58, 92, 0.22);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.08);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--t-fast);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-cta {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--ink);
    padding: 7px 20px;
    transition: all var(--t-fast);
}

.nav-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.nav-menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink);
}

/* ============================================
   首屏 —— 经纬网格 + 植物线稿 + 邮票框
   ============================================ */
.hero-section {
    padding-top: 132px;
    padding-bottom: 96px;
    background-color: var(--paper);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.kicker-rule {
    width: 40px;
    height: 1px;
    background: var(--brass);
}

.kicker-text {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--muted);
    font-weight: 600;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 14px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-bottom: 26px;
}

.hero-stamps {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
}

.mini-seal {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--seal);
    border: 2px solid var(--seal);
    padding: 5px 14px 5px 17px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px var(--paper);
    position: relative;
}

.hero-meta {
    display: flex;
    gap: 22px;
    margin-bottom: 34px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-data);
    font-size: 13px;
    color: var(--ink);
}

.meta-item i {
    font-size: 14px;
    color: var(--ink);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- 按钮：朱砂印章 / 墨线描边 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-norm);
    font-family: var(--font-body);
}

.btn:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 3px;
}

.btn-seal {
    background: var(--seal);
    color: #fff;
    border: 1px solid var(--seal);
    border-radius: 3px;
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--seal), 0 6px 18px rgba(181, 68, 46, 0.28);
}

.btn-seal:hover {
    background: #9E3A27;
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--seal), 0 10px 24px rgba(181, 68, 46, 0.34);
    transform: translateY(-1px);
}

.btn-seal:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 3px;
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---- 首屏艺术区：经纬网格 + 植物线稿 + 邮票 ---- */
.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.art-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.art-plant-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.art-plant-layer .art-plant {
    opacity: 0.55;
}

.grid-lines {
    fill: none;
    stroke: var(--ink);
    stroke-width: 0.7;
    stroke-dasharray: 3 5;
    opacity: 0.35;
}

.art-plant {
    fill: none;
    stroke: var(--jade);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.art-orbit {
    fill: none;
    stroke: var(--brass);
    stroke-width: 1;
    stroke-dasharray: 2 6;
    opacity: 0.7;
}

.stamp-frame {
    position: relative;
    width: 220px;
    height: 220px;
    padding: 14px;
    background: #FFFFFF; /* 纯白邮票纸，与页面纸白形成明显齿孔边缘 */
    border: 1px solid rgba(27, 58, 92, 0.24);
    --perf: 12px;
    --perf-step: 24px;
    -webkit-mask:
        radial-gradient(var(--perf) at 50% 0, transparent 97%, #000 100%) 0 0 / 100% var(--perf-step) repeat-x,
        radial-gradient(var(--perf) at 50% 100%, transparent 97%, #000 100%) 0 100% / 100% var(--perf-step) repeat-x,
        radial-gradient(var(--perf) at 0 50%, transparent 97%, #000 100%) 0 0 / var(--perf-step) 100% repeat-y,
        radial-gradient(var(--perf) at 100% 50%, transparent 97%, #000 100%) 100% 0 / var(--perf-step) 100% repeat-y,
        linear-gradient(#000, #000);
    mask:
        radial-gradient(var(--perf) at 50% 0, transparent 97%, #000 100%) 0 0 / 100% var(--perf-step) repeat-x,
        radial-gradient(var(--perf) at 50% 100%, transparent 97%, #000 100%) 0 100% / 100% var(--perf-step) repeat-x,
        radial-gradient(var(--perf) at 0 50%, transparent 97%, #000 100%) 0 0 / var(--perf-step) 100% repeat-y,
        radial-gradient(var(--perf) at 100% 50%, transparent 97%, #000 100%) 100% 0 / var(--perf-step) 100% repeat-y,
        linear-gradient(#000, #000);
    filter: drop-shadow(0 20px 48px rgba(27, 58, 92, 0.22));
    z-index: 2;
}

.stamp-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(27, 58, 92, 0.12);
}

/* ---- 首屏载入动效 ---- */
@media (prefers-reduced-motion: no-preference) {
    .hero-text > * {
        opacity: 0;
        animation: heroRise 0.7s ease forwards;
    }

    .hero-text .hero-kicker {
        animation-delay: 0.05s;
    }

    .hero-text h1 {
        animation-delay: 0.15s;
    }

    .hero-text .hero-sub {
        animation-delay: 0.25s;
    }

    .hero-text .hero-stamps {
        animation-delay: 0.35s;
    }

    .hero-text .hero-meta {
        animation-delay: 0.45s;
    }

    .hero-text .hero-actions {
        animation-delay: 0.55s;
    }

    .hero-art {
        opacity: 0;
        animation: heroRise 0.8s ease 0.35s forwards;
    }

    @keyframes heroRise {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   本草通鉴 · 特色区 —— 图鉴条目（非卡片）
   ============================================ */
.features-section {
    padding: 96px 0 80px;
    background-color: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--brass);
    font-weight: 700;
    margin-bottom: 14px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 6px;
    margin-bottom: 12px;
}

.section-note {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 2px;
}

.herbarium-list {
    list-style: none;
    counter-reset: herbarium;
    border-top: 1px solid var(--line);
}

.herbarium-item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 8px;
    border-bottom: 1px solid var(--line);
    transition: background-color var(--t-fast);
}

.herbarium-item:hover {
    background-color: rgba(27, 58, 92, 0.03);
}

.item-no {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    min-width: 44px;
    position: relative;
}

.item-no::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 24px;
    height: 1px;
    background: var(--brass);
}

.item-plant {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--jade);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.item-body {
    flex: 1;
}

.item-body h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.item-body p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 640px;
}

/* ---- 滚动浮现 ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   公司介绍区 —— 档案卡 + 印章
   ============================================ */
.company-section {
    padding: 96px 0 90px;
    background-color: var(--paper);
}

.company-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
}

.company-archive {
    position: relative;
    border: 1px solid var(--line);
    padding: 42px 40px 36px;
    background: var(--paper);
}

.archive-tag {
    position: absolute;
    top: -11px;
    left: 24px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--brass);
    background: var(--paper);
    padding: 0 10px;
    font-weight: 700;
}

.company-archive h3 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.company-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 26px;
}

.company-features {
    list-style: none;
    margin-bottom: 28px;
}

.company-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.check-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--seal);
    border: 1.5px solid var(--seal);
    border-radius: 2px;
    flex-shrink: 0;
}

.company-mission {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--seal);
    letter-spacing: 3px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

/* ---- 四枚业务印章 ---- */
.company-stamps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stamp-card {
    border: 2px solid var(--seal);
    outline: 1px solid var(--seal);
    outline-offset: 4px;
    border-radius: 2px;
    padding: 30px 16px;
    text-align: center;
    transition: all var(--t-norm);
    background: rgba(181, 68, 46, 0.03);
}

.stamp-card:hover {
    background: rgba(181, 68, 46, 0.08);
    transform: translateY(-3px);
}

.stamp-card i {
    font-size: 26px;
    color: var(--seal);
    margin-bottom: 12px;
    display: block;
}

.stamp-card span {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 4px;
    display: block;
}

/* ============================================
   下载引导区 —— 深藏蓝 + 烫金
   ============================================ */
.download-section {
    padding: 96px 0 88px;
    background: var(--deep);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--brass);
    font-weight: 700;
    margin-bottom: 18px;
}

.download-content h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: 6px;
    margin-bottom: 14px;
}

.download-content p {
    font-size: 16px;
    color: rgba(246, 244, 238, 0.66);
    letter-spacing: 2px;
    margin-bottom: 44px;
}

.download-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-section .btn-outline {
    color: var(--paper);
    border-color: rgba(246, 244, 238, 0.5);
}

.download-section .btn-outline:hover {
    background: var(--paper);
    color: var(--deep);
}

.download-section .btn-seal {
    box-shadow: 0 0 0 3px var(--deep), 0 0 0 4px var(--seal), 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* ============================================
   页脚
   ============================================ */
.main-footer {
    background-color: var(--deep-2);
    color: rgba(246, 244, 238, 0.55);
    padding: 48px 0 26px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--paper);
    margin-bottom: 8px;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.footer-desc {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(246, 244, 238, 0.6);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color var(--t-fast);
}

.footer-links a:hover {
    color: var(--paper);
}

.footer-links span {
    opacity: 0.25;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(246, 244, 238, 0.08);
}

.footer-copyright p {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.5;
}

.footer-copyright a {
    color: var(--brass);
    text-decoration: none;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 960px) {
    .hero-content,
    .company-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .hero-text h1 {
        font-size: 48px;
        letter-spacing: 10px;
    }

    .hero-kicker,
    .hero-stamps,
    .hero-meta,
    .hero-actions {
        justify-content: center;
    }

    .hero-art {
        min-height: 360px;
        order: -1;
    }

    .company-stamps {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        padding: 14px 24px;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-menu-toggle {
        display: block;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 52px;
    }

    .hero-text h1 {
        font-size: 40px;
        letter-spacing: 8px;
    }

    .hero-kicker {
        margin-bottom: 16px;
    }

    .kicker-text {
        letter-spacing: 2px;
    }

    .hero-sub {
        margin-bottom: 20px;
    }

    .hero-stamps {
        margin-bottom: 22px;
    }

    .hero-meta {
        margin-bottom: 24px;
    }

    .hero-art {
        min-height: 210px;
    }

    .stamp-frame {
        width: 132px;
        height: 132px;
    }

    .features-section,
    .company-section,
    .download-section {
        padding: 68px 0;
    }

    .section-head h2 {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .herbarium-item {
        flex-wrap: wrap;
        gap: 16px;
        padding: 24px 4px;
    }

    .item-plant {
        width: 44px;
        height: 44px;
    }

    .item-body p {
        font-size: 14px;
    }

    .company-archive {
        padding: 32px 26px 28px;
    }

    .company-archive h3 {
        font-size: 21px;
    }

    .download-content h2 {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .download-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 90px;
    }

    .hero-text h1 {
        font-size: 34px;
        letter-spacing: 6px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-art {
        min-height: 210px;
    }

    .stamp-frame {
        width: 128px;
        height: 128px;
    }

    .company-stamps {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stamp-card {
        padding: 22px 10px;
    }

    .item-no {
        font-size: 18px;
        min-width: 34px;
    }
}
