/* style.css - PART 1 */

:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #3b82f6; /* 科技蓝 */
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-width: 600px;
    --card-height: 380px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif; /* 确保字体生效 */
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* 强制防止干扰固定定位 */
main {
    transform: none !important; perspective: none !important; filter: none !important;
}

/* --- 1. 全局视频背景 --- */
.video-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -10; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.3); backdrop-filter: blur(0px);
    transition: all 1.2s ease; pointer-events: none;
}
body.scrolled .video-overlay { background: rgba(5, 5, 5, 0.9) !important; backdrop-filter: blur(15px) !important; }
body.sub-page .video-overlay { background: rgba(0, 0, 0, 0.85) !important; backdrop-filter: blur(20px) !important; opacity: 1 !important; }
body.view-mode .video-overlay { background: rgba(0, 0, 0, 0.1); backdrop-filter: blur(0); }

/* --- 2. 导航栏 --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px 60px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}
.logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: 2px;}
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* =========================================
   3. 首页 Hero 区域 (原地淡出版)
   ========================================= */

/* 1. 容器：保持静止，不干扰定位 */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
    transform: none !important; 
    perspective: none !important; 
    filter: none !important;
}

/* 2. 内容容器：始终居中 */
.hero-content {
    position: fixed !important;
    top: 50%; 
    left: 50%;
    /* 始终保持居中，不做缩放 */
    transform: translate(-50%, -50%); 
    z-index: 20;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    
    /* 只有透明度和位移的过渡，非常稳 */
    transition: opacity 1.0s ease, transform 1.0s ease;
    opacity: 1;
    pointer-events: none; /* 永远不挡鼠标 */
}

/* 3. 消失状态 (无论是时间到，还是滚动了) */
body.view-mode .hero-content,
body.scrolled .hero-content {
    opacity: 0; /* 变透明 */
    transform: translate(-50%, -60%); /* 稍微往上飘一点，更有消失感 */
}

/* 4. 箭头消失 */
.scroll-indicator {
    /* 原有定位保持不变 */
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; z-index: 20;
    animation: fadeIn 1s ease-out 3.5s forwards, bounceCenter 2s infinite 3.5s;
    
    /* 新增过渡 */
    transition: opacity 0.5s ease;
}

/* 状态触发时隐藏箭头 */
body.view-mode .scroll-indicator,
body.scrolled .scroll-indicator {
    opacity: 0 !important;
    animation: none; /* 停止跳动 */
}


/* --- 关键：背景视频的两种状态 --- */

/* 默认遮罩：微暗 */
.video-overlay {
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(0px);
    transition: all 1.2s ease;
}

/* 状态 A: 倒计时结束 (.view-mode) -> 文字消失，视频变亮！(观赏模式) */
body.view-mode .video-overlay {
    background: rgba(0, 0, 0, 0); /* 完全透明 */
    backdrop-filter: blur(0px);
}

/* 状态 B: 滚动中 (.scrolled) -> 文字消失，视频变黑！(阅读模式) */
body.scrolled .video-overlay {
    background: rgba(5, 5, 5, 0.9) !important; /* 变黑 */
    backdrop-filter: blur(15px) !important;      /* 变糊 */
}


/* --- 内部元素样式 (保持不变) --- */
.welcome-text {
    font-family: 'Inter', sans-serif; font-size: 1rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0;
    opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards;
}

.svg-title-container { width: 100%; height: auto; margin: 20px 0; }
/* --- 在 style.css 中找到并替换以下片段 --- */

.intro-svg text {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 110px;
    fill: transparent; stroke: #fff; stroke-width: 2px;
    stroke-dasharray: 1000; stroke-dashoffset: 1000;
    
    /* 核心修改：时长改为 1.5s，填充时长改为 0.8s */
    /* 填充 (fillColor) 必须在描边 (drawStroke) 结束后立刻开始 */
    animation: drawStroke 1.5s cubic-bezier(0.25, 1, 0.3, 1) 0.5s forwards, 
               fillColor 0.8s ease 2.0s forwards; /* 0.5s 延迟 + 1.5s 时长 = 2.0s 开始填充 */
}

/* 第二行文字的延迟修正 */
.intro-svg text:nth-child(2) {
    /* Draw starts at 0.8s. Fill starts at 0.8s + 1.5s = 2.3s */
    animation-delay: 0.8s, 2.3s;
}

.hero-subtitle {
    font-size: 1.2rem; color: rgba(255,255,255,0.7); letter-spacing: 8px;
    margin-top: -20px; opacity: 0; animation: fadeInUp 1s ease-out 2.8s forwards;
}

/* 动画帧 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fillColor { to { fill: #fff; stroke: transparent; text-shadow: 0 0 30px rgba(255,255,255,0.4); } }
@keyframes bounceCenter { 
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- 4. 首页轮播 --- */
.carousel-section { padding: 60px 60px; margin-bottom: 40px; position: relative; z-index: 10; }
.section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.section-header h2 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; white-space: nowrap; }
.line { width: 100%; height: 1px; background: rgba(255,255,255,0.1); }
.carousel-container { position: relative; display: flex; align-items: center; }
/* --- 优化后的轨道样式 (添加到 style.css) --- */

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* 允许横向滚动 */
    padding: 20px 5px; /* 上下留点空隙给阴影 */
    width: 100%;
    
    /* 1. 隐藏默认的丑陋滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    
    /* 2. 增加磁吸效果 (关键优化) */
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 隐藏 Chrome/Safari 的滚动条 */
.carousel-track::-webkit-scrollbar { 
    display: none; 
}

/* 3. 让每一张卡片都能被吸附 */
.card {
    /* ... 原有的样式保持不变 ... */
    
    /* 新增这一行： */
    scroll-snap-align: start; 
    
    /* 强制卡片不换行，确保永远是横向排列 */
    flex-shrink: 0; 
}
.nav-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; }
.nav-btn:hover { background: white; color: black; }

.card { min-width: 350px; height: 450px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.3); }
.card-img { flex: 1; background-size: cover; background-position: center; filter: grayscale(100%); transition: 0.5s; }
.card:hover .card-img { filter: grayscale(0%); }
.card-info { padding: 25px; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); }
.card-info h3 { font-size: 1.2rem; color: white; margin-bottom: 5px; font-weight: 600; }
.card-info p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* --- 5. 内容分隔符与动画提示 --- */
/* --- 延迟出现的顶部标题 (5s后) --- */
.delayed-top-title {
    position: absolute;
    top: 110px; /* 导航栏下方一点点 */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
    
    /* 初始隐藏 */
    opacity: 0;
    /* 动画：5秒延迟后，淡入并微微下沉 */
    animation: fadeInDrop 1.5s ease-out 5s forwards;
    pointer-events: none; /* 不挡鼠标 */
}

.delayed-top-title .en {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.delayed-top-title .cn {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 8px; /* 中文间距拉大显得高级 */
    color: rgba(255, 255, 255, 0.6);
}

/* --- 延迟出现的底部箭头 (5s后) --- */
.delayed-bottom-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    
    /* 初始隐藏 */
    opacity: 0;
    /* 动画：5秒延迟后淡入，并且马上开始无限跳动 */
    animation: fadeIn 1s ease-out 5s forwards, gentleBounce 2s infinite ease-in-out 5s;
}

.delayed-bottom-arrow i {
    font-size: 1.8rem;
    color: var(--accent); /* 科技蓝 */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* 专用的淡入下沉动画 */
@keyframes fadeInDrop {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 呼吸跳动动画 */
@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 滚动后隐藏它们 (保持页面干净) */
body.scrolled .delayed-top-title,
body.scrolled .delayed-bottom-arrow {
    opacity: 0 !important;
    transition: opacity 0.3s;
}


/* --- 5. Works 页面 (3D 舞台) --- */
#gallery-stage { position: fixed; top: 0; left: 0; width: 100%; height: 100%; perspective: 1500px; overflow: hidden; }
#gallery-container { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

/* 3D 卡片样式 */
.gallery-card { 
    position: absolute; left: 65%; top: 50%; width: 750px; height: 460px; 
    margin-left: -375px; margin-top: -230px; 
    border-radius: 12px; background-size: cover; background-position: center; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8); opacity: 0; filter: brightness(0.2) grayscale(0.8); 
    transform-style: preserve-3d; will-change: transform, opacity, filter; 
    border: 1px solid rgba(255,255,255,0.05); cursor: pointer; 
}
.gallery-card.active { filter: brightness(1) grayscale(0); border-color: var(--accent); box-shadow: 0 0 80px rgba(59, 130, 246, 0.25); z-index: 1000; }

/* 筛选器与导航 */
.filter-container { position: fixed; top: 80px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 900; pointer-events: none; }
.filter-bar { pointer-events: auto; background: rgba(20, 20, 20, 0.8); backdrop-filter: blur(10px); padding: 5px 5px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); display: flex; gap: 5px; }
.filter-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 600; transition: 0.3s; }
.filter-btn:hover { color: white; }
.filter-btn.active { background: var(--accent); color: white; }

#active-info { position: fixed; top: 0; left: 0; width: 35%; height: 100%; display: flex; align-items: center; padding-left: 60px; z-index: 100; pointer-events: none; background: linear-gradient(to right, rgba(5,5,5,1) 0%, rgba(5,5,5,0) 100%); }
.info-content { opacity: 1; transform: translateY(0); transition: opacity 0.3s; }
#info-title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; line-height: 1; margin-bottom: 15px; }
.info-meta { display: flex; align-items: center; gap: 15px; font-family: monospace; color: var(--accent); font-size: 0.9rem; margin-bottom: 20px; }
.info-meta .line { width: 30px; height: 1px; background: rgba(255,255,255,0.2); }
#info-desc { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.8); max-width: 380px; margin-bottom: 30px; }
#info-cta { display: inline-block; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 50px; font-size: 0.7rem; letter-spacing: 2px; color: rgba(255,255,255,0.6); }

.bottom-nav-container { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 900; }
.nav-track { display: flex; gap: 12px; background: rgba(20, 20, 20, 0.6); padding: 8px 15px; border-radius: 20px; backdrop-filter: blur(5px); }
.nav-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.nav-dot:hover { background: rgba(255,255,255,0.6); }
.nav-dot.active { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 8px var(--accent); }
.nav-label { font-family: monospace; font-size: 0.8rem; color: rgba(255,255,255,0.4); letter-spacing: 2px; }


/* --- 6. 简历页面优化 (About) --- */
.about-container { max-width: 1000px; margin: 120px auto 80px; padding: 0 40px; color: #fff; }
.profile-section { display: flex; align-items: center; gap: 80px; margin-bottom: 80px; }
.profile-img { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); flex-shrink: 0; }
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 { font-family: 'Montserrat', sans-serif; font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.profile-info h1 span { display: block; font-size: 1.1rem; font-weight: 400; opacity: 0.5; margin-top: 10px; font-family: 'Inter', sans-serif; }
.bio { font-size: 1.05rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; max-width: 600px; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.skills-tags span { background: rgba(59, 130, 246, 0.1); padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); letter-spacing: 0.5px; }
.contact-info { display: flex; gap: 40px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.resume-col h2 { font-size: 1.5rem; margin-bottom: 40px; border-bottom: 2px solid var(--accent); padding-bottom: 15px; display: inline-block; width: 100%; }
.timeline-item { margin-bottom: 50px; position: relative; padding-left: 25px; border-left: 2px solid rgba(255,255,255,0.1); }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: #000; border: 2px solid var(--accent); border-radius: 50%; }
.timeline-item .year { font-family: 'Montserrat', monospace; color: var(--accent); font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; display: block; opacity: 0.9; }
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 12px; color: #fff; font-weight: 600; }
.timeline-item p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.honors-section h2 { font-size: 1.5rem; margin-bottom: 30px; }
.text-awards-list { margin-bottom: 80px; }
.text-awards-list ul { list-style: none; padding: 0; }
.text-awards-list li { display: flex; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s; }
.text-awards-list li:hover { padding-left: 20px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.award-date { font-family: 'Montserrat', monospace; color: var(--accent); font-weight: 700; min-width: 80px; margin-right: 30px; padding-top: 2px; }
.award-desc { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.highlight-text { color: #fff; font-weight: 600; background: rgba(59, 130, 246, 0.2); padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-size: 0.9rem; }
.cert-grid { display: grid; gap: 30px; margin-bottom: 40px; }
.vertical-grid { grid-template-columns: repeat(3, 1fr); }
.horizontal-grid { grid-template-columns: repeat(3, 1fr); }
.cert-card { display: flex; flex-direction: column; gap: 15px; }
.cert-img { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.cert-card:hover .cert-img { transform: translateY(-5px); border-color: var(--accent); }

/* --- 7. 子页面修复 --- */
body.sub-page .video-overlay { background: rgba(0, 0, 0, 0.85) !important; backdrop-filter: blur(20px) !important; opacity: 1 !important; }
body.sub-page .profile-section, body.sub-page .resume-col, body.sub-page .honors-section {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); margin-bottom: 40px;
}

/* --- 8. 详情页 (Detail) --- */
.detail-container { max-width: 1000px; margin: 120px auto; padding: 0 40px; color: #fff; position: relative; z-index: 10; }
.detail-header { margin-bottom: 60px; text-align: center; }
.detail-title { font-size: 3rem; margin-bottom: 15px; font-family: 'Montserrat', sans-serif; }
.detail-meta { color: rgba(255,255,255,0.5); font-family: monospace; }
.detail-media { margin-bottom: 60px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.detail-media img { width: 100%; display: block; }
.detail-content { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.8); max-width: 800px; margin: 0 auto; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.award-banner { border: 1px solid var(--accent); background: rgba(59, 130, 246, 0.1); padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 40px; font-weight: 600; color: #fff; }
.process-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.process-img-box { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); background: #111; }
.process-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.process-card:hover .process-img-box img { transform: scale(1.05); }
.process-card h4 { font-size: 0.9rem; color: #3b82f6; margin-bottom: 8px; }
.process-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.circle-img-box { width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.2); margin-bottom: 15px; }
.circle-img-box img { width: 100%; height: 100%; object-fit: cover; }

/* --- 9. 动画帧 --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fillColor { to { fill: #fff; stroke: transparent; text-shadow: 0 0 30px rgba(255,255,255,0.4); } }
@keyframes bounceCenter { 
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   📱 手机端专属修复 (Mobile Fixes)
   适用于: max-width: 768px
   ========================================= */
@media (max-width: 768px) {
    
    /* --- 1. 全局导航栏调整 --- */
    nav { padding: 15px 20px; background: rgba(0,0,0,0.95); }
    .logo { font-size: 1rem; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.75rem; }
    
    footer { padding: 40px 20px; font-size: 0.6rem; text-align: center; width: 100%; opacity: 0.5; }

    /* --- 2. 首页 (Index) --- */
    .hero-content { width: 90%; padding: 0; }
    .intro-svg text { font-size: 60px; }
    .svg-title-container { height: 100px; margin: 10px 0; }
    .carousel-section { padding: 40px 20px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-header h2 { font-size: 1.2rem; }
    .card { min-width: 280px; height: 380px; }

    /* --- 3. 技能页 (Tech Universe) --- */
    .overlay-ui { top: 80px; left: 20px; right: 20px; width: auto; pointer-events: none; text-align: left; }
    .overlay-title { display: none; } 
    .overlay-desc { font-size: 0.95rem; color: rgba(255,255,255,0.9); max-width: 100%; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
    .instruction { font-size: 0.75rem; padding: 6px 12px; background: rgba(0,0,0,0.6); }
    #3d-graph { top: 0 !important; height: 100% !important; z-index: 1; }

    /* --- 4. 简历页 (About) --- */
    .about-container { padding: 80px 20px 40px; }
    .profile-section { flex-direction: column; gap: 20px; text-align: center; }
    .profile-img { width: 120px; height: 120px; margin: 0 auto; }
    .profile-info h1 { font-size: 2rem; }
    .bio { max-width: 100%; font-size: 0.9rem; text-align: center; }
    .skills-tags { justify-content: center; }
    .contact-info { justify-content: center; flex-wrap: wrap; font-size: 0.8rem; }
    .resume-grid { grid-template-columns: 1fr; gap: 30px; }
    .timeline-item { margin-bottom: 30px; }
    .vertical-grid, .horizontal-grid { grid-template-columns: 1fr; }
    
    /* --- 5. 作品页 (Works 3D) - 彻底重构布局 --- */
    #active-info {
        width: 100%; top: 60px; left: 0; height: auto;
        background: linear-gradient(to bottom, #000 40%, transparent);
        padding: 10px 25px; align-items: flex-start; pointer-events: none;
        z-index: 50;
    }
    .info-content { pointer-events: auto; width: 100%; transform: translateY(0); }
    #info-title { font-size: 1.8rem; margin-bottom: 5px; }
    .info-meta { font-size: 0.75rem; margin-bottom: 10px; opacity: 0.8; }
    #info-desc { 
        font-size: 0.85rem; line-height: 1.5; max-width: 100%;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
        margin-bottom: 15px;
    }
    #info-cta { font-size: 0.65rem; padding: 6px 15px; }

/* 3D 卡片：上移，居中显示 */
    .gallery-card {
        left: 50%; 
        /* 核心修改：从 60% 改为 45%，大幅上移 */
        top: 57%; 
        width: 280px; 
        height: 400px; 
        margin-left: -140px; 
        margin-top: -200px; 
    }
    
    /* 让文字面板稍微紧凑一点，腾出空间 */
    #active-info {
        padding-top: 60px; /* 减少顶部留白 */
    }

    /* 筛选器与底部导航 */
    .filter-container { 
        top: auto; bottom: 60px; padding: 10px 0; 
        overflow-x: auto; justify-content: flex-start; 
        -webkit-overflow-scrolling: touch; z-index: 950;
    }
    .filter-bar { padding: 5px 15px; gap: 10px; background: rgba(20,20,20,0.95); }
    .filter-btn { font-size: 0.7rem; padding: 6px 12px; white-space: nowrap; }
    .filter-container::-webkit-scrollbar { display: none; }
    .bottom-nav-container { bottom: 20px; z-index: 1000; }

    /* --- 6. 详情页 --- */
    .process-grid-container { grid-template-columns: 1fr; }
    .circle-img-box { width: 150px; margin: 0 auto 15px; }
}

/* 手机端：视频横向滑动 */
@media (max-width: 768px) {
    .video-grid-container {
        display: flex !important;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;  
        scrollbar-width: none;  
    }
    .video-grid-container::-webkit-scrollbar { display: none; }
    
    .video-box {
        min-width: 80%; /* 每个视频占屏幕 80% 宽 */
        aspect-ratio: 9/16;
    }
    
    .process-grid-container {
        grid-template-columns: repeat(2, 1fr) !important; /* NFT 变两列 */
    }
}

/* --- 左右切换按钮样式 --- */
.nav-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none; /* 让容器不挡鼠标，只有按钮挡 */
    z-index: 950;
    transform: translateY(-50%);
}

.arrow-btn {
    pointer-events: auto;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.arrow-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.arrow-btn:active {
    transform: scale(0.95);
}

/* 按钮禁用状态（可选，配合JS逻辑变灰） */
.arrow-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --- 手机端特别调整 --- */
@media (max-width: 768px) {
    .nav-arrows {
        /* 手机端按钮位置下移，为了配合您之前的卡片下移布局 */
        top: 60%; 
        padding: 0 10px;
    }
    
    .arrow-btn {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.8); /* 手机端背景深一点，防误触 */
    }
}

/* =========================================
   新增：底部缩略图导航条 (最终修正版)
   ========================================= */

#thumb-container {
    position: fixed;
    /* 位置上移，避开底部的箭头和页码 */
    bottom: 130px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 150; /* 确保在最上层 */
    
    width: auto;
    max-width: 90%;
    padding: 10px 15px;

    /* 玻璃拟态背景 (半透明黑 + 模糊) */
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* 动画过渡 */
    transition: all 0.3s ease;

    /* 🔴 关键设置：必须设为 visible！
       否则选中的缩略图向上“弹起”时，会被容器切掉一半 */
    overflow: visible !important; 
}

#thumb-track {
    display: flex;
    gap: 12px; /* 缩略图之间的间距 */
    justify-content: center;
    align-items: center; /* 垂直居中 */
}

.thumb-item {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    cursor: pointer;

    /* 默认状态：稍微暗一点，带点灰度，半透明 */
    opacity: 0.5; 
    filter: grayscale(60%); 
    
    /* 弹性动画曲线，让弹起动作更生动 */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    
    background-size: cover;
    background-position: center;
    border: 1px solid transparent;
    position: relative;
}

/* 鼠标悬停 (未选中时) */
.thumb-item:hover {
    opacity: 0.9;
    filter: grayscale(0%);
    transform: translateY(-5px); /* 鼠标放上去微微上浮 */
}

/* === 激活状态 (当前选中的作品) === */
/* 这个状态会由 JS 在滚动或点击时自动添加 */
.thumb-item.active {
    opacity: 1;
    /* 变亮 (亮度1.3倍)，恢复彩色 */
    filter: grayscale(0%) brightness(1.3); 
    border: 1px solid #fff;
    
    /* 强烈的白色发光效果 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    
    /* 🔴 向上大幅弹出 + 放大 */
    transform: translateY(-20px) scale(1.15); 
    
    /* 保证选中的这张图压在其他图上面 */
    z-index: 100; 
}

/* === 手机端隐藏逻辑 === */
@media (max-width: 768px) {
    /* 在手机上完全隐藏缩略图栏，避免拥挤 */
    #thumb-container, .desktop-only {
        display: none !important;
    }
}

/* === 电脑端视觉优化 === */
@media (min-width: 769px) {
    /* 既然有了缩略图，原本的小圆点可以变淡一些，不要太抢眼 */
    .nav-track {
        opacity: 0.3;
        margin-bottom: 5px;
    }
}

/* =========================================
   🚨 布局修正补丁 (请粘贴到 style.css 最末尾) 🚨
   ========================================= */

/* --- 1. 电脑端 (PC) 修正 --- */
@media (min-width: 769px) {
    
    /* 修正文字位置：往右移，增加呼吸感 */
    #active-info {
        left: 15% !important; /* 强制距离左边 15% */
        width: auto !important;
        max-width: 500px !important; /* 限制最大宽度 */
        
        /* 确保垂直居中 */
        top: 50% !important;
        transform: translateY(-50%) !important;
        bottom: auto !important;
        height: auto !important;
        
        /* 去掉原本可能存在的全屏背景条，改成干净的文字块 */
        background: none !important; 
        padding-left: 0 !important;
    }

    /* 隐藏电脑端的大箭头 (因为已经有底部缩略图了) */
    .nav-arrows {
        display: none !important;
    }
}

/* --- 2. 手机端 (Mobile) 修正 --- */
@media (max-width: 768px) {
    /* 手机端也隐藏左右箭头 (防止遮挡，手机靠滑动切换) */
    .nav-arrows {
        display: none !important;
    }
    
    /* 确保手机端文字位置正常 */
    #active-info {
        left: 0 !important;
        padding-left: 25px !important;
        background: linear-gradient(to bottom, #000 40%, transparent) !important;
    }
}

/* =========================================
   🛠️ FINAL OPTIMIZATIONS (追加到文件末尾)
   ========================================= */

/* 1. 多图并列排版 (来自 Urban Pulse 项目) */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}
.image-full {
    margin: 40px 0;
    width: 100%;
}
.caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5); /* 统一颜色 */
    margin-top: 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* 2. 移动端适配修正 */
@media (max-width: 768px) {
    /* 图片网格变单列 */
    .image-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 修复亚森科技页面按钮在手机上太宽的问题 */
    .live-link-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box; 
    }
    
    /* 修复 Works 页面筛选器在手机上可能换行的问题 */
    .filter-bar {
        flex-wrap: nowrap; /* 强制不换行 */
        overflow-x: auto; /* 允许横滑 */
    }
}

/* 3. 修复 Works 页面 3D 卡片层级 */
/* 确保当前激活的卡片永远在最上面，且鼠标可以点击 */
.gallery-card.active {
    pointer-events: auto !important;
}

/* 非激活卡片在移动端防止误触 */
.gallery-card:not(.active) {
    pointer-events: none;
}