/* =============================================
   焰龙家族 - 沉浸式IP网站
   全面升级版：电影级动效 + 3D + 视差
   ============================================= */

/* ---------- CSS 变量 ---------- */
:root {
    --flame-red: #E63946;
    --flame-orange: #F7931E;
    --flame-gold: #FFD700;
    --flame-yellow: #FFB800;
    --fire-blue: #1E3A8A;
    --fire-navy: #0F172A;
    --fire-cyan: #06B6D4;
    --cyber-purple: #8B5CF6;
    --bg-dark: #08080D;
    --bg-deeper: #040406;
    --bg-card: rgba(12, 12, 20, 0.85);
    --text-primary: #F5F5F7;
    --text-secondary: rgba(245, 245, 247, 0.75);
    --text-muted: rgba(245, 245, 247, 0.8);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font-display: 'Ma Shan Zheng', cursive;
    --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

/* ---------- 自定义光标 ---------- */
.custom-cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--flame-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease, width 0.2s, height 0.2s, background 0.2s;
    transform: translate(-50%, -50%);
}
.cursor-follower {
    position: fixed;
    width: 36px; height: 36px;
    border: 2px solid rgba(247, 147, 30, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.3s ease, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}
body.cursor-hover .custom-cursor {
    width: 24px; height: 24px;
    background: var(--flame-gold);
}
body.cursor-hover .cursor-follower {
    width: 50px; height: 50px;
    border-color: var(--flame-gold);
}
@media (pointer: coarse) {
    .custom-cursor, .cursor-follower { display: none !important; }
}

/* ---------- 全局粒子画布 ---------- */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* =============================================
   加载画面
   ============================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-logo {
    width: 80px; height: 96px;
    margin: 0 auto 24px;
}
.loader-flame-svg { width: 100%; height: 100%; }
.loader-flame-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawFlame 2s ease forwards;
}
.loader-flame-inner { animation: fadeInFlame 1s ease 1.2s forwards; }
@keyframes drawFlame {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeInFlame {
    to { opacity: 0.8; }
}
.loader-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--flame-red), var(--flame-orange), var(--flame-gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}
.loader-bar {
    width: 200px; height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    margin: 0 auto 16px;
    overflow: hidden;
}
.loader-progress {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--flame-red), var(--flame-orange), var(--flame-gold));
    border-radius: inherit;
    transition: width 0.3s ease;
}
.loader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* =============================================
   侧边导航（圆点式）
   ============================================= */
.side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}
.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nav-dot {
    position: relative;
    display: block;
    width: 14px; height: 14px;
    text-decoration: none;
}
.nav-dot span {
    display: block;
    width: 10px; height: 10px;
    margin: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    box-shadow: none;
}
.nav-dot.active span {
    background: var(--flame-orange);
    box-shadow: 0 0 12px var(--flame-orange);
    transform: scale(1.3);
}
.nav-dot:hover span {
    background: var(--flame-gold);
    transform: scale(1.2);
}
.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    transform: translateY(-50%) translateX(10px);
}
.nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =============================================
   Hero 首页
   ============================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../images/main.png') center center / cover no-repeat;
    opacity: 0.6;
    z-index: 0;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(230,57,70,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(247,147,30,0.08) 0%, transparent 60%);
}
.hero-bg-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, var(--bg-dark) 100%);
}
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    width: 100%;
}
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--flame-red) 0%, var(--flame-orange) 40%, var(--flame-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 40px rgba(230,57,70,0.4)) drop-shadow(0 0 80px rgba(247,147,30,0.2));
}
.hero-slogan-wrap {
    overflow: hidden;
    margin-bottom: 12px;
}
.hero-slogan {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255,255,255,0.15);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 24px;
}
.stat-item {
    text-align: center;
    padding: 20px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(247,147,30,0.3);
    box-shadow: 0 8px 32px rgba(247,147,30,0.15);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--flame-orange), var(--flame-gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero 角色 */
.hero-character {
    position: relative;
    flex-shrink: 0;
    width: 380px; height: 450px;
}
.hero-char-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,107,53,0.35) 0%, rgba(247,147,30,0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 4s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}
.hero-char-image {
    position: relative;
    width: 100%; height: 100%;
    z-index: 2;
}
.char-placeholder-hero {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, rgba(230,57,70,0.15), rgba(247,147,30,0.15), rgba(255,215,0,0.1));
    border: 2px solid rgba(255,107,53,0.4);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.char-placeholder-hero::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--flame-red), var(--flame-orange), var(--flame-gold), var(--flame-red));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderShift 4s ease infinite;
}
@keyframes borderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.char-placeholder-icon {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--flame-orange), var(--flame-gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(247,147,30,0.5));
}

/* 滚动提示 */
.scroll-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s;
}
.scroll-cta:hover { color: var(--flame-orange); }
.scroll-cta-text { font-size: 1.2rem; letter-spacing: 0.15em; }
.scroll-cta-flame {
    animation: floatDown 2s ease-in-out infinite;
}
@keyframes floatDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* =============================================
   火焰分割线
   ============================================= */
.fire-divider {
    position: relative;
    height: 120px;
    margin-top: -60px;
    z-index: 5;
    overflow: hidden;
}
.fire-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}
.fire-divider.flip {
    transform: scaleY(-1);
    margin-top: 0;
    margin-bottom: -60px;
}

/* =============================================
   通用板块样式
   ============================================= */
section {
    position: relative;
    padding: 100px 40px;
    z-index: 5;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, var(--flame-red), var(--flame-orange), var(--flame-gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(230,57,70,0.3));
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* =============================================
   焰龙史诗 - 时间轴
   ============================================= */
.epic-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
}
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}
.timeline-fire-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
}
.timeline-fire-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--flame-red), var(--flame-orange), var(--flame-gold));
    border-radius: inherit;
    box-shadow: 0 0 16px var(--flame-orange), 0 0 40px rgba(230,57,70,0.3);
    transition: height 0.1s linear;
}
.timeline-node {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}
.timeline-node[data-aos="left"] { transform: translateX(-60px); }
.timeline-node[data-aos="right"] { transform: translateX(60px); }
.timeline-node.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.timeline-node:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 40px); }
.timeline-node:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 40px); }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--flame-gold);
    box-shadow: 0 0 16px rgba(255,215,0,0.7);
    z-index: 10;
}
.marker-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,215,0,0.4);
    animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}
.timeline-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247,147,30,0.3);
    box-shadow: 0 12px 40px rgba(230,57,70,0.15);
}
.tc-visual { height: 160px; overflow: hidden; }
.tc-image {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
}
.tc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-image span { position: relative; z-index: 2; }
.ancient-gradient { background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(236,72,153,0.2), rgba(230,57,70,0.2)); }
.fire-gradient { background: linear-gradient(135deg, rgba(230,57,70,0.3), rgba(247,147,30,0.25)); }
.warm-gradient { background: linear-gradient(135deg, rgba(255,184,0,0.25), rgba(230,57,70,0.2)); }
.gold-gradient { background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(247,147,30,0.2)); }
.cyber-gradient { background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(30,58,138,0.2)); }
.tc-body { padding: 20px; }
.tc-date {
    position: absolute;
    top: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--flame-gold);
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(255,215,0,0.4);
    z-index: 5;
}
/* odd children: card on LEFT → date on RIGHT of timeline */
.timeline-node:nth-child(odd) > .tc-date {
    left: calc(50% + 30px);
}
/* even children: card on RIGHT → date on LEFT of timeline */
.timeline-node:nth-child(even) > .tc-date {
    right: calc(50% + 30px);
}
.tc-body h3 {
    font-size: 1.2rem;
    color: var(--flame-orange);
    margin-bottom: 8px;
}
.tc-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.tc-copyright {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--flame-red), var(--flame-orange));
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}

/* =============================================
   家族天团 - Spotlight
   ============================================= */
.family-section {
    background: var(--bg-deeper);
    padding-bottom: 80px;
}
.spotlight-stage {
    max-width: 1200px;
    margin: 0 auto;
}
.spotlight-display {
    position: relative;
    min-height: 500px;
    margin-bottom: 48px;
}
.spotlight-character {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.spotlight-character.active {
    display: grid;
    animation: spotFadeIn 0.6s ease;
}
@keyframes spotFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* 角色视觉区 */
.spot-visual {
    position: relative;
    height: 480px;
    perspective: 800px;
}
.spot-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(40px);
    animation: spotGlow 3s ease-in-out infinite;
}
@keyframes spotGlow {
    0%, 100% { opacity: 0.2; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%,-50%) scale(1.15); }
}
.spot-image-wrap {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
}
.spot-image {
    width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-family: var(--font-display);
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.spot-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
.spot-image::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.03), transparent, rgba(255,255,255,0.02), transparent);
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { transform: rotate(360deg); } }

.char-yanqing { background: linear-gradient(160deg, rgba(255,184,0,0.15), rgba(230,57,70,0.15)); color: #FFB800; }
.char-poee { background: linear-gradient(160deg, rgba(230,57,70,0.15), rgba(255,107,53,0.15)); color: #E63946; }
.char-xunlin { background: linear-gradient(160deg, rgba(6,182,212,0.15), rgba(30,58,138,0.15)); color: #06B6D4; }
.char-anheng { background: linear-gradient(160deg, rgba(16,185,129,0.15), rgba(5,150,105,0.15)); color: #10B981; }
.char-lanbo { background: linear-gradient(160deg, rgba(59,130,246,0.15), rgba(29,78,216,0.15)); color: #3B82F6; }
.char-zhuojian { background: linear-gradient(160deg, rgba(139,92,246,0.15), rgba(124,58,237,0.15)); color: #8B5CF6; }

/* 角色信息区 */
.spot-info { padding: 20px 0; }
.spot-name {
    font-family: var(--font-display);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--flame-orange), var(--flame-gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.spot-title {
    font-size: 1.1rem;
    color: var(--flame-orange);
    margin-bottom: 16px;
}
.spot-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.spot-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.spot-tag {
    padding: 6px 18px;
    background: rgba(247,147,30,0.1);
    border: 1px solid rgba(247,147,30,0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--flame-orange);
    transition: all 0.3s;
}
.spot-tag:hover {
    background: rgba(247,147,30,0.2);
    border-color: var(--flame-orange);
    box-shadow: 0 0 12px rgba(247,147,30,0.2);
}
.spot-equip {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--flame-orange);
}
.spot-equip p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.spot-equip strong {
    color: var(--flame-gold);
    margin-right: 8px;
}

/* 角色选择器 */
.spotlight-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.sel-btn:hover {
    border-color: var(--btn-color);
    transform: translateY(-3px);
    background: rgba(255,255,255,0.05);
}
.sel-btn.active {
    border-color: var(--btn-color);
    box-shadow: 0 0 20px color-mix(in srgb, var(--btn-color) 40%, transparent);
    color: var(--text-primary);
}
.sel-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    transition: transform 0.3s;
}
.sel-btn:hover .sel-avatar { transform: scale(1.1); }

/* =============================================
   世界观 - 时空穿越
   ============================================= */
.worldview-section {
    background: linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg-dark) 50%, var(--bg-deeper) 100%);
    overflow: hidden;
}
.worldview-scroll {
    max-width: 1100px;
    margin: 0 auto;
}
.wv-chapter { position: relative; padding: 60px 40px; }
.wv-bg-layer {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: 0;
}
.ancient-layer {
    background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(255,215,0,0.2), rgba(230,57,70,0.2));
}
.modern-layer {
    background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(30,58,138,0.2), rgba(16,185,129,0.15));
}
.wv-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.wv-visual { position: relative; height: 350px; }

/* 场景视觉元素 */
.wv-scene {
    width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.ancient-scene-visual {
    background: linear-gradient(160deg, rgba(139,92,246,0.2) 0%, rgba(255,215,0,0.12) 50%, rgba(230,57,70,0.15) 100%);
    border: 1px solid rgba(255,215,0,0.15);
}
.modern-scene-visual {
    background: linear-gradient(160deg, rgba(6,182,212,0.15) 0%, rgba(30,58,138,0.15) 50%, rgba(15,23,42,0.3) 100%);
    border: 1px solid rgba(6,182,212,0.15);
}
.ancient-mountain {
    position: absolute;
    bottom: 0; left: 10%;
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255,215,0,0.15);
}
.ancient-temple {
    position: absolute;
    top: 30px; right: 30px;
    width: 80px; height: 100px;
    background: rgba(255,215,0,0.1);
    clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 20% 100%, 0% 40%);
}
.ancient-aura {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: auraGlow 3s ease-in-out infinite;
}
.modern-building {
    position: absolute;
    bottom: 0; right: 15%;
    width: 40px; height: 120px;
    background: rgba(6,182,212,0.15);
    border-radius: 4px 4px 0 0;
}
.modern-building::before {
    content: '';
    position: absolute;
    left: -30px;
    bottom: 0;
    width: 25px; height: 80px;
    background: rgba(6,182,212,0.1);
    border-radius: 4px 4px 0 0;
}
.modern-station {
    position: absolute;
    bottom: 0; left: 15%;
    width: 100px; height: 60px;
    background: rgba(30,58,138,0.2);
    border-radius: 8px 8px 0 0;
}
.modern-aura {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(6,182,212,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: auraGlow 3s ease-in-out infinite;
}
@keyframes auraGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%,-50%) scale(1.2); }
}

.wv-chapter-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--flame-orange);
    margin-bottom: 16px;
}
.wv-paragraph {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 24px;
}
.wv-points { display: flex; flex-direction: column; gap: 12px; }
.wv-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}
.wv-point:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}
.wv-point-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fire-icon { background: linear-gradient(135deg, var(--flame-red), var(--flame-orange)); }
.mountain-icon { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.people-icon { background: linear-gradient(135deg, var(--flame-gold), #F59E0B); }
.truck-icon { background: linear-gradient(135deg, var(--flame-red), #DC2626); }
.team-icon { background: linear-gradient(135deg, var(--fire-cyan), #0891B2); }
.shield-icon { background: linear-gradient(135deg, #10B981, #059669); }
.wv-point p { font-size: 0.9rem; color: var(--text-secondary); }

/* 时空裂缝 */
.wv-rift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 0;
}
.rift-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--flame-orange), transparent);
    opacity: 0.5;
}
.rift-center {
    text-align: center;
    max-width: 500px;
}
.rift-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: riftFlicker 3s ease-in-out infinite;
}
.rift-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--flame-gold);
    white-space: nowrap;
    letter-spacing: 0.3em;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
    animation: riftFlicker 3s ease-in-out infinite;
}
.rift-desc {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0.8;
}
@keyframes riftFlicker {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(230,57,70,0.3); }
}

/* 核心理念 */
.wv-core {
    max-width: 1100px;
    margin: 60px auto 0;
}
.wv-core-inner {
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(8px);
}
.wv-core-inner h4 {
    font-size: 1.2rem;
    color: var(--flame-gold);
    margin-bottom: 16px;
}
.wv-core-inner blockquote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--flame-orange);
    padding-left: 20px;
    margin: 0 auto 32px;
    max-width: 600px;
    text-align: left;
    line-height: 1.8;
}
.wv-values {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.wv-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.wv-value-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    opacity: 0.8;
}
.shield-glow { background: linear-gradient(135deg, var(--flame-red), var(--flame-orange)); box-shadow: 0 0 20px rgba(230,57,70,0.3); }
.science-glow { background: linear-gradient(135deg, var(--fire-cyan), var(--fire-blue)); box-shadow: 0 0 20px rgba(6,182,212,0.3); }
.prevent-glow { background: linear-gradient(135deg, var(--flame-gold), var(--flame-yellow)); box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.heart-glow { background: linear-gradient(135deg, #EF4444, #F97316); box-shadow: 0 0 20px rgba(239,68,68,0.3); }
.wv-value span { font-size: 0.85rem; color: var(--text-muted); }

/* =============================================
   衍生潮品
   ============================================= */
.products-section {
    background: var(--bg-dark);
}
.products-grid {
    max-width: 1100px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
/* 3D翻转卡片 */
.product-card-3d {
    height: 320px;
    perspective: 800px;
    cursor: pointer;
}
.product-card-3d.featured {
    grid-column: span 2;
}
.pc-inner {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}
.product-card-3d:hover .pc-inner {
    transform: rotateY(180deg);
}
.pc-front, .pc-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.pc-front {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}
.pc-back {
    background: var(--bg-card);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}
.pc-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
}
.pc-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.product-toy { background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(230,57,70,0.2)); }
.product-big-toy { background: linear-gradient(135deg, rgba(230,57,70,0.2), rgba(247,147,30,0.2)); }
.product-ai { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(139,92,246,0.2)); }
.product-anim { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(255,107,53,0.2)); }
.pc-front h4 {
    padding: 16px;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
}
.pc-back h4 {
    font-size: 1.2rem;
    color: var(--flame-orange);
    margin-bottom: 12px;
}
.pc-back p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.pc-badge {
    padding: 4px 14px;
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--flame-gold);
}

/* 展览条 */
.exhibition-strip {
    max-width: 1100px;
    margin: 0 auto;
}
.strip-title {
    font-size: 1.3rem;
    color: var(--flame-orange);
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--flame-red);
}
.strip-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.strip-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(40px);
}
.strip-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.strip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247,147,30,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.strip-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
}
.strip-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.exhibit-gradient { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2)); }
.activity-gradient { background: linear-gradient(135deg, rgba(247,147,30,0.2), rgba(255,215,0,0.15)); }
.strip-info { padding: 16px; }
.strip-info h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; }
.strip-info p { font-size: 0.85rem; color: var(--text-muted); }

/* =============================================
   消防潮科普
   ============================================= */
.knowledge-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
}
.knowledge-intro-bar {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
}
.knowledge-intro-bar p { font-size: 0.95rem; color: var(--text-secondary); }
.knowledge-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}
.know-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
}
.know-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.know-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--card-color);
    opacity: 0.6;
    transition: opacity 0.3s;
}
.know-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-color) 30%, transparent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.know-card:hover::before { opacity: 1; }
.know-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
}
.know-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}
.know-header h4 { font-size: 1.1rem; color: var(--text-primary); }
.know-header span { font-size: 0.8rem; color: var(--text-muted); }
.know-body { padding: 20px; }
.know-body h5 {
    font-size: 1rem;
    color: var(--card-color);
    margin-bottom: 12px;
}
.know-body ul {
    list-style: none;
    margin-bottom: 16px;
}
.know-body li {
    padding: 6px 0 6px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}
.know-body li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--card-color);
    opacity: 0.6;
}
.know-quote {
    padding: 12px 16px;
    background: color-mix(in srgb, var(--card-color) 8%, transparent);
    border-left: 3px solid var(--card-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--card-color);
    opacity: 0.9;
}

/* =============================================
   科普动画
   ============================================= */
.know-videos {
    max-width: 1200px;
    margin: 60px auto 0;
}
.know-videos-title {
    font-size: 1.3rem;
    color: var(--flame-orange);
    margin-bottom: 8px;
    padding-left: 16px;
    border-left: 4px solid var(--flame-red);
}
.know-videos-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-left: 20px;
}
.know-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.know-video-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s;
}
.know-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(247,147,30,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.know-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(247,147,30,0.1));
    pointer-events: none;
    transition: opacity 0.3s;
}
.know-video-card .know-video[src]:not([src=""]) ~ .video-placeholder,
.video-wrapper:has(.know-video[poster]:not([poster=""])) .video-placeholder {
    /* 有视频内容时隐藏占位符 */
}
.video-play-icon {
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}
.know-video-card:hover .video-play-icon {
    opacity: 1;
    transform: scale(1.1);
}
.video-placeholder span {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}
.video-info {
    padding: 16px;
}
.video-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.video-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .know-videos-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    position: relative;
    background: var(--bg-deeper);
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.footer-fire-top {
    height: 60px;
    position: relative;
}
#footerFireCanvas {
    width: 100%; height: 100%;
    display: block;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 40px;
    align-items: start;
}
.footer-brand { text-align: center; }
.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--flame-red), var(--flame-orange));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
}
.footer-col h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--flame-orange); }
.footer-copyright { text-align: right; }
.footer-copyright p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.copyright-year {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--flame-gold) !important;
}
.footer-ember {
    text-align: center;
    padding: 24px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    animation: emberGlow 3s ease-in-out infinite;
}
@keyframes emberGlow {
    0%, 100% { opacity: 0.4; text-shadow: none; }
    50% { opacity: 0.8; text-shadow: 0 0 20px rgba(247,147,30,0.4); }
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; gap: 40px; text-align: center; }
    .hero-character { width: 280px; height: 340px; }
    .hero-stats { justify-content: center; }
    .spotlight-character.active { grid-template-columns: 1fr; }
    .spot-visual { height: 350px; }
    .wv-content { grid-template-columns: 1fr; }
    .wv-visual { height: 250px; }
    .product-card-3d.featured { grid-column: span 1; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-links { flex-direction: column; gap: 24px; align-items: center; }
    .footer-copyright { text-align: center; }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    section { padding: 80px 20px; }
    .side-nav { right: 12px; }
    .hero-section { padding: 20px; }
    .hero-title { margin-bottom: 12px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-item { padding: 16px 20px; }
    .timeline-fire-line { left: 20px; }
    .timeline-marker { left: 20px; }
    .timeline-node:nth-child(odd),
    .timeline-node:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .spotlight-selector { gap: 8px; }
    .sel-btn { min-width: 60px; padding: 10px 12px; }
    .sel-avatar { width: 40px; height: 40px; }
    .strip-scroll { grid-template-columns: 1fr; }
    .knowledge-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-character { width: 240px; height: 300px; }
    .spot-visual { height: 280px; }
    .wv-values { gap: 20px; }
    .wv-value { flex: 1 1 40%; }
}
