:root {
  --paper: #f2f0e9;
  --ink: #141414;
  --gray: #9a9994;
  --gray-2: #d9d7cf;
  --win: #e6e4dc;
  --accent: #ff4f1f;
  --muted: #6d6c67;
  --sans: "Helvetica Neue", "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--mono); letter-spacing: 0; }
.small { font-size: 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- 复古窗口 ---------- */
.win {
  background: var(--win);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.win-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.win-bar i {
  width: 10px; height: 10px;
  border: 1px solid var(--paper);
  display: inline-block;
}
.win-body { padding: 10px 12px; }
.win-body p + p { margin-top: 2px; }

.btn-pixel {
  display: inline-block;
  margin-top: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
}
.btn-pixel:hover { background: var(--accent); }

/* ---------- 开机 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .4s, visibility .4s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-win { width: 300px; }
.progress {
  position: relative;
  margin-top: 10px;
  height: 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.progress em {
  position: absolute; left: 6px; top: 0;
  font-style: normal; font-size: 11px; line-height: 16px;
  color: var(--paper); mix-blend-mode: difference;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  padding: 6px 12px;
  font-weight: 600;
}
.nav-logo b { font-weight: 400; color: var(--muted); }
.mark { width: 16px; height: 16px; background: var(--ink); position: relative; }
.mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 3px; background: var(--accent); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { background: var(--paper); padding: 6px 10px; }
.nav-links a:hover, .nav-logo:hover { background: var(--ink); color: var(--paper); }
.nav-cta { background: var(--ink); color: var(--paper); padding: 6px 14px; }
.nav-cta:hover { background: var(--accent); }

/* ---------- 桌面 Hero ---------- */
.desk {
  background: var(--gray);
  background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1px);
  background-size: 4px 4px;
  min-height: max(100vh, 1000px);
  position: relative;
  padding: 90px var(--pad) 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
/* 背景里用 0/1 比特拼出的「一字节」，平时几乎隐形，扫描光与鼠标经过时显形 */
.desk .tool, .desk .news, .desk .sticky, .desk .icons, .desk .wire, .desk .cursor-bot { transition: opacity .5s ease, filter .5s ease; }
.desk.xray .tool, .desk.xray .news, .desk.xray .sticky, .desk.xray .icons, .desk.xray .wire, .desk.xray .cursor-bot { opacity: .1; filter: blur(1px); }
.desk.xray { cursor: crosshair; }
.desk-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.desk-grid {
  display: flex; flex-direction: row; align-items: flex-start; justify-content: center;
  margin-top: 0;
  flex: 1;
}
.news-group { display: flex; align-items: flex-start; }
.news { width: min(340px, 100%); }
/* JS 按字形计算位置后接管布局 */
.desk.auto-layout .news-group { display: contents; }
.desk.auto-layout .news { position: absolute; z-index: 1; width: 330px; }
.desk.auto-layout .wire { display: none; }
.desk.auto-layout .tool, .desk.auto-layout .sticky { margin-left: 0; right: auto; }
.lay-hidden { display: none !important; }
.news .win-body p:first-child { font-weight: 700; }
.wire { width: 44px; height: 26px; margin-top: 44px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); flex: none; }
.tool { position: absolute; width: 190px; cursor: grab; }
.tool.dragging { cursor: grabbing; z-index: 5; }
/* 布局围绕背景里的「一字节」：字体宽 25vw、垂直居中，组件放在字的上下带和「一」上下的空隙里 */
.clock { left: 2%; top: 60px; }
.term { left: 2%; top: 190px; width: 310px; }
.life { right: 7%; top: 60px; }
.byte { left: 38.5%; top: 222px; width: 220px; }
.install { left: 55%; top: 222px; width: 220px; }
.tokens { left: 71%; top: 222px; width: 210px; }
.mcp { left: 3%; top: 548px; width: 430px; }
.snake { left: 35%; top: 700px; width: 200px; }
.pong { left: 50%; top: 700px; width: 232px; }
.spiro { left: 67%; top: 700px; width: 220px; }
.music { right: 1.5%; top: 710px; width: 210px; }
.sticky {
  position: absolute; left: 24.5%; top: 245px; width: 160px;
  background: #ffe36e; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg); font-size: 14px; line-height: 1.8; cursor: grab;
}
.sticky p { padding: 8px 12px 12px; }
.sticky-bar { background: #e8c93f; color: var(--ink); }
.sticky.dragging { cursor: grabbing; z-index: 5; }
#term { font-family: var(--mono); font-size: 12px; line-height: 1.55; height: 150px; overflow: hidden; white-space: pre-wrap; word-break: break-all; }
#term .ok { color: #1f9d55; }
#term .hl { color: var(--accent); }
#pong, #spark { display: block; width: 100%; background: var(--ink); border: 1px solid var(--ink); }
#spark { background: var(--paper); height: 50px; }
.pong .row, .tokens .row { margin-top: 6px; }
#tps { font-size: 18px; }
.bits { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 8px; }
.bits i {
  aspect-ratio: 1; border: 1px solid var(--ink); background: var(--paper);
  font-style: normal; font-size: 12px; display: grid; place-items: center; transition: background .15s, color .15s;
}
.bits i.on { background: var(--ink); color: var(--paper); }
.bits i.on:nth-child(8) { background: var(--accent); border-color: var(--accent); }
.cursor-bot {
  position: absolute; left: 50%; top: 60%; z-index: 6; pointer-events: none;
  transition: left 1.2s cubic-bezier(.6,0,.3,1), top 1.2s cubic-bezier(.6,0,.3,1);
}
.cursor-bot span {
  position: absolute; left: 16px; top: 20px; white-space: nowrap;
  background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; padding: 1px 6px;
}
.cursor-bot.click svg { transform: scale(.85); }
.ticker { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--win); font-size: 12px; margin: 16px 0 14px; }
.ticker div { display: inline-block; white-space: nowrap; padding: 5px 0; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* 神游 × MCP 聊天 */
.mcp-status { padding: 5px 12px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.mcp-log {
  height: 196px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  font-family: var(--sans); font-size: 13px; line-height: 1.55;
}
.msg { max-width: 85%; padding: 6px 10px; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg-agent { align-self: flex-start; background: var(--paper); border: 1px solid var(--ink); }
.msg-who { display: block; font-family: var(--mono); font-size: 10px; opacity: .6; margin-bottom: 1px; }
.msg-tool {
  align-self: stretch; font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  border: 1px dashed var(--ink); padding: 6px 10px; background: rgba(255,79,31,.08);
}
.msg-tool b { color: var(--accent); font-weight: 600; }
.msg-tool .res { color: #1f9d55; display: block; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; background: var(--ink); animation: blink .9s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* 贪吃蛇 / 繁花 / 音乐 / 安装 */
#snake { display: block; width: 100%; background: var(--paper); border: 1px solid var(--ink); image-rendering: pixelated; }
.snake .row, .install .small + .progress { margin-top: 6px; }
#spiro { display: block; width: 100%; background: #fff; border: 1px solid var(--ink); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.eq i { flex: 1; background: var(--accent); height: 30%; transition: height .15s; }
.song { font-family: var(--sans); font-weight: 600; margin: 6px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { height: 4px; background: var(--gray-2); margin-bottom: 4px; }
.track span { display: block; height: 100%; width: 0; background: var(--ink); }
.install .progress + .small { margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 桌面图标 */
.icons { position: absolute; right: 1%; top: 70px; display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.icon {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-size: 20px; font-weight: 700; background: var(--paper);
}
.ico-shenyo { background: #e8edb1; }
.ico-throne { background: var(--ink); color: #ffd23f; }
.ico-mail { font-family: var(--mono); }
.icon em { font-style: normal; font-family: var(--mono); font-size: 11px; padding: 0 3px; background: rgba(242,240,233,.85); }
.icon:hover em, .icon:focus-visible em { background: var(--ink); color: var(--paper); }
.icon:hover .ico { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }


/* ---------- 弹窗 ---------- */
.link-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
button.btn { font: inherit; font-weight: 500; cursor: pointer; }
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20,20,20,.45);
  background-image: radial-gradient(rgba(0,0,0,.25) 1px, transparent 1px); background-size: 4px 4px;
}
.modal[hidden] { display: none; }
.modal-win { width: min(380px, 100%); animation: pop .25s cubic-bezier(.3,1.4,.5,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal-win .win-body { padding: 26px 24px 24px; font-family: var(--sans); font-size: 15px; }
.modal-x { background: none; border: 1px solid var(--paper); color: var(--paper); width: 16px; height: 16px; line-height: 12px; cursor: pointer; font-size: 13px; }
.modal-crown { font-size: 44px; line-height: 1; color: var(--accent); }
.modal-win h3 { font-size: 28px; letter-spacing: -.02em; margin: 8px 0 14px; }
.search-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 6px;
  padding: 10px 26px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 22px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.search-pill:hover { background: #07c160; color: #fff; }
.search-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.modal-sub { margin: 16px 0 20px; color: #3a3a37; }
.clock .big { font-size: 26px; font-weight: 700; margin-top: 4px; }
#life { display: block; width: 100%; image-rendering: pixelated; background: var(--paper); border: 1px solid var(--ink); }
.life .small { margin-top: 6px; text-align: center; }
.desk-caption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 500;
}
.desk-caption .dots { width: 90px; border-bottom: 2px dotted var(--ink); }

/* ---------- 巨型标题 ---------- */
.hero { position: relative; padding: 5vh var(--pad) 10vh; }
.vertical {
  position: absolute; left: calc(var(--pad) + 10px); top: 6vh;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10px; color: var(--muted);
}
.mega {
  font-size: clamp(56px, 11.5vw, 190px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 700;
  text-align: center;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 560px) auto;
  justify-content: space-between; align-items: end; gap: 30px;
  margin-top: 8vh;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.hero-foot p + p { margin-top: 6px; }
.hero-actions, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 通用段落头 ---------- */
section { scroll-margin-top: 40px; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 60px; }
.sec-head .small { padding-top: 14px; color: var(--muted); }
.sec-head h2 {
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 700;
}

/* ---------- 演进 ---------- */
.evo { padding: 12vh var(--pad); border-top: 1px solid var(--ink); }
.evo-track {
  display: flex; align-items: center;
  margin-bottom: 80px;
}
.evo-node {
  flex: 1;
  border: 1px solid var(--ink);
  padding: 20px;
  min-height: 150px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.evo-node .mono { font-size: 12px; color: var(--muted); }
.evo-node b { font-size: 34px; letter-spacing: -.02em; }
.evo-node small { color: var(--muted); font-size: 14px; }
.evo-node.on { background: var(--ink); color: var(--paper); }
.evo-node.on small, .evo-node.on .mono { color: var(--gray-2); }
.evo-node em {
  position: absolute; right: 12px; top: 12px;
  font-style: normal; font-family: var(--mono); font-size: 12px;
  background: var(--accent); color: #fff; padding: 1px 8px;
}
.evo-arrow { width: 50px; height: 1px; background: var(--ink); position: relative; flex: none; }
.evo-arrow::after {
  content: ""; position: absolute; right: 0; top: -4px;
  border-left: 8px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols3 h3 { font-size: 24px; margin-bottom: 10px; letter-spacing: -.01em; }
.cols3 h3::before { content: "■ "; color: var(--accent); font-size: 14px; vertical-align: 3px; }
.cols3 p { color: #3a3a37; }

/* ---------- Base64 条 ---------- */
.b64 {
  background: var(--ink); color: #5d5c58;
  padding: 18px var(--pad);
  font-size: 11px; line-height: 1.4;
  display: flex; gap: 20px;
  overflow: hidden;
}
.b64 span { color: var(--accent); flex: none; }
.b64 p { word-break: break-all; max-height: 4.2em; overflow: hidden; }

/* ---------- 产品 ---------- */
.products { padding: 12vh var(--pad); }
.prod {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  border-top: 1px solid var(--ink);
  padding: 60px 0 90px;
  align-items: center;
}
.prod.rev .prod-copy { order: 2; }
.tag { font-size: 12px; color: var(--muted); }
.prod-name {
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1; letter-spacing: -.04em; font-weight: 700;
  margin: 10px 0 14px;
}
.prod-name span { font-size: .22em; letter-spacing: 0; font-weight: 400; margin-left: 14px; color: var(--muted); vertical-align: .2em; font-family: var(--mono); }
.prod-lead { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.prod-copy > p:not(.tag):not(.prod-lead) { color: #3a3a37; max-width: 520px; }
.specs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 30px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.specs li { padding: 14px 0; display: flex; flex-direction: column; }
.specs li + li { border-left: 1px solid var(--gray-2); padding-left: 14px; }
.specs b { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.specs span { font-size: 13px; color: var(--muted); }

.prod-visual {
  background: var(--gray);
  background-image: radial-gradient(rgba(0,0,0,.12) 1px, transparent 1px);
  background-size: 4px 4px;
  min-height: 460px;
  position: relative;
  display: grid; place-items: center;
  padding: 40px 20px;
}
.rec { width: min(320px, 90%); position: absolute; left: 8%; top: 12%; }
.ask { width: min(300px, 88%); position: absolute; right: 7%; bottom: 12%; }
.rec-time { font-size: 44px; font-weight: 700; margin: 6px 0; }
.live { color: var(--accent); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-bottom: 8px; }
.wave i { flex: 1; background: var(--ink); height: 20%; transition: height .12s; }
.ask .q { background: var(--ink); color: var(--paper); padding: 6px 10px; margin-left: 30px; margin-bottom: 8px; }
.ask .a { min-height: 60px; margin-bottom: 6px; font-family: var(--sans); font-size: 14px; }
.ask .a::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }

.board-win { width: min(360px, 100%); }
#board { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--ink); margin-bottom: 8px; }

.more { border-top: 1px solid var(--ink); padding-top: 30px; }
.more-t { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -.02em; color: var(--gray); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 数字 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: var(--paper);
}
.stats div { padding: 60px var(--pad); border-right: 1px solid #333; }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats div:nth-child(2) b { color: var(--accent); }
.stats span { color: var(--gray); font-size: 14px; }

/* ---------- 关于 ---------- */
.about { padding: 12vh var(--pad); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; font-weight: 500; }
.facts div { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--ink); padding: 14px 0; }
.facts div:last-child { border-bottom: 1px solid var(--ink); }
.facts dt { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 12vh var(--pad); border-top: 1px solid var(--ink); }
.faq-list { max-width: 980px; margin-left: 220px; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  font-size: clamp(18px, 2vw, 24px); font-weight: 600;
  padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-weight: 400; font-size: 26px;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p { padding: 0 40px 24px 0; color: #3a3a37; max-width: 760px; }

/* ---------- 联系 ---------- */
.contact { padding: 14vh var(--pad); border-top: 1px solid var(--ink); text-align: center; }
.contact .small { color: var(--muted); margin-bottom: 20px; }
.mega-2 { font-size: clamp(48px, 9vw, 150px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.mail {
  display: inline-block; margin-top: 40px;
  font-family: var(--mono); font-size: clamp(18px, 2.4vw, 28px);
  border-bottom: 2px solid var(--ink); padding-bottom: 4px;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 页脚 ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 50px var(--pad) 30px; }
.foot .nav-logo { background: none; padding: 0; margin-bottom: 10px; }
.foot .nav-logo b { color: var(--gray); }
.foot .mark { background: var(--paper); }
.foot .muted { color: var(--gray); }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-top nav a:hover, .foot-top nav button:hover, .foot-bottom a:hover { color: var(--accent); }
.b64-foot { color: #4a4945; margin: 50px 0 20px; word-break: break-all; }
.foot-bottom { display: flex; gap: 8px 28px; flex-wrap: wrap; color: var(--gray); border-top: 1px solid #333; padding-top: 20px; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .tool { position: relative; left: auto; right: auto; top: auto; margin: 20px auto 0; }
  /* 移动端同样由 JS 按字形排布；只保留少量组件，放不下的由 JS 自动隐藏 */
  .tokens, .sticky, .cursor-bot, .spiro, .music, .install, .icons { display: none; }
  .desk { min-height: max(100svh, 980px); }
  .desk.auto-layout .tool { position: absolute; margin: 0; }
  .desk.auto-layout .news { width: min(290px, calc(100vw - 24px)); }
  .term { width: min(330px, calc(100vw - 24px)); }
  .mcp { width: calc(100vw - 28px); }
  .clock { width: 170px; }
  .life { width: 150px; }
  .byte { width: 190px; }
  .snake { width: 160px; }
  .pong { width: 180px; }
  .desk-grid { gap: 0; flex-direction: column; align-items: center; margin-top: 4vh; }
  .news-group { flex-direction: column; align-items: center; width: 100%; }
  .wire { width: 60px; height: 26px; margin-top: 0; border: 0; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
  .mcp-log { height: 140px; }
  .vertical { display: none; }
  .desk-caption { flex-direction: column; gap: 2px; margin-top: 24px; }
  .desk-caption .dots { display: none; }
  .hero-foot, .prod, .about-grid, .cols3 { grid-template-columns: 1fr; }
  .prod.rev .prod-copy { order: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 36px; }
  .sec-head .small { padding-top: 0; }
  .faq-list { margin-left: 0; }
  .evo-track { flex-direction: column; align-items: stretch; }
  .evo-arrow { width: 1px; height: 30px; margin: 0 auto; }
  .evo-arrow::after { right: -4px; top: auto; bottom: 0; border-top: 8px solid var(--ink); border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 0; }
  .evo-node { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div { border-bottom: 1px solid #333; padding: 36px var(--pad); }
  .prod-visual { min-height: 520px; }
  .rec { left: 5%; top: 6%; }
  .ask { right: 5%; bottom: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
