:root {
  --bg: #0b0c0e;
  --surface: #111114;
  --surface-2: #16181d;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --green: #34d399;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  white-space: nowrap;
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
}
h2 code { background: none; padding: 0; color: var(--green); }
::selection { background: rgba(52, 211, 153, 0.25); }

html[lang^="zh"] .en { display: none !important; }
html[lang="en"] .zh { display: none !important; }

.i {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ===== 顶栏 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 54px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn, .gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 12.5px;
  transition: border-color 0.15s, color 0.15s;
}
.lang-btn:hover, .gh-btn:hover { border-color: var(--border-2); color: var(--text); }
.gh-stars { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* ===== 首屏 ===== */
.hero { padding: 56px 0 40px; }
.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  font: 500 12.5px var(--mono);
  color: var(--text-3);
}
.hero-eyebrow a {
  color: var(--text-2);
  border-bottom: 1px solid var(--border-2);
}
.hero-eyebrow a:hover { color: var(--text); }
.hero-title {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #ffffff;
}
html[lang^="zh"] .hero-title { letter-spacing: -0.015em; line-height: 1.18; }
.hero-sub {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font: 600 14px var(--font);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: #fafafa; color: #09090b; }
.btn-primary:hover { background: #e4e4e7; }
.btn-secondary {
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.26); }

/* ===== 高还原软件窗口 ===== */
.app-frame { margin-top: 44px; }
.app-win {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--surface);
  box-shadow: 0 36px 90px -24px rgba(0, 0, 0, 0.9);
  font-size: 12.5px;
}

/* 对应 app/src/components/Titlebar.tsx */
.app-tb {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  background: #141519;
  border-bottom: 1px solid var(--border);
}
.tb-lights { display: flex; gap: 7px; margin-right: 6px; }
.tb-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tb-lights i:nth-child(2) { background: #febc2e; }
.tb-lights i:nth-child(3) { background: #28c840; }
.tb-brand { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-right: 4px; }
.tb-beta {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(183, 140, 63, 0.5);
  background: #17130c;
  color: #e7c477;
}
.tb-sep { width: 1px; height: 14px; background: var(--border); }
.tb-icon-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-3);
}
.tb-spacer { flex: 1; }
.tb-actions { display: flex; align-items: center; gap: 6px; }
.tb-badge-outline {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.tb-connect {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: #27272a;
  color: #fafafa;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tb-connect .i { width: 13px; height: 13px; }
.tb-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: #52525b; display: inline-block; flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--blue); }

.app-body {
  display: grid;
  grid-template-columns: 224px 1fr;
  height: 480px;
}

/* 对应 app/src/components/ConnectionSidebar.tsx */
.app-side {
  border-right: 1px solid var(--border);
  background: #0e0f12;
  padding: 10px 8px;
  overflow: hidden;
}
.side-sec {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding: 10px 8px 4px;
}
.side-sec:first-child { padding-top: 2px; }
.side-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 12.5px;
}
.side-row .i { width: 13px; height: 13px; color: var(--text-3); }
.side-row.is-on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.side-row.is-off { opacity: 0.45; }
.sr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-lat { font: 400 11px var(--mono); color: var(--text-3); }
.sr-lan {
  font: 600 10px var(--mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.14);
  color: var(--blue);
}
.side-sess {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 22px;
  font-size: 12px;
  color: var(--text-3);
}
.side-sess.is-cur { color: #e4e4e7; }
.ss-i { font: 500 11px var(--mono); color: var(--text-3); }
.ss-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-s {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
}
.ss-s.waiting { background: rgba(96, 165, 250, 0.15); color: var(--blue); }

/* 工作区与标签 */
.app-work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
}
.work-tabs {
  display: flex;
  align-items: stretch;
  height: 36px;
  background: #0e0f12;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.wtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 12px;
  color: var(--text-3);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.wtab:hover { color: var(--text-2); }
.wtab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--green);
}
.wtab-tag {
  font: 500 10px var(--mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
}
.wtab-plus {
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: var(--text-3);
}
.wtab-plus .i { width: 13px; height: 13px; }

.work-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.work-pane.is-active { display: flex; }

.term-scroll {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  font: 400 12.5px/1.72 var(--mono);
  color: #d4d4d8;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-scroll .t-prompt { color: var(--green); }
.term-scroll .t-path { color: var(--blue); }
.term-scroll .t-dim { color: var(--text-3); }
.term-scroll .t-brand { color: #f0a77a; font-weight: 700; }
.term-scroll .t-user { color: #fff; }
.term-scroll .t-tool { color: var(--green); }
.term-scroll .t-ok { color: var(--green); }
.term-scroll .t-add { color: var(--green); }
.term-scroll .t-del { color: #f87171; }
.term-scroll .t-box {
  display: inline-block;
  border: 1px solid rgba(240, 167, 122, 0.4);
  border-radius: 6px;
  padding: 4px 12px;
  margin: 3px 0 5px;
}
.term-scroll .t-userline {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--text-3);
  padding: 2px 10px;
  margin: 5px 0;
  color: #fff;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: -0.18em;
  background: #d4d4d8;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 对应 app/src/components/AgentComposer.tsx */
.composer-dock { padding: 0 12px 10px; }
.composer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
}
.cp-clip { color: var(--text-3); display: grid; place-items: center; }
.cp-clip .i { width: 14px; height: 14px; }
.cp-input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
  font-size: 12.5px;
}
.cp-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.cp-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}
.cp-send {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.cp-send .i { width: 13px; height: 13px; }

/* 对应 app/src/components/TerminalStatusbar.tsx */
.statusbar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  background: #0e0f12;
  font: 400 11.5px var(--mono);
  color: var(--text-3);
  white-space: nowrap;
}
.sb-agent, .sb-path, .sb-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sb-agent { color: var(--text-2); }
.sb-q { color: var(--text-3); }
.sb-path .i { width: 12px; height: 12px; }
.statusbar .dot { width: 6px; height: 6px; }

/* 编辑器场景 */
.ed-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 165px 1fr; }
.ed-tree {
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  font: 400 12px/1.9 var(--mono);
  color: var(--text-3);
}
.et-1 { padding-left: 12px; }
.et-2 { padding-left: 24px; }
.et-f.is-on { color: var(--text); background: rgba(255, 255, 255, 0.06); border-radius: 4px; padding-right: 6px; }
.ed-code { padding: 14px 16px; font: 400 12.5px/1.8 var(--mono); color: #e4e4e7; overflow: auto; }
.ed-code .ln { display: inline-block; width: 28px; color: #52525b; user-select: none; }
.ed-code .ln.add { color: var(--green); }
.ed-code .add { background: rgba(52, 211, 153, 0.11); display: inline-block; padding: 0 6px 0 2px; border-radius: 3px; }
.ed-code .kw { color: #c084fc; }
.ed-code .fn { color: var(--blue); }

/* 远程屏幕与端口转发场景 */
.sc-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.35fr 1fr; }
.sc-view {
  border-right: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-meta { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--text-3); }
.sc-desk {
  flex: 1;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #16181e;
  padding: 18px;
  display: grid;
  place-items: center;
}
.sc-mini { width: 100%; max-width: 330px; border-radius: 6px; border: 1px solid var(--border-2); background: #101115; overflow: hidden; }
.sc-mini-tb {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font: 400 10.5px var(--mono);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  background: #14161b;
}
.sc-mini-body { padding: 14px; display: grid; gap: 10px; }
.sk-1 { height: 12px; width: 62%; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.sk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-2 i { display: block; height: 46px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.sk-3 { height: 8px; width: 84%; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.sc-cap { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.sc-ports { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-ports-h { font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.sc-prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font: 500 12px var(--mono);
}
.sc-prow.is-on { border-color: rgba(52, 211, 153, 0.35); }
.sc-prow small { color: var(--text-3); margin-left: 5px; font-weight: 400; }
.sc-prow > span { font-size: 11px; color: var(--green); }
.sc-btn { color: var(--text) !important; background: rgba(255, 255, 255, 0.08); padding: 2px 8px; border-radius: 4px; }
.sc-ports .sc-cap { margin-top: auto; }

/* ===== iPhone Duo 折叠屏硬件视觉展示 ===== */
.duo-showcase {
  display: grid;
  grid-template-columns: 0.92fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.duo-kicker {
  font: 500 12px var(--mono);
  color: var(--text-3);
  margin-bottom: 12px;
}
.duo-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.duo-desc {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
}
.posture-list {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
.posture-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s, background 0.2s;
}
.posture-btn:hover { border-color: var(--border-2); }
.posture-btn.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface);
}
.posture-btn strong { display: block; font-size: 14px; color: #fff; }
.posture-btn span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

/* 3D 硬件舞台（按 iPhone Duo 真实尺寸与宽矮 Passport 比例渲染） */
.duo-stage {
  position: relative;
  min-height: 416px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 42%, #181a21 0%, #0c0d10 74%);
  perspective: 1100px;
  overflow: hidden;
}
.hw-laptop, .hw-open, .hw-cover { display: none; }
.duo-stage[data-posture="laptop"] .hw-laptop { display: block; }
.duo-stage[data-posture="open"] .hw-open { display: block; }
.duo-stage[data-posture="cover"] .hw-cover { display: block; }

.hw-di {
  width: 62px;
  height: 11px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}
.hw-di-open { position: absolute; top: 9px; right: 20%; width: 58px; height: 10px; z-index: 3; }
.hw-di-cover { width: 54px; height: 10px; margin-bottom: 8px; }

.hw-ios-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.hw-lg-pill {
  font: 500 10px var(--mono);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
}
.hw-term { font: 400 11px/1.52 var(--mono); color: #d4d4d8; }
.hw-term .t-prompt, .hw-term .t-tool, .hw-term .t-ok, .hw-term .t-add { color: var(--green); }
.hw-term .t-path { color: var(--blue); }
.hw-term .t-del { color: #f87171; }
.hw-term .t-dim { color: var(--text-3); }
.hw-term .t-user { color: #fff; }

/* 姿态 A：半折立放（单块连续折叠屏，左右钛金属边缘 + 中间平滑折弯） */
.hw-laptop { position: relative; width: 356px; transform-style: preserve-3d; }
.hw-ti-shell { transform-style: preserve-3d; }
.hw-lid {
  padding: 10px 14px 12px;
  border-radius: 22px 22px 0 0;
  border: 2.5px solid #5a606c;
  border-bottom: 0;
  background: linear-gradient(180deg, #13151b 0%, #0d0e12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 4px #060709;
  transform-origin: bottom center;
  transform: rotateX(-11deg);
}
.hw-bezel-top { padding: 2px 0 8px; }
.hw-screen-top { padding: 0 2px; }

/* 连续 OLED 弯折线（只在最外侧有钛金属边框微扣，屏幕本身连在一起） */
.hw-fold-seam {
  position: relative;
  height: 10px;
  display: flex;
  align-items: stretch;
  margin: 0 -2px;
}
.seam-cap {
  width: 5px;
  background: linear-gradient(180deg, #747b89, #3b404a, #6c7380);
  border-radius: 2px;
  display: block;
}
.seam-oled {
  flex: 1;
  background: linear-gradient(180deg, #090a0d 0%, rgba(255, 255, 255, 0.13) 45%, #050608 58%, #0d0f14 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hw-deck {
  padding: 10px 14px 14px;
  border-radius: 0 0 24px 24px;
  border: 2.5px solid #5a606c;
  border-top: 0;
  background: linear-gradient(180deg, #0b0d11 0%, #12141a 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15), inset 0 0 0 4px #060709;
  transform-origin: top center;
  transform: rotateX(27deg);
}
.hw-screen-bot { padding: 2px 2px 0; }
.hw-floor-shadow {
  height: 20px;
  margin: -4px 22px 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88) 0%, transparent 72%);
}
.hw-keybar { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.hw-keybar span {
  font: 500 10px var(--mono);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}
.hw-folddeck {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 7px;
}
.hw-fd-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.hw-fd-head b { color: var(--blue); font-weight: 600; }
.hw-seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 10px; }
.hw-seg b { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 600; }
.hw-seg i { font-style: normal; padding: 1px 7px; color: var(--text-3); }
.hw-fd-opts { display: grid; gap: 4px; font-size: 11px; }
.hw-fd-opts > div { padding: 4px 8px; border-radius: 7px; border: 1px solid var(--border); color: var(--text-2); }
.hw-fd-opts > div.is-on { border-color: rgba(96, 165, 250, 0.55); background: rgba(96, 165, 250, 0.13); color: #fff; }
.hw-fd-bar { display: flex; gap: 6px; font-size: 10.5px; }
.hw-fd-bar span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

/* 姿态 B：完全展开（164.6×117.8mm ≈ 1.4:1，单块连续护目镜内屏 + 微弱中线折痕） */
.hw-open { width: 100%; max-width: 460px; }
.hw-open-chassis {
  position: relative;
  aspect-ratio: 164.6 / 117.8;
  border-radius: 24px;
  border: 2.5px solid #5f6573;
  background: #050608;
  padding: 6px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.hw-notch-h {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4b505c, #8a91a0, #4b505c);
  z-index: 4;
}
.hw-notch-h.top { top: -2px; }
.hw-notch-h.bot { bottom: -2px; }
.hw-open-oled {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #0d0e12;
  overflow: hidden;
  /* 纳米纹理微弱防眩光质感 */
  background-image: radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.025), transparent 60%);
}
.hw-crease-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45) 45%, rgba(255, 255, 255, 0.05) 55%, transparent);
  pointer-events: none;
  z-index: 2;
}
.hw-open-split {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 48% 52%;
}
.hw-open-left {
  margin: 10px 14px 10px 10px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.hw-open-hd { font-weight: 700; font-size: 13px; margin-bottom: 10px; padding-left: 6px; }
.hw-open-sec { font-size: 10px; color: var(--text-3); padding: 6px 6px 3px; }
.hw-open-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--text-2);
}
.hw-open-row.is-on { background: rgba(255, 255, 255, 0.09); color: #fff; }
.hw-open-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-open-row em { font: 400 10px var(--mono); color: var(--text-3); }
.hw-open-sub { padding: 3px 7px 3px 18px; font-size: 10.5px; color: var(--text-3); }
.hw-open-right { padding: 26px 14px 12px 16px; display: flex; flex-direction: column; min-width: 0; }
.hw-open-right .hw-term { flex: 1; }
.hw-agentbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font: 500 10.5px var(--mono);
}
.hw-ab-dir { color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-ab-pill { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: var(--text); }

/* 姿态 C：合上外屏（84.1×117.8mm ≈ 0.714 宽矮护目镜比例 + 左侧钛金属转轴脊） */
.hw-cover-chassis {
  position: relative;
  width: 248px;
  aspect-ratio: 84.1 / 117.8;
  border-radius: 28px;
  border: 2.5px solid #5f6573;
  background: #050608;
  padding: 6px 6px 6px 9px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.hw-spine-l {
  position: absolute;
  left: -3px;
  top: 22px;
  bottom: 22px;
  width: 6px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, #8b92a1, #494e5a);
}
.hw-cover-oled {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  background: #0d0e12;
  padding: 10px 10px 12px 12px;
  display: flex;
  flex-direction: column;
}
.hw-cover-body { flex: 1; display: grid; grid-template-columns: 1fr 32px; gap: 8px; min-height: 0; }
.hw-cover-main { display: flex; flex-direction: column; min-width: 0; }
.hw-cover-title { font-size: 12px; font-weight: 650; margin-bottom: 8px; color: var(--text); }
.hw-vrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  font-size: 11px;
  color: #f4f4f5;
}

/* ===== 通用区块（紧凑有力） ===== */
.sec {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

/* 纯排版特性网格（无卡片边框、无图标盒） */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}
.feat-item h3 {
  font-size: 15.5px;
  font-weight: 650;
  color: #ffffff;
}
.feat-item p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ===== 怎么用 + 命令行 ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.how-col h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.steps {
  margin-top: 22px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-2);
  font-size: 14.5px;
}
.steps b { color: var(--text); font-weight: 600; }
.doc-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-3);
}
.doc-links a {
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1px;
}
.doc-links a:hover { border-color: var(--text); }

.cli-box {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
}
.cli-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 40px;
  background: #0e0f12;
  border-bottom: 1px solid var(--border);
}
.cli-tabs { display: flex; }
.cli-tab {
  height: 40px;
  padding: 0 11px;
  font-size: 12.5px;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cli-tab:hover { color: var(--text-2); }
.cli-tab.is-active { color: var(--text); font-weight: 600; border-bottom-color: var(--green); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 11.5px;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-2); }
.copy-btn .i { width: 12px; height: 12px; }
.cli-code {
  padding: 18px 20px;
  font: 400 12.5px/1.75 var(--mono);
  color: #e4e4e7;
  overflow-x: auto;
  min-height: 230px;
}
.cli-code .c { color: var(--text-3); }
.cli-code .p { color: var(--green); }
.cli-code .o { color: var(--text-2); }
.cli-code .g { color: var(--green); }
.cli-code .s { color: #fca5a5; }

/* ===== 下载 ===== */
.dl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dl-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -0.02em; }
.dl-head p { font: 400 13px var(--mono); color: var(--text-3); }
.dl-head b { color: var(--text); font-weight: 600; }

.dl-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.dl-row {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dl-row:last-child { border-bottom: 0; }
.dl-row.current { background: rgba(255, 255, 255, 0.025); }
.dl-os strong { display: block; font-size: 15px; font-weight: 650; }
.dl-os small { font: 400 12px var(--mono); color: var(--text-3); }
.dl-builds { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.dl-chip em { font-style: normal; font: 400 11.5px var(--mono); color: var(--text-3); }
.dl-chip:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.07); }
.dl-chip.rec { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); }
.dl-chip.rec em { color: var(--green); }
.dl-note { font-size: 12.5px; color: var(--text-3); text-align: right; }
.dl-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.first-open {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.first-open summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--text-2);
}
.first-open summary::-webkit-details-marker { display: none; }
.first-open summary .i { color: var(--text-3); transition: transform 0.2s; }
.first-open[open] summary .i { transform: rotate(90deg); }
.first-open-body { padding: 0 18px 16px; font-size: 13.5px; color: var(--text-2); }
.first-open-body ul { margin: 4px 0 10px 18px; display: grid; gap: 6px; }
.first-open-body b { color: var(--text); }
.first-open-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-3);
}
.footer nav { margin-left: auto; display: flex; gap: 18px; }
.footer nav a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .sc-wrap, .duo-showcase { grid-template-columns: 1fr; }
  .sc-view { border-right: 0; border-bottom: 1px solid var(--border); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .dl-row { grid-template-columns: 1fr; gap: 10px; }
  .dl-note { text-align: left; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 36px 0 28px; }
  .sec { padding: 48px 0; }
  .tb-badge-outline, .tb-sep, .tb-local, .tb-actions .tb-icon-btn { display: none; }
  .cp-tools .cp-pill { display: none; }
  .sb-path, .sb-q { display: none; }
  .statusbar { font-size: 11px; overflow: hidden; }
  .app-body { height: 420px; }
  .term-scroll { font-size: 11.5px; line-height: 1.6; padding: 12px; }
  .ed-wrap { grid-template-columns: 1fr; }
  .ed-tree { display: none; }
  .feat-grid { grid-template-columns: 1fr; gap: 22px; }
  .duo-stage { min-height: 340px; padding: 14px; }
  .hw-laptop { width: 296px; }
  .hw-open-chassis { aspect-ratio: 164.6 / 117.8; }
  .hw-open-left { margin: 6px; padding: 8px 6px; }
  .hw-open-right { padding: 20px 8px 8px 6px; }
  .hw-open-row, .hw-open-sub { font-size: 9.5px; }
  .hw-cover-chassis { width: 224px; }
  .dl-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-inner { flex-wrap: wrap; gap: 10px; }
  .footer nav { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .gh-stars { display: none; }
}
