/* MineLib — layout & components on top of tokens.css (Apple Liquid Glass) */

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── layout ───────────────────────────────────────────── */
.wrap { max-width: var(--max-grid); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-read { max-width: var(--max-read); margin: 0 auto; padding: 0 var(--pad-x); }
.section-gap { margin-top: clamp(34px, 6vw, 56px); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.tiny { font-size: 12.5px; color: var(--text-3); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── sticky glass nav (the one mandatory glass surface) ─ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,247,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 12px rgba(0,0,0,.03); }
.nav-in { max-width: var(--max-grid); margin: 0 auto; padding: 0 var(--pad-x); height: 54px;
  display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: var(--r-chip); display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { padding: 7px 12px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500;
  color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: rgba(0,0,0,.04); text-decoration: none; }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* language switch */
.lang { display: inline-flex; background: rgba(0,0,0,.05); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang button { border: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 550;
  padding: 5px 11px; border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  transition: all .25s cubic-bezier(.25,.1,.25,1); }
.lang button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(38px, 7vw, 72px) 0 clamp(18px, 3vw, 28px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse-dot 2.2s infinite; }
h1 { margin-top: 15px; font-size: clamp(30px, 5.4vw, 50px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08; }
.lede { margin-top: 16px; font-size: clamp(15px, 2.4vw, 18px); color: var(--text-2); line-height: 1.65; max-width: 620px; }
h2 { font-size: clamp(19px, 3vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.body-text { font-size: 16px; line-height: 1.85; color: var(--text-body); }
.body-text p + p { margin-top: 1em; }

/* ── unified panel (the anti-fragmentation pattern) ───── */
.panel { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--sh-panel); overflow: hidden; }
.panel-pad { padding: clamp(18px, 3vw, 26px); }
.row { display: flex; align-items: flex-start; gap: 14px; padding: 16px clamp(16px, 2.6vw, 24px);
  color: var(--text); text-decoration: none; transition: background .15s; }
.row:hover { background: var(--hover); text-decoration: none; }
.row + .row { border-top: 1px solid var(--hairline); }
.row-title { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.row-sub { margin-top: 3px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.row-arrow { margin-left: auto; color: var(--faint); font-size: 15px; flex: 0 0 auto; align-self: center; }
.row-main { flex: 1 1 auto; min-width: 0; }

/* ── buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px;
  padding: 0 18px; border-radius: var(--r-pill); border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease-out-quart), box-shadow .18s, background .18s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0066cc; box-shadow: 0 6px 18px rgba(0,113,227,.28); }
.btn-secondary { background: rgba(255,255,255,.85); color: var(--text);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-secondary:hover { background: #fff; }
.btn-quiet { background: rgba(0,0,0,.05); color: var(--text); }
.btn-quiet:hover { background: rgba(0,0,0,.08); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 12.5px; font-weight: 550; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ── chips / tags ─────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 550; color: var(--text-2); background: rgba(0,0,0,.05); white-space: nowrap; }
.chip-accent { color: var(--accent-link); background: rgba(0,113,227,.08); }
.chip-heat { color: var(--heat); background: var(--heat-bg); font-weight: 650; }
.chip-ok { color: #0a7f3f; background: rgba(48,209,88,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── segmented control ────────────────────────────────── */
.seg { display: inline-flex; background: rgba(0,0,0,.05); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  transition: all .25s cubic-bezier(.25,.1,.25,1); white-space: nowrap; }
.seg button.active { background: var(--text); color: #fff; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.16); }

/* ── form controls ────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.field { flex: 1 1 240px; min-width: 180px; display: flex; align-items: center; gap: 8px; height: 38px;
  padding: 0 14px; background: var(--surface); border-radius: var(--r-pill);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.field input { flex: 1 1 auto; border: none; outline: none; background: transparent; font-family: inherit;
  font-size: 14px; color: var(--text); min-width: 0; }
.field input::placeholder { color: var(--text-4); }
.field svg { flex: 0 0 auto; color: var(--text-3); }
select.ctl { height: 38px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid rgba(0,0,0,.08);
  background: var(--surface); font-family: inherit; font-size: 13.5px; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; }

/* ── version list ─────────────────────────────────────── */
.vlist { border-radius: var(--r-panel); overflow: hidden; }
.vrow { border-top: 1px solid var(--hairline); }
.vrow:first-child { border-top: none; }
.vrow-head { display: flex; align-items: center; gap: 12px; padding: 13px clamp(14px, 2.4vw, 22px);
  cursor: pointer; transition: background .15s; }
.vrow-head:hover { background: var(--hover); }
.vrow-id { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; width: 168px; flex: 0 0 auto; }
.vrow-meta { font-size: 12.5px; color: var(--text-3); flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.vrow-body { padding: 4px clamp(14px, 2.4vw, 22px) 20px; background: var(--hover); }
.kv { display: grid; grid-template-columns: 116px 1fr; gap: 8px 14px; font-size: 13px; padding-top: 12px; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text-body); word-break: break-all; }
.copy-hash { font-family: var(--mono); font-size: 12px; color: var(--text-body); background: rgba(0,0,0,.045);
  border: none; border-radius: var(--r-chip); padding: 3px 7px; cursor: pointer; }
.copy-hash:hover { background: rgba(0,0,0,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── mod results ──────────────────────────────────────── */
.mod { display: flex; gap: 14px; padding: 15px clamp(14px, 2.4vw, 22px); border-top: 1px solid var(--hairline); }
.mod:first-child { border-top: none; }
.mod:hover { background: var(--hover); }
.mod-icon { width: 44px; height: 44px; border-radius: var(--r-thumb); flex: 0 0 auto; object-fit: cover;
  background: var(--track); }
.mod-body { flex: 1 1 auto; min-width: 0; }
.mod-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mod-desc { margin-top: 3px; font-size: 13.5px; color: var(--text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: 0 0 auto; }
.files { margin-top: 10px; border-radius: var(--r-card); overflow: hidden; background: var(--surface);
  border: 1px solid var(--hairline); }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 13px; font-size: 12.5px; }
.file + .file { border-top: 1px solid var(--hairline); }
.file-name { font-family: var(--mono); font-size: 11.5px; color: var(--text-body); word-break: break-all; flex: 1 1 auto; }

/* ── guide ────────────────────────────────────────────── */
.step { display: flex; gap: 16px; padding: 20px clamp(16px, 2.6vw, 24px); }
.step + .step { border-top: 1px solid var(--hairline); }
.step-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff;
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.note { border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.note-warn { border-left-color: var(--heat); }
code.inline { font-family: var(--mono); font-size: .88em; background: rgba(0,0,0,.05);
  padding: 1.5px 5px; border-radius: var(--r-chip); color: var(--text-body); }
ul.plain { list-style: none; }
ul.bullets { padding-left: 1.15em; font-size: 15px; line-height: 1.85; color: var(--text-body); }
ul.bullets li + li { margin-top: .35em; }

/* ── FAQ (details/summary) ────────────────────────────── */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:first-child { border-top: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 15px clamp(16px, 2.6vw, 24px); font-size: 15.5px; font-weight: 600;
  letter-spacing: -.01em; color: var(--text); transition: background .15s; }
.faq summary:hover { background: var(--hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; flex: 0 0 auto; color: var(--text-3); font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { background: var(--hover); }
.faq details p { padding: 0 clamp(16px, 2.6vw, 24px) 18px; }

/* ── states ───────────────────────────────────────────── */
.state { padding: 34px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--track);
  border-top-color: var(--accent); display: inline-block; vertical-align: -2px; margin-right: 8px;
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── footer ───────────────────────────────────────────── */
.footer { margin-top: clamp(48px, 8vw, 88px); border-top: 1px solid var(--hairline); padding: 30px 0 44px;
  color: var(--text-3); font-size: 12.5px; line-height: 1.75; }
.footer strong { color: var(--text-2); font-weight: 600; }
.footer p + p { margin-top: 8px; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-in { gap: 12px; }
  .brand-name { display: none; }
  .vrow-id { width: 100%; }
  .vrow-head { flex-wrap: wrap; gap: 6px 10px; }
  .vrow-meta { flex-basis: 100%; }
  .kv { grid-template-columns: 96px 1fr; }
  .mod { flex-wrap: wrap; }
  .mod-actions { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; }
}

/* ── 启动器站新增 ─────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fact { padding: 18px clamp(16px, 2.6vw, 22px); border-left: 1px solid var(--hairline); }
.fact:first-child { border-left: none; }
.fact-num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact-label { margin-top: 2px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px;
  background: var(--hairline); border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--sh-panel); }
.feature { background: var(--surface); padding: 18px clamp(16px, 2.4vw, 22px); }
.feature h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.feature p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }

.shot { display: block; width: 100%; height: auto; border-radius: var(--r-card);
  border: 1px solid var(--hairline); background: var(--surface); }
.shot-cap { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }

.server { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.server-addr { font-family: var(--mono); font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.server dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.server dt { color: var(--text-3); }
.server dd { color: var(--text-body); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; color: #0a7f3f; background: rgba(48,209,88,.12); }
.dl-meta { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.kbd { font-family: var(--mono); font-size: .9em; background: rgba(0,0,0,.05); border-radius: 3px; padding: 1px 5px; }

/* ── 字体兜底：Windows 上优先 Segoe UI + 微软雅黑，等宽只在明确的地方用 ── */
:root {
  --font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
          "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", Menlo, monospace;
}
html, body { font-family: var(--font); }
button, input, select, textarea, summary, figcaption, dl, dt, dd, small, b, strong, em {
  font-family: inherit;
}
code, pre, samp, .kbd, .mono, .server-addr, .fact-num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.fact-num { font-variant-numeric: tabular-nums; }

/* 页脚品牌标记 */
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.foot-brand .brand-mark { width: 24px; height: 24px; font-size: 11px; }
