:root {
    --bg-color: #050505;
    --accent-color: rgba(133, 133, 133, 0.15); /* 微弱的蓝色调 */
    --glow-color: rgba(255, 255, 255, 0.03);
    --grid-color: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #666;
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    --cubic-ease: cubic-bezier(0.19, 1, 0.22, 1);
    --hero-font-main: var(--font-display, 'Inter', system-ui, sans-serif);
    --accent-glow: rgba(255, 255, 255, 0.8);
    --shape-stroke: rgba(255, 255, 255, 0.4);
    --shape-glow: rgba(255, 255, 255, 0.15);
    --accent-line: rgba(255, 255, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
.nav-dots {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    width: 100%;
    height: 90% !important; /* 覆盖原有的 100% */
    touch-action: none; 
    height: auto !important;   /* 高度自适应 */
    overflow-x: hidden;        /* 防止左右横向滚动 */
    margin: 0;
    padding: 0;
    overflow-y: auto !important; /* 开启原生滚动条 */
    cursor: none;
}

/* --- 背景方案 --- */
/* --- 主容器 --- */
.bg-master {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-color);
  /* 混合渐变：中心稍亮，边缘深邃，加入极少量的暗蓝色偏色提升质感 */
  background: 
    radial-gradient(circle at 50% 50%, #0a0c10 0%, #030303 100%);
  overflow: hidden;
}

/* --- 噪点质感：消除CSS渐变的断层，增加电影质感 --- */
/* .bg-master::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
} */

/* --- 动态扫描线：增强光效与模糊感 --- */
.bg-scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  /* 使用更丰富的渐变，模拟光束 */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 40%, 
    var(--glow-color) 50%, 
    rgba(255, 255, 255, 0) 60%, 
    transparent 100%
  );
  transform: skewX(-25deg);
  filter: blur(40px); /* 增加模糊让光束更柔和 */
  animation: scan 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* --- 增强型点阵 + 网格：增加空间深度 --- */
.bg-dots {
  position: absolute;
  inset: 0;
  /* 双层网格：点阵 + 极淡的线条 */
  background-image: 
    radial-gradient(var(--grid-color) 1px, transparent 1.5px),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px, 100px 100px, 100px 100px;
  /* 渐变遮罩：让网格在边缘消失，增加神秘感 */
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* --- 鼠标跟随聚光灯：增加色彩混合模式 --- */
.bg-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    var(--accent-color), 
    transparent 80%
  );
  mix-blend-mode: screen; /* 混合模式让光影互动更自然 */
  pointer-events: none;
  transition: background 0.3s ease; /* 让光跟随更平滑 */
}

@keyframes scan {
  0% { transform: translateX(-50%) skewX(-25deg); }
  100% { transform: translateX(250%) skewX(-25deg); }
}


/* --- 视觉层 --- */
.layer { position: fixed; inset: 0; pointer-events: none; }
.noise {
    /* z-index: 90;
    opacity: 0.05;
    pointer-events: none;
    /* 这是一个 64x64 的微型噪点图，直接嵌入 CSS，无需 HTTP 请求 */
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZnOtAyAAAACHRSTlMAMwAqzMzMwcAyAAABUElEQVQ4y2NgQAX8DIwsDOiAEEqYgQ0YGJgZWCAsZgYlcEkGBhYIqxmsygBIM4MVM0wxw5QzMDEwMzC8ZuBgYGUQQLOOmYGBnSEMaICBwZ0hDCiGjCxvZGD4z8Dwn4GBgT2D4T8Dw38Ghv8MDP8ZGP4zMPxnYPhvhjCgA0YGhvcMDP8ZGP4zMPxnYPhvhjCgA0YGhvcMDP8ZGP4zMPxnYPhvBjZgYOcQYPgPVc8PZQA1/wgw/Gdg+M/A8J+B4b8ZwoAOGBkY3jMw/Gdg+M/A8J+B4b8ZwoAOGBkY3jMw/Gdg+M/A8J+B4b8Z2ICBnUOA4T9U/X8Ghv8MDP8ZGP4zMPxngCgw/Gdg+M/A8J+B4T8Dw38zhAEdMDIwvGdg+M/A8J+B4T8Dw38zhAEdMDIwvGdg+M/A8J+B4T8Dw38zsAEDO4cAAPQdOt00/t5JAAAAAElFTkSuQmCC");
} */

.vignette { z-index: 2; background: radial-gradient(circle at 50% 120%, rgba(0,0,0,0.5), transparent 70%); }

/* --- 布局与文字 --- */
.loader { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.loader-text-wrap { overflow: hidden; height: 100px; }
.loader-text { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: 15px; transform: translateY(100%); color: #fff; }
.loader-bar-bg { width: 200px; height: 1px; background: rgba(255,255,255,0.1); margin-top: 20px; position: relative; }
.loader-bar-fill { position: absolute; top:0; left:0; width: 0%; height: 100%; background: #fff; }

.loader-visual-grid { 
    display: flex; align-items: center; gap: 30px; margin-top: 40px; opacity: 0.4;
}
.v-shape { border: 1px solid #fff; }
.v-circle { width: 12px; height: 12px; border-radius: 50%; animation: pulseSize 2s infinite ease-in-out; }
.v-square { width: 10px; height: 10px; animation: rotateShape 3s infinite linear; }
.v-cross { width: 14px; height: 14px; border: none; position: relative; animation: pulseSize 1.5s infinite reverse; }
.v-cross::before, .v-cross::after { content:''; position: absolute; background: #fff; }
.v-cross::before { width: 100%; height: 1px; top: 50%; left: 0; }
.v-cross::after { width: 1px; height: 100%; left: 50%; top: 0; }
.v-line { width: 40px; height: 1px; background: rgba(255,255,255,0.2); border: none; overflow: hidden; position: relative; }
.v-line::after { content: ''; position: absolute; left: -100%; width: 100%; height: 100%; background: #fff; animation: lineSlide 2s infinite linear; }

@keyframes pulseSize { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes rotateShape { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lineSlide { 0% { left: -100%; } 100% { left: 100%; } }

@keyframes floatLoop {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -50px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

nav { position: fixed; top: 0; left: 0; width: 100%; padding: 3.5rem 6vw; display: flex; justify-content: space-between; align-items: center; z-index: 100; mix-blend-mode: exclusion; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; }

.viewport { width: 100%; height: 100vh; position: relative; z-index: 10; }
.page-container { width: 100%; height: 100%; will-change: transform; }
section {
    position: relative !important; /* 取消绝对定位 */
    width: 100%;
    min-height: 100vh; /* 保持每屏至少一屏高 */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible !important; /* 默认可见 */
    opacity: 1 !important;         /* 默认不透明 */
    padding: 100px 0;             /* 给长页面留出呼吸空间 */
}
section.active { visibility: visible; opacity: 1; }

/* --- 01. HOME --- */
.hero-label-home {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-label-home::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    display: inline-block;
    opacity: 0.5;
}

/* 2. 主标题：优化比例，增加响应式 clamp，增强混合模式表现 */
.hero-title-main-home {
    font-family: var(--hero-font-main);
    /* 手机端最小 40px, 理想值 8vw, PC端最大 90px */
    font-size: clamp(60px, 8vw, 130px); 
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em; /* 更紧凑的字间距更有现代感 */
    color: #fff;
    mix-blend-mode: overlay; /* 相比 color-dodge，overlay 在深色背景下更稳重 */
    transform-style: preserve-3d;
    will-change: transform;
    margin: 0;
}

/* 3. 镂空标题：精致的扫光特效与磨砂感 */
.hero-title-outline-home {
    font-family: var(--hero-font-main);
    font-size: clamp(24px, 5vw, 50px);
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    
    /* 基础描边 */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    
    /* 扫光渐变优化：增加透明度层次 */
    background: linear-gradient(
        110deg, 
        rgba(255,255,255,0) 30%, 
        rgba(255,255,255,0.1) 40%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0.1) 60%, 
        rgba(255,255,255,0) 70%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    
    position: relative;
    animation: shimmer 5s infinite linear;
}

/* 4. 更加高级的扫光动画 */
@keyframes shimmer {
    0% { background-position: 100% 0%; }
    100% { background-position: -100% 0%; }
}

/* 5. 鼠标悬浮微动（可选：如果你用 JS 配合更好） */
.hero-title-main-home:hover {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    transition: filter 0.5s ease;
}

.hero-content { z-index: 100; position: relative; pointer-events: none; perspective: 1000px }
/* 目录 */
.hero-label {margin-left: 10%;font-size:0.9rem; letter-spacing: 0.2em; color: var(--text-muted); 
    margin-bottom: 1.5rem; display: block; text-transform: uppercase} 
.hero-title-main {margin-left: 10%;font-family: var(--font-display); font-size:9vw; line-height: 0.85; font-weight: 700; letter-spacing: -0.02em; mix-blend-mode: color-dodge; transform-style: preserve-3d; will-change: transform; }
.hero-title-outline { font-family: var(--font-display); font-size: 4vw; margin-top: 1rem; font-weight: 700; color: rgba(255,255,255,0.1); -webkit-text-stroke: 1px rgba(255,255,255,0.3); background: linear-gradient(110deg, rgba(255,255,255,0) 40%, #fff 50%, rgba(255,255,255,0) 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; animation: shimmer 6s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes shimmer { 0% { background-position: 200% center; opacity: 0.5; } 100% { background-position: -200% center; opacity: 1; } }

.cube-wrapper { position: absolute; right: 15%; top: 50%; transform: translateY(-50%) perspective(1000px); width: 300px; height: 300px; z-index: 1; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: floatRotate 20s infinite linear; }
.face { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.01); }
.f-front { transform: translateZ(150px); } .f-back { transform: rotateY(180deg) translateZ(150px); } .f-right { transform: rotateY(90deg) translateZ(150px); } .f-left { transform: rotateY(-90deg) translateZ(150px); } .f-top { transform: rotateX(90deg) translateZ(150px); } .f-bottom { transform: rotateX(-90deg) translateZ(150px); }
@keyframes floatRotate { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(360deg) rotateY(360deg); } }

.geo-divider {
  position: absolute;
  bottom: 8vh; /* 稍微抬高一点，视觉重心更好 */
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw; /* 增加间距，显得更大气 */
  pointer-events: none;
  z-index: 5;
}

/* --- 贯穿长线：增加流动闪烁感 --- */
.geo-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  /* 使用更复杂的渐变：中间有一个亮点 */
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent-line) 20%, 
    #fff 50%, 
    var(--accent-line) 80%, 
    transparent 100%
  );
  opacity: 0.6;
  background-size: 200% 100%;
  animation: lineShimmer 8s infinite linear;
}

/* 线条闪烁动画 */
@keyframes lineShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- 02. CATALOG --- */
.catalog-container { position: relative; width: 100%; height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.catalog-item { position: relative; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5vw); font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.6s var(--cubic-ease); display: flex; align-items: baseline; width: fit-content; margin-bottom: -0.5rem; z-index: 2; }
.catalog-item:nth-child(even) { align-self: flex-end; padding-right: 10vw; }
.catalog-item:nth-child(odd) { align-self: flex-start; padding-left: 5vw; }
.catalog-item:nth-child(3) { margin-left: 15vw; }
.catalog-num { font-size: 1rem; font-family: var(--font-body); opacity: 0.4; margin-right: 3rem; letter-spacing: 2px; }
.catalog-item::after { content: attr(data-num); position: absolute; left: -20px; top: 50%; transform: translateY(-50%); font-size: 15vw; color: rgba(255,255,255,0.03); z-index: -1; opacity: 0; transition: 0.5s ease; pointer-events: none; }
.catalog-item:hover { color: #fff; transform: scale(1.05) translateX(20px); }
.catalog-item:hover::after { opacity: 1; left: 50px; }
.catalog-scan { position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: #fff; box-shadow: 0 0 10px #fff; transition: 0.5s var(--cubic-ease); }
.catalog-item:hover .catalog-scan { width: 100%; }
.catalog-visuals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.visual-circle { position: absolute; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; animation: orbit 20s infinite linear; }
.visual-cross { position: absolute; width: 40px; height: 40px; opacity: 0.1; }
.visual-cross::before, .visual-cross::after { content: ''; position: absolute; background: #fff; }
.visual-cross::before { width: 100%; height: 1px; top: 50%; }
.visual-cross::after { height: 100%; width: 1px; left: 50%; }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- 03. ABOUT --- */
#about { overflow: hidden; perspective: 1200px; }
.about-visual-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hud-ring { position: absolute; top: 50%; left: 30%; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; transform: translate(-50%, -50%); }
.hud-ring::before { content: ''; position: absolute; inset: -20px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 50%; animation: rotate 60s infinite linear; }
.about-grid-bg { position: absolute; inset: -10%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent 80%); transition: mask-image 0.3s ease; }
.data-tag { position: absolute; font-family: monospace; font-size: 10px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 4px 8px; border-left: 2px solid #fff; pointer-events: none; white-space: nowrap; }
.about-wrapper { position: relative; z-index: 5; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 10vw; align-items: center; }
.about-main-text { font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.about-main-text span.accent { color: #fff; background: linear-gradient(90deg, #fff, rgba(255,255,255,0.3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-details { display: flex; flex-direction: column; gap: 3rem; }
.detail-item { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 2rem; transition: 0.5s var(--cubic-ease); }
.detail-item:hover { border-left: 1px solid #fff; transform: translateX(10px); }
.detail-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 0.5rem;}
.detail-content { font-family: var(--font-display); font-size: 1.2rem; color: #aaa; }
.marquee-container { position: absolute; top: 30%; left: -10%; width: 120%; transform: rotate(-3deg); border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; overflow: hidden; }
.marquee-track { display: flex; width: fit-content; animation: scroll 30s linear infinite; }
.marquee-text { white-space: nowrap; font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); margin-right: 4rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- 03. WORK --- */
#work {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4vw;
    padding-top: 15vh;
    padding-bottom: 5vh;
    overflow-y: auto;
    scrollbar-width: none;
}
#work::-webkit-scrollbar { display: none; }
.work-list-side { width: 100%; }
.work-list-container { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; }
.work-item { position: relative; padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: flex-end; transition: all 0.6s var(--cubic-ease); cursor: pointer; }
.work-item:hover { padding-left: 2rem; background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%); }
.work-info-main {margin-left: 10%;display: flex; flex-direction: column; gap: 0.5rem; }
.work-item .work-index { font-family: monospace; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.work-item h3 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); line-height: 0.9; font-weight: 500; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: 0.5s var(--cubic-ease); }
.work-item:hover h3 { color: #fff; transform: translateX(10px); }
.work-info-meta {margin-right: 10px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; padding-bottom: 0.5rem; }
.meta-label {  font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; border: 1px solid rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 20px; }
.work-item .work-cat { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; }
.work-preview-side {margin-right: 10%;position: relative; }
.work-sticky-preview { position: sticky; top: 15vh; height: 60vh; width: 100%; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-sticky-preview::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.2); z-index: 5; animation: scanLine 4s infinite linear; }
@keyframes scanLine { 0% { top: 0%; } 100% { top: 100%; } }
.work-preview-img { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.6); opacity: 0; transform: scale(1.1) rotate(2deg); transition: all 0.8s var(--cubic-ease); }
.work-preview-img.active { opacity: 1; transform: scale(1) rotate(0deg); filter: grayscale(0.5) brightness(0.8); }

/* --- PROJECT DETAIL OVERLAY (NEW) --- */
.project-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transform: translateY(100%);
    background: #000;
    overflow-y: auto; 
}
.pd-close-btn {
    position: fixed; top: 2.5rem; right: 3vw; z-index: 2005;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.5s var(--cubic-ease);
}
/* 十字图标逻辑 */
.pd-close-btn .close-icon { position: relative; width: 20px; height: 20px; }
.pd-close-btn .close-icon::before, .pd-close-btn .close-icon::after {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #fff; transition: 0.5s;
}
.pd-close-btn .close-icon::before { transform: rotate(45deg); }
.pd-close-btn .close-icon::after { transform: rotate(-45deg); }

/* 悬停效果：背景变白、图标变黑、顺时针旋转90度 */
.pd-close-btn:hover {
    background: #fff; transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.pd-close-btn:hover .close-icon::before, .pd-close-btn:hover .close-icon::after {
    background: #000;
}

.pd-close-btn:hover { background: #fff; color: #000; }

.pd-hero {
    position: relative; width: 100%; height: 60vh;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.pd-hero-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) brightness(0.4);
    transform: scale(1.1); transition: 1s;
}
.project-detail-overlay:hover .pd-hero-img { transform: scale(1); filter: grayscale(0.5) brightness(0.6); }

.pd-content {
    padding: 5rem 10vw;
    max-width: 1600px; margin: 0 auto;
}
.pd-header { margin-bottom: 5rem; }
.pd-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700; line-height: 0.9;
    text-transform: uppercase; color: #fff;
    margin-bottom: 2rem;
}
.pd-meta-row {
    display: flex; gap: 4rem; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem; margin-top: 3rem;
}
.pd-meta-item { display: flex; flex-direction: column; gap: 0.5rem; }
.pd-meta-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.pd-meta-val { font-family: var(--font-display); font-size: 1.1rem; color: #ddd; }

.pd-body-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 5vw;
}
.pd-desc {
    font-size: 1.1rem; line-height: 1.7; color: #aaa;
    font-weight: 300;
}
.pd-desc p { margin-bottom: 1.5rem; }
.pd-gallery {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    margin-top: 2rem;
}
.pd-img-item {
    width: 100%; height: auto;
    border: 1px solid rgba(255,255,255,0.1);
    filter: grayscale(0.3); transition: 0.5s;
}
.pd-img-item:hover { filter: grayscale(0); border-color: rgba(255,255,255,0.3); }

/* --- 04. STACK --- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 1200px; margin-top: 2rem; }
.stack-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); padding: 2.5rem; position: relative; overflow: hidden; transition: all 0.5s var(--cubic-ease); backdrop-filter: blur(10px); }
.stack-card:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.stack-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); transform: translateX(-100%); transition: 0.6s; }
.stack-card:hover::before { transform: translateX(100%); }
.stack-cat { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.stack-skill-item { margin-bottom: 1.2rem; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.skill-bar-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.05); position: relative; }
.skill-bar-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.stack-bg-text { position: absolute; bottom: -10px; right: -10px; font-family: var(--font-display); font-size: 5rem; font-weight: 900; color: rgba(255,255,255,0.02); pointer-events: none; transition: 0.5s; }

/* --- 05. CONTACT --- */
.contact-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.contact-status { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 10px #0f0; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
/* --- Terminal Ticker --- */
.terminal-ticker {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 10%;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
    transition: background 0.3s ease;
}

.ticker-inner {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    will-change: transform;
}

.ticker-item {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 40px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.top-text{
    font-size:13px;

}
.ticker-item::before {
    content: '['; margin-right: 5px; color: #555;
}
.ticker-item::after {
    content: ']'; margin-left: 5px; color: #555;
}

.ticker-label {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 0 15px;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

/* --- 超频状态 (Overclock State) --- */
.terminal-ticker.overclock {
    background: rgba(255, 0, 0, 0.2);
    border-top-color: rgba(255, 0, 0, 0.5);
}

.terminal-ticker.overclock .ticker-item {
    color: #ff3333;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
    filter: blur(0.5px); /* 模拟高速移动的模糊感 */
}

.terminal-ticker.overclock .ticker-label {
    background: #ff0000;
    color: #fff;
    animation: flash 0.1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- 替换原有的 .contact-link 相关样式 --- */

.contact-link { 
    font-family: var(--font-display); 
    font-size: 9vw; 
    font-weight: 700; 
    color: transparent; 
    -webkit-text-stroke: 1px rgba(255,255,255,0.5); 
    text-decoration: none; 
    position: relative; 
    display: inline-block; 
    transition: all 0.3s ease; 
    text-transform: uppercase;
    /* 关键：等宽字体设置，防止乱码跳动时宽度抖动太大 */
    font-feature-settings: "tnum" on, "lnum" on; 
}

/* 悬停时的基础状态 */
.contact-link:hover {
    color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 2px 2px 0px rgba(255, 0, 0, 0.5); /* 红色色差故障感 */
    cursor: none; /* 保持自定义光标 */
}

/* 解密过程中的动画类 (由 JS 添加) */
.contact-link.decoding {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* 信号条保持不变 */
.signal-bar-wrap { width: 300px; height: 2px; background: rgba(255,255,255,0.1); margin-top: 3rem; position: relative; overflow: hidden; }
.signal-bar-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #fff; box-shadow: 0 0 10px #fff; transition: width 0.2s linear; }

/* 配合 JS：当鼠标悬停在链接上时，让下方的信号条填满 */
.contact-link:hover ~ .signal-bar-wrap .signal-bar-fill {
    width: 100%;
    background: #0f0; /* 变成黑客绿 */
    box-shadow: 0 0 20px #0f0;
}

.signal-bar-wrap { width: 300px; height: 2px; background: rgba(255,255,255,0.1); margin-top: 3rem; position: relative; overflow: hidden; }
.signal-bar-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #fff; box-shadow: 0 0 10px #fff; transition: width 0.2s linear; }
.contact-socials { display: flex; gap: 3rem; margin-top: 2rem; }
.social-link { font-family: var(--font-display); font-size: 1.2rem; color: #666; text-decoration: none; text-transform: uppercase; position: relative; }
.social-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 1px; background: #fff; transition: 0.4s var(--cubic-ease); }
.social-link:hover { color: #fff; } .social-link:hover::after { width: 100%; }

.back-to-top { position: fixed; bottom: 3rem; right: 3rem; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.5s; z-index: 99; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

.cursor { position: fixed; width: 12px; height: 12px; background: #fff; border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* --- 响应式优化 (MOBILE OPTIMIZATION) --- */
@media (max-width: 900px) { 
    nav { padding: 2rem 6vw; }
    .hero-title-main { font-size: 16vw; } 
    .cube-wrapper { transform: translateY(-50%) scale(0.6); right: 5%; }

    /* --- 目录页优化 (Catalog Mobile) --- */
    .catalog-container { 
        height: 65vh; 
        justify-content: center; 
        gap: 1.5vh; 
    }
    .catalog-item { 
        font-size: 9vw; 
        align-self: flex-start !important; 
        padding: 0.8rem 0 !important;
        margin: 0 !important;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    .catalog-item:nth-child(3) { margin-left: 0 !important; }
    .catalog-num { font-size: 0.7rem; margin-right: 0.8rem; }
    .catalog-item::after { display: none; } 
    .catalog-item:hover { transform: translateX(10px); }

    /* --- 关于页/作品页/其他优化 --- */
    .about-wrapper {grid-template-columns: 1fr; gap: 2rem; }
    #work { grid-template-columns: 1fr; padding-top: 10vh; }
    .work-preview-side { display: none; }
    .stack-grid { grid-template-columns: 1fr; }
    .contact-link { font-size: 12vw; }

    /* --- 作品详情页移动端 --- */
    .pd-body-grid { grid-template-columns: 1fr; }
    .pd-hero { height: 40vh; }
    .pd-title { font-size: 10vw; }
    .pd-meta-row { gap: 2rem; }
    .pd-content { padding: 3rem 6vw; }
}
/* 跳转按钮基础样式 */
.jump-button {
    width: 50pm;
    height: 30pm;
    display: inline-block;
    margin-top: 50px;
    padding: 12px 35px;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 3px;
    border: 1px solid #333;
    position: relative;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 10;
}

/* 按钮悬停效果 */
.jump-button:hover {
    color: #fff;
    background: #333;
    transform: translateY(-3px); /* 悬浮时轻微上浮 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 按钮下方可以加一个小装饰线 */
.btn-line {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #333;
    transition: width 0.4s ease;
}

.jump-button:hover .btn-line {
    width: 100%;
}

.works{
    text-align: center;
    margin: auto;
}