/* ===========================================================
   轻舟 Skiff · 官网样式
   单文件、无外部依赖（字体走系统栈），首屏不需要等待网络。
   =========================================================== */

:root {
  --bg: #070b10;
  --bg-2: #0a0f15;
  --panel: #0c131b;
  --panel-2: #0f1821;
  --line: rgba(150, 180, 205, 0.13);
  --line-soft: rgba(150, 180, 205, 0.07);
  --fg: #e9eff5;
  --fg-2: #b6c4d2;
  --dim: #7e90a2;
  --dim-2: #5c6b7a;
  --accent: #2fe3a8;
  --accent-2: #58b6ff;
  --accent-dim: rgba(47, 227, 168, 0.12);
  --warn: #ffb454;
  --radius: 14px;
  --wrap: 1180px;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.22; }
p { margin: 0; }

kbd {
  font-family: var(--mono);
  font-size: .82em;
  padding: .1em .42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  color: var(--fg-2);
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--fg-2);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: .1em .38em;
  word-break: break-word;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; }

/* grid / flex 子项默认 min-width:auto，长串（sha256、路径）会把整页顶宽 */
.hero-copy, .hero-art, .dl-main, .dl-side, .card, .view, .shot { min-width: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 99;
  background: var(--accent); color: #04120c;
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
  transition: top .18s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 16, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-in {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--fg); text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: .01em; }
.brand-name em {
  font-style: normal; font-family: var(--mono); font-size: 12px;
  color: var(--dim); margin-left: 7px; letter-spacing: .04em;
}

.nav { display: flex; gap: 24px; margin-left: 10px; }
.nav a {
  color: var(--fg-2); font-size: 14.5px; text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.nav a:hover { color: var(--fg); border-bottom-color: var(--accent); text-decoration: none; }

.topbar-act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ghost { color: var(--fg-2); font-size: 14.5px; }
.ghost:hover { color: var(--fg); text-decoration: none; }

/* 语言切换：只放目标语言，一眼知道点了会变成什么 */
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 4px 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--fg-2); border: 1px solid var(--line); border-radius: 999px;
  transition: color .16s, border-color .16s, background .16s;
}
.lang:hover {
  color: var(--fg); border-color: rgba(47, 227, 168, .45);
  background: rgba(47, 227, 168, .07); text-decoration: none;
}
.foot-links .lang-foot { font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  color: #04140e; background: var(--accent);
  transition: transform .14s ease, filter .16s ease, box-shadow .2s ease;
  box-shadow: 0 6px 24px -10px rgba(47, 227, 168, .55);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; box-shadow: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; margin: 26px 0 14px; }

.btn-ghost {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
  color: var(--fg);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------------------------------------------------------- Hero */

.hero { position: relative; overflow: hidden; padding: 76px 0 0; }

.hero-glow {
  position: absolute; inset: -180px 0 auto 0;
  height: 820px; pointer-events: none;
  background:
    radial-gradient(46% 46% at 22% 34%, rgba(47, 227, 168, .15), transparent 70%),
    radial-gradient(38% 42% at 72% 18%, rgba(88, 182, 255, .10), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px; align-items: center;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .04em; color: var(--fg-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 999px; padding: 5px 14px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 227, 168, .16);
}

h1 { margin: 0 0 22px; }
.h1-brand {
  display: block;
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.h1-line {
  display: block;
  font-size: clamp(1.95rem, 3.1vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.14;
  background: linear-gradient(180deg, #ffffff 22%, #c2d5e4 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 6px;
}

.lede {
  color: var(--fg-2); font-size: 17px; line-height: 1.78;
  max-width: 30em; margin-bottom: 32px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }

.meta {
  display: flex; flex-wrap: wrap; gap: 0 18px;
  list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 13px; color: var(--dim);
}
.meta li { position: relative; }
.meta li + li::before {
  content: ""; position: absolute; left: -10px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--dim-2);
}
.meta strong { color: var(--fg-2); font-weight: 600; }

.sha-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--dim);
  max-width: 100%; overflow: hidden;
}
.sha-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--dim-2); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 1px 6px; flex: none;
}
.sha-line code {
  min-width: 0;
  background: none; border: 0; padding: 0;
  font-size: 12px; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.copy {
  flex: none; cursor: pointer;
  font-family: var(--sans); font-size: 11.5px;
  color: var(--dim); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 2px 8px; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--accent); border-color: rgba(47, 227, 168, .4); }
.copy.done { color: var(--accent); border-color: rgba(47, 227, 168, .5); }

/* ---------------------------------------------------------- 窗口示意图 */

.hero-art { position: relative; }

.win {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, #0d151d, #0a1017);
  border: 1px solid rgba(150, 190, 215, .16);
  border-radius: 13px;
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  font-family: var(--mono); font-size: 10.8px;
  transform: perspective(1600px) rotateY(-2.4deg) rotateX(.8deg);
  transition: transform .5s ease;
}
.hero-art:hover .win { transform: perspective(1600px) rotateY(0) rotateX(0); }

.art-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -26px; height: 60px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(47, 227, 168, .18), transparent 70%);
  filter: blur(18px); z-index: 1;
}

.win-bar {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px;
  background: rgba(255, 255, 255, .022);
  border-bottom: 1px solid var(--line-soft);
}
.lights { display: flex; gap: 5px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; background: #2b333c; }
.lights i:first-child { background: #3d2b2b; }
.win-title { color: var(--dim-2); font-size: 10.5px; letter-spacing: .02em; }

.win-body { display: grid; grid-template-columns: 136px minmax(0, 1fr) 140px; min-height: 286px; }

.mock-side, .mock-info { padding: 12px 10px; background: rgba(0, 0, 0, .18); }
.mock-side { border-right: 1px solid var(--line-soft); }
.mock-info { border-left: 1px solid var(--line-soft); font-family: var(--sans); }
.mock-side-h {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim-2);
  margin: 0 0 7px 2px;
}
.mock-side-h:not(:first-child) { margin-top: 14px; }

.mock-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--fg-2);
  padding: 3px 6px; border-radius: 4px; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-item.on { background: rgba(47, 227, 168, .1); color: #d9fff0; }
.mock-item.off { color: var(--dim-2); }
.st { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.mock-item.off .st { background: var(--dim-2); }

.mock-term { padding: 14px 12px; position: relative; min-width: 0; }
.t-line { font-size: 11.5px; line-height: 1.75; white-space: nowrap; overflow: hidden; }
.t-p { color: var(--accent); }
.t-c { color: var(--accent-2); margin-right: 6px; }
.ghost-t { color: #5a6e81; }
.t-out { font-size: 11px; color: var(--dim); line-height: 1.65; white-space: nowrap; }
.caret {
  display: inline-block; width: 6px; height: 13px;
  background: var(--accent); vertical-align: -2px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0 } }

.t-pop {
  margin-top: 12px;
  background: #0e1822;
  border: 1px solid rgba(47, 227, 168, .22);
  border-radius: 7px; overflow: hidden;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9);
}
.t-pop.wide { margin-top: 10px; }
.pop-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--fg-2);
  padding: 5px 9px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pop-row b {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  color: var(--dim); background: rgba(255, 255, 255, .06);
  border-radius: 3px; padding: 1px 5px; flex: none; min-width: 44px; text-align: center;
}
.pop-row.on { background: rgba(47, 227, 168, .1); color: #dcfff2; }
.pop-row.on b { color: #062; background: var(--accent); }

.kv {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10px; color: var(--dim); margin: 0 0 5px;
  white-space: nowrap;
}
.kv span { color: var(--dim-2); }
.kv b { color: var(--fg-2); font-weight: 600; }
.kv b.ok { color: var(--accent); }
.kv b.warn { color: var(--warn); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 10px; }
.spark i { flex: 1; background: linear-gradient(180deg, rgba(47, 227, 168, .75), rgba(47, 227, 168, .12)); border-radius: 1px; }
.spark i:nth-child(1) { height: 34% } .spark i:nth-child(2) { height: 52% }
.spark i:nth-child(3) { height: 44% } .spark i:nth-child(4) { height: 68% }
.spark i:nth-child(5) { height: 58% } .spark i:nth-child(6) { height: 76% }
.spark i:nth-child(7) { height: 62% } .spark i:nth-child(8) { height: 88% }
.spark i:nth-child(9) { height: 70% } .spark i:nth-child(10) { height: 55% }
.spark i:nth-child(11) { height: 80% } .spark i:nth-child(12) { height: 64% }

.win-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--line-soft);
  background: rgba(47, 227, 168, .035);
  font-family: var(--sans); font-size: 9.5px; color: var(--dim-2);
}

.ridge { position: relative; margin-top: -46px; pointer-events: none; }
.ridge svg { width: 100%; height: 104px; display: block; }

/* ---------------------------------------------------------- 通用区块 */

.sec { padding: 78px 0; position: relative; }
.sec-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 70%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

.sec h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  margin-bottom: 14px; letter-spacing: -0.028em;
}
.sec-lede { color: var(--fg-2); font-size: 16px; max-width: 46em; margin-bottom: 46px; }

/* ---------------------------------------------------------- 特性卡片 */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover {
  border-color: rgba(47, 227, 168, .3);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(47, 227, 168, .05), rgba(255, 255, 255, .008));
}
.card-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(47, 227, 168, .22);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--fg-2); font-size: 14.2px; line-height: 1.75; }
.card code { font-size: .92em; }

/* ---------------------------------------------------------- 界面展示 */

.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.view-wide { grid-column: 1 / -1; }

.view {
  margin: 0;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  overflow: hidden;
}
.view-cap h3 { font-size: 15.5px; margin-bottom: 6px; }
.view-cap p { color: var(--dim); font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.view-wide .view-cap { max-width: 46em; }

.shot {
  flex: 1;
  background: #080d13;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 14px 16px;
  font-family: var(--mono); font-size: 12px;
  position: relative;
}
.shot-term { min-height: 128px; }
.shot-info { min-height: 128px; }
.shot-info .kv { font-size: 11.5px; margin-bottom: 7px; }

.shot-sftp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft); padding: 0;
  border-radius: 9px; overflow: hidden;
  position: relative;
}
.sftp-col { background: #080d13; padding: 11px 12px 40px; }
.sftp-h {
  font-family: var(--sans); font-size: 10px; color: var(--dim-2);
  letter-spacing: .04em; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-row {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12px; color: var(--fg-2);
  padding: 3px 6px; border-radius: 4px; margin: 0 0 1px;
  white-space: nowrap;
}
.f-row.on { background: rgba(88, 182, 255, .12); color: #d8ecff; }
.fi { width: 11px; height: 9px; border-radius: 2px; flex: none; }
.fi.d { background: rgba(88, 182, 255, .45); }
.fi.f { background: rgba(255, 255, 255, .18); }
.sftp-q {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(8, 13, 19, .96);
  border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 10.5px; color: var(--dim);
}
.bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .08); overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* ---------------------------------------------------------- 对比表 */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: 14.2px; }
thead th {
  text-align: left; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: var(--dim);
  padding: 14px 18px;
  background: rgba(255, 255, 255, .028);
  border-bottom: 1px solid var(--line);
}
thead th:nth-child(2) { color: var(--accent); }
tbody th {
  text-align: left; font-weight: 500; color: var(--dim);
  padding: 13px 18px; width: 22%;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
tbody td {
  padding: 13px 18px; color: var(--fg-2);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
tbody td:nth-child(2) { color: var(--fg); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.no { color: #ff8f8f; }
.fineprint { color: var(--dim); font-size: 12.5px; margin-top: 14px; }

/* ---------------------------------------------------------- 下载 */

.sec-dl {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(47, 227, 168, .1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.dl-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.dl-main { padding: 40px 38px 36px; }
.dl-main h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 10px; }
.ver {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(47, 227, 168, .25);
  border-radius: 6px; padding: 2px 8px;
  vertical-align: middle; margin-left: 6px;
}
.dl-lede { color: var(--dim); font-size: 13.8px; }

.dl-alt { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.dl-alt a { color: var(--fg-2); }
.dl-alt a:hover { color: var(--accent); }
.sep { color: var(--dim-2); }

.steps {
  margin: 30px 0 0; padding: 0; list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.steps li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
  color: var(--fg-2); font-size: 13.8px; line-height: 1.7;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(47, 227, 168, .22);
}
.steps b { color: var(--fg); font-weight: 600; margin-right: 4px; }

.dl-tip {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 12.8px; line-height: 1.7;
}
.dl-tip code { font-size: .94em; }

.dl-side {
  padding: 40px 30px 36px;
  background: rgba(0, 0, 0, .24);
  border-left: 1px solid var(--line-soft);
}
.dl-side h3 {
  font-size: 13px; letter-spacing: .04em;
  color: var(--fg); margin-bottom: 10px;
}
.dl-side h3.mt { margin-top: 26px; }
.side-note { color: var(--dim); font-size: 12.8px; line-height: 1.65; }

.code {
  position: relative;
  margin: 12px 0 14px;
  background: #060a0f;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 62px 12px 14px;
  overflow-x: auto;
}
.code code {
  background: none; border: 0; padding: 0;
  font-size: 11.8px; line-height: 1.7; color: var(--fg-2);
  white-space: pre;
}
.code .copy { position: absolute; top: 8px; right: 8px; }

.sha-box {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; color: var(--dim-2);
}
.sha-box code {
  background: none; border: 0; padding: 0;
  font-size: 10.2px; line-height: 1.6; letter-spacing: -0.01em;
  color: var(--dim); word-break: break-all;
}
.sha-box .copy { align-self: flex-start; margin-top: 6px; }

.req { margin: 0; padding-left: 18px; color: var(--dim); font-size: 12.8px; line-height: 1.85; }
.req li { margin-bottom: 2px; }

.link { font-size: 13px; display: inline-block; margin-top: 4px; }

/* ---------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 15.5px; font-weight: 600; color: var(--fg);
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.6px solid var(--dim);
  border-bottom: 1.6px solid var(--dim);
  transform: rotate(45deg);
  transition: transform .2s, border-color .2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg); margin-top: -2px;
  border-color: var(--accent);
}
.faq details[open] summary { color: var(--fg); }
.faq details > div { padding: 0 40px 22px 0; color: var(--fg-2); font-size: 14.2px; }
.faq details > div p + p { margin-top: 10px; }

/* ---------------------------------------------------------- 结尾 */

.endcap { padding: 76px 0; border-top: 1px solid var(--line-soft); }
.endcap-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.endcap h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.endcap p { color: var(--dim); font-size: 14.5px; }

/* ---------------------------------------------------------- 页脚 */

.foot {
  border-top: 1px solid var(--line-soft);
  background: #05080c;
  padding: 40px 0 26px;
}
.foot-in {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; padding-bottom: 26px;
}
.foot-brand { display: flex; gap: 10px; align-items: center; }
.foot-name { font-weight: 600; font-size: 14.5px; }
.foot-note { color: var(--dim-2); font-size: 12.5px; }

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); font-size: 13px; }
.foot-links a:hover { color: var(--fg); text-decoration: none; }

.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 12px;
}
.foot-bottom p { margin: 0; }

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { max-width: 620px; }
  .win { transform: none; }
  .win-body { grid-template-columns: 128px minmax(0, 1fr) 136px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-card { grid-template-columns: minmax(0, 1fr); }
  .dl-side { border-left: 0; border-top: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .sec { padding: 68px 0; }
  .hero { padding-top: 48px; }
  .hero-grid { padding-bottom: 64px; }
  .views { grid-template-columns: minmax(0, 1fr); }
  .win-body { grid-template-columns: 104px minmax(0, 1fr); }
  .mock-info { display: none; }
  .dl-main, .dl-side { padding: 30px 22px 26px; }
  tbody th, tbody td, thead th { padding: 11px 12px; }
  table { font-size: 13.2px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .topbar-in { padding: 10px 18px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .h1-line { font-size: 1.8rem; }
  .lede { font-size: 15.5px; }
  .btn-lg { width: 100%; padding: 14px 20px; }
  .cta-row { flex-direction: column; }
  .topbar-act .ghost { display: none; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }
  .sha-line code {
  min-width: 0; max-width: 46vw; }
  .steps li { font-size: 13.2px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 打印：去掉装饰，只留内容 */
@media print {
  .topbar, .hero-art, .ridge, .hero-glow, .endcap, .foot-links { display: none; }
  body { background: #fff; color: #111; }
  .sec, .hero { padding: 20px 0; }
  a { color: #0645ad; }
}

/* ---------------------------------------------------------- 三个要点 */

.sec-why { padding: 6px 0 0; }

.sec .why-h {
  font-size: 1.18rem; font-weight: 600; color: var(--fg-2);
  letter-spacing: -0.01em; margin-bottom: 22px;
}

.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-item { background: var(--panel); padding: 26px 24px 24px; min-width: 0; }
.why-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 12px;
}
.why-item h3 { font-size: 16px; margin-bottom: 8px; }
.why-item p:not(.why-k) { color: var(--fg-2); font-size: 13.8px; line-height: 1.72; }

/* ---------------------------------------------------------- 文档页（更新日志 / 隐私） */

.doc { padding-top: 68px; padding-bottom: 92px; }
.doc-h1 { font-size: clamp(1.85rem, 3.2vw, 2.4rem); margin-bottom: 12px; letter-spacing: -0.03em; }
.doc-lede { color: var(--fg-2); font-size: 15px; margin-bottom: 40px; }
.doc h2 {
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0;
  margin: 32px 0 10px;
}
.doc p { color: var(--fg-2); font-size: 14.5px; line-height: 1.8; margin-bottom: 10px; }
.doc ul { color: var(--fg-2); font-size: 14.5px; line-height: 1.85; padding-left: 20px; margin: 6px 0 14px; }
.doc li { margin-bottom: 4px; }

.doc .rel { border-top: 1px solid var(--line); padding: 20px 0 18px; }
.doc .rel:last-of-type { border-bottom: 1px solid var(--line); }
.rel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rel-head h2 { margin: 0; font-size: 1.08rem; font-family: var(--mono); font-weight: 600; }
.rel-head time { color: var(--dim); font-size: 12.5px; font-family: var(--mono); }
.doc .rel ul { margin: 0; }

.doc-note { color: var(--dim); font-size: 13px; margin-top: 16px; }
.doc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }

@media (max-width: 860px) {
  .why { grid-template-columns: minmax(0, 1fr); }
  .doc { padding-top: 44px; padding-bottom: 64px; }
}

/* ---------------------------------------------------------- 教程页 */

.doc h3 {
  font-size: .96rem; font-weight: 600;
  margin: 24px 0 8px;
}
.doc h2 { margin-top: 38px; }
.doc h2:first-of-type { margin-top: 8px; }

.doc .code {
  margin: 10px 0 16px;
  font-size: 12.8px; line-height: 1.75;
  color: #b9cbd9;
  white-space: pre;
}
.doc code {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .9em;
  color: var(--fg-2);
}
.doc .code code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

.doc ol { color: var(--fg-2); font-size: 14.5px; line-height: 1.85; padding-left: 22px; margin: 6px 0 14px; }
.doc ol li { margin-bottom: 6px; }
.doc ol li::marker { color: var(--dim); }

.doc .table-wrap { margin: 16px 0 20px; }
.doc table { font-size: 13.4px; }
.doc thead th { padding: 11px 14px; }
.doc tbody th, .doc tbody td { padding: 11px 14px; }
.doc tbody th { width: 24%; }
.doc .fineprint { margin-bottom: 24px; }

.doc-lead {
  color: var(--fg); font-size: 15.5px; line-height: 1.8;
  margin-bottom: 8px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doc-tip {
  margin: 16px 0 20px; padding: 14px 16px;
  background: rgba(47, 227, 168, .06);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--fg-2); font-size: 13.8px; line-height: 1.75;
}
.doc-tip strong { color: var(--fg); }

.doc-next {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-next h2 { margin-top: 0; font-size: 1rem; }
.doc-next ul { padding-left: 20px; }
.doc-next a { color: var(--accent); }

/* ---------------------------------------------------------- 首页指南卡片 */

.sec-read { padding: 10px 0 72px; }
.sec-read h2 { margin-bottom: 20px; }

.read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.read-card {
  display: block; min-width: 0;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.read-card:hover { border-color: rgba(47, 227, 168, .38); background: #0f151d; }
.read-k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--accent); margin: 0 0 10px;
}
.read-card h3 {
  font-size: 15px; font-weight: 600; color: var(--fg);
  margin: 0 0 8px; line-height: 1.45;
}
.read-card p:not(.read-k) {
  color: var(--dim); font-size: 13.2px; line-height: 1.7; margin: 0;
}

@media (max-width: 860px) {
  .read-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-read { padding-bottom: 52px; }
}

.doc table .nw { white-space: nowrap; }
.doc table td:nth-child(2) { color: var(--fg); }

/* ---------------------------------------------------------- 窄屏：导航与教程 */

@media (max-width: 860px) {
  /* 导航不再整块隐藏，改为第二行可横向滑动 */
  .topbar-in {
    flex-wrap: wrap; height: auto;
    /* 这里必须自己带左右内边距：.wrap 的 padding 会被本规则整体覆盖，
       不带的话 logo 和下载按钮会贴到屏幕边 */
    padding: 10px 28px 0; gap: 0;
  }
  .brand { order: 1; }
  .topbar-act { order: 2; margin-left: auto; }
  .nav {
    order: 3; display: flex; flex: 1 0 100%;
    gap: 18px; margin: 9px 0 10px;
    overflow-x: auto; white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; font-size: 13.6px; }

  /* 教程页：标题收小，长代码行折行而不是被裁 */
  .doc-h1 { font-size: 1.52rem; line-height: 1.3; }
  .doc .code {
    font-size: 11.6px;
    padding-right: 14px;
    white-space: pre-wrap;
    word-break: break-word;
  }
  /* .code code 自己声明了 white-space: pre，父级覆盖不到，必须单独写 */
  .doc .code code {
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .doc .table-wrap { overflow-x: auto; }
  .doc table { font-size: 12.8px; }
  .doc tbody th { width: 30%; }
}
