/* ============================================
 家亲情 · 设计系统 - 暖阳米金 (Warm·Sunshine·Gold) — 亮色温暖版
 ============================================ */

:root {
    /* 色彩 —— 亮色温暖版（仅改色值，变量名不变） */
    --ink: #fffaf3; /* 暖阳白 - 页面主背景 */
    --ink-2: #fff3e6; /* 次暖米 */
    --ink-3: #fdeed8; /* 卡片底 */
    --ink-line: #f0d9b5; /* 分割线/边框 */
    --paper: #3d2b18; /* 深棕 - 正文深色 */
    --paper-dim: #6b4f33; /* 次级文字 */
    --paper-mute: #9a7e5c; /* 弱文字 */
    --cinnabar: #e85d3a; /* 暖朱砂 - 更明亮 */
    --cinnabar-bright: #ff6b3d; /* 朱砂亮 */
    --gold: #ffdb93; /* 赤金 */
    --gold-bright: #e8b855; /* 赤金亮 */
    --gold-soft: #c9a96e; /* 柔金 - 连线 */
    --celadon: #5a9e8a; /* 青瓷 */
    --jade: #3a8a7a; /* 深玉 */

    /* 性别色（族谱树编码） */
    --male: #4a8ab5; /* 男蓝 */
    --female: #d4698e; /* 女粉 */
    --passed: #b5a994; /* 亡灰 */

    /* 字体 */
    --f-display: 'Noto Serif SC', 'Songti SC', serif;
    --f-body: 'Noto Sans SC', system-ui, sans-serif;
    --f-brush: 'Ma Shan Zheng', 'KaiTi', cursive;

    /* 布局 */
    --maxw: 1200px;
    --pad-sec: 110px 0;
    --radius: 14px;
    --radius-sm: 8px;

    /* 动效 */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
 重置与基础
 ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--f-body);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============================================
 背景氛围层 —— 亮色温暖版
 ============================================ */
.atmosphere {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
}
.orb-1 { width: 600px; height: 600px; background: var(--cinnabar); top: -150px; right: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--gold); bottom: 10%; left: -150px; opacity: 0.15; }
.orb-3 { width: 400px; height: 400px; background: var(--jade); top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.10; }
.orb { animation: orbFloat 18s ease-in-out infinite; }
.orb-2 { animation-delay: -6s; animation-duration: 22s; }
.orb-3 { animation-delay: -12s; animation-duration: 26s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-40px) scale(1.1); }
}

.grain {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 所有内容置于氛围层之上 */
.nav, .hero, .section, .footer { position: relative; z-index: 1; }

/* 粒子画布 */
#particles {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--gold-bright));
    z-index: 200; transition: width 0.08s linear;
    box-shadow: 0 0 8px var(--gold);
}

/* ============================================
 导航
 ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    transition: all 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(255,250,243,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ink-line);
    padding: 14px 40px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
    width: 34px; height: 34px; border-radius: 6px;
    object-fit: contain;
    transform: rotate(-3deg);
    box-shadow: 0 2px 12px rgba(232,93,58,0.35);
}
.brand-name {
    font-family: var(--f-display); font-weight: 700; font-size: 22px;
    letter-spacing: 2px; color: var(--paper);
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
    font-size: 14px; color: var(--paper-dim); font-weight: 400;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cinnabar); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 8px 22px; border-radius: 999px;
    background:
            radial-gradient(circle at 80% 65%, #e98859 0%, #d86c54 1%, rgba(200,57,47,0.3) 7%, transparent 24%),
            linear-gradient(185deg, #bef, var(--gold) 80%, #bef 100%);
    color: #000; font-size: 14px; font-weight: 700;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(232,184,85,0.4), 0 0 0 1px rgba(232,93,58,0.15);
    position: relative;
    overflow: hidden;
}
.nav-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(232,184,85,0.55), 0 0 0 1px rgba(232,93,58,0.25); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper); transition: 0.3s; border-radius: 2px; }

/* ============================================
 通用按钮
 ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.35s var(--ease); border: none;
    font-family: var(--f-body);
}
.btn-primary {
    background:
            radial-gradient(circle at 80% 65%, #e98859 0%, #d86c54 1%, rgba(200,57,47,0.3) 7%, transparent 24%),
            linear-gradient(185deg, #bef, var(--gold) 80%, #bef 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(187,238,255,0.35), 0 0 0 1px rgba(200,57,47,0.1);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    animation: btnShine 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnShine {
    0% { left: -120%; }
    90%, 100% { left: 220%; }
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,184,85,0.6), 0 0 0 1px rgba(232,93,58,0.25); }
.btn-ghost {
    background: transparent; color: var(--paper);
    border: 1px solid var(--ink-line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--cinnabar); }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ============================================
 Hero 首屏
 ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 40px 60px;
}
.hero-inner {
    max-width: var(--maxw); margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-eyebrow {
    font-size: 14px; letter-spacing: 4px; color: var(--cinnabar);
    text-transform: uppercase; margin-bottom: 20px; font-weight: 500;
}
.hero-title { margin-bottom: 24px; }
.title-brush {
    font-family: var(--f-brush); font-size: clamp(72px, 11vw, 140px);
    line-height: 1; color: var(--paper);
    display: inline-block; position: relative;
    background: linear-gradient(90deg, var(--paper) 20%, var(--gold-bright), var(--paper) 50%, var(--gold-bright) 75%, var(--paper));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 5s linear infinite;
}
@keyframes titleShimmer {
    to { background-position: 200% center; }
}
.title-brush::after {
    content: ''; position: absolute; bottom: 8px; right: -28px;
    width: 20px; height: 20px; background: var(--cinnabar);
    border-radius: 5px; transform: rotate(8deg);
    box-shadow: 0 0 20px rgba(232,93,58,0.5);
}
.hero-tagline {
    font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px);
    font-weight: 700; color: var(--paper); margin-bottom: 20px; letter-spacing: 1px;
}
.hero-desc {
    font-size: 16px; color: var(--paper-dim); max-width: 520px;
    margin-bottom: 36px; line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 族谱树 SVG */
.hero-visual { display: flex; flex-direction: column; align-items: center; position: relative; }
.tree-svg { width: 100%; max-width: 500px; height: auto; }
.tree-svg .tree-lines path {
    stroke-dasharray: 200; stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s var(--ease);
}
.tree-svg.drawn .tree-lines path { stroke-dashoffset: 0; }
.tree-svg .tree-lines path:nth-child(1) { transition-delay: 0.1s; }
.tree-svg .tree-lines path:nth-child(2) { transition-delay: 0.4s; }
.tree-svg .tree-lines path:nth-child(3) { transition-delay: 0.7s; }

/* 婚姻连线淡入 */
.tree-marriage { opacity: 0; transition: opacity 0.8s ease 1.2s; }
.tree-svg.drawn .tree-marriage { opacity: 0.6; }

.node-circle { stroke-width: 2; transition: all 0.4s var(--ease); opacity: 0; transform-origin: center; }
.tree-svg.drawn .node-circle { opacity: 1; }
.node-gold { fill: rgba(212,165,72,0.18); stroke: var(--gold); }
.node-male { fill: rgba(74,138,181,0.15); stroke: var(--male); }
.node-female { fill: rgba(212,105,142,0.15); stroke: var(--female); }
.node-passed { fill: rgba(181,169,148,0.18); stroke: var(--passed); }
.node-gold-self { fill: rgba(232,184,85,0.22); stroke: var(--gold-bright); }

.tree-svg.drawn .tnode-root .node-gold { animation: nodePulse 2.5s ease-in-out infinite 1.5s; }
@keyframes nodePulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--gold)); }
    50% { filter: drop-shadow(0 0 16px var(--gold-bright)); }
}

.tnode { opacity: 0; transition: opacity 0.5s var(--ease); }
.tree-svg.drawn .tnode { opacity: 1; }
.tree-svg.drawn .tnode:nth-child(1) { transition-delay: 0.2s; }
.tree-svg.drawn .tnode:nth-child(2) { transition-delay: 0.5s; }
.tree-svg.drawn .tnode:nth-child(3) { transition-delay: 0.6s; }
.tree-svg.drawn .tnode:nth-child(4) { transition-delay: 0.8s; }
.tree-svg.drawn .tnode:nth-child(5) { transition-delay: 0.85s; }
.tree-svg.drawn .tnode:nth-child(6) { transition-delay: 0.9s; }
.tree-svg.drawn .tnode:nth-child(7) { transition-delay: 0.95s; }
.tree-svg.drawn .tnode:nth-child(8) { transition-delay: 1.0s; }
.tree-svg.drawn .tnode:nth-child(9) { transition-delay: 1.3s; }
.tree-svg.drawn .tnode:nth-child(10) { transition-delay: 1.35s; }

.node-text {
    fill: var(--paper); font-size: 16px; font-family: var(--f-display);
    text-anchor: middle; font-weight: 500;
}

.hero-visual-caption {
    margin-top: 16px; font-size: 14px; color: var(--paper-mute);
    letter-spacing: 6px; font-family: var(--f-display);
}

.scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; display: flex; justify-content: center;
}
.scroll-line {
    width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
 通用 Section
 ============================================ */
.section { padding: var(--pad-sec); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-eyebrow {
    font-size: 13px; letter-spacing: 4px; color: var(--cinnabar);
    text-transform: uppercase; margin-bottom: 14px; font-weight: 500;
}
.section-title {
    font-family: var(--f-display); font-size: clamp(30px, 4vw, 44px);
    font-weight: 700; color: var(--paper); margin-bottom: 16px; letter-spacing: 1px;
}
.section-sub { font-size: 16px; color: var(--paper-dim); }

/* ============================================
 核心价值
 ============================================ */
.values-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card {
    background: linear-gradient(145deg, #fff8f0, #fff3e6);
    border: 1px solid var(--ink-line); border-radius: var(--radius);
    padding: 36px 30px; transition: all 0.4s var(--ease);
    position: relative; overflow: hidden;
}
.value-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
    transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 40px rgba(232,184,85,0.2); }
.value-card:hover::before { transform: scaleX(1); }
.value-card:nth-child(4) { grid-column: span 1; }
.value-card:nth-child(5) { grid-column: span 2; }

.value-icon {
    width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(232,93,58,0.08); color: var(--cinnabar);
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 {
    font-family: var(--f-display); font-size: 22px; font-weight: 700;
    color: var(--paper); margin-bottom: 12px;
}
.value-card p { font-size: 14px; color: var(--paper-dim); line-height: 1.8; }

/* ============================================
 族谱树展示
 ============================================ */
.tree-showcase-inner {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center;
}
.tree-lead { font-size: 17px; color: var(--paper-dim); margin-bottom: 30px; line-height: 1.9; }

.tree-features { margin-bottom: 32px; }
.tree-features li {
    display: flex; align-items: center; gap: 14px; padding: 8px 0;
    font-size: 15px; color: var(--paper);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cinnabar); flex-shrink: 0; box-shadow: 0 0 8px rgba(232,93,58,0.5); }

.tree-legend { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--paper-dim); }
.legend-color { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; }
.legend-male { border-color: var(--male); background: rgba(74,138,181,0.2); }
.legend-female { border-color: var(--female); background: rgba(212,105,142,0.2); }
.legend-passed { border-color: var(--passed); background: rgba(181,169,148,0.2); }
.legend-gold { border-color: var(--gold); background: rgba(212,165,72,0.2); }

/* 族谱树 demo 卡片 */
.tree-demo {
    background: linear-gradient(145deg, #fff5ec, #fffaf3);
    border: 1px solid var(--ink-line); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 20px 60px rgba(180,140,80,0.15);
}
.tree-demo-bar {
    display: flex; align-items: center; gap: 8px; padding: 14px 18px;
    background: #fdeed8; border-bottom: 1px solid var(--ink-line);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-line); }
.demo-dot:nth-child(1) { background: var(--cinnabar); }
.demo-dot:nth-child(2) { background: var(--gold); }
.demo-dot:nth-child(3) { background: var(--celadon); }
.demo-title { margin-left: 12px; font-size: 13px; color: var(--paper-mute); font-family: var(--f-display); }

.tree-demo-body { padding: 40px 30px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.gen { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.couple { display: flex; gap: 8px; }
.gen-link { width: 1px; height: 28px; background: var(--gold-soft); margin: 4px 0; }

.person {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 64px; padding: 10px 14px; border-radius: var(--radius-sm);
    font-family: var(--f-display); font-size: 15px; font-weight: 500;
    border: 2px solid; transition: all 0.3s var(--ease); cursor: default;
    position: relative;
}
.person-note { font-size: 10px; color: var(--paper-mute); font-family: var(--f-body); margin-top: 2px; font-weight: 300; }
.person-male { border-color: var(--male); background: rgba(74,138,181,0.1); color: #3a7ab0; }
.person-female { border-color: var(--female); background: rgba(212,105,142,0.1); color: #c45a82; }
.person-gold { border-color: var(--gold); background: rgba(212,165,72,0.15); color: #b8862e; box-shadow: 0 0 20px rgba(212,165,72,0.25); }
.person-gold-self { border-color: var(--gold-bright); background: rgba(232,184,85,0.18); color: #a07020; }
.person-passed { border-color: var(--passed); background: rgba(181,169,148,0.15); color: #8a7e6c; opacity: 0.75; }
.person:hover { transform: translateY(-3px); }

/* ============================================
 功能全景
 ============================================ */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
    background: #fff8f0; border: 1px solid var(--ink-line);
    border-radius: var(--radius); padding: 32px 28px;
    transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.feature-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    background: radial-gradient(circle at top right, rgba(232,93,58,0.06), transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 40px rgba(232,184,85,0.18); }
.feature-card:hover::after { opacity: 1; }
.feature-num {
    font-family: var(--f-display); font-size: 14px; font-weight: 700;
    color: var(--cinnabar); letter-spacing: 2px; margin-bottom: 14px;
}
.feature-card h3 {
    font-family: var(--f-display); font-size: 20px; font-weight: 700;
    color: var(--paper); margin-bottom: 10px;
}
.feature-card p { font-size: 13.5px; color: var(--paper-dim); line-height: 1.8; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span {
    font-size: 11px; padding: 3px 10px; border-radius: 999px;
    background: rgba(232,93,58,0.08); color: var(--cinnabar); border: 1px solid rgba(232,93,58,0.2);
}

/* ============================================
 多端矩阵
 ============================================ */
.platforms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform-card {
    display: flex; gap: 24px; align-items: flex-start;
    background: linear-gradient(145deg, #fff8f0, #fff3e6);
    border: 1px solid var(--ink-line); border-radius: var(--radius);
    padding: 32px; transition: all 0.4s var(--ease);
}
.platform-card:hover { border-color: var(--gold); transform: translateX(6px); box-shadow: 0 12px 40px rgba(232,184,85,0.18); }
.platform-icon {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(232,93,58,0.1); color: var(--cinnabar);
}
.platform-icon svg { width: 30px; height: 30px; }
.platform-body h3 {
    font-family: var(--f-display); font-size: 20px; font-weight: 700;
    color: var(--paper); margin-bottom: 6px;
}
.platform-stack { font-size: 13px; color: var(--cinnabar); margin-bottom: 10px; font-family: monospace; }
.platform-desc { font-size: 14px; color: var(--paper-dim); line-height: 1.8; }

/* ============================================
 祭拜传承
 ============================================ */
.heritage-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center;
}
.heritage-lead {
    font-family: var(--f-display); font-size: 28px; font-weight: 700;
    color: var(--cinnabar); margin-bottom: 22px; letter-spacing: 2px;
}
.heritage-desc { font-size: 16px; color: var(--paper-dim); line-height: 2; margin-bottom: 36px; }

.heritage-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.heritage-stat { display: flex; flex-direction: column; gap: 4px; }
.hs-value { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--cinnabar); }
.hs-label { font-size: 12px; color: var(--paper-mute); font-family: monospace; }

/* 香炉动画 */
.heritage-visual { display: flex; flex-direction: column; align-items: center; }
.incense-burner { position: relative; width: 200px; height: 280px; display: flex; align-items: flex-end; justify-content: center; }
.incense-glow {
    position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,184,85,0.45), transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}
.burner-body { position: relative; z-index: 2; }
.burner-top {
    width: 100px; height: 24px; border-radius: 50% 50% 8px 8px / 60% 60% 8px 8px;
    background: linear-gradient(180deg, #e8d5b5, #d4ba8a);
    border: 1px solid var(--gold); border-bottom: none;
}
.burner-middle {
    width: 120px; height: 50px;
    background: linear-gradient(180deg, #d4ba8a, #c9a96e);
    border: 1px solid var(--gold); border-top: none; border-bottom: none;
    margin: 0 auto;
}
.burner-base {
    width: 140px; height: 16px; border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #c9a96e, #b89860);
    border: 1px solid var(--gold); border-top: none;
}

.smoke {
    position: absolute; bottom: 80px; left: 50%; width: 8px; height: 8px;
    border-radius: 50%; background: rgba(180,140,80,0.2);
    filter: blur(6px); opacity: 0;
}
.smoke-1 { animation: smokeRise 4s ease-out infinite; }
.smoke-2 { animation: smokeRise 4s ease-out infinite 1.3s; left: 45%; }
.smoke-3 { animation: smokeRise 4s ease-out infinite 2.6s; left: 55%; }
@keyframes smokeRise {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(-50%, -160px) scale(3); }
}

.heritage-caption {
    margin-top: 28px; font-family: var(--f-display); font-size: 16px;
    color: var(--paper-mute); letter-spacing: 4px;
}

/* ============================================
 数据统计
 ============================================ */
.stats { padding: 70px 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); background: rgba(253,238,216,0.5); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num {
    display: block; font-family: var(--f-display); font-size: clamp(40px, 5vw, 60px);
    font-weight: 900; line-height: 1;
    background: linear-gradient(90deg, var(--cinnabar), var(--gold-bright) 20%, var(--gold) 40%, #c0392b 50%, var(--gold) 60%, var(--gold-bright) 80%, var(--cinnabar));
    background-size: 300% auto;
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.stat-label { font-size: 14px; color: var(--paper-dim); letter-spacing: 1px; }

/* ============================================
 行动召唤
 ============================================ */
.cta { padding: 100px 0; }
.cta-inner {
    text-align: center; max-width: 700px; margin: 0 auto;
    padding: 70px 40px; position: relative;
    background: linear-gradient(145deg, #fff8f0, #fff3e6);
    border: 1px solid var(--ink-line); border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(180,140,80,0.12);
}
.cta-inner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(232,93,58,0.06), transparent 60%);
}
.cta-seal {
    width: 56px; height: 56px; border-radius: 10px; margin: 0 auto 24px;
    object-fit: contain;
    transform: rotate(-4deg); position: relative; z-index: 1;
    box-shadow: 0 8px 30px rgba(232,93,58,0.35);
}
.cta-title {
    font-family: var(--f-display); font-size: clamp(28px, 4vw, 38px);
    font-weight: 700; color: var(--paper); margin-bottom: 16px;
    position: relative; z-index: 1;
}
.cta-desc { font-size: 16px; color: var(--paper-dim); margin-bottom: 36px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================
 页脚
 ============================================ */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--ink-line); background: #fff5ec; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--paper-dim); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.footer-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { font-size: 13px; color: var(--paper-mute); transition: color 0.3s; }
.footer-links a:hover { color: var(--cinnabar); }

.footer-contact {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px;
}
.contact-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--paper-dim);
}
.contact-item svg { color: var(--cinnabar); opacity: 0.8; }
.contact-item a { color: var(--paper-dim); transition: color 0.3s; }
.contact-item a:hover { color: var(--cinnabar); }

.footer-copy { font-size: 12px; color: var(--paper-mute); letter-spacing: 0.5px; margin-bottom: 8px; }
.footer-icp { font-size: 12px; }
.footer-icp a { color: var(--paper-mute); transition: color 0.3s; }
.footer-icp a:hover { color: var(--cinnabar); }

/* ============================================
 滚动揭示动画
 ============================================ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 逐个延迟 */
.values-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.values-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.values-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.values-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.features-grid .reveal:nth-child(9) { transition-delay: 0.4s; }
.features-grid .reveal:nth-child(10) { transition-delay: 0.45s; }
.platforms-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.platforms-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.platforms-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
 3D 卡片倾斜与动画增强
 ============================================ */

/* 情感引言横幅 */
.quote-banner {
    text-align: center;
    padding: 70px 32px;
}
.quote-text {
    font-family: var(--f-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    color: var(--paper-dim);
    line-height: 2;
    letter-spacing: 3px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.quote-text::before, .quote-text::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 28px auto;
    opacity: 0.6;
}

/* 3D 卡片 */
.value-card, .feature-card, .platform-card {
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover, .feature-card:hover {
    box-shadow: 0 20px 50px rgba(180,140,80,0.2), 0 0 30px rgba(232,184,85,0.12);
}
.platform-card:hover {
    box-shadow: 0 20px 50px rgba(180,140,80,0.2), 0 0 30px rgba(232,184,85,0.12);
}

/* 章节标题入场发光 */
.section-title {
    text-shadow: 0 0 30px rgba(232,93,58,0.1);
}
.reveal.visible .section-title {
    animation: titleGlow 1s ease 0.2s both;
}
@keyframes titleGlow {
    0% { text-shadow: 0 0 0 rgba(232,93,58,0); }
    100% { text-shadow: 0 0 30px rgba(232,93,58,0.1); }
}

/* 始祖印章微浮 */
.brand-seal {
    animation: sealFloat 4s ease-in-out infinite;
}
@keyframes sealFloat {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-3px); }
}

/* CTA 印章呼吸 */
.cta-seal {
    animation: ctaSealPulse 3s ease-in-out infinite;
}
@keyframes ctaSealPulse {
    0%, 100% { transform: rotate(-4deg) scale(1); box-shadow: 0 8px 30px rgba(232,93,58,0.35); }
    50% { transform: rotate(-4deg) scale(1.05); box-shadow: 0 12px 40px rgba(232,93,58,0.55); }
}

/* 统计数字：统一从左到右灯光扫过（错开延迟形成连续光波）+ 发光脉动 */
.stat-num {
    animation: statShine 4s ease-in-out infinite, statGlow 3s ease-in-out infinite;
}
.stat-item:nth-child(1) .stat-num { animation-delay: 0s, 0s; }
.stat-item:nth-child(2) .stat-num { animation-delay: 0.3s, 0s; }
.stat-item:nth-child(3) .stat-num { animation-delay: 0.6s, 0s; }
.stat-item:nth-child(4) .stat-num { animation-delay: 0.9s, 0s; }
@keyframes statShine {
    0%, 10% { background-position: 100% center; }
    55% { background-position: 0% center; }
    100% { background-position: 0% center; }
}
@keyframes statGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(232,93,58,0.25)); }
    50% { filter: drop-shadow(0 0 18px rgba(232,184,85,0.45)); }
}

/* ============================================
 响应式
 ============================================ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text { order: 2; }
    .hero-visual { order: 1; }
    .hero-actions { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }

    .tree-showcase-inner { grid-template-columns: 1fr; gap: 50px; }
    .heritage-inner { grid-template-columns: 1fr; gap: 50px; }

    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .value-card:nth-child(5) { grid-column: span 2; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 640px) {
    .nav { padding: 14px 20px; }
    .nav.scrolled { padding: 12px 20px; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .container { padding: 0 20px; }
    .section { padding: 70px 0; }
    .hero { padding: 100px 20px 40px; }

    .values-grid { grid-template-columns: 1fr; }
    .value-card:nth-child(5) { grid-column: span 1; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 36px; }

    .platform-card { flex-direction: column; gap: 16px; }

    .section-head { margin-bottom: 40px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }

    .tree-demo-body { padding: 24px 14px; }
    .gen { gap: 20px; }
    .person { min-width: 50px; padding: 8px 10px; font-size: 13px; }
}

/* ============================================
 无障碍 - 减弱动效
 ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
