/* ═══════════════ 黑白科技 · CYBER MONO ═══════════════
   纯黑底 / 高对比白 / 唯一强调色：电子青 —— 扫描线、HUD 角标、克制的 glitch */

:root {
  --ink: #060709;
  --ink-2: #0c0e12;
  --ink-3: #12151b;
  --paper: #eef1f4;
  --paper-dim: rgba(238, 241, 244, 0.56);
  --paper-faint: rgba(238, 241, 244, 0.30);
  --line: rgba(238, 241, 244, 0.11);
  --acc: #3fe0d0;
  --acc-dim: rgba(63, 224, 208, 0.45);
  --acc-glow: rgba(63, 224, 208, 0.22);
  --serif: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* 背景：细格网 + 扫描线 + 微弱青色辉光 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(238,241,244,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,241,244,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 18%, #000 30%, transparent 92%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}

.mono { font-family: var(--mono); letter-spacing: 0.05em; }
.serif { font-family: var(--serif); font-weight: 700; }
.latin { font-family: var(--mono); font-size: 0.68em; vertical-align: 0.14em; color: var(--acc); }
.dim { color: var(--paper-dim); }
a { color: inherit; text-decoration: none; }
i { font-style: normal; color: var(--acc); }

/* HUD 芯片（原印章位）：黑底 + 青描边 + 辉光 */
.ov-seal, .hero-seal, .nav-seal, .foot-seal {
  background: rgba(6, 7, 9, 0.9);
  color: var(--acc);
  font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--acc-dim);
  border-radius: 3px;
  box-shadow: 0 0 18px var(--acc-glow), inset 0 0 12px rgba(63, 224, 208, 0.08);
  position: relative;
}
.ov-seal::before, .hero-seal::before {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid rgba(63, 224, 208, 0.25); border-radius: 5px;
  clip-path: polygon(0 0, 12px 0, 12px 1px, 1px 1px, 1px 12px, 0 12px,
    0 0, 100% 0, 100% 12px, calc(100% - 1px) 12px, calc(100% - 1px) 1px, calc(100% - 12px) 1px, calc(100% - 12px) 0,
    100% 0, 100% 100%, calc(100% - 12px) 100%, calc(100% - 12px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 12px), 100% calc(100% - 12px),
    100% 100%, 0 100%, 0 calc(100% - 12px), 1px calc(100% - 12px), 1px calc(100% - 1px), 12px calc(100% - 1px), 12px 100%, 0 100%);
}
.ov-seal span, .hero-seal span, .nav-seal span, .foot-seal span {
  letter-spacing: 0.14em; font-weight: 600;
}

/* ═══════════════ 开场 ═══════════════ */
#overture {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s;
}
#overture.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ov-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238,241,244,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,241,244,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000, transparent);
  animation: gridin 1.4s ease both;
}
@keyframes gridin { from { opacity: 0; } }
.ov-stage { position: relative; text-align: center; }
.ov-chars { position: relative; display: flex; gap: clamp(8px, 3vw, 28px); align-items: center; justify-content: center; }
.ov-char { width: clamp(96px, 20vw, 190px); height: clamp(96px, 20vw, 190px); }
.ov-char svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(238, 241, 244, 0.45)) drop-shadow(0 0 30px rgba(63, 224, 208, 0.18)); }

.ov-seal {
  position: absolute; right: clamp(-34px, -2vw, -16px); bottom: clamp(-28px, -2vw, -12px);
  width: auto; height: auto; padding: 8px 14px;
  font-size: clamp(14px, 2vw, 19px);
  transform: rotate(0deg) scale(2.6); opacity: 0;
}
.ov-seal.stamp { animation: stamp 0.4s cubic-bezier(0.22, 1.5, 0.36, 1) forwards, glitch 0.28s 0.42s steps(2) 2; }
@keyframes stamp {
  0%   { transform: scale(2.6); opacity: 0; filter: blur(4px); }
  60%  { transform: scale(0.96); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes glitch {
  0%   { transform: scale(1) translate(0, 0); clip-path: inset(0 0 0 0); }
  25%  { transform: scale(1) translate(2px, -1px); clip-path: inset(20% 0 55% 0); }
  50%  { transform: scale(1) translate(-2px, 1px); clip-path: inset(60% 0 10% 0); }
  100% { transform: scale(1) translate(0, 0); clip-path: inset(0 0 0 0); }
}
#overture.shake .ov-stage { animation: quake 0.28s linear; }
@keyframes quake {
  20% { transform: translate(2px, -2px); } 40% { transform: translate(-2px, 2px); }
  60% { transform: translate(1px, 1px); } 80% { transform: translate(-1px, -1px); }
}
.ov-caption { margin-top: 36px; color: var(--paper-faint); font-size: 12px; }
.ov-caption .ok { color: var(--acc); }
#ov-skip {
  position: absolute; right: 28px; bottom: 24px;
  background: none; border: 1px solid var(--line); border-radius: 2px;
  color: var(--paper-dim); padding: 7px 16px; font-size: 12px; cursor: pointer;
  transition: all 0.25s;
}
#ov-skip:hover { color: var(--acc); border-color: var(--acc-dim); box-shadow: 0 0 12px var(--acc-glow); }

/* ═══════════════ 导航 ═══════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(6, 7, 9, 0.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s ease, opacity 0.5s;
}
#nav.hidden-nav { transform: translateY(-100%); opacity: 0; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-seal { padding: 6px 10px; font-size: 13px; }
.nav-links { display: flex; gap: 30px; font-size: 13px; align-items: center; }
.nav-links a { color: var(--paper-dim); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--acc); box-shadow: 0 0 8px var(--acc);
}
.nav-pdf { border: 1px solid var(--line); padding: 6px 14px; border-radius: 2px; }
.nav-pdf:hover { border-color: var(--acc-dim); }

/* ═══════════════ Hero ═══════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
  padding: 90px 24px 130px; text-align: center;
}
.hero-name-row { position: relative; display: inline-flex; align-items: flex-end; }
.hero-name { display: flex; gap: clamp(4px, 1.6vw, 16px); }
.hero-name svg { width: clamp(72px, 13vw, 140px); height: clamp(72px, 13vw, 140px); filter: drop-shadow(0 0 8px rgba(238,241,244,0.3)); }
.hero-seal {
  padding: 7px 12px; font-size: clamp(12px, 1.6vw, 16px);
  margin-left: clamp(8px, 1.6vw, 20px); margin-bottom: 10px;
}
.hero-title { margin-top: 32px; font-size: clamp(17px, 2.4vw, 23px); letter-spacing: 0.18em; color: var(--paper); font-weight: 700; }
.hero-title i { padding: 0 0.35em; font-weight: 400; }
.hero-line { margin-top: 14px; font-size: 13px; color: var(--acc); min-height: 22px; }
.caret { animation: blink 1s steps(1) infinite; color: var(--acc); }
@keyframes blink { 50% { opacity: 0; } }

.hero-chips { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.chip {
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 22px;
  background: rgba(12, 14, 18, 0.6); font-size: 13px; color: var(--paper-dim);
  display: flex; flex-direction: column; gap: 2px; min-width: 150px;
  position: relative; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.chip::before, .chip::after {
  content: ""; position: absolute; width: 8px; height: 8px; border: 1px solid var(--acc-dim);
  opacity: 0; transition: opacity 0.3s;
}
.chip::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.chip::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.chip:hover { border-color: rgba(63, 224, 208, 0.4); transform: translateY(-3px); box-shadow: 0 0 20px rgba(63, 224, 208, 0.08); }
.chip:hover::before, .chip:hover::after { opacity: 1; }
.chip b { font-family: var(--mono); font-size: 20px; color: var(--paper); font-weight: 700; }

.hero-cta { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 3px; font-size: 14px;
  cursor: pointer; transition: all 0.25s; border: 1px solid transparent; font-family: var(--sans);
}
.btn-primary {
  background: var(--acc); color: #04110f; font-weight: 600;
  box-shadow: 0 0 24px rgba(63, 224, 208, 0.35);
}
.btn-primary:hover { background: #5ef0e2; transform: translateY(-2px); box-shadow: 0 0 34px rgba(63, 224, 208, 0.5); }
.btn-ghost { background: none; border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--acc-dim); color: var(--acc); box-shadow: 0 0 16px var(--acc-glow); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--paper-faint); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cue-line { width: 1px; height: 44px; background: linear-gradient(var(--paper-faint), transparent); position: relative; overflow: hidden; }
.cue-line::after {
  content: ""; position: absolute; top: -18px; left: 0; width: 1px; height: 18px;
  background: var(--acc); box-shadow: 0 0 6px var(--acc); animation: cuedrop 1.8s ease-in infinite;
}
@keyframes cuedrop { to { top: 44px; } }

/* ═══════════════ Section 骨架 ═══════════════ */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 32px 40px; }
.sec-head { margin-bottom: 64px; position: relative; }
.sec-no { color: var(--acc); font-size: 13px; letter-spacing: 0.35em; }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; margin-top: 8px;
  display: inline-block; position: relative; letter-spacing: 0.1em;
  font-family: var(--serif);
}
.brush-line {
  position: absolute; left: -2%; bottom: -12px; width: 104%; height: 12px; overflow: visible;
}
.brush-line path {
  fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: butt;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  filter: drop-shadow(0 0 6px var(--acc));
}
.in-view .brush-line path { animation: brushdraw 0.7s 0.15s ease forwards; }
@keyframes brushdraw { to { stroke-dashoffset: 0; } }
.sec-sub { margin-top: 24px; max-width: 560px; color: var(--paper-dim); font-size: 15px; }

/* 滚动浮现 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ═══════════════ 主打作品 ═══════════════ */
.feature {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.feature-flip .feature-media { order: 2; }
.feature-flip .feature-copy { order: 1; }
.feature-tag { color: var(--acc); font-size: 12px; letter-spacing: 0.22em; }
.feature-copy h3 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 6px; letter-spacing: 0.06em; font-family: var(--serif); }
.feature-hook { color: var(--paper); font-size: 16.5px; margin-bottom: 14px; font-weight: 600; }
.feature-copy > p:not(.feature-hook) { color: var(--paper-dim); font-size: 14.5px; }
.feature-stats { list-style: none; display: flex; gap: 26px; margin: 22px 0; flex-wrap: wrap; }
.feature-stats li { font-size: 11.5px; color: var(--paper-faint); display: flex; flex-direction: column; gap: 1px; }
.feature-stats b { font-family: var(--mono); font-size: 18px; color: var(--acc); }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-tags span, .skill-v span {
  font-size: 12px; color: var(--paper-dim); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 2px; transition: all 0.25s; font-family: var(--mono);
}
.feature-tags span:hover { border-color: var(--acc-dim); color: var(--acc); }

.media-frame {
  position: relative; border: 1px solid var(--line); border-radius: 6px;
  background: var(--ink-2); overflow: hidden; aspect-ratio: 16 / 10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s, border-color 0.45s;
}
.feature:hover .media-frame {
  transform: translateY(-6px); border-color: rgba(63, 224, 208, 0.35);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(63, 224, 208, 0.08);
}
.media-note {
  position: absolute; left: 12px; bottom: 10px; font-size: 10px; color: var(--paper-faint);
  background: rgba(6, 7, 9, 0.78); padding: 3px 9px; border-radius: 2px; backdrop-filter: blur(4px);
  border: 1px solid var(--line);
}

/* CRA 状态机动画 */
.cra-anim { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.cra-head { font-size: 11px; color: var(--acc); border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.cra-head::before { content: "▸ "; }
.cra-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cra-stages span {
  font-family: var(--mono); font-size: 10.5px; text-align: center; padding: 7px 2px;
  border: 1px solid var(--line); border-radius: 2px; color: var(--paper-faint); transition: all 0.4s;
}
.cra-stages span.on { border-color: var(--acc); color: var(--acc); background: rgba(63, 224, 208, 0.08); box-shadow: 0 0 10px rgba(63, 224, 208, 0.12); }
.cra-stages span.done { border-color: rgba(238, 241, 244, 0.3); color: var(--paper-dim); }
.cra-doc { display: flex; flex-direction: column; gap: 9px; padding: 4px 8px; }
.cra-docline { height: 7px; border-radius: 2px; background: rgba(238, 241, 244, 0.14); transform-origin: left; transform: scaleX(0); }
.cra-anim.play .cra-docline { animation: docline 0.7s ease forwards; }
.cra-anim.play .cra-docline:nth-child(2) { animation-delay: 0.5s; }
.cra-anim.play .cra-docline:nth-child(3) { animation-delay: 1.0s; }
.cra-anim.play .cra-docline:nth-child(4) { animation-delay: 1.5s; }
.cra-anim.play .cra-docline:nth-child(5) { animation-delay: 2.0s; }
@keyframes docline { to { transform: scaleX(1); } }
.w80 { width: 80%; } .w95 { width: 95%; } .w70 { width: 70%; } .w90 { width: 90%; } .w60 { width: 60%; }

/* SVGDeck 自画画布 */
.deck-anim { display: flex; align-items: center; justify-content: center; padding: 18px; }
.deck-canvas { position: relative; width: 100%; height: 100%; background: #0a0c10; border-radius: 4px; border: 1px solid var(--line); }
.deck-canvas svg { width: 100%; height: 100%; }
.dk { fill: none; stroke: var(--paper); stroke-width: 1.6; opacity: 0.9; stroke-dasharray: 400; stroke-dashoffset: 400; }
.dk.d6 { stroke: var(--paper-dim); } .dk.d7 { stroke: var(--acc); stroke-width: 2; filter: drop-shadow(0 0 4px var(--acc)); }
.deck-anim.play .dk { animation: deckdraw 0.9s ease forwards; }
.deck-anim.play .d2 { animation-delay: 0.7s; } .deck-anim.play .d3 { animation-delay: 1.3s; }
.deck-anim.play .d4 { animation-delay: 1.9s; } .deck-anim.play .d5 { animation-delay: 2.5s; }
.deck-anim.play .d6 { animation-delay: 3.2s; } .deck-anim.play .d7 { animation-delay: 3.8s; }
.deck-anim.play .d8 { animation-delay: 4.5s; }
@keyframes deckdraw { to { stroke-dashoffset: 0; } }
.deck-cursor {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 14px var(--acc);
  top: 12%; left: 8%; opacity: 0;
}
.deck-anim.play .deck-cursor { animation: cursorpath 5.4s linear forwards; }
@keyframes cursorpath {
  0% { top: 12%; left: 8%; opacity: 1; } 13% { top: 12%; left: 45%; }
  26% { top: 24%; left: 92%; } 42% { top: 60%; left: 12%; }
  58% { top: 60%; left: 55%; } 72% { top: 78%; left: 20%; }
  88% { top: 68%; left: 85%; } 100% { top: 90%; left: 62%; opacity: 0; }
}

/* ourcasa 2D↔3D */
.casa-swap { cursor: crosshair; }
.casa-swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s ease; }
.casa-3d { opacity: 0; }
.casa-swap:hover .casa-3d { opacity: 1; }
.casa-swap:hover .casa-2d { opacity: 0.12; }
.casa-label { position: absolute; top: 12px; left: 12px; font-size: 10.5px; z-index: 2; }
.casa-label span { background: rgba(6, 7, 9, 0.8); padding: 4px 10px; border-radius: 2px; backdrop-filter: blur(4px); border: 1px solid var(--line); }
.casa-label .l3d { display: none; color: var(--acc); border-color: var(--acc-dim); }
.casa-swap:hover .l2d { display: none; }
.casa-swap:hover .l3d { display: inline; }

/* 次级卡片 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 70px 0; }
.card {
  border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2);
  overflow: hidden; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, box-shadow 0.4s; position: relative;
}
.card:hover { transform: translateY(-6px); border-color: rgba(63, 224, 208, 0.35); box-shadow: 0 0 26px rgba(63, 224, 208, 0.07); }
.card::after {
  content: "//"; position: absolute; top: 10px; right: 12px;
  color: var(--acc); font-family: var(--mono); font-size: 13px;
  opacity: 0; transform: translateX(6px); transition: all 0.3s;
}
.card:hover::after { opacity: 1; transform: none; }
.card-media { aspect-ratio: 16 / 9; background: var(--ink-3); overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(0.85); transition: transform 0.6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--paper-faint); font-size: 13px; line-height: 1.9;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(238,241,244,0.03) 14px 15px);
}
.card-media .ph i { font-size: 10.5px; color: var(--paper-faint); }
.card h4 { font-family: var(--serif); font-size: 19px; margin: 18px 20px 8px; }
.card p { font-size: 13px; color: var(--paper-dim); margin: 0 20px; }
.card-foot { display: flex; justify-content: space-between; padding: 16px 20px 18px; font-size: 11.5px; color: var(--paper-faint); }
.card-foot a { color: var(--acc); }
.card-foot a:hover { text-shadow: 0 0 8px var(--acc-glow); }

/* 量化研究条 */
.quant {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2);
  padding: 44px; margin: 24px 0 70px; position: relative;
}
.quant::before, .quant::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--acc-dim);
}
.quant::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.quant::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.quant h3 { font-size: 22px; margin: 10px 0 12px; font-family: var(--serif); }
.quant p { font-size: 14px; color: var(--paper-dim); margin-bottom: 18px; }
.quant-chart { position: relative; }
.quant-chart svg { width: 100%; }
.axis { stroke: var(--line); stroke-width: 1; }
.curve-a, .curve-b { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.curve-a { stroke: var(--acc); filter: drop-shadow(0 0 5px var(--acc-glow)); }
.curve-b { stroke: rgba(238, 241, 244, 0.25); stroke-width: 1.4; }
.quant.in-view .curve-a { animation: curveDraw 1.6s 0.3s ease forwards; }
.quant.in-view .curve-b { animation: curveDraw 1.6s 0.1s ease forwards; }
@keyframes curveDraw { to { stroke-dashoffset: 0; } }
.lbl { font-size: 10px; fill: var(--acc); font-family: var(--mono); }
.lbl.dim2 { fill: var(--paper-faint); }

/* 彩蛋 */
.egg {
  display: block; position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(120deg, #0d1015, #080a0d 60%);
  padding: 52px 48px; margin-bottom: 30px; transition: border-color 0.4s, box-shadow 0.4s;
}
.egg:hover { border-color: rgba(63, 224, 208, 0.4); box-shadow: 0 0 40px rgba(63, 224, 208, 0.06); }
.egg-inner { position: relative; z-index: 2; max-width: 560px; }
.egg-tag { color: var(--acc); font-size: 11px; letter-spacing: 0.3em; }
.egg h3 { font-size: 26px; margin: 12px 0 10px; font-family: var(--serif); }
.egg p { color: var(--paper-dim); font-size: 14px; margin-bottom: 24px; }
.egg-bg {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  font-size: clamp(60px, 9vw, 110px); line-height: 0.95; color: rgba(238, 241, 244, 0.05);
  font-weight: 700; letter-spacing: 0.05em; text-align: right; pointer-events: none;
  transition: color 0.5s, transform 0.5s;
}
.egg:hover .egg-bg { color: rgba(63, 224, 208, 0.12); transform: translateY(-50%) scale(1.03); }

/* ═══════════════ 咨询经历 ═══════════════ */
.timeline { position: relative; margin: 0 0 80px; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--acc) 0%, var(--line) 40%, var(--line));
}
.tl-item { position: relative; padding: 0 0 46px 34px; }
.tl-dot {
  position: absolute; left: -30.5px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--acc);
  box-shadow: 0 0 10px var(--acc-glow);
}
.tl-mini .tl-dot { border-color: var(--paper-faint); box-shadow: none; width: 8px; height: 8px; top: 9px; left: -29px; }
.tl-date { font-size: 12px; color: var(--acc); margin-bottom: 6px; }
.tl-body h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.tl-body p { color: var(--paper-dim); font-size: 14.5px; max-width: 760px; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj {
  border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--ink-2);
  transition: transform 0.35s, border-color 0.35s;
}
.proj:hover { transform: translateY(-4px); border-color: rgba(63, 224, 208, 0.3); }
.proj-tag { font-size: 10.5px; color: var(--paper-faint); border: 1px solid var(--line); padding: 3px 10px; border-radius: 2px; }
.proj-tag.red { color: var(--acc); border-color: var(--acc-dim); }
.proj h5 { font-family: var(--serif); font-size: 16px; margin: 14px 0 8px; line-height: 1.5; }
.proj p { font-size: 12.5px; color: var(--paper-dim); }

/* ═══════════════ 教育与技能 ═══════════════ */
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.edu { border: 1px solid var(--line); border-left: 2px solid var(--acc); border-radius: 6px; padding: 26px 28px; background: var(--ink-2); }
.edu-date { font-size: 12px; color: var(--acc); }
.edu h4 { font-family: var(--serif); font-size: 21px; margin: 8px 0 6px; }
.edu p { color: var(--paper-dim); font-size: 14px; }
.skill-rows { display: flex; flex-direction: column; gap: 14px; }
.skill-row { display: flex; gap: 24px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.skill-k { color: var(--acc); font-size: 12px; letter-spacing: 0.25em; min-width: 46px; }
.skill-v { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════ Footer ═══════════════ */
footer { border-top: 1px solid var(--line); margin-top: 90px; }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 60px 32px; text-align: center; }
.foot-seal { width: fit-content; padding: 8px 14px; font-size: 14px; margin: 0 auto 22px; }
.foot-links { display: flex; gap: 28px; justify-content: center; font-size: 13px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--acc); }
.foot-note { margin-top: 20px; font-size: 12.5px; }

/* ═══════════════ AI 分身 ═══════════════ */
#chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 58px; height: 58px; border-radius: 6px; cursor: pointer;
  background: rgba(6, 7, 9, 0.92); color: var(--acc); font-family: var(--mono); font-size: 12px;
  line-height: 1.3; border: 1px solid var(--acc-dim);
  box-shadow: 0 0 22px var(--acc-glow), inset 0 0 14px rgba(63, 224, 208, 0.06);
  transition: transform 0.3s cubic-bezier(0.22, 1.5, 0.36, 1), box-shadow 0.3s;
}
#chat-fab:hover { transform: scale(1.07); box-shadow: 0 0 32px rgba(63, 224, 208, 0.35); }
#chat-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 9px;
  border: 1px solid rgba(63, 224, 208, 0.4); animation: fabpulse 2.4s ease-out infinite;
}
@keyframes fabpulse { 0% { opacity: 1; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.25); } }

#chat-panel {
  position: fixed; right: 26px; bottom: 98px; z-index: 71;
  width: min(390px, calc(100vw - 40px)); height: min(560px, calc(100vh - 130px));
  background: rgba(10, 12, 16, 0.97); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 30px rgba(63, 224, 208, 0.05);
  transform-origin: bottom right; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
#chat-panel.chat-hidden { transform: scale(0.6) translateY(30px); opacity: 0; pointer-events: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-title { display: flex; flex-direction: column; }
.chat-title b { font-family: var(--serif); font-size: 15px; }
.chat-title span { font-size: 10.5px; }
#chat-close { background: none; border: none; color: var(--paper-dim); cursor: pointer; font-size: 14px; padding: 6px; }
#chat-close:hover { color: var(--acc); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 6px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }
.msg.bot { background: var(--ink-3); border: 1px solid var(--line); border-bottom-left-radius: 2px; align-self: flex-start; }
.msg.user { background: rgba(63, 224, 208, 0.08); border: 1px solid rgba(63, 224, 208, 0.3); border-bottom-right-radius: 2px; align-self: flex-end; }
.msg.err { border-color: rgba(63, 224, 208, 0.4); color: var(--acc); font-size: 12px; }
.msg.typing { color: var(--paper-faint); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chips button {
  background: none; border: 1px solid var(--line); color: var(--paper-dim);
  border-radius: 2px; padding: 6px 13px; font-size: 12px; cursor: pointer; transition: all 0.2s; font-family: var(--sans);
}
.chat-chips button:hover { border-color: var(--acc-dim); color: var(--acc); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; background: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  padding: 10px 16px; color: var(--paper); font-size: 13.5px; outline: none; font-family: var(--sans);
}
.chat-input input:focus { border-color: var(--acc-dim); box-shadow: 0 0 12px rgba(63, 224, 208, 0.08); }
.chat-input button {
  background: var(--acc); border: none; color: #04110f; border-radius: 3px;
  padding: 0 20px; font-size: 13px; cursor: pointer; font-family: var(--sans); font-weight: 600;
}
.chat-input button:hover { background: #5ef0e2; }

/* ═══════════════ 响应式 ═══════════════ */
@media (max-width: 900px) {
  .feature, .quant { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .feature-flip .feature-media { order: 0; }
  .grid3, .proj-grid { grid-template-columns: 1fr; }
  .edu-row { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 12px; }
  .section { padding: 70px 20px 30px; }
  .egg { padding: 36px 24px; }
  .egg-bg { display: none; }
}
