@font-face { font-family: "JetBrains Mono"; src: url("assets/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@property --corner { syntax: "<length>"; inherits: false; initial-value: 14px; }

:root {
  color-scheme: only light;
  --ink: #070b14;
  --ink-2: #0d1424;
  --ink-line: #1b2640;
  --paper: #e9edf3;
  --paper-2: #f5f7fb;
  --paper-line: #cbd3df;
  --text: #0b1220;
  --text-2: #4d586c;
  --text-3: #8a95a8;
  --on-ink: #e8edf6;
  --on-ink-2: #8f9bb3;
  --blue: #2f62ff;
  --blue-bright: #5b8cff;
  --blue-deep: #1a3cc4;
  --cyan: #22d3ee;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { color: white; background: var(--blue); }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(1200px, calc(100% - 96px)); margin: auto; }
.skip-link { position: fixed; left: 24px; top: -70px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.prompt { color: var(--blue-bright); }
.cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: .2em; vertical-align: -.15em; background: var(--cyan); animation: blink 1.1s step-end infinite; }

/* 终端选区式的四角括号，悬停时向外延展 */
.corners { position: relative; }
.corners::before { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; --c: var(--corner-color, var(--blue)); background:
  linear-gradient(var(--c) 0 0) top left / var(--corner) 2px, linear-gradient(var(--c) 0 0) top left / 2px var(--corner),
  linear-gradient(var(--c) 0 0) top right / var(--corner) 2px, linear-gradient(var(--c) 0 0) top right / 2px var(--corner),
  linear-gradient(var(--c) 0 0) bottom left / var(--corner) 2px, linear-gradient(var(--c) 0 0) bottom left / 2px var(--corner),
  linear-gradient(var(--c) 0 0) bottom right / var(--corner) 2px, linear-gradient(var(--c) 0 0) bottom right / 2px var(--corner);
  background-repeat: no-repeat; transition: --corner .4s var(--ease); }
.corners:hover::before { --corner: 28px; }

/* 键帽按钮：底边做出键程，按下时下沉 */
.key-button { display: inline-flex; align-items: center; gap: 18px; padding: 13px 18px 13px 22px; border-radius: 6px; background: var(--blue); color: white; font-weight: 600; font-size: 15px; box-shadow: inset 0 1px #ffffff40, 0 4px 0 var(--blue-deep), 0 10px 30px #2f62ff40; transition: transform .12s, box-shadow .12s, background .2s; }
.key-button kbd { display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 4px; background: #ffffff24; font: 700 12px var(--mono); }
.key-button:hover { background: #3d6dff; }
.key-button:active { transform: translateY(3px); box-shadow: inset 0 1px #ffffff40, 0 1px 0 var(--blue-deep), 0 4px 14px #2f62ff30; }
.key-button.ghost { background: #ffffff08; color: var(--on-ink); box-shadow: inset 0 0 0 1px #ffffff26, 0 4px 0 #ffffff14; }
.key-button.ghost kbd { background: #ffffff14; }
.key-button.ghost:hover { background: #ffffff12; }
.key-button.ghost:active { box-shadow: inset 0 0 0 1px #ffffff26, 0 1px 0 #ffffff14; }
.key-button.small { padding: 8px 10px 8px 15px; font-size: 13px; gap: 12px; box-shadow: inset 0 1px #ffffff40, 0 3px 0 var(--blue-deep); }
.key-button.small kbd { min-width: 22px; height: 20px; font-size: 11px; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 20; background: #070b14d9; backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid #ffffff10; color: var(--on-ink); }
.header-inner { width: min(1200px, calc(100% - 96px)); margin: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--mono); letter-spacing: -.5px; }
.brand-mark { width: 22px; height: 22px; background:
  linear-gradient(var(--blue-bright) 0 0) 3px 5px / 4px 4px, linear-gradient(var(--blue-bright) 0 0) 7px 9px / 4px 4px, linear-gradient(var(--blue-bright) 0 0) 3px 13px / 4px 4px, linear-gradient(var(--cyan) 0 0) 12px 15px / 7px 3px, #13203e;
  background-repeat: no-repeat; border-radius: 4px; box-shadow: inset 0 0 0 1px #5b8cff40; }
nav { display: flex; align-items: center; gap: 30px; }
#nav > a:not(.key-button) { color: var(--on-ink-2); font-size: 14px; transition: color .2s; }
#nav > a:not(.key-button):hover { color: white; }
.menu-toggle { display: none; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* 首屏：点阵与扫描线的深色底，像素字标为视觉中心 */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-ink); padding-top: 92px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(#8fb0ff1c 1px, transparent 1.4px) 0 0 / 22px 22px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black, transparent); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; right: -200px; top: -120px; background: radial-gradient(closest-side, #2f62ff38, #22d3ee10 60%, transparent); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: end; padding-bottom: 72px; }
.hero-side { padding-bottom: 6px; }
.hero-tag { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: var(--on-ink-2); font-size: 14px; }
.tag-bracket { color: var(--blue-bright); font: 700 12px var(--mono); letter-spacing: .16em; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero .wordmark { max-width: 560px; margin-bottom: 34px; }
.wordmark .px { transform-box: fill-box; transform-origin: center bottom; transition: transform .35s var(--ease), filter .35s; }
.wordmark .px.lit { transform: translateY(-3px); filter: brightness(1.45); }
.wordmark.booting .px { animation: pixel-in .5s var(--ease) both; animation-delay: var(--d); }
.wordmark.booting .edge { animation: fade-in .8s ease both; animation-delay: calc(var(--d) + .25s); }
h1 { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 em { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, var(--blue-bright), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { margin: 0; max-width: 470px; color: var(--on-ink-2); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: #6d7a93; font: 11px var(--mono); letter-spacing: .14em; }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; background: var(--blue-bright); }
/* 首屏截图叠放：前卡完整展示，后卡错开压暗，轮换时先错开再交换 */
.hero-stage { padding-bottom: 104px; }
.stage-deck { position: relative; display: grid; padding: 5% 8% 0 0; animation: rise 1.1s var(--ease) .25s both; }
.stage-card { grid-area: 1 / 1; margin: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 50px 120px #000b, 0 0 0 1px #ffffff14; transform-origin: 100% 0; transition: transform .8s var(--ease), filter .8s var(--ease); }
.stage-card img { display: block; width: 100%; height: auto; }
.stage-card.is-front { z-index: 2; }
.stage-card.is-back { z-index: 1; transform: translate(8.5%, -6.5%) scale(.9); filter: brightness(.5) saturate(.7); cursor: pointer; }
.stage-card.is-back:hover { transform: translate(9.2%, -7.4%) scale(.9); filter: brightness(.68) saturate(.85); }
.is-shuffling .stage-card.is-front { transform: translate(-4%, 5%) rotate(-1.2deg); }
.is-shuffling .stage-card.is-back { transform: translate(14%, -10%) scale(.93) rotate(1deg); filter: brightness(.85); }
.stage-theme { position: absolute; top: 0; left: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #ffffff1f; border-radius: 999px; background: #0b1120cc; color: var(--on-ink-2); font: 12px var(--mono); letter-spacing: .08em; backdrop-filter: blur(8px); transition: color .2s, border-color .2s; }
.stage-theme:hover { color: white; border-color: var(--blue-bright); }
.stage-theme b { color: var(--on-ink); font-weight: 700; }
.stage-command { position: absolute; left: -32px; bottom: -34px; z-index: 3; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 16px 22px; background: var(--blue); color: white; font: 700 18px var(--mono); box-shadow: 0 20px 40px #0008; animation: float 6s ease-in-out infinite; }
.stage-command .prompt { color: #bcd0ff; }
.stage-command .cursor { background: white; }
.stage-command small { margin-left: 14px; color: #c9d7ff; font: 12px var(--sans); }

/* 水平滚动的命令条 */
.ticker { position: relative; overflow: hidden; border-block: 1px solid #ffffff14; background: #0b1120; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; color: #6d7a93; font-size: 13px; white-space: nowrap; border-right: 1px solid #ffffff0e; }
.ticker-track b { color: var(--on-ink); font: 700 13px var(--mono); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* 通用区块 */
.section { padding: 120px 0; position: relative; }
.paper { background: var(--paper); }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(#0b12200f 1px, transparent 1.4px) 0 0 / 22px 22px; mask-image: linear-gradient(transparent, black 30%, black 70%, transparent); }
.ink { background: var(--ink); color: var(--on-ink); }
.paper > .container, .ink > .container { position: relative; }
.section-label { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: var(--text); font: 700 12px var(--mono); letter-spacing: .18em; }
.section-label span { color: var(--blue); }
.section-label i { flex: 1; height: 1px; background: currentColor; opacity: .18; }
.ink .section-label, .install .section-label { color: var(--on-ink); }
.ink .section-label span { color: var(--blue-bright); }
h2 { margin: 0; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading > p, .section-description { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.ink .section-description { color: var(--on-ink-2); }

/* 工具箱 bento */
.system-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.system-tools .card-top { flex-direction: column; gap: 6px; }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 34px; background: var(--paper-2); border: 1px solid var(--paper-line); transition: transform .4s var(--ease), box-shadow .4s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px #0b122014; }
.tool-card p { margin: 14px 0 0; color: var(--text-2); font-size: 15px; }
.card-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 26px; font: 11px var(--mono); letter-spacing: .12em; }
.card-index { color: var(--blue); font-weight: 700; }
.card-command { color: var(--text-3); letter-spacing: 0; }
.dark-card { grid-row: span 2; background: var(--ink-2); border-color: var(--ink-line); color: var(--on-ink); --corner-color: var(--cyan); }
.dark-card p { color: var(--on-ink-2); }
.dark-card .card-index { color: var(--blue-bright); }
.dark-card .card-command { color: #6d7a93; }
.card-shot { margin: 30px 0 4px; border: 1px solid var(--ink-line); overflow: hidden; }
.card-shot img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.dark-card:hover .card-shot img { transform: scale(1.025); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.chips li { padding: 5px 10px; border: 1px solid var(--paper-line); color: var(--text-2); font: 12px var(--mono); }
.dark-card .chips li { border-color: var(--ink-line); color: var(--on-ink-2); }
.card-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--paper-line); color: var(--blue); font-size: 14px; font-weight: 600; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }
.dark-card .card-link { border-color: var(--ink-line); color: var(--blue-bright); }
.tool-index { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; margin-top: 20px; padding: 22px 30px; border: 1px solid var(--paper-line); background: #f5f7fb99; }
.tool-index-label { color: var(--text-3); font-size: 13px; }
.tool-index ul { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.tool-index li { display: flex; flex-direction: column; font-size: 13px; line-height: 1.6; color: var(--text-3); }
.tool-index li b { color: var(--text); font-size: 15px; }
.tool-index > a { color: var(--blue); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* 键盘与界面预览 */
.ink::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(#ffffff05 0 1px, transparent 1px 4px); mask-image: linear-gradient(90deg, transparent, black 40%, black 60%, transparent); }
.preview-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 72px; align-items: center; }
.preview-copy h2 { font-size: clamp(34px, 3.4vw, 48px); }
.preview-copy .section-description { margin-top: 22px; }
.keyboard { display: grid; gap: 10px; margin-top: 44px; }
.key-row { display: flex; gap: 10px; }
.keycap { display: grid; place-items: center; min-width: 58px; height: 54px; padding: 0 14px; border-radius: 8px; background: linear-gradient(#1a2440, #121a30); color: #b9c6de; font: 700 15px var(--mono); box-shadow: inset 0 1px #ffffff1a, inset 0 0 0 1px #ffffff0d, 0 5px 0 #070b14, 0 6px 0 #22304f; transition: transform .1s, box-shadow .1s, color .2s, background .2s; }
.keycap.wide { min-width: 132px; }
.keycap.pressed { transform: translateY(4px); color: white; background: linear-gradient(#3a6bff, #2a57e8); box-shadow: inset 0 1px #ffffff40, 0 1px 0 #070b14, 0 2px 0 var(--blue-deep), 0 0 30px #2f62ff66; }
.key-readout { display: flex; gap: 10px; align-items: baseline; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--ink-line); color: var(--on-ink-2); font-size: 15px; }
.key-readout b { color: white; font: 700 15px var(--mono); }
.preview-workspace { min-width: 0; }
.preview-tabs { flex-wrap: wrap; display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 16px; border-bottom: 1px solid var(--ink-line); }
.preview-tabs button { position: relative; padding: 12px 16px; border: 0; background: none; color: #6d7a93; font-size: 13px; transition: color .2s; }
.preview-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-bright); transform: scaleX(0); transition: transform .35s var(--ease); }
.preview-tabs button:hover { color: var(--on-ink); }
.preview-tabs button.active { color: white; }
.preview-tabs button.active::after { transform: scaleX(1); }
.screenshot-frame { --corner-color: var(--cyan); padding: 10px; background: #0b1120; border: 1px solid var(--ink-line); box-shadow: 0 30px 80px #0008; }
.screenshot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1814 / 1376; object-fit: contain; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 18px; }
.screenshot-caption { margin: 0; color: #6d7a93; font-size: 13px; }
.theme-switch { flex: none; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ink-line); border-radius: 999px; background: var(--ink-2); }
.theme-switch button { padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--on-ink-2); font-size: 13px; transition: background .25s, color .25s; }
.theme-switch button:hover { color: white; }
.theme-switch button.active { background: var(--blue); color: white; }

/* 安全：目录式表格 */
.safety-table { border-top: 2px solid var(--text); }
.safety-row { display: grid; grid-template-columns: 80px 260px 1fr 150px; gap: 30px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--paper-line); transition: background .3s, padding .4s var(--ease); }
.safety-row:hover { background: var(--paper-2); padding-inline: 20px; }
.row-no { color: var(--blue); font: 700 26px var(--mono); }
.safety-row h3 { font-size: 20px; }
.safety-row p { margin: 0; color: var(--text-2); }
.row-tag { justify-self: end; padding: 4px 9px; border: 1px solid var(--blue); color: var(--blue); font: 700 11px var(--mono); letter-spacing: .1em; white-space: nowrap; }
.safety-quote { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 72px 0 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.safety-quote span { color: var(--blue); animation: blink 1.1s step-end infinite; }

/* 安装：满版蓝色 */
.install { background: var(--blue); color: white; overflow: hidden; }
.install::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(#ffffff26 1px, transparent 1.4px) 0 0 / 22px 22px; mask-image: radial-gradient(ellipse at 20% 80%, black, transparent 70%); }
.install::after { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, #22d3ee55, transparent); pointer-events: none; }
.install-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 64px; align-items: center; }
.install .section-label span { color: #bcd0ff; }
.install .section-description { margin-top: 24px; color: #dbe5ff; }
.text-link { display: inline-flex; gap: 24px; margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid #ffffff66; font-size: 15px; font-weight: 600; }
.text-link:hover { border-color: white; }
.install-panel { min-width: 0; background: var(--ink); color: var(--on-ink); border-radius: 10px; box-shadow: 0 40px 80px #0a1a6680, 0 0 0 1px #ffffff1a; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); color: #6d7a93; font: 11px var(--mono); letter-spacing: .12em; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.panel-body { padding: 24px 24px 22px; }
.install-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px; }
.install-tabs button { padding: 8px 18px; border: 0; border-radius: 4px; background: none; color: var(--on-ink-2); font-size: 14px; transition: background .2s, color .2s; }
.install-tabs button.active { background: var(--blue); color: white; }
.install-panel pre { margin: 20px 0 14px; padding: 16px 16px; white-space: pre; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; background: #0b1120; border: 1px solid var(--ink-line); border-left: 2px solid var(--cyan); color: #cfe0ff; font: 12px/1.9 var(--mono); }
.install-panel pre code { font: inherit; }
.command-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.command-row p { margin: 0; color: #6d7a93; font-size: 13px; overflow-wrap: anywhere; }
#copy-command { flex: none; padding: 8px 14px; border: 1px solid #ffffff26; border-radius: 5px; background: #ffffff08; color: var(--on-ink); font-size: 13px; box-shadow: 0 3px 0 #ffffff12; transition: transform .1s, box-shadow .1s, border-color .2s; }
#copy-command:hover { border-color: var(--blue-bright); }
#copy-command:active { transform: translateY(2px); box-shadow: 0 1px 0 #ffffff12; }
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--ink-line); }
.next-step > span { color: var(--on-ink-2); font-size: 14px; }
.next-step code { font: 700 22px var(--mono); color: white; }
.install-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 18px 0 0; color: #6d7a93; font-size: 13px; }
.install-help code { color: var(--on-ink); font-family: var(--mono); }
.install-help a { color: var(--blue-bright); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 80px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .section-description { margin-top: 22px; }
.faq-head a, .faq-list a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { border-top: 2px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--paper-line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; transition: color .2s; }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--blue); transition: transform .3s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details p { margin: 0 40px 28px 0; color: var(--text-2); }

/* 页脚：描边像素字标 */
.site-footer { position: relative; overflow: hidden; padding: 56px 0 0; background: var(--ink); color: var(--on-ink-2); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.footer-top nav { gap: 28px; }
.footer-top nav a:hover { color: white; }
.footer-mark { position: relative; padding: 56px 0 48px; }
.footer-mark .wordmark { width: 100%; }
.footer-mark p { position: absolute; right: 0; bottom: 56px; margin: 0; color: #6d7a93; font: 12px var(--mono); letter-spacing: .1em; }
.wordmark.outline .px { fill: transparent; stroke: #2f62ff55; stroke-width: .06; transition: fill .5s, stroke .5s, transform .4s var(--ease); }
.wordmark.outline .px.lit { fill: var(--wm-fill); stroke: transparent; filter: none; }
.wordmark.outline .edge { stroke: #2f62ff30; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; max-width: calc(100% - 40px); width: max-content; padding: 12px 20px; background: var(--blue); color: white; font-size: 14px; box-shadow: 0 10px 30px #0005; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* 入场与滚动显现 */
.hero-copy > *, .hero-side > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation: none; }
.hero-copy > :nth-child(3) { animation-delay: .45s; }
.hero-side > :nth-child(1) { animation-delay: .55s; }
.hero-side > :nth-child(2) { animation-delay: .65s; }
.hero-side > :nth-child(3) { animation-delay: .75s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--reveal-delay, 0ms), transform .9s var(--ease) var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.tool-card.reveal.is-visible:hover { transform: translateY(-4px); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pixel-in { from { opacity: 0; transform: scaleY(.1); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1100px) {
  .container, .header-inner { width: calc(100% - 64px); }
  nav { gap: 22px; }
  .hero-layout { gap: 44px; }
  .stage-command { left: -16px; }
  .preview-layout, .install-layout, .faq-layout { gap: 48px; }
  .safety-row { grid-template-columns: 60px 200px 1fr; }
  .row-tag { display: none; }
  .tool-index { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid #ffffff26; border-radius: 5px; background: none; color: var(--on-ink); font-size: 13px; }
  .menu-toggle i { position: relative; width: 12px; height: 2px; background: currentColor; box-shadow: 0 -4px currentColor, 0 4px currentColor; }
  #nav { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--ink-2); border: 1px solid var(--ink-line); box-shadow: 0 20px 40px #0008; }
  #nav.open { display: flex; }
  #nav > a:not(.key-button) { padding: 12px 8px; }
  #nav > .key-button { justify-content: space-between; margin-top: 10px; }
  .hero { padding-top: 56px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .hero-stage { padding-bottom: 80px; }
  .stage-deck { padding: 9% 7% 0 0; }
  .preview-foot { flex-direction: column; align-items: flex-start; }
  .stage-command { left: 12px; bottom: -24px; font-size: 16px; padding: 13px 18px; }
  .section { padding: 88px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .bento, .system-tools { grid-template-columns: 1fr; }
  .dark-card { grid-row: auto; }
  .preview-layout, .install-layout, .faq-layout { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .safety-row { grid-template-columns: 50px 1fr; gap: 8px 20px; }
  .safety-row p { grid-column: 2; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-top nav { flex-wrap: wrap; gap: 12px 24px; }
  .footer-mark p { position: static; margin-top: 20px; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .container, .header-inner { width: calc(100% - 40px); }
  .desktop-only { display: none; }
  .hero-tag { font-size: 13px; margin-bottom: 24px; }
  .hero-description { font-size: 15px; }
  .key-button { padding: 12px 14px 12px 18px; font-size: 14px; }
  .hero-meta { gap: 8px 18px; font-size: 10px; }
  .screenshot-frame { padding: 5px; }
  .stage-card { border-radius: 8px; }
  .stage-theme { padding: 6px 11px; font-size: 11px; }
  .stage-command small { display: none; }
  .ticker-track span { padding: 14px 22px; font-size: 12px; }
  .section { padding: 72px 0; }
  .tool-card { padding: 24px; }
  h3 { font-size: 20px; }
  .card-top { flex-direction: column; gap: 4px; }
  .keycap { min-width: 48px; height: 46px; padding: 0 10px; font-size: 13px; }
  .keycap.wide { min-width: 104px; }
  .preview-tabs button { padding: 10px 10px; font-size: 12px; }
  .safety-row { grid-template-columns: 1fr; }
  .safety-row p { grid-column: auto; }
  .row-no { font-size: 20px; }
  .panel-body { padding: 20px; }
  .install-panel pre { font-size: 12px; padding: 14px; }
  .command-row { flex-direction: column; align-items: flex-start; }
  .next-step code { font-size: 18px; }
  .faq-list summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
