/* ============================================================
   B 面 v2 · 电影感 / 故障美学
   粒子场 + 扫描线 + 故障标题 + 视差 + 光标聚光
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --panel: rgba(12, 15, 24, .72);
  --line: rgba(120, 160, 190, .14);
  --line-2: rgba(120, 160, 190, .28);
  --text: #e9f1f6;
  --dim: #7d8e9b;
  --dim-2: #4d5b66;
  --cyan: #35e6ff;
  --magenta: #ff2e88;
  --sakura: #ff5c93;
  --font: "Sora", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 全屏层 ---------- */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.9'/></svg>");
  animation: grainShift 1.1s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0) }
  33% { transform: translate(-2%, 1%) }
  66% { transform: translate(1%, -2%) }
  100% { transform: translate(0, 0) }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.10) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.spotlight {
  position: fixed;
  width: 620px;
  height: 620px;
  left: 0; top: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,230,255,.09), rgba(255,46,136,.05) 42%, transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 38%, rgba(0,0,0,.78) 100%);
}

main, header, footer { position: relative; z-index: 3; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 头部 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, .55);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #05060a;
  font-weight: 800;
  font-size: 13px;
}
.logo .sep { color: var(--dim-2); }
.hd nav { display: flex; gap: 4px; }
.hd nav a {
  padding: 6px 11px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  transition: color .15s, background .15s;
}
.hd nav a:hover { color: var(--text); background: rgba(120,160,190,.08); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .2s, background .2s, box-shadow .2s;
  will-change: transform;
}
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(53,230,255,.25), 0 10px 30px rgba(53,230,255,.12); }
.btn.primary {
  background: linear-gradient(100deg, var(--cyan), #7ef0ff 40%, var(--magenta));
  border: 0;
  color: #04121a;
  font-weight: 700;
}
.btn.primary:hover { box-shadow: 0 12px 36px rgba(53,230,255,.28); }
.btn.ghost { border-color: var(--line); color: var(--dim); }
.btn.sm { padding: 7px 13px; font-size: 12.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) span { animation-delay: .2s; }
@keyframes rise { to { transform: none } }

.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 22px;
  max-width: 540px;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.85;
}
.hero p.lead b { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim-2);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* 人物 */
.hero-visual { position: relative; }
.portrait {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #04050a;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(53,230,255,.08);
  transform: translate3d(0,0,0);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05) contrast(1.06);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1) } 50% { transform: scale(1.02) } }

/* 扫描光带 */
.portrait::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: -30%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(53,230,255,.22), transparent);
  animation: sweep 5.5s linear infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { top: -30% } 100% { top: 110% } }

/* 角标 */
.portrait .corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: .85;
}
.corner.tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; }
.corner.tr { right: 10px; top: 10px; border-width: 1px 1px 0 0; }
.corner.bl { left: 10px; bottom: 10px; border-width: 0 0 1px 1px; }
.corner.br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }

.hero-visual .tag-float {
  position: absolute;
  left: -14px;
  bottom: 26px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(8, 10, 16, .86);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  gap: 9px;
  align-items: center;
}
.tag-float i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

/* ---------- 跑马灯 ---------- */
.ticker {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 11px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim-2);
  letter-spacing: .08em;
  white-space: nowrap;
}
.ticker-track b { color: var(--cyan); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- 段落 ---------- */
section { padding: 92px 0; position: relative; }
.sec-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.12;
  font-weight: 700;
  max-width: 16ch;
}
.sec-head p { color: var(--dim); margin-top: 14px; max-width: 58ch; }

/* 异常卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(53,230,255,.04), rgba(255,255,255,.01));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { border-color: rgba(53,230,255,.4); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.card .no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-2);
  letter-spacing: .12em;
}
.card .num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 10px 0 4px;
  background: linear-gradient(120deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card .unit { font-family: var(--mono); font-size: 11.5px; color: var(--dim-2); }
.card h3 { font-size: 15px; margin: 14px 0 8px; font-weight: 600; }
.card p { color: var(--dim); font-size: 13px; line-height: 1.8; }

/* 终端打断 */
.breach {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(6, 8, 13, .86);
  overflow: hidden;
  margin-top: 34px;
}
.breach-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-2);
}
.breach-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a3340; }
.breach-bar i:nth-child(1) { background: #ff5f57; }
.breach-bar i:nth-child(2) { background: #febc2e; }
.breach-bar i:nth-child(3) { background: #28c840; }
.breach pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: #a9c3d0;
  white-space: pre-wrap;
  min-height: 210px;
}
.breach .ok { color: var(--cyan); }
.breach .bad { color: var(--magenta); }
.breach .mut { color: var(--dim-2); }
.breach .caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0 } }

/* 对照表 */
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.mirror-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  background: rgba(255,255,255,.012);
}
.mirror-col.top { border-color: rgba(255,92,147,.28); }
.mirror-col.shell { border-color: rgba(53,230,255,.3); }
.mirror-col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mirror-col.top h4 { color: var(--sakura); }
.mirror-col.shell h4 { color: var(--cyan); }
.mirror-col ul { list-style: none; display: grid; gap: 10px; }
.mirror-col li {
  font-size: 13.5px;
  color: var(--dim);
  padding-left: 16px;
  position: relative;
}
.mirror-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.mirror-col li b { color: var(--text); font-weight: 600; }

/* CTA */
.cta {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 46px 42px;
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(53,230,255,.14), transparent 62%),
    radial-gradient(600px 260px at 88% 100%, rgba(255,46,136,.12), transparent 62%),
    rgba(8,10,16,.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.03em; }
.cta p { color: var(--dim); margin-top: 10px; }

/* 页脚 */
.ft {
  border-top: 1px solid var(--line);
  padding: 26px 0 70px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim-2);
}
.ft a:hover { color: var(--cyan); }

/* 出现动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .mirror { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 30px; }
  section { padding: 64px 0; }
  .cta { padding: 32px 24px; }
  .hero-visual .tag-float { left: 8px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hd nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .portrait img, .ticker-track, .portrait::after { animation: none !important; }
  .hero h1 .line span { transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
