/* --- 0. 字体定义 --- */
@font-face {
    font-family: 'OPPOSans';
    src: url('../fonts/OPPOSans4.0.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Kaine';
    src: url('../fonts/NeueKaineVariable.ttf') format('truetype');
    font-weight: 100 900; 
    font-style: normal;
    font-display: block;
}

:root {
    /* --- 变量定义 --- */
    --core-red: #ff0000;       
    --accent-dark: #4a0000;    
    --bg-color: #000000;
    --text-color: #ffffff;
    --neon-white: #ffffff;      
    --hud-bg: rgba(0, 0, 0, 0.85);

    --font-display: 'Neue Kaine', 'OPPOSans', sans-serif;

    --font-main: 'OPPOSans', sans-serif;
    
    /* --- 动画曲线保持不变 --- */
    --transition-smooth: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-fluid: cubic-bezier(0.23, 1, 0.32, 1);
    
    --bg-base: #050000; 
    --mist-gray: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
}

/* 移动端恢复默认触摸光标 */
@media (hover: none) and (pointer: coarse) {
    * { cursor: auto !important; }
    .diamond-cursor { display: none !important; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.2;
}

/* =================================================================
   LOADER STYLES 
================================================================== --> */
#loader-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    pointer-events: none; background: transparent;
}

.shutter-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; z-index: 1;
}
.shutter-col {
    flex: 1; background: #000; height: 100%; transform-origin: top center;
}

.loader-content-box {
    position: relative; z-index: 10;
    width: auto; 
    min-width: 340px; /* 保证最小宽度 */
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    /* [修复] 增加间距，防止文字压住进度条 */
    gap: 0px; 
}

/* --- 父容器：负责整体位移 --- */
.loader-text-group {
    display: flex; 
    flex-direction: column;
    /* 这里的 gap 很重要，保持紧凑 */
    gap: 0px; 
    
    /* [修改 1] 增加内边距，防止高斯模糊被边缘切掉 */
    padding: 20px; 
    margin: -20px -20px 0px -20px; 

    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 50%, black 100%);
    mask-image: linear-gradient(to top, transparent 0%, black 50%, black 100%);
    
    position: relative;
    z-index: 1;
    transform: none; 
    opacity: 1;
    filter: none;
    will-change: transform;
}
/* --- 子元素：每一行文字 --- */
.loader-line {
    font-family: var(--font-main); 
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem); 
    color: #ffffff;
    line-height: 1.0; 
    text-transform: uppercase;
    letter-spacing: -1px;
    white-space: nowrap;
    
    /* [修改] 初始完全透明 + 模糊，等待 JS 唤醒 */
    padding:5px 0;
    opacity: 0; 
    filter: blur(4px); 
    will-change: opacity, filter;
}

/* --- 加载条 (加粗) --- */
.loader-bar-bg {
    width: 100%;
    height: 60px; 
    background: rgba(225, 225, 225,1);
    position: relative; /* 必须有 position，z-index 才生效 */
    z-index: 20;        /* 设高一点，压住文字 */
}

.loader-bar-fill {
    width: 0%; height: 100%; background: var(--core-red);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .loader-content-box { width: 85vw; min-width: auto; gap: 20px; }
    .loader-line { font-size: 2.2rem; }
    .loader-bar-bg { height: 16px; } /* 手机上稍微细一点，保持比例 */
}

/* ================== 2. TEXT REVEAL FIX (文字变色修复) ================== */
/* 确保 .char 有足够的高度和 overflow 隐藏，让红字藏在下面 */
.char-wrapper {
    overflow: hidden; 
    padding-bottom: 0.1em; /* 防止文字切脚 */
}

.char {
    display: inline-block;
    position: relative;
    color: #fff;
    transition: none; /* 移除 CSS transition，完全交给 GSAP */
}

.char::before {
    content: attr(data-char);
    position: absolute;
    top: 100%; /* 藏在下方 */
    left: 0;
    color: var(--core-red);
    width: 100%;
    height: 100%;
}
/* --- [视觉增强] 模拟 GSAP 的视差模糊进场 --- */
@keyframes reveal-entry {
    0% { 
        opacity: 0; 
        /* 初始状态：大幅下沉 + 缩小 + 强模糊 */
        transform: translateY(100px) scale(0.9); 
        filter: blur(20px); 
    }
    100% { 
        opacity: 1; 
        /* 结束状态：归位 + 清晰 */
        transform: translateY(0) scale(1); 
        filter: blur(0); 
    }
}

.reveal {
    /* 默认不可见 */
    opacity: 0; 
    
    /* 绑定动画 */
    animation-name: reveal-entry; 
    animation-duration: 0.8s;
    
    /* 关键：使用 Quint Out 曲线，模拟非线性物理运动 (快进慢出) */
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); 
    
    animation-fill-mode: both; 
    animation-play-state: paused; 
    will-change: transform, opacity, filter;
}

.reveal.active { 
    animation-play-state: running; 
}

/* --- style.css --- */

/* --- 1. 光标升级：实心战术瞄准点 --- */
.diamond-cursor {
    position: fixed; top: 0; left: 0;
    width: 12px; height: 12px; /* 稍微大一点的实心点 */
    
    /* 默认状态：实心白色 (最高对比度)，带红色发光 */
    background-color: #ffffff; 
    border-radius: 50%; /* 变成圆形，更稳重 */
    border: none; /* 去掉以前的细边框 */
    
    pointer-events: none; z-index: 20000 !important;
    mix-blend-mode: screen;
    
    /* 优化运动跟随的流畅度 */
    transition: width 0.3s, height 0.3s, background-color 0.2s;
    
    will-change: transform;
}

/* 悬停激活状态：扩散为红色锁定圈 */
.diamond-cursor.active {
    width: 40px; height: 40px; /* 变大 */
    background-color: transparent; /* 内部变空 */
    border: 2px solid var(--core-red); /* 出现红色边框 */
    box-shadow: 0 0 15px var(--core-red); /* 强光晕 */
    mix-blend-mode: normal; /* 恢复正常混合模式显示红色 */
}

/* 黑色模式 (如果需要) */
.diamond-cursor.black-mode {
    background-color: #000 !important; mix-blend-mode: normal !important;
}

/* --- style.css (优化版背景) --- */
#fluid-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2; background: var(--bg-base); 
    overflow: hidden; pointer-events: none; 
    /* 开启 GPU 硬件加速层 */
    transform: translateZ(0); 
    will-change: transform; 
}

.fluid-orb { 
    position: absolute; 
    border-radius: 50%; 
    /* 关键：把 blur 值减小一点，或者干脆去掉 blur，改用径向渐变图片代替 (性能最好) */
    /* 如果必须用 CSS blur，建议不要超过 50px */
    filter: blur(40px); 
    
    /* 尝试暂时注释掉混合模式，如果这一行注释掉后不卡了，那就是它的锅 */
    /* mix-blend-mode: hard-light; */ 
    opacity: 0.6;
    
    /* 移除所有 CSS animation，交给 GSAP */
    animation: none !important; 
    will-change: transform, opacity;
}

/* 定义球体的大小和初始位置 (不写动画) */
.orb-mist-base {
    width: 100vw; height: 100vw; 
    background: radial-gradient(circle, #220000 0%, transparent 70%); 
    top: -20%; left: -20%; 
}
.orb-flow-1 {
    width: 60vw; height: 60vw; 
    background: radial-gradient(circle, rgba(255, 0, 0, 0.8) 0%, transparent 80%);
    top: 20%; left: 10%; 
}
.orb-flow-2 {
    width: 50vw; height: 50vw; 
    background: radial-gradient(circle, rgba(200, 0, 0, 0.6) 0%, transparent 80%);
    bottom: 10%; right: 10%; 
}
.orb-highlight {
    width: 30vw; height: 30vw; 
    background: radial-gradient(circle, rgba(255, 50, 50, 0.4) 0%, transparent 70%);
    top: 30%; right: 20%; 
    mix-blend-mode: screen; /* 这个 screen 比较轻，可以保留 */
}
@keyframes spin-flow { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes spin-flow-reverse { 0% { transform: rotate(360deg) scale(1); } 50% { transform: rotate(180deg) scale(0.9); } 100% { transform: rotate(0deg) scale(1); } }
@keyframes morph-aggressive { 0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } }
@keyframes wander-1 { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 50px); } }
@keyframes wander-2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-100px, -50px); } }
@keyframes breathe { from { opacity: 0.4; } to { opacity: 0.6; } }
@keyframes float-fast { from { transform: translate(0,0); } to { transform: translate(-20px, 30px); } }

/* --- [视觉升级] 顶部导航栏：强烈的模糊视差回弹 --- */
.hud-nav-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 999; 
    
    /* 1. 初始状态：(这里改得更夸张一点，让动画肉眼可见) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px) scale(0.9); /* 上移50px，缩小到0.9 */
    filter: blur(20px); /* 强模糊 */
    
    background: transparent; 
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    display: flex; 
    justify-content: center; 
    padding: 15px 40px; 
    pointer-events: auto;
    
    /* 2. 过渡动画：时间加长到 1.2s，配合 Q 弹曲线 */
    transition: 
        opacity 0.8s ease,
        transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), /* 经典果冻回弹 */
        filter 0.8s ease, /* 慢慢变清晰 */
        visibility 0.8s,
        background 0.4s ease, 
        backdrop-filter 0.4s ease, 
        border-bottom 0.4s ease, 
        padding 0.4s ease;
        
    will-change: transform, opacity, filter;
}

/* --- 激活状态 --- */
.hud-nav-container.nav-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1); /* 归位 */
    filter: blur(0px); /* 清晰 */
}

/* 滚动变色保持不变 */
.hud-nav-container.scrolled {
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 40px;
}

.hud-nav { 
    background: transparent; 
    backdrop-filter: none; 
    border: none; 
    box-shadow: none;
    padding: 0; 
    width: 100%;
    max-width: 1400px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.hud-logo { 
    font-family: var(--font-display); 
    font-weight: 900 !important; 
    font-variation-settings: "wght" 900 !important; 
    letter-spacing: -0.5px !important; 
    font-size: 1.2rem !important;
    display: inline-block; 
}
.hud-logo .c-red { color: var(--core-red); display: inline-block; margin-right: -4.5px; font-size: 1.2rem !important;}

.nav-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hud-nav span, .nav-link { 
    font-family: var(--font-display); 
    font-weight: 500; 
    text-decoration: none; color: #fff; 
    text-transform: uppercase; font-size: 0.85rem; 
    transition: 0.3s; padding: 4px 8px; white-space: nowrap; 
}

.nav-link:hover { background: var(--core-red); color: #fff; }
.nav-separator { color: var(--core-red); font-weight: 400; font-family: var(--font-display); }

/* --- 5. Hero Section --- */
.hero-section {
    height: 100vh; position: relative; 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 0 5vw;
    perspective: 1000px;
}
.title-container { 
    position: relative; 
    display: inline-block; 
    padding: 20px 0;
    
    /* ✅ [新增] 故障动画：5秒循环一次，模拟不稳定的信号 */
    animation: glitch-skew 5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
h1.hero-title-base {
    font-family: var(--font-display); font-weight: 900; font-size: 11vw; 
    text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.0; 
    color: transparent; user-select: none; margin: 0; padding: 0 10px; 
}
h1.hero-title-base * { color: transparent !important; }

.slice-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-display); font-weight: 900; font-size: 11vw; 
    text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.0; 
    background: transparent; color: #ffffff;
    transition: transform 0.6s var(--transition-smooth), clip-path 0.6s var(--transition-smooth);
    pointer-events: none; overflow: hidden; will-change: transform;
    padding: 0 10px;
}
.slice-layer .c-red {
    color: var(--core-red) !important;
}
.slice-top { clip-path: polygon(0 0, 100% 0, 100% 42%, 0 42%); z-index: 3; }
.slice-bottom { clip-path: polygon(0 42%, 100% 42%, 100% 100%, 0 100%); z-index: 3; }

.data-stream {
    position: absolute; top: 42%; left: 0; width: 100%; height: 20px; 
    transform: translateY(-50%) scaleX(0.95); background: var(--core-red); color: #fff; 
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; 
    display: flex; align-items: center; overflow: hidden; white-space: nowrap; 
    opacity: 0; z-index: 1; transition: opacity 0.2s, height 0.4s var(--transition-smooth);
}
.track { display: flex; width: fit-content; animation: scroll-seamless 8s linear infinite; will-change: transform; }
.track span { padding-right: 20px; display: inline-block; }
@keyframes scroll-seamless { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.title-container:hover .slice-top { transform: translate(-8px, -28px) skewX(-3deg); }
.title-container:hover .slice-bottom { transform: translate(8px, 28px) skewX(-3deg); }
.title-container:hover .data-stream { opacity: 1; height: 40px; }

/* --- [修复版] 流体按钮 --- */
.hyper-btn {
    position: relative; 
    display: inline-flex !important; 
    justify-content: center !important; 
    align-items: center !important;     
    overflow: hidden !important;        
    padding: 14px 36px; 
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-family: var(--font-main);
    z-index: 10;

    transition: box-shadow 0.3s ease, border-color 0.3s, color 0.3s;
    will-change: transform;
}

.hyper-btn:hover {
    border-color: var(--core-red) !important;
    color: #fff !important;
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.25) !important;
    z-index: 12;
}
/* 确保内部文字在流体之上 */
.hyper-btn span {
    position: relative;
    z-index: 5 !important; /* 提高文字层级 */
}

/* 内部流体容器 (保持原样，确保不溢出) */
.hyper-btn .liquid-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 9999px; overflow: hidden; z-index: 1; pointer-events: none;
}
/* 内部流体保持不变，配合外部容器 */
.hyper-btn .liquid-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 9999px; overflow: hidden; z-index: 0; pointer-events: none;
}
/* ... (保留原本的 liquid-inner::before 和 after 样式) ... */
.hyper-btn .liquid-inner::before {
    content: ''; position: absolute; width: 1200px; height: 1200px; 
    border-radius: 50%; background: var(--core-red);
    top: var(--y); left: var(--x);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1.4s var(--ease-fluid);
}
.hyper-btn::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 110%; height: 110%;
    transform: translate(-50%, -50%) scale(0.8);
    background: radial-gradient(circle, rgba(255, 0, 0, 0.6) 0%, transparent 70%);
    opacity: 0; filter: blur(20px); transition: opacity 0.5s, transform 0.5s; z-index: -2;
}
.hyper-btn:hover .liquid-inner::before { transform: translate(-50%, -50%) scale(1); }
.hyper-btn:hover::after { opacity: 1; transform: translate(-50%, -40%) scale(1.1); }
.hyper-btn span { position: relative; z-index: 2; padding-top: 2px; }

.hero-sub { font-family: var(--font-display); letter-spacing: 2px; margin-top: 40px; }
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; opacity: 0.7; gap: 10px; pointer-events: none;
}
/* --- [修复] 滚动提示文字 --- */
.scroll-text {
    /* 1. 强制指定 Neue Kaine 字体，防止被 body 的 OPPO Sans 覆盖 */
    font-family: 'Neue Kaine', sans-serif !important; 
    
    /* 2. 针对可变字体的加粗设置 (确保足够粗) */
    font-weight: 900 !important; 
    font-variation-settings: "wght" 900; 
    
    /* 3. 强制变红 */
    color: var(--core-red) !important; 
    
    /* 4. 其他细节 */
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    
    /* 确保它不受其他动画属性干扰 */
    opacity: 1; 
}
.scroll-line {
    width: 2px; height: 60px; background: linear-gradient(to bottom, transparent, var(--core-red));
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Sections */
section { 
    padding: 80px 5vw; 
    min-height: 80vh; 
    border-top: none; /* 移除旧边框 */
    position: relative; 
    z-index: 1; 
}
section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.section-header { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    margin-bottom: 60px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* 极细深灰线 */
    padding-bottom: 10px; 
    position: relative; 
}
.section-header::after {
    content: ''; position: absolute; bottom: -2px; right: 0; width: 60px; height: 3px;
    background: var(--core-red); box-shadow: 0 0 8px var(--core-red);
}
.section-title { 
    font-family: var(--font-display); 
    font-weight: 900; 
    letter-spacing: -2px;
    font-size: 4rem; 
    display: block; 
    cursor: default;
    padding-top: 10px; 
    padding-bottom: 5px;
}

    .section-id { 
    font-family: 'Neue Kaine', sans-serif; /* 指定字体 */
    font-weight: 900; 
    font-variation-settings: "wght" 900; /* 确保可变字体也是最粗 */
    color: var(--core-red); /* 红色 */
    font-size: 6rem; /* 加大字号 */
    line-height: 0.8; 
    letter-spacing: -1px;
    margin-bottom: 5px; /* 对齐微调 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-id { font-size: 2.5rem; }
}

/* --- 新增：英文版标题样式 (强制换行) --- */
.section-title.en-ver {
    white-space: normal;  
    width: auto;          
    max-width: none;      /* 🔴 移除宽度限制，完全依靠 <br> 换行 */
    line-height: 0.85;    /* 紧凑行高，让两行文字更整体 */
    text-align: left;
}

/* --- 中文版标题样式 --- */
.section-title.cn-ver {
    position: relative; 
    display: inline-block; 
    overflow: hidden; 
    vertical-align: bottom;
    
    /* [新增] 降低字重：从默认的 900 降为 700 */
    font-weight: 700 !important; 
    
    line-height: 0.95;
    padding-top: 0.05em;
    padding-bottom: 0px;
    margin-bottom: -0.05em;
}

/* [修改] 加上 overflow: hidden 切掉多余的红色文字 */
.char-wrapper { 
    position: relative; 
    display: inline-block; 
    overflow: hidden; 
    vertical-align: bottom;
    
    /* 🟢 修复数值：给文字足够的显示空间 */
    line-height: 1.15;  
    padding-bottom: 5px; /* 增加底部内边距 */
    margin-bottom: -5px; /*以此抵消内边距，保持排版紧凑 */
}

.char { 
    display: inline-block; 
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); 
    position: relative; 
    color: #fff; /* 默认白色 */
}

/* Red Text (Hidden below) */
.char::before { 
    content: attr(data-char); 
    position: absolute; 
    
    /* 🟢 修复：因为容器变高了，把红字再往下推一点，防止露头 */
    top: 105%;   
    
    left: 0; 
    color: var(--core-red); 
    width: 100%; 
}

/* Hover Effect: Move both up */
.section-title:hover .char,
.section-title.slide-active .char { 
    transform: translateY(-100%)!important; /* 向上移动，配合 top:100% 使用 */
}
.space-char { display: inline-block; width: 0.3em; }

/* =================================================================
   ARCHIVE ZOOM EFFECT (穿梭效果 - 透明背景版)
================================================================= */

/* 1. 容器：背景改为透明，露出流体 */
.archive-zoom-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: transparent; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.archive-mask {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;      /* 纯黑 */
    z-index: 0;            /* 层级：在流体之上，但在内容之下 */
    will-change: opacity;
}

/* 2. 开场巨大文字 */
.archive-opener {
    position: absolute;
    z-index: 10;           /* 必须高于遮罩层 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    pointer-events: none;
    will-change: transform, opacity;
}

.opener-text-line {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18vw;
    line-height: 0.85;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    white-space: nowrap;
    
    /* 初始不设置 offset，交给 GSAP 控制，避免闪烁 */
}
/* --- [修复 2] 中文版专属样式：红色填充，无描边 --- */
body.cn-mode .opener-text-line.outline {
    color: var(--core-red) !important; /* 强制变红 */
    -webkit-text-stroke: 0px !important; /* 去除描边 */
    font-weight: 900;
}

.opener-text-line.outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.opener-deco {
    margin-top: 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    letter-spacing: 5px;
    color: var(--core-red);
    opacity: 0; /* 初始隐藏，等字拼好了再出来 */
}

/* 3. 实际内容区域 */
.archive-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;            /* 必须高于遮罩层 */
    display: flex; flex-direction: column;
    padding: 100px 5vw 40px 5vw;
    background: transparent; 
    opacity: 0;
    transform: translateY(20vh);
    will-change: transform, opacity;
}

.archive-header-small {
    display: flex; justify-content: space-between;
    font-family: var(--font-display); color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px; margin-bottom: 0;
}

/* 4. 列表行样式 (Rows) */
.archive-rows { display: flex; flex-direction: column; width: 100%; }

.row-item {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-decoration: none; color: #fff;
    overflow: hidden;
    transition: padding 0.3s ease;
    
    /* 可选：加一点点毛玻璃，防止文字看不清 */
    backdrop-filter: blur(0px); 
}

.row-item:hover {
    padding: 60px 20px;
    background: rgba(0,0,0,0.2); /* 悬停时加深一点背景 */
    backdrop-filter: blur(5px);   /* 悬停时模糊背景 */
}

/* 左侧信息 */
.row-left { display: flex; align-items: baseline; gap: 40px; z-index: 2; position: relative;}
.row-id { font-family: var(--font-display); color: var(--core-red); font-size: 1rem; font-weight: 700; }
.row-title { 
    font-family: var(--font-display); font-size: 3rem; font-weight: 900; 
    text-transform: uppercase; margin: 0; transition: transform 0.3s;
}

/* 右侧信息 */
.row-right { display: flex; gap: 40px; font-family: var(--font-main); font-size: 0.9rem; color: #ddd; z-index: 2; position: relative;}

/* 背景图 (全彩版) */
.row-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    
    /* 核心修改：移除 opacity: 0，改为半透明，悬停变全实 */
    opacity: 0; 
    
    /* 核心修改：移除 grayscale，保持全彩 */
    filter: none; 
    
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

/* 悬停效果：图片显现，稍微放大 */
.row-item:hover .row-bg { 
    opacity: 0.6; /* 稍微透明一点，不要太抢眼，否则看不清字 */
    transform: scale(1.05);
}
.row-item:hover .row-title { transform: translateX(10px); }

/* 移动端适配 */
@media (max-width: 768px) {
    .opener-text-line { font-size: 20vw; }
    .row-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 25px 0; }
    .row-title { font-size: 1.8rem; }
    .row-right { width: 100%; justify-content: space-between; }
}

/* Profile Layout */
.about-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 50px; align-items: start; }
.bio-text { 
    font-family: var(--font-main); font-size: clamp(1rem, 2.5vw, 1.8rem); font-weight: 500; 
    text-transform: uppercase; border-left: 5px solid var(--core-red); padding-left: 20px; 
    line-height: 1.5; 
    display: inline-block;
}
.bio-details p { margin-bottom: 20px; line-height: 1.6; }

/* Profile Text Sliding */
.slide-word-wrapper { 
    display: inline-block; 
    position: relative; 
    overflow: hidden; 
    white-space: nowrap; 
    margin: 0 -2px;
}

/* 🔴 英文版 Bio 专属调整 (针对 image_18da3d.png 修复) */
.bio-text.en-bio .slide-word-wrapper {
    line-height: 1.0;       /* 英文需要较紧的行高 */
    vertical-align: -0.15em; /* 关键：微调垂直对齐，让它和前后文字在一条线上 */
    transform: translateY(2px); /* 额外的像素级微调 */
}

/* 🔴 中文版 Bio 专属调整 (针对 image_18da1f.png 修复) */
.bio-text.cn-bio .slide-word-wrapper {
    line-height: 1.2;       /* 中文需要稍松的行高防止切底 */
    vertical-align: bottom; /* 中文通常对齐底部效果最好 */
    margin-bottom: 2px;    /* 修正底部对齐带来的微小偏移 */
    padding-bottom: 2px;    /* 稍微给一点底部空间防止切字 */
}

/* 通用字符样式保持不变 */
.slide-word-wrapper .char { 
    display: inline-block; 
    position: relative; 
    font-family: inherit; 
    font-weight: inherit; 
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), font-weight 0.5s ease;
}
.slide-word-wrapper .char::before { content: attr(data-char); position: absolute; top: -100%; left: 0; color: var(--core-red); width: 100%; }

.bio-text:hover .slide-trigger-1 .char, .bio-text.slide-active .slide-trigger-1 .char,
.bio-text:hover .slide-trigger-2 .char, .bio-text.slide-active .slide-trigger-2 .char,
.bio-text:hover .slide-trigger-3 .char, .bio-text.slide-active .slide-trigger-3 .char { 
    transform: translateY(100%); font-weight: 900; letter-spacing: -0.03em; 
}
.bio-text:hover .slide-trigger-2 .char, .bio-text.slide-active .slide-trigger-2 .char { transition-delay: 0.6s; }
.bio-text:hover .slide-trigger-3 .char, .bio-text.slide-active .slide-trigger-3 .char { transition-delay: 1.2s; }
.interactive-text { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* --- Contact: Avant-Garde Terminal --- */
#contact { border-bottom: none; }
.contact-content { margin-top: 10vh; display: flex; flex-direction: column; align-items: center; width: 100%; }
/* --- [修复版] 邮箱模块 --- */
.terminal-card {
    position: relative; 
    display: flex !important; flex-direction: column !important; justify-content: space-between !important;
    width: 100%; max-width: 1200px; height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 细线 */
    background: #000; padding: 25px; margin-bottom: 60px;
    text-decoration: none; color: #fff; 
    overflow: hidden !important; 
    transition: box-shadow 0.5s ease, border-color 0.4s;
    will-change: transform;
}

.terminal-card:hover {
    box-shadow: 0 30px 60px -15px rgba(255, 0, 0, 0.25) !important;
    border-color: #fff !important;
    z-index: 20;
}

/* 配合背景层 */
.terminal-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--core-red);
    transform: scaleY(0); transform-origin: top; 
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important; 
    z-index: 1 !important;
}
.terminal-card:hover .terminal-bg-layer { 
    transform: scaleY(1) !important; 
    transform-origin: bottom !important;
}

/* 确保内部所有内容都在红色背景层之上 */
.terminal-header, .terminal-body, .terminal-footer {
    position: relative; 
    z-index: 10 !important; /* 这里的层级必须比 .terminal-bg-layer 高 */
    transition: color 0.3s ease;
}

/* 红色背景层 (z-index 设低一点) */
.terminal-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--core-red);
    transform: scaleY(0); transform-origin: top; 
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); 
    z-index: 1 !important; /* 确保它在文字下面 */
}
.terminal-card:hover .terminal-bg-layer { transform: scaleY(1); transform-origin: bottom; }
.terminal-card:hover { transform: scale(1.02); }

.terminal-header, .terminal-body, .terminal-footer {
    position: relative; z-index: 5; display: flex; justify-content: space-between; transition: color 0.3s ease;
}
/* [修改] 强制邮件模块右上角文字白色 */
.terminal-header { align-items: center; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 15px; color: #fff !important; }

.contact-content .terminal-header .status-text {
    color: #ffffff !important;
}

.contact-content .terminal-header .status-dot {
    background: var(--core-red) !important;
    box-shadow: 0 0 8px var(--core-red);
}

.terminal-card:hover .terminal-header, .terminal-card:hover .terminal-body, .terminal-card:hover .terminal-footer { color: #fff; }
.terminal-card:hover .terminal-header { border-bottom-color: rgba(255,255,255,0.5); }
.status-dot { width: 8px; height: 8px; background: var(--core-red); border-radius: 50%; display: inline-block; margin-right: 8px; animation: blink 2s infinite; }
.terminal-card:hover .status-dot { 
    background: #fff !important; 
    box-shadow: 0 0 10px #fff; 
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.terminal-body { flex: 1; display: flex; align-items: center; padding: 20px 0; overflow: hidden; }
.mail-address {
    font-family: var(--font-display); font-weight: 900; font-size: 5vw; 
    text-transform: uppercase; line-height: 1; letter-spacing: -2px;
    white-space: nowrap; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 1000px) { .mail-address { font-size: 4rem; } }
.mail-icon {
width: 60px; height: 60px; 
    border: 2px solid var(--core-red); /* 边框改为红色 */
    color: var(--core-red);            /* 图标线条(SVG)改为红色 */
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center; 
    transition: 0.4s var(--bounce);
}
.mail-icon svg { width: 30px; height: 30px; transition: transform 0.4s; }
.terminal-card:hover .mail-address { transform: translateX(20px); }
.terminal-card:hover .mail-icon { background: #fff; border-color: #fff; color: var(--core-red); transform: rotate(45deg); }
.terminal-card:hover .mail-icon svg { transform: translate(0px, -2px); }

.terminal-footer { font-family: var(--font-main); font-size: 0.9rem; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 15px; }
.terminal-card:hover .terminal-footer { border-top-color: rgba(255,255,255,0.5); }

.social-container { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-cta { font-family: var(--font-display); text-align: center; margin-bottom: 30px; }
.email-link { 
    font-family: var(--font-display); font-weight: 900; letter-spacing: -2px; font-size: 6vw; 
    color: #fff; text-decoration: none; border-bottom: 4px solid var(--core-red); 
    transition: 0.3s; line-height: 1.2; word-break: break-all; text-transform: uppercase; 
}
.email-link:hover { background: var(--core-red); color: #fff; border-bottom-color: transparent; }
footer {
    /* 默认 (英文版): 居中对齐 */
    display: flex; 
    justify-content: center; /* 居中 */
    align-items: center;
    gap: 20px; /* 如果有多段文字，保持间距 */
    
    padding: 40px 5vw; 
    position: relative;
    font-family: var(--font-main); font-size: 0.8rem; font-weight: 500;
    
    /* 确保移除旧边框 */
    border-top: none; 
}

/* 英文版 Footer 不需要 space-between，这行是画线的伪元素，保持不变 */
footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
}

/* --- [中文版专用] Footer --- */
/* 中文版保持两端对齐 (如果中文版有左边版权、右边备案号的需求) */
body.cn-mode footer {
    justify-content: space-between; 
}

/* 移动端统一居中 */
@media (max-width: 768px) {
    footer, body.cn-mode footer {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }
}
/* ================== 语言切换控件系统 ================== */
.lang-switch { position: relative; display: flex; align-items: center; font-family: var(--font-display); z-index: 1000; }
.lang-separator { margin-left: auto; width: 0; } 

.lang-trigger { display: flex; align-items: center; gap: 6px; cursor: none; color: #fff; padding: 5px 10px; transition: color 0.3s ease; }
.globe-icon { width: 16px; height: 16px; opacity: 0.8; }
.lang-text {
    font-family: 'Neue Kaine', sans-serif; font-weight: 900 !important; font-variation-settings: "wght" 900;
    font-size: 0.85rem; letter-spacing: 0.5px; padding-top: 2px;
}
.lang-arrow { display: flex; align-items: center; justify-content: center; margin-left: 4px; transition: transform 0.4s var(--bounce); }
.lang-arrow svg { width: 10px; height: 10px; stroke-width: 3px; stroke: currentColor; fill: none; }
.lang-switch.active .lang-arrow { transform: rotate(180deg); }
.lang-switch:hover .lang-trigger { color: var(--core-red); }

.lang-dropdown {
    position: absolute; top: 100%; right: 0; width: 80px; margin-top: 10px;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 0; opacity: 0; transform: translateY(-10px) scale(0.95); filter: blur(10px); pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); transform-origin: top right;
}
.lang-switch.active .lang-dropdown { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); pointer-events: auto; }

.lang-opt {
    padding: 8px 0; text-align: center; font-family: 'Neue Kaine', sans-serif; font-weight: 700; font-size: 0.8rem;
    color: #888; transition: 0.3s; cursor: none;
}
.lang-opt:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.lang-opt.active { color: var(--core-red); font-weight: 900; }

/* ================= MOBILE ADAPTATION ================= */
/* [修复] 默认隐藏移动端菜单容器，防止PC端链接露出 */
.mobile-menu-overlay { display: none; } 
.mobile-header { display: none; }

@media (max-width: 768px) {
    .hud-nav-container { display: none !important; }
    

    .mobile-header {
        display: flex; justify-content: space-between; align-items: center;
        position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
        padding: 20px 25px; pointer-events: auto;
        background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .mobile-logo { 
        pointer-events: auto; font-family: var(--font-display); font-weight: 900 !important; 
        letter-spacing: -0.5px !important; font-variation-settings: "wght" 900 !important; font-size: 1.2rem;
    }
    .mobile-logo .c-red { margin-right: -2px; }
    .mobile-controls { display: flex; align-items: center; gap: 20px; }

    #lang-mobile .lang-trigger { padding: 0; }
    #lang-mobile .lang-dropdown { right: -10px; width: 70px; }

    .hamburger {
        width: 35px; height: 35px; pointer-events: auto;
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer;
    }
    .hamburger span {
        display: block; background: #fff; height: 3px; width: 100%; 
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 2px;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0); }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* [修复] 移动端恢复显示 */
    .mobile-menu-overlay {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.95); backdrop-filter: blur(15px);
        z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out-expo);
    }
    .mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
    
    .mobile-nav-link {
        font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: #fff; text-decoration: none; 
        margin: 15px 0; padding-bottom: 5px; opacity: 0; transform: translateY(30px) skewY(5deg); filter: blur(10px);
        transition: 0.5s var(--ease-out-expo); border-bottom: 1px solid rgba(255,255,255,0.1); width: 60%; text-align: center;
    }
    .mobile-menu-overlay.open .mobile-nav-link { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
    .mobile-menu-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
    .mobile-menu-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
    .mobile-menu-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

    .data-stream { display: none; }
    .slice-layer { display: none !important; }
    h1.hero-title-base { font-size: 15vw; letter-spacing: -2px; color: #ffffff !important; }
    h1.hero-title-base .c-red { color: var(--core-red) !important; }
    h1.hero-title-base * { color: inherit !important; }
    
    .hero-sub { font-size: 0.7rem; padding: 10px 20px; white-space: nowrap; transform-origin: center; transform: scale(0.9); }

    section { padding: 60px 5vw; }
    .section-title { font-size: 2.5rem; }

    .works-grid { grid-template-columns: 1fr; }
    .work-item { height: 350px; }
    .work-visual { font-size: 1.2rem; padding: 12px 14px 10px 14px; } 
    .work-info { font-size: 0.9rem; flex-direction: column; gap: 5px; } 

    .archive-item { grid-template-columns: 1fr 60px; }
    .archive-meta, .archive-preview { display: none; }
    .orig-text { font-size: 1.8rem; }
    
    .arrow-zone { justify-content: center; align-items: center; width: 60px; height: 100%; position: relative; }
    .action-block { width: 50px; height: 35px; left: 50%; top: 50%; }
    .archive-arrow { font-size: 1.5rem; margin-top: 2px; }
    .archive-item:hover .action-block { transform: translate(-50%, -50%) scale(1); }

    .about-layout { grid-template-columns: 1fr; gap: 30px; }
    .bio-text { font-size: 1.2rem; }

    .terminal-card { height: 160px; padding: 15px; }
    .mail-address { font-size: clamp(1.2rem, 6vw, 2rem); } 
    .mail-icon { width: 35px; height: 35px; }
    .mail-icon svg { width: 18px; height: 18px; }
    .terminal-header, .terminal-footer { font-size: 0.6rem; }

    .social-container { flex-direction: row; gap: 10px; width: 100%; }
    .social-container .hyper-btn { flex: 1; padding: 10px 0; font-size: 0.7rem; height: 45px; }
    .email-link { font-size: 9vw; }
    .contact-content { margin-top: 5vh; }

    * { cursor: auto !important; }
    .diamond-cursor { display: none !important; }

    .hud-nav-container { display: none !important; }

    /* ... 其他原有的移动端代码保持不变 ... */
    .mobile-header {
        display: flex; 
        /* ... */
    }

    /* --- [新增] 移动端流体背景增强 --- */
    /* 强制放大流体球，弥补手机屏幕窄导致的问题 */
    
    .orb-mist-base {
        width: 180vw; height: 180vw; /* 基础红雾：放大到接近2倍屏幕宽 */
        top: -20%; left: -40%;       /* 调整位置，确保覆盖顶部 */
        opacity: 0.6;                /* 稍微加重一点 */
    }

    .orb-flow-1 {
        width: 130vw; height: 130vw; /* 主流体：放大 */
        top: 25%; left: -30%;        /* 让它占据屏幕左侧更多区域 */
        opacity: 0.85;               /* 显著增加不透明度，让红色更"实" */
        filter: blur(50px);          /* 手机上稍微减小模糊半径，让边缘更清晰一点点 */
    }

    .orb-flow-2 {
        width: 120vw; height: 120vw; /* 次流体：放大 */
        bottom: 10%; right: -30%;
        opacity: 0.75;
    }

    .orb-highlight {
        width: 80vw; height: 80vw;   /* 高光球：放大 */
        top: 40%; right: 0%;
        opacity: 0.6;
    }

}

  /* --- [优化] 针对 About 个人简介板块的高度收缩 --- */
#about {
    /* 1. 取消强制的 80% 屏幕高度，改为自适应内容高度 */
    min-height: auto !important; 
    
    /* 2. (可选) 如果觉得底部还是太宽，可以减小默认的 80px 内边距 */
    /* padding-bottom: 40px; */ 
}

/* --- [新增] 自定义滚动条 (Webkit内核) --- */
::-webkit-scrollbar {
    width: 10px; /* 极细 */
}

::-webkit-scrollbar-track {
    background: #000; /* 轨道背景纯黑 */
}

::-webkit-scrollbar-thumb {
    background: #333; /* 默认滑块深灰 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--core-red); /* 鼠标悬停变红 */
}

.work-bg, .archive-preview {
    /* 确保图片稍微大一点，这样移动时边缘不会露馅 */
    height: 120% !important; 
    top: -10% !important; /* 初始位置向上偏移，预留移动空间 */
    will-change: transform;
}
/* --- [BUG FIX] 强制剥夺 CSS 对位移的控制权 --- */
/* 修复 <a> 标签按钮动画"软绵绵"的问题 */
a.hyper-btn, 
a.terminal-card, 
div.hyper-btn, 
div.terminal-card {
    /* 1. 关键：只允许颜色和阴影进行 CSS 过渡 */
    transition: color 0.3s, border-color 0.3s, background-color 0.3s, box-shadow 0.3s !important;
    
    /* 2. 核心：绝对禁止 transform 参与 CSS 过渡 */
    /* 这样 GSAP 的 0.05s 急速下落才不会被 CSS 拖慢成 0.3s */
    transition-property: color, border-color, background-color, box-shadow !important;
}

/* 确保 active 状态下也没有干扰 */
a.hyper-btn:active, 
a.terminal-card:active {
    transition: none !important;
}
/* =================================================================
   CN MODE: 中文版字重与细节修正 (Clean Version)
================================================================= */

/* 1. 字体降重 (利用选择器权重覆盖，无需 important) */
body.cn-mode .work-visual { font-weight: 700; letter-spacing: 2px; }
body.cn-mode .work-info { font-weight: 400; font-size: 1.05rem; }
body.cn-mode .orig-text { font-weight: 700; }
body.cn-mode .category, body.cn-mode .archive-meta { font-weight: 400; }
body.cn-mode .mail-address { font-weight: 700; }
body.cn-mode .hyper-btn { font-weight: 500; letter-spacing: 1px; }

/* 2. 个人简介 (Bio) 修复 */
body.cn-mode .bio-text {
    font-weight: 400;
    line-height: 1.8;
}

/* 默认状态：强制细体 + 白色 + 位置微调 */
body.cn-mode .bio-text .slide-word-wrapper {
    position: relative; 
    top: -4px; /* 基线对齐微调 */
}
body.cn-mode .bio-text .slide-word-wrapper .char {
    font-weight: 400 !important; /* 这里必须强制，因为原样式可能有干扰 */
    color: #fff !important;
}

/* 激活状态：变粗 + 透明 (消除白边) */
body.cn-mode .bio-text:hover .slide-word-wrapper .char,
body.cn-mode .bio-text.slide-active .slide-word-wrapper .char {
    font-weight: 700 !important;
    color: transparent !important; /* 核心：让原始白字隐形，只显示红字 */
}

/* 确保红字始终是红的 */
body.cn-mode .bio-text .slide-word-wrapper .char::before {
    color: var(--core-red) !important;
}

/* 3. 修复标题悬停变色 (这是唯一必须保留 !important 的地方) */
/* 原因：JS 动画会写入行内样式 style="transform:...", CSS 必须加 !important 才能覆盖 JS */
.section-title:hover .char,
.section-title.slide-active .char { 
    transform: translateY(-100%) !important; 
}
/* --- SCROLLYTELLING 叙事卡片样式 --- */

/* 1. 容器设置：强制占满一屏 */
.story-section {
    position: relative;
    height: 100vh;          /* 关键：视口高度 */
    width: 100%;
    overflow: hidden;       /* 隐藏溢出内容 */
    padding: 0;             /* 移除 padding，全屏沉浸 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

/* 标题固定在左上角 */
.fixed-header {
    position: absolute;
    top: 100px; /* Increased from 40px to clear the Nav bar */
    left: 5vw;
    z-index: 10;
    width: 90vw;
    pointer-events: none;
}

/* 2. 视口与轨道 */
.gallery-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    flex-wrap: nowrap; /* 强制不换行 */
    gap: 10vw;         /* 卡片之间的间距 */
    padding-left: 5vw; /* 初始偏移 */
    padding-right: 20vw; /* 结束留白 */
    will-change: transform;
    margin-top: 15vh;
}

/* 3. 故事卡片 (Card) */
.story-card {
    position: relative;
    width: 70vw;       /* 每张卡片的宽度 (大屏叙事感) */
    height: 60vh;      /* 高度 */
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* 左图右文布局 */
    gap: 30px;
    text-decoration: none;
    flex-shrink: 0;    /* 防止被压缩 */
    transform-style: preserve-3d;
}

/* 图片区域 */
.card-image-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 悬停放大效果 */
.story-card:hover .card-img {
    transform: scale(1.1);
}

/* 文字叙事区域 */
.card-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 文字沉底 */
    padding-bottom: 20px;
    color: #fff;
    font-family: var(--font-display);
    position: relative;
}

.meta-line {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 20px;
    transform-origin: left;
    transition: transform 0.5s ease;
}

.story-card:hover .meta-line {
    background: var(--core-red);
    transform: scaleX(1.1);
}

.meta-no {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    line-height: 1;
    margin-bottom: 10px;
}
.story-card:hover .meta-no {
    color: var(--core-red);
    -webkit-text-stroke: 0px;
}

.meta-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.meta-desc {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 叙事进度条 */
.story-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 20;
}
.story-bar {
    width: 0%;
    height: 100%;
    background: var(--core-red);
}

/* --- 移动端适配 (保持卡片堆叠或改为垂直滑动) --- */
@media (max-width: 768px) {
    .story-section {
        height: auto; /* 手机上恢复自然高度 */
        display: block;
        padding: 60px 5vw;
    }
    .fixed-header {
        position: relative;
        top: 0; left: 0; width: 100%;
        margin-bottom: 40px;
    }
    .gallery-viewport, .gallery-track {
        display: block;
        width: 100%;
        padding: 0;
    }
    .story-card {
        width: 100%;
        height: 500px;
        grid-template-columns: 1fr; /* 手机改为单列 */
        grid-template-rows: 2fr 1fr;
        margin-bottom: 40px;
    }
    .card-meta {
        justify-content: flex-start;
        padding-top: 20px;
    }
    .meta-no { font-size: 3rem; }
    .meta-title { font-size: 2rem; }
    /* 隐藏进度条 */
    .story-progress { display: none; }
/* 1. 容器重置：取消固定高度，改为自适应 */
    .archive-zoom-section {
        height: auto !important; 
        min-height: auto !important;
        display: block !important;
        padding: 80px 5vw 40px 5vw !important; /* 给顶部留点空隙 */
        background: transparent !important;
        overflow: visible !important;
    }

    /* 2. 核心修复：直接隐藏那个黑底大标题和遮罩层 */
    .archive-opener, 
    .archive-mask {
        display: none !important;
    }

    /* 3. 强制内容显示：取消 GSAP 的初始隐藏状态 */
    .archive-content {
        position: relative !important;
        top: auto !important; 
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        
        opacity: 1 !important;      /* 强制可见 */
        transform: none !important; /* 取消位移 */
        
        padding: 0 !important;
        margin-top: 0 !important;
    }

    /* 4. 列表项重置：确保每一行都能看见 */
    .archive-rows {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .row-item {
        opacity: 1 !important;      /* 取消 GSAP 的隐藏 */
        transform: none !important; /* 取消 GSAP 的位移 */
        padding: 25px 0 !important;
    }

    /* 5. 修复头部小标题 */
    .archive-header-small {
        margin-bottom: 20px;
        opacity: 1 !important;
    }
}}