/* ============ 1. 基础重置与设计令牌 (吞噬星空·深空机甲版·无黄色) ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 深邃宇宙底色 */
  --bg: #02040a; --bg-2: #050814; 
  /* 暗物质装甲面板 */
  --card: rgba(8, 14, 26, 0.6); --card-solid: rgba(8, 14, 26, 0.92);
  --border: rgba(0, 229, 255, 0.15); --border-strong: rgba(0, 229, 255, 0.5);
  /* 银蓝主色 + 深空紫 */
  --cyan: #00e5ff; --cyan-soft: rgba(0, 229, 255, 0.12); 
  --purple: #6366f1; --purple-soft: rgba(99, 102, 241, 0.12);
  --pink: #ff2e88; --green: #22c55e; 
  --text: #e0f0ff; --muted: #8b9bb4;
  
  --mono: 'JetBrains Mono', 'Consolas', 'SFMono-Regular', 'Courier New', 'Microsoft YaHei', monospace;
  --sans: 'Space Grotesk', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --shadow-glow: 0 0 24px rgba(0, 229, 255, 0.25);
}
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #00e5ff #02040a; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: 80px !important; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #02040a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #00e5ff, #6366f1); border-radius: 10px; border: 2px solid #02040a; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #22d3ee, #818cf8); }
.reveal { opacity: 1; }
.reveal.pre { opacity: 0; translate: 0 36px; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), translate 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s ease-out, border-color 0.3s, box-shadow 0.3s; }
a { color: var(--cyan); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ============ 2. 滚动进度条 / 光标 / 全局覆盖层 ============ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--purple)); z-index: 10000; box-shadow: 0 0 12px rgba(0, 229, 255, 0.8); }
#particle-canvas, #matrix-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#matrix-canvas { display: none; }
.crt-scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 3px); mix-blend-mode: overlay; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-b { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(90px); opacity: 0.45; mix-blend-mode: screen; animation: aurora-float 28s ease-in-out infinite alternate; }
.aurora-b.a1 { top: -18%; left: -12%; background: radial-gradient(circle, rgba(0, 229, 255, 0.5), transparent 65%); }
.aurora-b.a2 { bottom: -24%; right: -14%; background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 65%); animation-delay: -9s; animation-duration: 34s; }
.aurora-b.a3 { top: 40%; left: 40%; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(255, 46, 136, 0.2), transparent 60%); animation-delay: -17s; animation-duration: 40s; }
@keyframes aurora-float { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, 5vh, 0) scale(1.12); } 100% { transform: translate3d(-5vw, -4vh, 0) scale(0.94); } }
.grain { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; z-index: 99999; background: radial-gradient(circle, rgba(0, 229, 255, 0.9) 0%, rgba(99, 102, 241, 0.4) 45%, transparent 70%); box-shadow: 0 0 12px rgba(0, 229, 255, 0.9), 0 0 30px rgba(99, 102, 241, 0.5); transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, opacity 0.2s; opacity: 0; mix-blend-mode: screen; }
.cursor-glow.active { opacity: 1; }
.cursor-glow.hover { width: 44px; height: 44px; }
@media (hover: hover) and (pointer: fine) { body.cursor-custom, body.cursor-custom * { cursor: none !important; } }
@media (hover: none) { .cursor-glow { display: none; } }
.scroll-top { position: fixed; right: 22px; bottom: 24px; z-index: 2000; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card-solid); backdrop-filter: blur(16px); color: var(--cyan); font-size: 18px; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); background: var(--cyan-soft); }
.scroll-dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 1500; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.scroll-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; position: relative; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, height 0.3s; }
.scroll-dot::after { content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(6px); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--cyan); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.scroll-dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.scroll-dot.active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); height: 24px; border-radius: 6px; }
.boot { position: fixed; inset: 0; z-index: 90000; background: #02040a; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
.boot.hide { opacity: 0; visibility: hidden; }
.boot-log { font-family: var(--mono); font-size: 14px; color: var(--cyan); white-space: pre-wrap; max-width: 88vw; line-height: 1.9; letter-spacing: 1px; text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }

/* ============ 3. 顶部导航与全息旋钮 ============ */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: rgba(2, 4, 10, 0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.topbar-brand { font-family: var(--mono); font-weight: 700; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.7); font-size: 15px; cursor: pointer; user-select: none; }
.topbar-brand em { font-style: normal; color: var(--purple); }
.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); padding: 7px 12px; border-radius: 8px; transition: color 0.25s, background 0.25s; }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--cyan); background: var(--cyan-soft); }
.topbar-nav a.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); padding: 0 11px; }
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--cyan); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.knob-wrap { position: relative; }
.knob { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--card); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan); transition: box-shadow 0.3s, border-color 0.3s; }
.knob:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.knob-dial { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cyan); position: relative; flex: 0 0 auto; animation: dialspin 6s linear infinite; }
.knob-dial::after { content: ''; position: absolute; top: 2px; left: 50%; width: 2px; height: 6px; background: var(--cyan); margin-left: -1px; border-radius: 2px; }
@keyframes dialspin { to { transform: rotate(360deg); } }
.knob-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 14px; padding: 8px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8); }
.knob-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.knob-option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--text); text-align: left; transition: background 0.2s, color 0.2s; }
.knob-option:hover, .knob-option.active { background: var(--cyan-soft); color: var(--cyan); }
.knob-option .tick { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.knob-option.active .tick { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ============ 4. 首屏 HERO (神级文明主控台) ============ */
.wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
main { position: relative; z-index: 2; padding-top: 96px; }
.glass-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.03); }
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 56px 48px; position: relative; overflow: visible; }
.hero::before { content: ''; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(135deg, rgba(0, 229, 255, 0.6), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.5)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-left { position: relative; z-index: 2; }
.hero-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--cyan); margin-bottom: 16px; opacity: 0.85; }
.name-wrap { position: relative; display: inline-block; }
.name-text { font-size: clamp(44px, 7vw, 84px); font-weight: 900; letter-spacing: 2px; line-height: 1.05; background: linear-gradient(120deg, var(--cyan) 0%, #ffffff 25%, var(--purple) 50%, var(--cyan) 75%, #ffffff 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: aurora 3s linear infinite; filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4)); }
.name-wrap::before, .name-wrap::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; z-index: -1; pointer-events: none; }
.name-wrap::before { left: 4px; text-shadow: -4px 0 #ff2e88; animation: glitch-anim 4s infinite linear alternate-reverse; }
.name-wrap::after { left: -4px; text-shadow: 4px 0 #00e5ff; animation: glitch-anim 4s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0%, 85%, 100% { clip-path: inset(0 0 0 0); opacity: 0; transform: translate(0); } 86% { clip-path: inset(20% 0 30% 0); opacity: 1; transform: translate(-4px, 2px); } 88% { clip-path: inset(60% 0 10% 0); opacity: 1; transform: translate(4px, -2px); } 90% { clip-path: inset(40% 0 50% 0); opacity: 1; transform: translate(-3px, 1px); } 92% { clip-path: inset(80% 0 5% 0); opacity: 1; transform: translate(3px, -1px); } 94% { opacity: 0; transform: translate(0); } }
@keyframes aurora { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.typewriter-wrap { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); color: var(--cyan); margin-top: 14px; min-height: 1.6em; }
.typewriter-prompt { color: var(--purple); font-weight: 700; }
.typewriter-caret { display: inline-block; width: 9px; height: 1.15em; background: var(--cyan); margin-left: 2px; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-motto { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 520px; border-left: 2px solid var(--cyan); padding-left: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; padding: 13px 24px; border-radius: 12px; transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s; }
.btn::after { content: ''; position: absolute; top: 0; left: -90%; width: 45%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn-primary { background: linear-gradient(135deg, #0284c7, var(--cyan)); color: #02040a; font-weight: 700; border: 1px solid transparent; box-shadow: 0 8px 26px rgba(0, 229, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 229, 255, 0.5); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--cyan); background: var(--cyan-soft); }
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* 💥 核心强化：接单按钮回归高亮青蓝，保持冷峻高级感 */
.btn[href="#contact"] {
  border-color: var(--cyan) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(2, 4, 10, 0.8)) !important;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.3), 0 0 15px rgba(0, 229, 255, 0.2) !important;
  animation: cyan-pulse 2s infinite alternate;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  font-weight: bold;
}
@keyframes cyan-pulse {
  0% { box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.2), 0 0 10px rgba(0, 229, 255, 0.1); }
  100% { box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.5), 0 0 25px rgba(0, 229, 255, 0.5); }
}
.btn[href="#contact"]:hover { background: rgba(0, 229, 255, 0.15) !important; }

.hero-right { display: flex; justify-content: flex-end; align-items: center; position: relative; z-index: 1; }
.planet { position: relative; width: clamp(180px, 22vw, 250px); height: clamp(180px, 22vw, 250px); border-radius: 50%; margin-right: -40px; background: radial-gradient(circle at 32% 28%, #eefdff 0%, #00e5ff 28%, #0284c7 45%, #1e1b4b 100%); box-shadow: 0 0 90px rgba(0, 229, 255, 0.6), 0 0 150px rgba(99, 102, 241, 0.4), 0 40px 90px rgba(0, 0, 0, 0.8), inset -28px -30px 60px rgba(0, 0, 0, 0.8), inset 16px 18px 50px rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(0, 229, 255, 0.55); animation: float 6s ease-in-out infinite; flex: 0 0 auto; overflow: visible; }
.planet::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.55), rgba(99, 102, 241, 0.55), rgba(255, 46, 136, 0.4), rgba(0, 229, 255, 0.55)); mix-blend-mode: screen; opacity: 0.55; filter: blur(7px); animation: planet-hue 9s linear infinite; pointer-events: none; }
@keyframes planet-hue { to { filter: blur(7px) hue-rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.planet-ring { position: absolute; inset: -20% -32%; border-radius: 50%; border: 1px solid rgba(0, 229, 255, 0.6); box-shadow: 0 0 14px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(99, 102, 241, 0.3); transform: rotateX(72deg) rotateZ(-12deg); pointer-events: none; }
.planet-scan { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.planet-scan::after { content: ''; position: absolute; top: -20%; left: 0; width: 100%; height: 30%; background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.35), transparent); animation: planetscan 4s linear infinite; }
@keyframes planetscan { to { top: 110%; } }
.planet-avatar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 65%; height: 65%; border-radius: 50%; object-fit: cover; z-index: 2; opacity: 1 !important; mix-blend-mode: normal !important; border: 2px solid rgba(0, 229, 255, 0.8) !important; box-shadow: 0 0 20px rgba(0, 229, 255, 0.8) !important; }

/* ============ 5. 首屏入场 ============ */
@keyframes hero-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes planet-in { from { opacity: 0; transform: scale(0.5); filter: blur(18px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
.app-ready .hero-kicker, .app-ready .typewriter-wrap, .app-ready .hero-motto, .app-ready .hero-meta, .app-ready .hero-cta { animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
.app-ready .hero-kicker { animation-delay: 0.05s; }
.app-ready .typewriter-wrap { animation-delay: 0.28s; }
.app-ready .hero-motto { animation-delay: 0.4s; }
.app-ready .hero-meta { animation-delay: 0.52s; }
.app-ready .hero-cta { animation-delay: 0.64s; }
.app-ready .name-wrap { animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
.app-ready .planet { animation: planet-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both, float 6s ease-in-out 1.4s infinite; }

/* ============ 6. 跑马灯 ============ */
.marquee { position: relative; z-index: 2; margin: 26px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(2, 4, 10, 0.7); overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--muted); padding: 14px 30px; }
.marquee-group span::before { content: '◆'; color: var(--cyan); margin-right: 30px; font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 7. 区块与超级水印标题 ============ */
.section { margin: 90px 0; }
.section-head { position: relative; margin-bottom: 40px; }
.section-title { position: relative; z-index: 2; font-family: var(--mono); font-size: clamp(20px, 3.4vw, 30px); letter-spacing: 3px; color: var(--text); display: inline-block; }
.section-title .bracket { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }
.section-title::after { content: attr(data-watermark); position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: -1; font-size: 15vw; font-weight: 900; color: #ffffff; opacity: 0.02; pointer-events: none; line-height: 1; white-space: nowrap; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s; }
.section-head:hover .section-title::after { opacity: 0.05; transform: translateY(-50%) translateX(16px); }
.section-head:hover .section-title .bracket { text-shadow: 0 0 18px var(--cyan), 0 0 34px var(--purple); }
.section-sub { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); }

/* ============ 8. 通用卡片与 3D 立体倾斜 (HUD瞄准线增强) ============ */
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(24px); padding: 26px; transform-style: preserve-3d; transition: transform 0.18s ease-out, border-color 0.3s, box-shadow 0.3s; will-change: transform; }
.card::before { content: ''; position: absolute; inset: 8px; border-radius: inherit; pointer-events: none; opacity: 0.4; transition: opacity 0.3s, background-size 0.3s; background: linear-gradient(var(--cyan), var(--cyan)) top left / 15px 2px, linear-gradient(var(--cyan), var(--cyan)) top left / 2px 15px, linear-gradient(var(--cyan), var(--cyan)) top right / 15px 2px, linear-gradient(var(--cyan), var(--cyan)) top right / 2px 15px, linear-gradient(var(--cyan), var(--cyan)) bottom left / 15px 2px, linear-gradient(var(--cyan), var(--cyan)) bottom left / 2px 15px, linear-gradient(var(--cyan), var(--cyan)) bottom right / 15px 2px, linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 15px; background-repeat: no-repeat; }
.card:hover::before { opacity: 1; background-size: 25px 3px, 3px 25px, 25px 3px, 3px 25px, 25px 3px, 3px 25px, 25px 3px, 3px 25px; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.15), transparent 55%); opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 10; }
.card:hover::after { opacity: 1; }
.card:hover { border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }

/* ============ 9. HIGHLIGHTS ============ */
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl-card { text-align: left; overflow: hidden; }
.hl-val { font-family: var(--mono); font-size: clamp(30px, 5vw, 46px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--cyan), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-desc { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ============ 10. ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.about-text { font-size: 15.5px; color: #cdcde0; }
.about-text strong { color: var(--cyan); font-weight: 700; }
.edu-card .edu-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.edu-school { font-size: 18px; font-weight: 700; color: var(--text); }
.edu-major { font-size: 14px; color: var(--cyan); }
.edu-time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.edu-desc { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ============ 11. SKILLS ============ */
.skills-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.skills-chips { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.skill-chip { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--text); background: var(--card); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 16px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.skill-chip:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 8px 22px rgba(0, 229, 255, 0.25); }
.radar-card { display: flex; align-items: center; justify-content: center; }
.radar-card canvas { width: 100%; max-width: 340px; height: auto; }

/* ============ 12. PROJECTS ============ */
.projects-list { display: grid; gap: 22px; }
.project-card { display: grid; grid-template-columns: 280px 1fr; gap: 26px; }
.project-cover { border-radius: 12px; }
.project-body { display: flex; flex-direction: column; }
.project-title { font-size: 19px; font-weight: 700; color: var(--text); }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.project-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--purple); background: var(--purple-soft); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 999px; padding: 4px 12px; }
.project-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.project-duo h4 { font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; color: var(--cyan); font-family: var(--mono); }
.project-duo p { font-size: 13.5px; color: #b9b9cf; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.project-link { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--cyan); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 14px; transition: background 0.25s, transform 0.25s; }
.project-link:hover { background: var(--cyan-soft); transform: translateY(-2px); }
.project-link.muted { opacity: 0.35; pointer-events: none; }

/* ============ 💥 22. WORKSPACE 应用中心 ============ */
.workspace-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; }
.ws-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s; }
.ws-card:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: 0 20px 40px rgba(0, 229, 255, 0.25); }
.ws-card.locked { opacity: 0.6; filter: grayscale(0.6); }
.ws-card.locked:hover { transform: none; border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.ws-cover { position: relative; width: 100%; height: 240px; overflow: hidden; border-bottom: 1px solid var(--border); background: #02040a; }
.ws-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: brightness(0.85) contrast(1.1); }
.ws-card:hover .ws-cover-img { transform: scale(1.08); filter: brightness(1.05) contrast(1.1); }
.ws-status { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 99px; font-weight: bold; z-index: 2; }
.ws-status.online { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); box-shadow: 0 0 12px rgba(34, 197, 94, 0.2); }
.ws-status.locked { background: rgba(255, 255, 255, 0.1); color: var(--muted); border: 1px solid var(--border); }
.ws-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ws-label { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 10px; }
.ws-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.ws-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.ws-btn { font-family: var(--mono); font-size: 14px; color: var(--cyan); display: flex; align-items: center; gap: 8px; font-weight: bold; transition: color 0.3s, transform 0.3s; }
.ws-btn.muted { color: var(--muted); }
.ws-card:hover .ws-btn:not(.muted) { color: #fff; text-shadow: 0 0 10px var(--cyan); transform: translateX(4px); }

/* ============ 13. 证书 / 骨架屏 ============ */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-item { cursor: pointer; perspective: 1200px; }
.cert-item figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: 1px; }
.img-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.img-wrap img.loaded { opacity: 1; }
.img-skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(0, 229, 255, 0.1) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.img-wrap img.loaded ~ .img-skeleton, .img-wrap.broken .img-skeleton { opacity: 0; animation: none; }
.img-wrap.broken::after { content: '[ SYSTEM OFFLINE ]'; color: var(--cyan) !important; background: repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0px, rgba(0, 229, 255, 0.05) 1px, transparent 1px, transparent 4px) !important; font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: 1px; border: 1px dashed var(--border) !important; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* ============ 14. CAMPUS ============ */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campus-title { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.campus-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.campus-desc { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ============ 15. 联系方式 Bento ============ */
.contact-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.contact-item { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: var(--card); backdrop-filter: blur(24px); cursor: pointer; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s; }
.contact-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.contact-item.main { grid-column: span 6; background: linear-gradient(120deg, rgba(0, 229, 255, 0.1), rgba(99, 102, 241, 0.1)); }
.contact-item.w3 { grid-column: span 3; }
.contact-item.w4 { grid-column: span 4; }
.contact-item.w2 { grid-column: span 2; }
.contact-ico { font-size: 22px; margin-bottom: 10px; }
.contact-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.contact-value { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--cyan); margin-bottom: 6px; margin-top: 4px; word-break: break-all; }
.contact-item.main .contact-value { font-size: 20px; background: linear-gradient(90deg, var(--cyan), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-hint { font-size: 12px; opacity: 0.6; color: var(--text); }

/* ============ 16. 页脚 ============ */
.footer { margin-top: 100px; padding: 40px 0 60px; text-align: center; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.footer a { color: var(--cyan); }
.footer .status { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ============ 17. Toast 物理反馈 ============ */
#toast-host { position: fixed; top: 90px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; pointer-events: none; }
.toast { position: relative; pointer-events: auto; opacity: 0; transform: translateX(40px) scale(0.94); transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); width: 320px; }
.toast.show { opacity: 1; transform: translateX(0) scale(1); }
.toast.hide { opacity: 0; transform: translateX(40px) scale(0.94); }
.toast-close { position: absolute; top: 10px; right: 12px; font-size: 14px; color: var(--muted); z-index: 3; padding: 4px; }
.toast-close:hover { color: #fff; }
.toast-wechat { background: linear-gradient(160deg, #050814, #0a0f25); border: 1px solid var(--border); border-radius: 12px; padding: 22px; position: relative; }
.toast-wechat::before, .toast-wechat::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); transform: translateY(-50%); }
.toast-wechat::before { left: -11px; }
.toast-wechat::after { right: -11px; }
.ticket-stub { border-bottom: 2px dashed rgba(0, 229, 255, 0.4); padding-bottom: 14px; margin-bottom: 14px; }
.ticket-title { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--purple); }
.ticket-value { margin-top: 8px; font-family: var(--mono); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.ticket-barcode { margin-top: 4px; font-family: var(--mono); letter-spacing: 6px; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; }
.ticket-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.toast-email { background: transparent; border: none; border-radius: 0; overflow: visible; box-shadow: none; }
.envelope { position: relative; width: 100%; height: 180px; background: #02040a; border: 1px solid rgba(0, 229, 255, 0.55); border-radius: 10px; box-shadow: 0 0 26px rgba(0, 229, 255, 0.35), inset 0 0 34px rgba(0, 229, 255, 0.08); perspective: 700px; }
.envelope-flap { position: absolute; top: 0; left: 0; width: 100%; height: 52%; background: linear-gradient(180deg, #0a1122, #04060e); border-bottom: 1px solid rgba(0, 229, 255, 0.5); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; z-index: 3; animation: flap-open 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards; }
@keyframes flap-open { to { transform: rotateX(150deg); opacity: 0.35; } }
.envelope-pocket { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 34px; z-index: 1; }
.envelope-to { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.envelope-seal { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); z-index: 4; }
.seal-half { position: absolute; top: 0; width: 23px; height: 46px; background: radial-gradient(circle at 50% 50%, #ff2e2e, #7a0f0f); box-shadow: 0 0 12px rgba(255, 46, 46, 0.55); }
.seal-half.l { left: 0; border-radius: 23px 0 0 23px; transform-origin: right center; animation: seal-crack-l 0.5s ease 0.5s forwards; }
.seal-half.r { right: 0; border-radius: 0 23px 23px 0; transform-origin: left center; animation: seal-crack-r 0.5s ease 0.5s forwards; }
@keyframes seal-crack-l { to { transform: translateX(-18px) rotate(-16deg); opacity: 0; } }
@keyframes seal-crack-r { to { transform: translateX(18px) rotate(16deg); opacity: 0; } }
.env-char { position: absolute; bottom: 24px; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); opacity: 0; z-index: 2; }
.env-char.c1 { left: 12%; animation: char-fly 0.75s ease 1.05s forwards; }
.env-char.c2 { left: 26%; animation: char-fly 0.75s ease 1.12s forwards; }
.env-char.c3 { left: 40%; animation: char-fly 0.75s ease 1.19s forwards; }
.env-char.c4 { left: 54%; animation: char-fly 0.75s ease 1.26s forwards; }
.env-char.c5 { left: 68%; animation: char-fly 0.75s ease 1.33s forwards; }
.env-char.c6 { left: 82%; animation: char-fly 0.75s ease 1.4s forwards; }
@keyframes char-fly { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-86px); } }
.envelope-term { position: absolute; left: 16px; right: 16px; bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan); white-space: nowrap; overflow: hidden; opacity: 0; z-index: 5; animation: term-in 0.3s ease 1.25s forwards; }
@keyframes term-in { to { opacity: 1; } }
.postmark { position: absolute; right: 12px; bottom: 12px; width: 74px; height: 74px; border: 3px solid rgba(255, 46, 136, 0.85); border-radius: 50%; color: #ff2e88; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-align: center; line-height: 1.3; transform: rotate(-14deg) scale(1.7); opacity: 0; z-index: 6; }
.toast-email.show .postmark { animation: stamp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards; }
@keyframes stamp { to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.toast-phone { background: linear-gradient(135deg, #040811, #0a1122); border: 1px solid var(--border-strong); border-radius: 999px; padding: 18px 24px; display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.toast-phone .ripple { position: absolute; border: 1px solid rgba(0, 229, 255, 0.6); border-radius: 50%; width: 20px; height: 20px; left: 30px; top: 50%; transform: translate(-50%, -50%); animation: ripple 2s ease-out infinite; }
.toast-phone .ripple:nth-child(2) { animation-delay: 0.6s; }
.toast-phone .ripple:nth-child(3) { animation-delay: 1.2s; }
@keyframes ripple { from { width: 20px; height: 20px; opacity: 0.8; } to { width: 180px; height: 180px; opacity: 0; } }
.toast-phone .phone-ico { font-size: 24px; position: relative; z-index: 1; }
.toast-phone .phone-num { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: 2px; color: #fff; position: relative; z-index: 1; }
.toast-phone .phone-sub { font-size: 11px; color: var(--cyan); font-family: var(--mono); letter-spacing: 1px; position: relative; z-index: 1; }
.toast-loc { background: rgba(4, 8, 17, 0.95); border: 1px solid rgba(0, 229, 255, 0.5); border-radius: 6px; padding: 20px; position: relative; overflow: hidden; font-family: var(--mono); }
.toast-loc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49%, rgba(0, 229, 255, 0.12) 50%, transparent 51%), linear-gradient(0deg, transparent 49%, rgba(0, 229, 255, 0.12) 50%, transparent 51%); pointer-events: none; }
.toast-loc .hud-label { font-size: 11px; letter-spacing: 2px; color: var(--cyan); }
.toast-loc .hud-value { margin-top: 6px; font-size: 16px; color: #fff; letter-spacing: 1px; }
.toast-loc .lock-dot { position: absolute; right: 18px; bottom: 16px; width: 12px; height: 12px; border-radius: 50%; background: #ff2e2e; box-shadow: 0 0 14px #ff2e2e; animation: dropLock 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes dropLock { 0% { transform: translateY(-70px); opacity: 0; } 60% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(-6px); } 100% { transform: translateY(0); opacity: 1; } }

/* ============ 18. 抽屉 ============ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2, 4, 10, 0.7); z-index: 4000; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.ai-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); z-index: 4100; background: rgba(4, 8, 17, 0.95); border-left: 1px solid var(--border-strong); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8); }
.ai-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: rgba(0, 229, 255, 0.02); }
.drawer-title { font-family: var(--mono); font-size: 14px; letter-spacing: 2px; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.drawer-title .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
.drawer-close { font-size: 18px; color: var(--muted); padding: 6px 10px; border-radius: 8px; transition: color 0.2s; }
.drawer-close:hover { color: var(--cyan); background: var(--cyan-soft); }
.drawer-body { flex: 1; position: relative; overflow: hidden; }
.ai-radar { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.ai-radar::before { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent); animation: radar-sweep 3s linear infinite; }
@keyframes radar-sweep { 0% { left: -60px; } 100% { left: 100%; } }
.ai-drawer .drawer-body { background: #02040a; border-left: 1px solid rgba(0, 229, 255, 0.3); box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.1); }
.ai-drawer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: #02040a; z-index: 0; }
.ai-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(2, 4, 10, 0.85)); }
.jd-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4100; background: rgba(4, 8, 17, 0.95); border-top: 1px solid var(--border-strong); transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); max-height: 80vh; display: flex; flex-direction: column; }
.jd-drawer.open { transform: translateY(0); }
.jd-drawer .drawer-body { padding: 18px 24px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
#jd-input { width: 100%; min-height: 90px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; color: var(--text); padding: 14px; font-family: var(--mono); font-size: 13px; resize: vertical; }
#jd-input:focus { outline: none; border-color: var(--cyan); }
.jd-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jd-result { display: none; padding: 18px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(0, 229, 255, 0.05); }
.jd-result.show { display: block; }
.jd-score { font-family: var(--mono); font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--cyan), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.jd-scanbar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 10px; }
.jd-scanbar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width 0.2s; }
.jd-out { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: #b9b9cf; white-space: pre-wrap; min-height: 3em; }

/* ============ 19. 命令面板 ============ */
.palette-backdrop { position: fixed; inset: 0; background: rgba(2, 4, 10, 0.7); z-index: 6000; opacity: 0; pointer-events: none; transition: opacity 0.25s; backdrop-filter: blur(4px); }
.palette-backdrop.open { opacity: 1; pointer-events: auto; }
.palette { position: fixed; top: 16%; left: 50%; transform: translate(-50%, -16px) scale(0.98); width: min(560px, 92vw); z-index: 6100; background: var(--card-solid); border: 1px solid var(--border-strong); border-radius: 16px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9); }
.palette.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.palette-input .pico { color: var(--cyan); font-family: var(--mono); font-size: 18px; }
.palette-input input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--mono); font-size: 15px; outline: none; }
.palette-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--text); transition: background 0.15s; }
.palette-item:hover, .palette-item.sel { background: var(--cyan-soft); color: var(--cyan); }
.palette-item .cmd-name { display: flex; align-items: center; gap: 10px; }
.palette-item .cmd-key { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.palette-item.sel .cmd-key, .palette-item:hover .cmd-key { color: var(--cyan); border-color: var(--border-strong); }

/* ============ 20. PWA 引导 / 灯箱 ============ */
.pwa-toast { position: fixed; top: 74px; right: 20px; z-index: 7000; max-width: 300px; background: var(--card-solid); border: 1px solid var(--border-strong); border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); transform: translateY(-16px); opacity: 0; transition: opacity 0.4s, transform 0.4s; pointer-events: none; }
.pwa-toast.show { opacity: 1; transform: translateY(0); }
.pwa-toast .arrow { position: absolute; top: -8px; right: 30px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--border-strong); }
.pwa-toast h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan); margin-bottom: 6px; }
.pwa-toast p { font-size: 13px; color: #cdcde0; }
.lightbox { position: fixed; inset: 0; z-index: 8000; background: rgba(2, 4, 10, 0.95); display: flex; align-items: center; justify-content: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9); }
.lightbox .lb-close { position: absolute; top: 22px; right: 28px; font-size: 28px; color: #fff; padding: 6px 12px; }

/* ============ 21. 高级交互 / 模式 ============ */
.cursor-aura { position: fixed; top: 0; left: 0; width: 560px; height: 560px; margin-left: -280px; margin-top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04) 40%, transparent 70%); filter: blur(48px); pointer-events: none; z-index: 0; will-change: transform; mix-blend-mode: screen; }
.sound-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 18px; transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s; }
.sound-btn:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.sound-btn.muted { opacity: 0.5; }

.install-chip {
  position: fixed; left: 22px; bottom: 24px; z-index: 2000; 
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px; 
  color: #02040a; font-weight: 700; 
  background: linear-gradient(135deg, var(--cyan), #0284c7); 
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; 
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.35); 
  transition: transform 0.25s, box-shadow 0.25s; 
  animation: pulse-glow 2s infinite;
}
.install-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 229, 255, 0.5); }
.install-chip[hidden] { display: none; }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.project-tabs { display: flex; gap: 10px; margin: -8px 0 22px; }
.project-tab { position: relative; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 20px; transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.project-tab:hover { color: var(--cyan); border-color: var(--border-strong); }
.project-tab.active { color: #02040a; font-weight: 700; background: linear-gradient(135deg, var(--cyan), #0284c7); border-color: transparent; box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35); }
.project-track { margin-top: 16px; }
.project-track-label { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--cyan); margin-bottom: 8px; }
.project-desc { font-size: 14px; color: #b9b9cf; min-height: 3.5em; }
.card.glow { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 229, 255, 0.45), 0 0 60px rgba(0, 229, 255, 0.2); }
.cert-flip { position: relative; width: 100%; aspect-ratio: 4 / 3; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cert-item.flipped .cert-flip { transform: rotateY(180deg); }
.cert-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.cert-face.back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: var(--card-solid); border: 1px solid var(--border-strong); text-align: center; }
.cert-back-title { font-family: var(--mono); font-size: 15px; color: var(--text); letter-spacing: 1px; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 10px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(0, 229, 255, 0.35); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; box-sizing: border-box; padding-bottom: 44px; }
.timeline-item.left { left: 0; padding-right: 48px; }
.timeline-item.right { left: 50%; padding-left: 48px; }
.timeline-dot { position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); z-index: 2; }
.timeline-item.left .timeline-dot { right: -7px; }
.timeline-item.right .timeline-dot { left: -7px; }
.timeline-card { padding: 22px; }
.timeline-time { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan); margin-bottom: 6px; }
.timeline-title { font-size: 17px; font-weight: 700; color: var(--text); }
.timeline-tag { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--cyan); background: var(--cyan-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; }
.timeline-desc { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* 💥 补丁1：白光炸裂转场 */
#flash-overlay { position: fixed; inset: 0; background: #fff; z-index: 99998; pointer-events: none; opacity: 0; visibility: hidden; }
#flash-overlay.flash { animation: flashAnim 0.4s ease-out forwards; }
@keyframes flashAnim { 0% { opacity: 0; visibility: visible; } 20% { opacity: 0.8; } 100% { opacity: 0; visibility: hidden; } }

/* ==========================================
   💥 新增：赛博朋克掉帧与故障（Glitch）特效 (全端自动触发)
   ========================================== */
.glitch-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: rgba(0, 229, 255, 0.05); 
  opacity: 0;
  animation: screen-glitch 4s infinite; 
}
@keyframes screen-glitch {
  0%, 88%, 100% { opacity: 0; transform: translateY(0); }
  89% { opacity: 0.8; transform: translateY(-2px); }
  91% { opacity: 0.1; transform: translateY(2px); filter: invert(1); }
  93% { opacity: 0.6; transform: translateY(-4px); }
  95% { opacity: 0; transform: translateY(0); }
  97% { opacity: 0.3; transform: translateY(1px); }
}
.name-text {
  text-shadow: 2px 0 0 rgba(255, 0, 0, 0.4), -2px 0 0 rgba(0, 255, 255, 0.4);
  animation: auto-glitch 5s infinite;
}
@keyframes auto-glitch {
  0%, 70%, 100% { transform: translate(0); text-shadow: 2px 0 0 rgba(255,0,0,0.4), -2px 0 0 rgba(0,255,255,0.4); }
  71%, 75%, 79%, 83% { transform: translate(-2px, 1px); text-shadow: -3px 0 0 rgba(255,0,0,0.8), 3px 0 0 rgba(0,255,255,0.8); clip-path: inset(10% 0 80% 0); }
  73%, 77%, 81% { transform: translate(2px, -1px); text-shadow: 3px 0 0 rgba(255,0,0,0.8), -3px 0 0 rgba(0,255,255,0.8); clip-path: inset(60% 0 10% 0); }
}
.crt-scanlines { opacity: 0.8; animation: crt-flicker 0.15s infinite; }
@keyframes crt-flicker { 0% { opacity: 0.75; } 50% { opacity: 0.85; } 100% { opacity: 0.7; } }
.typewriter-caret { animation: caret 0.9s steps(1) infinite, caret-glitch 3s infinite; }
@keyframes caret-glitch { 0%, 90%, 100% { background: var(--cyan); } 92%, 96% { background: #ff2e88; box-shadow: 0 0 10px #ff2e88; } }
.btn:hover, .ws-card:hover { animation: hardware-shake 0.3s cubic-bezier(.36,.07,.19,.97) both; }
@media (hover: none) { .ws-card.in { animation: mobile-glitch 0.4s ease-out 1; } }
@keyframes hardware-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}
@keyframes mobile-glitch {
  0% { transform: translate(0); filter: invert(0); }
  20% { transform: translate(-4px, 2px); filter: invert(1) hue-rotate(90deg); }
  40% { transform: translate(4px, -2px); filter: none; }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .scroll-dots { display: none; }
  .topbar-nav { display: flex; flex-direction: column; position: absolute; top: calc(100% + 10px); right: 16px; min-width: 200px; padding: 8px; background: var(--card-solid); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 0.25s, transform 0.25s; }
  .topbar-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .topbar-nav a { padding: 11px 14px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .skills-wrap { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  main { padding-top: 84px; }
  .topbar { padding: 12px 16px; }
  .hero { display: block; padding: 28px 20px 32px; }
  .hero-right { position: absolute; top: -8px; right: -40px; z-index: 0; }
  .planet { width: 150px; height: 150px; margin-right: 0; }
  .hero-left { position: relative; z-index: 1; padding-top: 26px; }
  .hero-motto { max-width: 100%; }
  .contact-bento { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .contact-item.main, .contact-item.w4 { grid-column: span 2 !important; }
  .contact-item.w3 { grid-column: span 1 !important; padding: 18px 10px !important; }
  .contact-item.w2 { grid-column: span 2 !important; }
  .contact-item .contact-value { font-size: 14px !important; }
  .contact-item .contact-ico { font-size: 24px !important; margin-bottom: 8px !important; }
  .skills-chips { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  .skill-chip { width: auto !important; padding: 6px 14px !important; font-size: 12.5px !important; border-radius: 8px !important; }
  .project-duo, .campus-grid { grid-template-columns: 1fr; }
  .certs-grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
  .certs-grid::-webkit-scrollbar { display: none; }
  .cert-item { flex: 0 0 82%; scroll-snap-align: center; }
  .project-featured { grid-template-columns: 1fr !important; gap: 18px !important; }
  .project-featured .project-cover { width: 100%; aspect-ratio: auto !important; margin-bottom: 16px; padding: 0 !important; }
  .project-featured .project-cover .img-wrap { aspect-ratio: auto !important; height: auto !important; position: relative !important; overflow: visible !important; }
  .project-featured .project-cover .img-wrap img { position: relative !important; width: 100% !important; height: auto !important; object-fit: contain !important; display: block !important; }
  .timeline { padding: 10px 6px; }
  .timeline-item.left { padding-right: 26px; }
  .timeline-item.right { padding-left: 26px; }
  .toast { width: min(320px, 82vw); }
  #toast-host { right: 12px; }
  
  .workspace-grid { grid-template-columns: 1fr; gap: 20px; }
  .ws-cover { height: 200px; }
  .ws-body { padding: 20px; }
  .ws-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  .planet { animation: none !important; }
  .glitch-overlay { display: none !important; }
  .name-text { animation: none !important; text-shadow: none !important; }
}
@media print {
  * { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; background: transparent !important; background-image: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; color: #000 !important; }
  body { background: #fff !important; color: #000 !important; }
  .topbar, .scroll-progress, #particle-canvas, #matrix-canvas, .crt-scanlines, .cursor-glow, .aurora, .grain, .scroll-top, .marquee, .knob, .knob-menu, .hero-cta, .btn, .planet, .contact-item, .drawer-backdrop, .ai-drawer, .jd-drawer, .palette, .palette-backdrop, #toast-host, .pwa-toast, .lightbox, .toast, .boot, .scroll-dots, .cursor-aura, .install-chip, .ws-card, .glitch-overlay { display: none !important; }
  .glass-card, .card { background: #fff !important; border: 1px solid #ccc !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; break-inside: avoid; }
  .section-title::after, .hero::before { display: none !important; }
  .reveal, .reveal.pre { opacity: 1 !important; transform: none !important; translate: none !important; }
  main { padding-top: 0 !important; }
  .section { margin: 26px 0 !important; }
  .certs-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; }
  .img-wrap img { opacity: 1 !important; position: static !important; }
  .img-skeleton, .img-wrap.broken::after { display: none !important; }
  .name-text, .hl-val, .contact-item.main .contact-value, .jd-score { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
  .name-wrap::before, .name-wrap::after { display: none !important; }
}

/* ==========================================
   💥 V16 微信环境专属降级与防变形补丁
   ========================================== */
body.is-wechat .card {
  background: #050814 !important; 
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.is-wechat .planet-avatar {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}
body.is-wechat .project-featured .project-cover { height: 220px !important; overflow: hidden !important; }
body.is-wechat .project-featured .project-cover img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top !important; }

#wechat-hint {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 400px; background: rgba(4, 6, 12, 0.98);
  border: 2px solid var(--cyan); border-radius: 12px; padding: 18px;
  z-index: 99999; box-shadow: 0 10px 40px rgba(0,0,0,0.9), 0 0 30px rgba(0, 229, 255, 0.5);
  display: flex; justify-content: space-between; align-items: flex-start;
  animation: hintSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hintSlideDown { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.wh-content { flex: 1; padding-right: 12px; }
.wh-title { font-family: var(--mono); color: var(--cyan); font-size: 13px; font-weight: 700; margin-bottom: 6px; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.wh-desc { font-size: 13px; color: #e8e8f0; line-height: 1.6; }
.wh-desc strong { color: var(--cyan); }
.wh-close { background: rgba(255,255,255,0.05); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 14px; cursor: pointer; transition: all 0.2s; }
.wh-close:active { background: var(--cyan); color: #000; }

.planet-avatar {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 65%; height: 65%; border-radius: 50%; object-fit: cover;
    filter: grayscale(100%) sepia(100%) hue-rotate(140deg) saturate(300%) contrast(120%) brightness(80%);
    opacity: 0.85; mix-blend-mode: screen;
    border: 2px solid rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(0, 229, 255, 0.4);
    animation: hologram-pulse 3s infinite alternate;
}
.planet::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0, 229, 255, 0.2) 3px);
    pointer-events: none; z-index: 3; animation: scan-line 4s linear infinite;
}
@keyframes hologram-pulse {
    0% { opacity: 0.7; box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
    100% { opacity: 0.95; box-shadow: 0 0 25px rgba(0, 229, 255, 0.8); }
}
@keyframes scan-line { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .btn:hover { transform: none; }
  .skill-chip:hover { transform: none; }
  .btn:active, .card:active, .ws-card:active { transform: scale(0.97); filter: brightness(1.2); }
}

.cockpit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; }
.cockpit-item { background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.3); border-radius: 12px; padding: 15px; text-align: center; font-family: var(--mono); }
.cockpit-num { font-size: 24px; color: var(--cyan); font-weight: bold; text-shadow: 0 0 10px var(--cyan); }
.cockpit-label { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: 1px; }
@media (max-width: 760px) { .cockpit-grid { grid-template-columns: repeat(2, 1fr); } }