/* ============================================================
   akaxxx · 个人站
   概念:整个页面是一次 Agent 工作流的运行过程
   START → 01 关于 → 02 技能 → 03 项目 → 04 论文 → 05 教育 → 06 报告 → END
============================================================ */

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

:root {
  --bg: #06080f;
  --bg-soft: #0a0e1a;
  --ink: #e8ecf4;
  --ink-dim: #9aa3b5;
  --ink-faint: #5a6275;
  --accent: #4cc2cc;
  --ok: #7ce38b;
  --run: #f2c94c;
  --card-border: rgba(255, 255, 255, 0.08);
  --serif: "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html {
  scroll-behavior: smooth;
  /* iOS Safari 只设 body 的 overflow-x 不生效,html 上必须同时裁掉
     (120vw 的斜横幅 / 140vw 的联系区大字 / 伸出屏幕的幽灵数字) */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: rgba(76, 194, 204, 0.35); }

/* ---------- 流体画布 ---------- */
#fluid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ---------- 顶部状态栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 5vw, 64px);
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo-dot {
  color: var(--accent);
  animation: caretBlink 1.2s steps(1) infinite;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 8px 5px 14px;
  background: rgba(6, 8, 15, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.nav-status:hover { border-color: rgba(76, 194, 204, 0.4); color: var(--ink-dim); }
.nav-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(124, 227, 139, 0.8);
  animation: statusPulse 2.2s ease-in-out infinite;
}
.nav-status-key {
  font-size: 10px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--ink-faint);
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav-links { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* ---------- 左侧工作流导航 ---------- */
.rail {
  position: fixed;
  left: clamp(16px, 2.6vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.rail-line {
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.rail-line i {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--accent), rgba(76, 194, 204, 0.25));
  transition: height 0.2s linear;
}
.rail-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.rail-dot {
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.rail-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}
.rail-node:hover .rail-label { opacity: 1; transform: translateX(0); }
.rail-node.active .rail-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(76, 194, 204, 0.7);
}
.rail-node.active .rail-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}
.rail-node.passed .rail-dot {
  border-color: var(--accent);
  background: rgba(76, 194, 204, 0.35);
}
.rail-end .rail-dot { border-style: dashed; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 70px;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.kicker-prompt { color: var(--accent); margin-right: 8px; }

/* 巨型名字 */
.hero-name {
  display: flex;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 13vw, 170px);
  /* Noto Serif SC 纵向度量大,行高需 >=1.3 否则字形溢出行框 */
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
  user-select: none;
}
.hero-name .ltr {
  display: inline-block;
  color: var(--ink);
  /* 起始位移写在 charIn 关键帧里,不能放这里:
     JS 在入场后会移除 animation,基础 transform 会重新生效导致字母下坠 */
  opacity: 0;
  animation: charIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
  text-shadow: 0 0 80px rgba(45, 226, 230, 0.2);
  cursor: default;
}
.hero-name .ltr:nth-child(1) { animation-delay: 0.05s; }
.hero-name .ltr:nth-child(2) { animation-delay: 0.12s; }
.hero-name .ltr:nth-child(3) { animation-delay: 0.19s; }
.hero-name .ltr:nth-child(4) { animation-delay: 0.26s; }
.hero-name .ltr:nth-child(5) { animation-delay: 0.33s; }
.hero-name .ltr:nth-child(6) { animation-delay: 0.40s; }
.hero-name .ltr-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(232, 236, 244, 0.85);
  text-shadow: none;
}
.hero-name .ltr:hover {
  transform: translateY(-14px) rotate(-4deg);
}
.hero-name .ltr-outline:hover {
  color: var(--accent);
  -webkit-text-stroke: 2px transparent;
}
@keyframes charIn {
  from { opacity: 0; transform: translateY(60px) rotate(2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* RGB 故障闪烁:周期性 + 极短促 */
.hero-name { position: relative; }
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-name::before {
  color: #2de2e6;
  animation: glitchA 7s steps(1) infinite;
}
.hero-name::after {
  color: #ff3d81;
  animation: glitchB 7s steps(1) infinite;
}
@keyframes glitchA {
  0%, 100% { opacity: 0; }
  61% { opacity: 0.5; transform: translate(-4px, -2px); clip-path: inset(8% 0 62% 0); }
  61.8% { opacity: 0.5; transform: translate(3px, 1px); clip-path: inset(48% 0 18% 0); }
  62.6% { opacity: 0; }
  87% { opacity: 0.4; transform: translate(4px, 0); clip-path: inset(70% 0 6% 0); }
  87.7% { opacity: 0; }
}
@keyframes glitchB {
  0%, 100% { opacity: 0; }
  61.2% { opacity: 0.5; transform: translate(4px, 2px); clip-path: inset(55% 0 24% 0); }
  62% { opacity: 0.5; transform: translate(-3px, -1px); clip-path: inset(12% 0 70% 0); }
  62.8% { opacity: 0; }
  87.2% { opacity: 0.4; transform: translate(-4px, 1px); clip-path: inset(2% 0 80% 0); }
  87.9% { opacity: 0; }
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 2.8vw, 28px);
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 40px;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
  transform: translateY(24px);
}
.hero-tagline em {
  font-style: normal;
  background: linear-gradient(120deg, #2de2e6 10%, #7b5cff 55%, #ff3d81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(45, 226, 230, 0.3));
}

/* 旋转徽章贴纸 */
.badge-spin {
  position: absolute;
  top: clamp(86px, 12vh, 130px);
  right: clamp(24px, 7vw, 110px);
  width: 120px; height: 120px;
  z-index: 3;
  pointer-events: none;
}
.badge-spin svg {
  width: 100%; height: 100%;
  animation: badgeSpin 18s linear infinite;
}
.badge-spin text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  fill: var(--ink-dim);
}
.badge-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}
@keyframes badgeSpin {
  to { transform: rotate(360deg); }
}

/* 终端启动卡 */
.boot {
  width: min(520px, 92vw);
  margin-bottom: 40px;
  text-align: left;
  font-family: var(--mono);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.boot:hover { transform: rotate(0deg); }
.boot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}
.boot-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.boot-bar i:nth-child(1) { background: rgba(255, 95, 86, 0.75); }
.boot-bar i:nth-child(2) { background: rgba(255, 189, 46, 0.75); }
.boot-bar i:nth-child(3) { background: rgba(39, 201, 63, 0.75); }
.boot-title {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.boot-body { padding: 18px 20px 20px; }
.boot-cmd {
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0.02em;
  min-height: 1.7em;
}
.boot-prompt { color: var(--accent); margin-right: 6px; }
.caret {
  color: var(--accent);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.boot-log {
  list-style: none;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.boot-log li {
  padding: 3px 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s;
}
.boot-log li.shown { opacity: 1; transform: translateY(0); }
.log-ok { color: var(--ok); margin-right: 8px; }
.log-run { color: var(--run); margin-right: 8px; }

.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--ink-dim);
  margin-bottom: 38px;
}

/* 关键事实 */
.hero-facts {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  margin-bottom: 38px;
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
}
.fact-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1;
  color: var(--ink);
}
.fact-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.fact-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.btn-primary {
  color: #04060c;
  background: var(--accent);
}
.btn-primary:hover { background: #63d2db; }
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }
.btn:active, .bento-card:active, .nav-status:active { transform: scale(0.94) !important; }

/* Konami:整页翻滚 */
body.barrel {
  animation: barrelRoll 1.3s cubic-bezier(0.34, 1.2, 0.5, 1);
}
@keyframes barrelRoll {
  to { transform: rotate(360deg); }
}

.hero-tip {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.hero-tip b {
  font-weight: 400;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--ink-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 斜切横幅 ---------- */
.bands {
  position: relative;
  z-index: 2;
  pointer-events: none;
  margin: -40px 0 10px;
}
.band {
  width: 120vw;
  margin-left: -10vw;
  overflow: hidden;
  white-space: nowrap;
}
.band-track {
  display: inline-block;
  animation: bandScroll 24s linear infinite;
}
.band-track span { display: inline-block; }
.band-solid {
  transform: rotate(-2deg);
  background: var(--accent);
  box-shadow: 0 10px 40px rgba(76, 194, 204, 0.25);
}
.band-solid .band-track {
  padding: 11px 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: #04060c;
}
.band-ghost {
  transform: rotate(1.4deg);
  margin-top: -16px;
}
.band-ghost .band-track {
  padding: 14px 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 236, 244, 0.28);
  animation-duration: 36s;
  animation-direction: reverse;
}
@keyframes bandScroll {
  to { transform: translateX(-50%); }
}

/* ---------- 通用 Section ---------- */
main { position: relative; z-index: 2; }

.section {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 40px);
}

/* 巨型幽灵数字(带滚动视差) */
.ghost-no {
  position: absolute;
  z-index: -1;
  top: clamp(10px, 4vh, 50px);
  right: -20px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(140px, 24vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232, 236, 244, 0.07);
  pointer-events: none;
  user-select: none;
  transform: translateY(var(--py, 0));
}
.ghost-left { right: auto; left: -20px; }
.ghost-center { left: 50%; right: auto; transform: translateX(-50%) translateY(var(--py, 0)); }

.section-head { margin-bottom: clamp(40px, 6vh, 64px); }

/* 节点日志行 */
.section-log {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.log-bracket { color: var(--ink-faint); }
.decode.scrambling { color: var(--accent); }

/* 节点状态徽章: idle → running → done */
.node-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--ink-faint);
  transition: border-color 0.4s, color 0.4s;
}
.node-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.node-status b { font-weight: 400; }
.node-status b::after { content: "idle"; }

.node-status[data-state="running"] { border-color: rgba(242, 201, 76, 0.4); color: var(--run); }
.node-status[data-state="running"] i {
  background: var(--run);
  box-shadow: 0 0 8px rgba(242, 201, 76, 0.7);
  animation: statusPulse 0.9s ease-in-out infinite;
}
.node-status[data-state="running"] b::after { content: "running"; }

.node-status[data-state="done"] {
  border-color: rgba(124, 227, 139, 0.35);
  color: var(--ok);
  animation: donePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes donePop {
  0% { transform: scale(0.78); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.node-status[data-state="done"] i {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(124, 227, 139, 0.6);
  animation: none;
}
.node-status[data-state="done"] b::after { content: "done ✓"; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.06em;
}
.accent { color: var(--accent); }

/* 标题逐字飞入 */
.section-head h2 .ch,
.contact-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) rotate(6deg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible h2 .ch {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* 玻璃卡片(带鼠标聚光灯) */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(76, 194, 204, 0.13), transparent 65%);
}
.glass:hover::after { opacity: 1; }
/* 3D 跟随时关闭 transform 过渡,保证跟手不抖 */
.glass.tilting {
  transition: opacity 0.85s cubic-bezier(0.3, 1.36, 0.4, 1), border-color 0.35s, box-shadow 0.35s;
}
.glass:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 194, 204, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(76, 194, 204, 0.12) inset;
}

/* 贴纸式微倾斜 */
.tilt-l { transform: rotate(-1.1deg); }
.tilt-r { transform: rotate(0.9deg); }
.tilt-l2 { transform: rotate(-0.6deg); }
.tilt-l:hover, .tilt-r:hover, .tilt-l2:hover { transform: rotate(0) translateY(-6px); }

/* 滚动进场(带轻微回弹) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.3, 1.36, 0.4, 1), transform 0.85s cubic-bezier(0.3, 1.36, 0.4, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.visible.tilt-l { transform: rotate(-1.1deg); }
.reveal.visible.tilt-r { transform: rotate(0.9deg); }
.reveal.visible.tilt-l2 { transform: rotate(-0.6deg); }
.reveal.visible.tilt-l:hover, .reveal.visible.tilt-r:hover, .reveal.visible.tilt-l2:hover {
  transform: rotate(0) translateY(-6px);
}
.delay-1 { transition-delay: 0.12s; animation-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; animation-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; animation-delay: 0.36s; }

/* hero 内 reveal 用动画(不依赖滚动) */
.hero .reveal {
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero .boot.reveal {
  animation-name: bootReveal;
}
@keyframes bootReveal {
  to { opacity: 1; transform: translateY(0) rotate(-1.2deg); }
}

/* ---------- 01 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}
.about-card { padding: 30px 30px 34px; }
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}
.about-card p:not(.card-tag) { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- 02 技能 ---------- */
.skills-list { display: flex; flex-direction: column; gap: 18px; }
.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px 30px;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  border: 1px solid var(--card-border);
  border-radius: 5px;
  padding: 6px 0;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1), color 0.3s, border-color 0.3s;
}
.skill-row:hover .skill-tag {
  transform: rotateX(360deg);
  color: var(--accent);
  border-color: rgba(76, 194, 204, 0.4);
}
.skill-body h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.skill-body p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.65; }

@media (max-width: 760px) {
  .skill-row { grid-template-columns: 1fr; gap: 14px; }
  .skill-tag { justify-self: start; padding: 6px 18px; }
}

/* ---------- 03 项目 ---------- */
.project {
  padding: clamp(28px, 4vw, 46px);
  margin-bottom: 30px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.project-index em { font-style: normal; letter-spacing: 0.06em; }
.status-live { color: var(--ok); }
.status-dev { color: var(--run); }
.project-name {
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.project-name-sub {
  font-family: var(--sans);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}
.project-role {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 8px 0 22px;
}
.project-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
.project-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-dim);
  font-size: 14.5px;
}
.project-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
.project-points strong { color: var(--ink); font-weight: 500; }
.project-tech { display: flex; flex-wrap: wrap; gap: 9px; }
.project-tech span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--card-border);
  border-radius: 5px;
  padding: 5px 12px;
}

/* ---------- 04 论文 ---------- */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.paper { padding: 36px 32px; position: relative; }
.paper-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--run);
  border: 1px solid rgba(242, 201, 76, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}
.paper h3 {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}
.paper-full {
  font-size: 13.5px;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.55;
}
.paper-desc { font-size: 13.5px; color: var(--ink-dim); }

/* ---------- 05 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.timeline-item { position: relative; padding-bottom: 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.timeline-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.timeline-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 4px;
}
.timeline-item p { color: var(--ink-dim); font-size: 14px; }

/* ---------- 07 联系 = 报告输出 ---------- */
.contact { text-align: center; }
.contact-log { justify-content: center; }

/* 联系区巨型滚动字 */
.contact-band {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 140vw;
  transform: translate(-50%, -50%) rotate(-3deg);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}
.contact-band .band-track {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(60px, 10vw, 130px);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(76, 194, 204, 0.16);
  animation: bandScroll 30s linear infinite;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 92px);
  margin-bottom: 16px;
}
.contact-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-dim);
  margin-bottom: 34px;
}
.contact-mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(15px, 3vw, 26px);
  max-width: 100%;
  word-break: break-all;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-links {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
}
.contact-links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-links a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border-top: 1px solid var(--card-border);
}
.footer-sep { margin: 0 6px; }
.footer-run b { font-weight: 400; color: var(--ink-dim); }

/* ---------- 终端彩蛋 ---------- */
.palette {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.palette[hidden] { display: none; }
.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.palette-win {
  position: relative;
  width: min(640px, 94vw);
  border: 1px solid rgba(76, 194, 204, 0.25);
  border-radius: 14px;
  background: rgba(8, 11, 20, 0.92);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(76, 194, 204, 0.08) inset;
  overflow: hidden;
  font-family: var(--mono);
  animation: paletteIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes paletteIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.palette-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}
.palette-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.palette-bar i:nth-child(1) { background: rgba(255, 95, 86, 0.75); }
.palette-bar i:nth-child(2) { background: rgba(255, 189, 46, 0.75); }
.palette-bar i:nth-child(3) { background: rgba(39, 201, 63, 0.75); }
.palette-title {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.palette-close {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.palette-close:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }

.palette-out {
  max-height: 320px;
  overflow-y: auto;
  padding: 16px 20px 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-dim);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.palette-out::-webkit-scrollbar { width: 7px; }
.palette-out::-webkit-scrollbar-track { background: transparent; }
.palette-out::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
.palette-out::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
.palette-out .p-cmd { color: var(--ink); }
.palette-out .p-cmd::before { content: "❯ "; color: var(--accent); }
.palette-out .p-ok { color: var(--ok); }
.palette-out .p-warn { color: var(--run); }
.palette-out .p-err { color: #ff6b81; }
.palette-out a { color: var(--accent); }

.palette-in {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px 16px;
}
.palette-in input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  caret-color: var(--accent);
}
.palette-in input::placeholder { color: var(--ink-faint); }

/* 提示文案:默认展示键盘版,移动端换成触屏版 */
.tip-mobile { display: none; }

/* ---------- 平板:隐藏左侧导航与徽章 ---------- */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (max-width: 900px) {
  .badge-spin { display: none; }
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 640px) {
  .nav {
    padding: 12px 14px;
    gap: 10px;
  }
  .nav-logo { font-size: 16px; flex-shrink: 0; }
  /* 终端入口保留:手机没有 / 键,收成一颗呼吸绿点 */
  .nav-status {
    padding: 8px;
    flex-shrink: 0;
  }
  .nav-status-text,
  .nav-status-key { display: none; }
  .nav-links {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero { padding: 90px 18px 60px; }
  .hero-name { font-size: clamp(52px, 17vw, 80px); }
  .hero-tagline {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
  }
  .boot { margin-bottom: 30px; }
  .boot-body { padding: 14px 16px 16px; }
  .boot-cmd { font-size: 12px; }
  .boot-log { font-size: 11.5px; }
  .hero-facts { gap: 14px 20px; margin-bottom: 30px; flex-wrap: wrap; }
  .fact { gap: 8px; }
  .fact-num { font-size: 26px; }
  .fact-desc { font-size: 10.5px; }
  .hero-cta { gap: 12px; }
  .btn {
    font-size: 14px;
    padding: 12px 26px;
  }
  .hero-tip { font-size: 10.5px; margin-top: 24px; }
  .scroll-cue { display: none; }

  .section { padding: 64px 18px; }
  .section-head { margin-bottom: 34px; }
  .section-log { font-size: 11px; flex-wrap: wrap; }
  .ghost-no { font-size: 120px; right: -10px; }
  .ghost-left { left: -10px; }

  .about-card { padding: 24px 22px 28px; }
  .skill-row { padding: 22px 20px; }
  .project { padding: 24px 20px; margin-bottom: 20px; }
  .project-name { gap: 8px; }
  .paper { padding: 28px 22px; }
  .paper h3 { font-size: 25px; }

  .timeline { padding-left: 26px; }
  .timeline-item::before { left: -23px; }

  .contact-links { flex-wrap: wrap; }

  .palette { padding: 8vh 12px 12px; }
  .palette-out { max-height: 44vh; }

  .tip-desktop { display: none; }
  .tip-mobile { display: inline; }
}

/* 触屏设备:取消 hover 浮起和聚光灯,避免点一下"卡"在悬浮态 */
@media (hover: none) {
  .glass:hover { transform: none; }
  .glass:hover::after { opacity: 0; }
  /* iOS 输入框小于 16px 聚焦时会强制放大整个页面(手机/平板都会) */
  .palette-in input { font-size: 16px; }
}

/* ============================================================
   06 热爱 · 副本任务
============================================================ */
.section-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-dim);
}

/* Bento 拼格:大小不一,每张卡一种主题色 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento-card {
  --tint: 76, 194, 204;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
  border-color: rgba(var(--tint), 0.22);
  overflow: hidden;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 8%, rgba(var(--tint), 0.85), transparent 92%);
}
.bento .bento-card:hover {
  border-color: rgba(var(--tint), 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 44px rgba(var(--tint), 0.14);
}

/* 主题色分配 */
.card-printer { --tint: 45, 226, 230; grid-column: span 2; grid-row: span 2; }
.card-drone   { --tint: 96, 165, 250; grid-column: span 2; }
.card-vibe    { --tint: 139, 92, 246; }
.card-nas     { --tint: 124, 227, 139; }
.card-desk    { --tint: 255, 61, 129; grid-column: span 2; }
.card-iot     { --tint: 242, 201, 76; }
.card-radar   { --tint: 45, 226, 180; }

/* 场景容器吃主题色 */
.bento-card .printer,
.bento-card .drone-scene,
.bento-card .chip-scene {
  background:
    radial-gradient(circle at 28% 16%, rgba(var(--tint), 0.2), transparent 65%),
    rgba(0, 0, 0, 0.3);
  border-color: rgba(var(--tint), 0.28);
}
.bento-card:hover .printer,
.bento-card:hover .drone-scene,
.bento-card:hover .chip-scene {
  filter: brightness(1.28) saturate(1.3);
}

/* 大卡的打印机场景撑满 */
.card-printer .printer {
  flex: 1;
  height: auto;
  min-height: 250px;
}

.bento-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.bento-card h3::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgb(var(--tint));
  box-shadow: 0 0 10px rgba(var(--tint), 0.9);
  flex-shrink: 0;
}
.card-printer h3, .card-drone h3 { font-size: 21px; }
.bento-card > p:last-child { color: var(--ink-dim); font-size: 13.5px; }

.interest-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 14px 0 10px;
}
.interest-status b { font-weight: 400; color: var(--run); }

/* ---------- 3D 打印机 ---------- */
.printer {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(45, 226, 230, 0.07), transparent 55%),
    rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
/* 耗材盘:旋转的料盘 + 垂下的料线 */
.printer-spool {
  position: absolute;
  top: 12px; left: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(45, 226, 230, 0.45);
  animation: spoolSpin 5s linear infinite;
}
.printer-spool::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 236, 244, 0.4);
}
.printer-spool i {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(232, 236, 244, 0.7);
}
@keyframes spoolSpin { to { transform: rotate(360deg); } }
/* 双侧丝杆:螺纹滚动模拟旋转 */
.printer-screw {
  position: absolute;
  top: 30px; bottom: 30px;
  width: 5px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0 2px, rgba(255, 255, 255, 0.06) 2px 6px);
  background-size: 100% 6px;
  animation: screwTurn 0.9s linear infinite;
}
.screw-l { left: 16px; }
.screw-r { right: 16px; }
@keyframes screwTurn { to { background-position: 0 6px; } }
.printer-rail {
  position: absolute;
  top: 26px; left: 26px; right: 26px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
}
/* 打印头:带散热格栅 + 熔嘴炽热点 */
.printer-carriage {
  position: absolute;
  top: 19px;
  left: 16%;
  width: 26px; height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(240, 244, 252, 0.95), rgba(168, 178, 200, 0.85));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  animation: carriageSweep 1.4s ease-in-out infinite alternate;
}
.printer-carriage::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(10, 14, 24, 0.45) 0 2px, transparent 2px 4px);
}
.printer-nozzle {
  position: absolute;
  left: 50%; bottom: -8px;
  width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid rgba(232, 236, 244, 0.85);
}
.printer-nozzle::after {
  content: "";
  position: absolute;
  left: -2px; top: -1px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: nozzleGlow 0.7s ease-in-out infinite alternate;
}
@keyframes nozzleGlow {
  from { box-shadow: 0 0 8px var(--accent); }
  to { box-shadow: 0 0 16px var(--accent), 0 0 30px rgba(45, 226, 230, 0.65); }
}
@keyframes carriageSweep {
  from { left: 16%; }
  to { left: calc(84% - 26px); }
}
/* 加热床:刻度网格 + 底部加热红光呼吸 */
.printer-bed {
  position: absolute;
  bottom: 16px; left: 26px; right: 26px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid rgba(232, 236, 244, 0.25);
  background:
    repeating-linear-gradient(90deg, rgba(45, 226, 230, 0.2) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(62, 72, 94, 0.9), rgba(28, 34, 48, 0.9));
}
.printer-bed::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 100%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 96, 96, 0.55), transparent);
  animation: bedHeat 2.2s ease-in-out infinite;
}
@keyframes bedHeat {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
/* 控制面板:型号铭牌 + 状态灯 */
.printer-panel {
  position: absolute;
  right: 28px; bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(232, 236, 244, 0.4);
}
.printer-panel b { font-weight: 400; }
.printer-panel i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(124, 227, 139, 0.8);
  animation: nasBlink 1.6s steps(2) infinite;
}
.printer-panel i:last-child {
  background: var(--run);
  box-shadow: 0 0 6px rgba(242, 201, 76, 0.8);
  animation-duration: 0.8s;
}
.print-object {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.print-object i {
  display: block;
  height: 7px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(45, 226, 230, 0.95), rgba(123, 92, 255, 0.85));
  /* 内阴影制造一圈圈层纹 */
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28), 0 0 12px rgba(45, 226, 230, 0.3);
}
/* 12s 一轮:八层依次堆叠成花瓶轮廓,末尾整体消失重来 */
.print-object i:nth-child(1) { animation: layerB1 12s linear infinite; }
.print-object i:nth-child(2) { animation: layerB2 12s linear infinite; }
.print-object i:nth-child(3) { animation: layerB3 12s linear infinite; }
.print-object i:nth-child(4) { animation: layerB4 12s linear infinite; }
.print-object i:nth-child(5) { animation: layerB5 12s linear infinite; }
.print-object i:nth-child(6) { animation: layerB6 12s linear infinite; }
.print-object i:nth-child(7) { animation: layerB7 12s linear infinite; }
.print-object i:nth-child(8) { animation: layerB8 12s linear infinite; }
@keyframes layerB1 { 0% { width: 0; opacity: 1; } 9% { width: 100%; } 94% { width: 100%; opacity: 1; } 97%, 100% { width: 100%; opacity: 0; } }
@keyframes layerB2 { 0%, 11% { width: 0; opacity: 1; } 20% { width: 90%; } 94% { width: 90%; opacity: 1; } 97%, 100% { width: 90%; opacity: 0; } }
@keyframes layerB3 { 0%, 22% { width: 0; opacity: 1; } 31% { width: 94%; } 94% { width: 94%; opacity: 1; } 97%, 100% { width: 94%; opacity: 0; } }
@keyframes layerB4 { 0%, 33% { width: 0; opacity: 1; } 42% { width: 84%; } 94% { width: 84%; opacity: 1; } 97%, 100% { width: 84%; opacity: 0; } }
@keyframes layerB5 { 0%, 44% { width: 0; opacity: 1; } 53% { width: 70%; } 94% { width: 70%; opacity: 1; } 97%, 100% { width: 70%; opacity: 0; } }
@keyframes layerB6 { 0%, 55% { width: 0; opacity: 1; } 64% { width: 56%; } 94% { width: 56%; opacity: 1; } 97%, 100% { width: 56%; opacity: 0; } }
@keyframes layerB7 { 0%, 66% { width: 0; opacity: 1; } 75% { width: 42%; } 94% { width: 42%; opacity: 1; } 97%, 100% { width: 42%; opacity: 0; } }
@keyframes layerB8 { 0%, 77% { width: 0; opacity: 1; } 85% { width: 26%; } 94% { width: 26%; opacity: 1; } 97%, 100% { width: 26%; opacity: 0; } }

/* 打印完成时的星星爆点 */
.print-spark {
  position: absolute;
  bottom: 86px;
  left: 50%;
  margin-left: -8px;
  font-size: 16px;
  color: var(--run);
  text-shadow: 0 0 12px rgba(242, 201, 76, 0.9);
  opacity: 0;
  animation: printSpark 12s linear infinite;
  pointer-events: none;
}
@keyframes printSpark {
  0%, 85% { opacity: 0; transform: scale(0) rotate(0); }
  88% { opacity: 1; transform: scale(1.5) rotate(40deg); }
  91% { opacity: 1; transform: scale(1) rotate(90deg) translateY(-8px); }
  96%, 100% { opacity: 0; transform: scale(0.2) rotate(140deg) translateY(-16px); }
}

/* ---------- 无人机 ---------- */
.drone-scene {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.drone {
  position: relative;
  width: 120px;
  height: 34px;
  animation: droneBob 2.6s ease-in-out infinite;
}
.drone-scene .drone {
  position: absolute;
  left: 50%;
  top: 36px;
  margin-left: -60px;
  animation: droneShow 6.5s ease-in-out infinite;
}
/* 悬停 + 每轮来一个 360° 翻滚 */
@keyframes droneShow {
  0%, 100% { transform: translateY(0) rotate(0); }
  16% { transform: translateY(-9px) rotate(0); }
  33% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-9px) rotate(0); }
  58% { transform: translateY(-3px) rotate(200deg); }
  66% { transform: translateY(0) rotate(360deg); }
  84% { transform: translateY(-9px) rotate(360deg); }
}
/* 两根交叉机臂,X 型布局 */
.drone-arm {
  position: absolute;
  top: 13px; left: 8px; right: 8px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 236, 244, 0.65), rgba(232, 236, 244, 0.3) 50%, rgba(232, 236, 244, 0.65));
}
.drone-arm.arm-a { transform: rotate(7deg); }
.drone-arm.arm-b { transform: rotate(-7deg); }
/* 机身:渐变外壳 + 深色座舱盖 */
.drone-body {
  position: absolute;
  top: 7px; left: 50%;
  width: 44px; height: 15px;
  margin-left: -22px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, rgba(240, 244, 252, 0.95), rgba(168, 178, 200, 0.85));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.drone-body::before {
  content: "";
  position: absolute;
  top: 2px; left: 8px;
  width: 14px; height: 6px;
  border-radius: 4px;
  background: rgba(10, 14, 24, 0.55);
}
/* 航行灯:左红右绿,交替闪 */
.drone-led {
  position: absolute;
  top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
}
.drone-led.led-l {
  left: 13px;
  background: #ff5d5d;
  box-shadow: 0 0 7px rgba(255, 93, 93, 0.9);
  animation: ledBlink 1s steps(2) infinite;
}
.drone-led.led-r {
  right: 13px;
  background: var(--ok);
  box-shadow: 0 0 7px rgba(124, 227, 139, 0.9);
  animation: ledBlink 1s steps(2) infinite 0.5s;
}
@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
/* 云台相机 */
.drone-cam {
  position: absolute;
  top: 22px; left: 50%;
  width: 10px; height: 8px;
  margin-left: -5px;
  border-radius: 3px;
  background: rgba(40, 48, 66, 0.95);
  border: 1px solid rgba(232, 236, 244, 0.3);
}
.drone-cam::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(76, 194, 204, 0.9);
}
/* 起落架 */
.drone-skid {
  position: absolute;
  top: 22px;
  width: 3px; height: 8px;
  border-radius: 2px;
  background: rgba(232, 236, 244, 0.5);
}
.drone-skid::after {
  content: "";
  position: absolute;
  top: 100%; left: -5px;
  width: 13px; height: 2.5px;
  border-radius: 2px;
  background: rgba(232, 236, 244, 0.55);
}
.drone-skid.sk-l { left: 32px; }
.drone-skid.sk-r { right: 32px; }
/* 四桨:外缘两高两低,带电机轴 */
.prop {
  position: absolute;
  width: 30px; height: 4px;
  border-radius: 50%;
  background: rgba(232, 236, 244, 0.55);
  animation: propSpin 0.12s linear infinite alternate;
}
.prop::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(232, 236, 244, 0.9);
}
.prop.p1 { left: -5px; top: 3px; }
.prop.p2 { right: -5px; top: 3px; animation-delay: 0.06s; }
.prop.p3 { left: 14px; top: 19px; animation-delay: 0.03s; }
.prop.p4 { right: 14px; top: 19px; animation-delay: 0.09s; }
@keyframes propSpin {
  from { transform: scaleX(1); opacity: 0.7; }
  to { transform: scaleX(0.2); opacity: 0.3; }
}
@keyframes droneBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
/* 下洗气流:三道往下飘的风线 */
.wind {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 2px; height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(232, 236, 244, 0.45), transparent);
  opacity: 0;
  animation: windDown 1.5s linear infinite;
}
.wind.w1 { margin-left: -26px; }
.wind.w2 { margin-left: -1px; animation-delay: 0.5s; }
.wind.w3 { margin-left: 24px; animation-delay: 1s; }
@keyframes windDown {
  0% { transform: translateY(0) scaleY(0.6); opacity: 0; }
  30% { opacity: 0.7; }
  100% { transform: translateY(26px) scaleY(1.3); opacity: 0; }
}
.drone-shadow {
  position: absolute;
  left: 50%; bottom: 26px;
  width: 56px; height: 8px;
  margin-left: -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  animation: shadowBob 2.6s ease-in-out infinite;
}
@keyframes shadowBob {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(0.78); opacity: 0.3; }
}
.drone-pad {
  position: absolute;
  left: 50%; bottom: 8px;
  width: 44px; height: 44px;
  margin-left: -22px;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- 兴趣小剧场:每个爱好一个迷你动画场景 ---------- */
.chip-scene {
  position: relative;
  height: 116px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

/* vibe coding:迷你编辑器,彩色 token 逐行敲出 */
.scene-code {
  display: flex;
  flex-direction: column;
}
.code-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
}
.code-chrome i {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.code-chrome i:nth-child(1) { background: #ff5f57; }
.code-chrome i:nth-child(2) { background: #febc2e; }
.code-chrome i:nth-child(3) { background: #28c840; }
.code-chrome b {
  margin-left: 6px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.code-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 4px;
  counter-reset: ln;
}
/* 一行 = 行号 + 若干彩色 token,用 width + steps 做打字感 */
.code-line {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 8px;
  width: 0;
  overflow: hidden;
  animation: codeType 6s steps(18) infinite;
}
.code-line::before {
  counter-increment: ln;
  content: counter(ln);
  flex-shrink: 0;
  width: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 8px;
  color: rgba(232, 236, 244, 0.25);
}
.code-line b {
  flex-shrink: 0;
  height: 6px;
  border-radius: 3px;
}
.code-line.l1 b:nth-of-type(1) { width: 26px; background: rgba(139, 92, 246, 0.9); }
.code-line.l1 b:nth-of-type(2) { width: 38px; background: rgba(76, 194, 204, 0.85); }
.code-line.l1 b:nth-of-type(3) { width: 16px; background: rgba(232, 236, 244, 0.35); }
.code-line.l2 { padding-left: 12px; animation-delay: 0.9s; }
.code-line.l2 b:nth-of-type(1) { width: 30px; background: rgba(124, 227, 139, 0.8); }
.code-line.l2 b:nth-of-type(2) { width: 20px; background: rgba(232, 236, 244, 0.35); }
.code-line.l3 { padding-left: 12px; animation-delay: 1.8s; }
.code-line.l3 b:nth-of-type(1) { width: 18px; background: rgba(255, 61, 129, 0.75); }
.code-line.l3 b:nth-of-type(2) { width: 32px; background: rgba(76, 194, 204, 0.85); }
.code-line.l3 b:nth-of-type(3) { width: 20px; background: rgba(242, 201, 76, 0.7); }
.code-line.l4 { animation-delay: 2.7s; }
.code-line.l4 b:nth-of-type(1) { width: 24px; background: rgba(139, 92, 246, 0.9); }
.code-line.l4 b:nth-of-type(2) { width: 14px; background: rgba(232, 236, 244, 0.35); }
/* 行尾光标 */
.code-line.l4::after {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 8px;
  background: rgba(232, 236, 244, 0.7);
  animation: caretBlink 0.9s steps(2) infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes codeType {
  0% { width: 0; opacity: 1; }
  20% { width: 100%; opacity: 1; }
  84% { width: 100%; opacity: 1; }
  92%, 100% { width: 100%; opacity: 0; }
}
/* AI 补全弹窗:周期性冒出来 */
.code-pop {
  position: absolute;
  left: 46%;
  top: 46px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 7px;
  border-radius: 6px;
  background: rgba(14, 18, 30, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: popShow 6s ease infinite;
}
.code-pop i {
  width: 34px; height: 4px;
  border-radius: 2px;
  background: rgba(232, 236, 244, 0.25);
}
.code-pop i:first-child { width: 40px; background: rgba(139, 92, 246, 0.85); }
@keyframes popShow {
  0%, 32% { opacity: 0; transform: translateY(4px); }
  38%, 58% { opacity: 1; transform: translateY(0); }
  64%, 100% { opacity: 0; transform: translateY(4px); }
}
.code-note {
  position: absolute;
  top: 26px; right: 12px;
  font-size: 15px;
  color: var(--accent);
  animation: noteBob 2.2s ease-in-out infinite;
}
@keyframes noteBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.85; }
  50% { transform: translateY(-7px) rotate(8deg); opacity: 1; }
}

/* NAS:四个盘位 + 吞吐量流光 */
.scene-nas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nas-unit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px 8px;
  border-radius: 6px;
  border: 1.5px solid rgba(232, 236, 244, 0.35);
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.92), rgba(0, 0, 0, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.4);
}
/* 面板:铭牌 + 电源呼吸灯 */
.nas-face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 96px;
  margin-bottom: 2px;
}
.nas-face b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: rgba(232, 236, 244, 0.45);
}
.nas-pwr {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(76, 194, 204, 0.9);
  animation: pwrBreathe 2.4s ease-in-out infinite;
}
@keyframes pwrBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* 盘位:抽拉把手 + 通风缝 + 活动灯 */
.nas-bay {
  display: flex;
  align-items: center;
  width: 96px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  position: relative;
}
.nas-bay u {
  position: absolute;
  left: 3px; top: 50%;
  width: 16px; height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(232, 236, 244, 0.25);
}
.nas-bay::after {
  content: "";
  position: absolute;
  left: 25px; right: 12px; top: 50%;
  height: 1px;
  margin-top: -0.5px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 6px);
}
.nas-bay i {
  position: absolute;
  right: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px rgba(124, 227, 139, 0.85);
  animation: nasBlink 1.3s steps(2) infinite;
}
.nas-bay:nth-child(3) i { animation-duration: 0.7s; animation-delay: 0.2s; }
.nas-bay:nth-child(4) i { animation-duration: 1.9s; animation-delay: 0.5s; }
.nas-bay:nth-child(5) i { animation-duration: 0.9s; animation-delay: 0.1s; background: var(--run); box-shadow: 0 0 6px rgba(242, 201, 76, 0.85); }
@keyframes nasBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
.nas-tput {
  width: 114px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.nas-tput b {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 227, 139, 0.55) 30%, rgba(124, 227, 139, 0.95) 50%, rgba(124, 227, 139, 0.55) 70%, transparent);
  box-shadow: 0 0 8px rgba(124, 227, 139, 0.4);
  animation: tputFlow 1.6s linear infinite;
}
@keyframes tputFlow {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}

/* 桌搭:代码屏 + 木桌板 + 外设 + 桌下氛围灯 */
.scene-desk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 22px;
}
.desk-monitor {
  position: relative;
  width: 96px; height: 44px;
  border-radius: 5px;
  border: 1.5px solid rgba(232, 236, 244, 0.4);
  background: rgba(8, 11, 20, 0.92);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}
/* 屏幕反光扫过 */
.desk-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 38%, transparent 46%);
  animation: screenSheen 4.5s ease-in-out infinite;
}
@keyframes screenSheen {
  0%, 100% { transform: translateX(-40%); }
  50% { transform: translateX(60%); }
}
/* 屏幕里的代码行 */
.desk-monitor .mc {
  height: 4px;
  width: 0;
  border-radius: 2px;
  animation: codeType 6s steps(18) infinite;
}
.mc.m1 { max-width: 70%; background: rgba(76, 194, 204, 0.8); }
.mc.m2 { max-width: 48%; background: rgba(139, 92, 246, 0.8); animation-delay: 0.7s; margin-left: 8px; }
.mc.m3 { max-width: 60%; background: rgba(255, 61, 129, 0.6); animation-delay: 1.4s; margin-left: 8px; }
.desk-stand {
  width: 8px; height: 8px;
  background: rgba(232, 236, 244, 0.3);
}
/* 木质桌板 */
.desk-top {
  width: 80%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(128, 96, 72, 0.9), rgba(84, 60, 46, 0.9));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}
/* 桌下 RGB 氛围灯:模糊光晕 + 色相循环 */
.desk-glow {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 56%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(76, 194, 204, 0.55), rgba(139, 92, 246, 0.55), rgba(255, 61, 129, 0.55));
  animation: deskGlowHue 5s linear infinite;
  pointer-events: none;
}
@keyframes deskGlowHue {
  from { filter: blur(7px) hue-rotate(0deg); }
  to { filter: blur(7px) hue-rotate(360deg); }
}
/* 鼠标:滚轮 RGB */
.desk-mouse {
  position: absolute;
  left: 50%; bottom: 24px;
  margin-left: 80px;
  width: 10px; height: 14px;
  border-radius: 5px;
  background: rgba(232, 236, 244, 0.2);
  border: 1px solid rgba(232, 236, 244, 0.35);
}
.desk-mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 3px;
  width: 2px; height: 4px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--accent);
  animation: hueSpin 4s linear infinite;
}
@keyframes hueSpin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
/* 咖啡杯:杯柄 + 两缕热气 */
.desk-mug {
  position: absolute;
  left: 50%; bottom: 24px;
  margin-left: -98px;
  width: 12px; height: 10px;
  border-radius: 2px 2px 4px 4px;
  background: rgba(255, 61, 129, 0.6);
}
.desk-mug::after {
  content: "";
  position: absolute;
  left: 100%; top: 2px;
  width: 4px; height: 5px;
  border: 2px solid rgba(255, 61, 129, 0.6);
  border-left: none;
  border-radius: 0 4px 4px 0;
}
.desk-mug i {
  position: absolute;
  bottom: 100%;
  width: 2px; height: 7px;
  border-radius: 2px;
  background: rgba(232, 236, 244, 0.4);
  animation: steamUp 2.2s ease-in-out infinite;
}
.desk-mug i:nth-child(1) { left: 3px; }
.desk-mug i:nth-child(2) { left: 7px; animation-delay: 1.1s; }
@keyframes steamUp {
  0% { transform: translateY(2px) scaleY(0.5); opacity: 0; }
  40% { opacity: 0.8; }
  100% { transform: translateY(-7px) scaleY(1.3); opacity: 0; }
}
.desk-kb {
  display: flex;
  gap: 3px;
  margin-top: 7px;
}
.desk-kb i {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  animation: kbWave 1.8s ease-in-out infinite;
}
.desk-kb i:nth-child(1) { animation-delay: 0s; }
.desk-kb i:nth-child(2) { animation-delay: 0.12s; }
.desk-kb i:nth-child(3) { animation-delay: 0.24s; }
.desk-kb i:nth-child(4) { animation-delay: 0.36s; }
.desk-kb i:nth-child(5) { animation-delay: 0.48s; }
.desk-kb i:nth-child(6) { animation-delay: 0.6s; }
.desk-kb i:nth-child(7) { animation-delay: 0.72s; }
.desk-kb i:nth-child(8) { animation-delay: 0.84s; }
.desk-kb i:nth-child(9) { animation-delay: 0.96s; }
.desk-kb i:nth-child(10) { animation-delay: 1.08s; }
.desk-kb i:nth-child(11) { animation-delay: 1.2s; }
.desk-kb i:nth-child(12) { animation-delay: 1.32s; }
.desk-kb i:nth-child(13) { animation-delay: 1.44s; }
.desk-kb i:nth-child(14) { animation-delay: 1.56s; }
@keyframes kbWave {
  0%, 100% { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
  18% { background: var(--accent); box-shadow: 0 0 8px rgba(76, 194, 204, 0.8); }
  36% { background: rgba(123, 92, 255, 0.8); box-shadow: 0 0 8px rgba(123, 92, 255, 0.6); }
}

/* 智能设备:中枢网关 + 设备沿轨道在线巡航 */
.scene-iot { overflow: hidden; }
.iot-hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  box-shadow: 0 0 16px rgba(76, 194, 204, 0.9);
}
.iot-hub::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #fff;
  animation: pwrBreathe 1.6s ease-in-out infinite;
}
.iot-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  border: 1px solid rgba(76, 194, 204, 0.5);
  border-radius: 50%;
  animation: iotRipple 2.6s ease-out infinite;
}
.iot-ring.r2 { animation-delay: 1.3s; }
@keyframes iotRipple {
  0% { transform: scale(0.25); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* 虚线轨道,设备挂在轨道上绕行 */
.iot-orbit {
  position: absolute;
  left: 50%; top: 50%;
  border: 1px dashed rgba(232, 236, 244, 0.16);
  border-radius: 50%;
  animation: orbitSpin 10s linear infinite;
}
.iot-orbit.o1 { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.iot-orbit.o2 {
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  animation-duration: 16s;
  animation-direction: reverse;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.iot-dev {
  position: absolute;
  width: 10px; height: 10px;
  animation: devPing 3s ease-in-out infinite;
}
.iot-orbit.o1 .iot-dev { top: -5px; left: 50%; margin-left: -5px; }
.iot-orbit.o2 .iot-dev:nth-child(1) { top: 50%; left: -5px; margin-top: -5px; }
.iot-orbit.o2 .iot-dev:nth-child(2) { top: 50%; right: -5px; margin-top: -5px; animation-delay: 1.5s; }
@keyframes devPing {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.8); }
}
/* 设备造型:灯泡 / 摄像头 / 智能插座 */
.dev-bulb {
  border-radius: 50%;
  background: rgba(242, 201, 76, 0.8);
  box-shadow: 0 0 9px rgba(242, 201, 76, 0.55);
}
.dev-bulb::after {
  content: "";
  position: absolute;
  left: 3px; top: 100%;
  width: 4px; height: 3px;
  border-radius: 0 0 2px 2px;
  background: rgba(232, 236, 244, 0.4);
}
.dev-cam {
  border-radius: 3px;
  background: rgba(232, 236, 244, 0.3);
}
.dev-cam::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(76, 194, 204, 0.9);
}
.dev-plug {
  border-radius: 50%;
  border: 2px solid rgba(124, 227, 139, 0.7);
}
.dev-plug::after {
  content: "";
  position: absolute;
  left: 50%; top: 1px;
  width: 2px; height: 4px;
  margin-left: -1px;
  background: rgba(124, 227, 139, 0.8);
}

/* 前沿技术:雷达扫描发现新目标 */
.scene-radar { overflow: hidden; }
/* 外圈刻度环:虚线模拟角度刻度 */
.radar-ticks {
  position: absolute;
  left: 50%; top: 50%;
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 236, 244, 0.22);
}
.radar-disc,
.radar-sweep {
  position: absolute;
  left: 50%; top: 50%;
  width: 74px; height: 74px;
  margin: -37px 0 0 -37px;
  border-radius: 50%;
}
.radar-disc {
  border: 1px solid rgba(232, 236, 244, 0.25);
  background: radial-gradient(circle, rgba(76, 194, 204, 0.07), transparent 70%);
}
.radar-disc::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 236, 244, 0.15);
  border-radius: 50%;
}
/* 十字基准线 */
.radar-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(232, 236, 244, 0.12) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(232, 236, 244, 0.12) 50%, transparent calc(50% + 0.5px));
}
/* 扫描扇区 + 亮边扫描线 */
.radar-sweep {
  background: conic-gradient(from 0deg, rgba(76, 194, 204, 0.5), rgba(76, 194, 204, 0.12) 55deg, transparent 90deg);
  animation: radarSpin 3s linear infinite;
}
.radar-sweep::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1.5px; height: 50%;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(76, 194, 204, 0.95), transparent);
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}
/* 目标点:闪现 + 扩散涟漪 */
.radar-blip {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: blipFlash 3s linear infinite;
}
.radar-blip::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(76, 194, 204, 0.7);
  opacity: 0;
  animation: blipRing 3s linear infinite;
  animation-delay: inherit;
}
.radar-blip.b1 { left: 38%; top: 30%; animation-delay: 1.1s; }
.radar-blip.b2 { right: 36%; bottom: 28%; animation-delay: 2.3s; }
.radar-blip.b3 { left: 58%; top: 58%; animation-delay: 0.4s; }
@keyframes blipFlash {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  4% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 10px var(--accent); }
  30% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0; }
}
@keyframes blipRing {
  0%, 3% { opacity: 0; transform: scale(0.4); }
  10% { opacity: 0.9; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(2.6); }
}

/* ---------- 无人机飞越彩蛋 ---------- */
.drone-flyby {
  position: fixed;
  top: 16vh;
  left: -140px;
  z-index: 1001; /* 高于终端遮罩,在终端里呼叫也能看到 */
  pointer-events: none;
  opacity: 0;
}
.drone-flyby.fly {
  opacity: 1;
  animation: flyAcross 8s linear forwards;
}
.drone-flyby .drone { animation: droneBob 1.1s ease-in-out infinite; }

/* 无人机拖的横幅 */
.drone-banner {
  position: absolute;
  right: calc(100% + 14px);
  top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(8, 11, 20, 0.85);
  border: 1px solid rgba(76, 194, 204, 0.4);
  border-radius: 4px;
  padding: 3px 10px;
  transform-origin: right center;
  animation: bannerSwing 1.4s ease-in-out infinite;
}
.drone-banner::after {
  content: "";
  position: absolute;
  left: 100%; top: 50%;
  width: 14px; height: 1.5px;
  background: rgba(232, 236, 244, 0.5);
}
@keyframes bannerSwing {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(3px); }
}
.drone-scene .drone-banner { display: none; }
@keyframes flyAcross {
  0% { transform: translateX(0) translateY(0) rotate(4deg); }
  30% { transform: translateX(32vw) translateY(-4vh) rotate(-3deg); }
  60% { transform: translateX(64vw) translateY(3vh) rotate(4deg); }
  100% { transform: translateX(calc(100vw + 280px)) translateY(-2vh) rotate(-2deg); }
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-printer { grid-row: auto; }
  .card-printer .printer { min-height: 170px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card-printer, .card-drone, .card-desk { grid-column: span 1; }
}

@media (max-width: 640px) {
  .bento-card { padding: 18px 18px 22px; }
  .printer, .drone-scene { height: 130px; }
  .drone-flyby { top: 12vh; }
  .bands { margin-top: -20px; }
  .band-solid .band-track { font-size: 11px; padding: 8px 0; }
  .band-ghost .band-track { font-size: 18px; padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .drone-flyby { display: none; }
}
