/* Boot Camp 版本查询 — 视觉系统 v2（深空科技风）
   零外部依赖，字体全部走系统栈，离线可用。
   主题：默认深色；:root[data-theme="light"] 覆盖为浅色科技风。 */

/* ========== 1. 设计令牌 ========== */
:root {
  color-scheme: dark;

  --bg: #06070c;
  --bg-deep: #04050a;
  --panel: #0b0d14;          /* 不透明面板：sticky 表头等必须实色 */
  --card: rgba(255, 255, 255, .032);
  --card-hi: rgba(255, 255, 255, .06);

  --text: #e9edf7;
  --text-2: #a5aec3;
  --muted: #6b7488;

  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .05);

  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(79, 140, 255, .15);
  --accent-line: rgba(79, 140, 255, .38);

  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, .13);

  --glow: rgba(79, 140, 255, .30);
  --grid: rgba(255, 255, 255, .036);
  --shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 90px -50px rgba(0, 0, 0, 1);

  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --max: 1040px;
  --nav-h: 61px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f3f5fa;
  --bg-deep: #e8ecf6;
  --panel: #ffffff;
  --card: #ffffff;
  --card-hi: #ffffff;

  --text: #0b1020;
  --text-2: #3a4459;
  --muted: #6a7387;

  --line: #e1e6f0;
  --line-soft: #edf1f8;

  --accent: #2563eb;
  --accent-2: #0891b2;
  --accent-soft: #e6eeff;
  --accent-line: rgba(37, 99, 235, .35);

  --ok: #0f9d63;
  --ok-soft: #e3f6ee;
  --warn: #b45309;
  --warn-soft: #fdf0dc;
  --bad: #dc2626;
  --bad-soft: #fdeaea;

  --glow: rgba(37, 99, 235, .10);
  --grid: rgba(11, 16, 32, .028);
  --shadow: 0 18px 44px -30px rgba(13, 25, 60, .28);
  --shadow-lg: 0 30px 70px -44px rgba(13, 25, 60, .38);
}

/* ========== 2. 基础 ========== */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

/* 长按菜单：iOS 不派发 contextmenu，只能靠这个属性拦住；输入框恢复默认以便粘贴 */
body { -webkit-touch-callout: none; }
input, textarea, select { -webkit-touch-callout: default; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; border: 3px solid transparent; }

code, .mono {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--line-soft);
  padding: 1px 5px;
  border-radius: 5px;
}
.mono { background: none; padding: 0; }

.dim { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.pad { padding: 0 4px 40px; }

/* ========== 3. 背景装饰层 ========== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow {
  position: absolute;
  left: 50%;
  top: -32vh;
  width: min(140vw, 1400px);
  height: 90vh;
  transform: translateX(-50%);
  background:
    radial-gradient(46% 52% at 50% 46%, var(--glow), transparent 72%),
    radial-gradient(30% 38% at 76% 30%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 74%);
  filter: blur(12px);
  opacity: .9;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 82% 56% at 50% 0%, #000 0%, rgba(0, 0, 0, .32) 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 82% 56% at 50% 0%, #000 0%, rgba(0, 0, 0, .32) 52%, transparent 82%);
}

main, .topbar, .foot { position: relative; z-index: 1; }

/* ========== 4. 顶栏 ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }

.brand-mark {
  position: relative;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 14.5px; font-weight: 680; letter-spacing: -.015em; white-space: nowrap; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .01em; }

.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a {
  padding: 6px 13px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.topnav a:hover { background: var(--card-hi); color: var(--text); text-decoration: none; }
.topnav a.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 620;
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.theme-btn {
  margin-left: 6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: border-color .16s, color .16s, background .16s;
}
.theme-btn:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: block; }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

/* ========== 5. 容器 ========== */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 80px;
  counter-reset: sec;
}

h1, h2, h3 { letter-spacing: -.025em; margin: 0; }

/* ========== 6. Hero ========== */
.hero { padding: 72px 0 8px; text-align: center; }
.hero.small { padding: 52px 0 0; }
.hero.compact { padding: 30px 0 0; }
.hero.compact h1 { font-size: clamp(22px, 3.2vw, 30px); }
.hero.compact .sub, .hero.compact .hot, .hero.compact .eyebrow { display: none; }
.hero.compact .search { margin-top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex: none;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 62%, transparent); }
  72%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(29px, 4.6vw, 46px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 12%, var(--accent-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: balance;
}
.hero.small h1 { font-size: clamp(24px, 3.6vw, 34px); }

/* ========== 7. 搜索框 ========== */
.search { position: relative; max-width: 660px; margin: 30px auto 0; }

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .18s, box-shadow .22s;
}
.search-box:focus-within {
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent),
    0 24px 60px -30px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
.search-ico { width: 19px; height: 19px; color: var(--muted); flex: none; transition: color .18s; }
.search-box:focus-within .search-ico { color: var(--accent); }

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 15.5px;
  font-family: inherit;
  padding: 11px 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }

.search-box button {
  flex: none;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 62%, var(--accent)));
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  font-family: inherit;
  box-shadow: 0 10px 24px -12px var(--glow);
  transition: filter .15s, transform .06s, box-shadow .2s;
}
.search-box button:hover { filter: brightness(1.09); box-shadow: 0 14px 30px -12px var(--glow); }
.search-box button:active { transform: scale(.98); }

/* 联想下拉 */
.sug {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 9px);
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  z-index: 30;
  max-height: 340px;
  overflow: auto;
  text-align: left;
}
.sug li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
}
.sug li[aria-selected="true"], .sug li:hover { background: var(--accent-soft); }
.sug .s-id { font-family: var(--mono); font-size: 12.5px; color: var(--accent); flex: none; }
.sug .s-name {
  flex: 1; min-width: 0;
  font-size: 13.5px;
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sug .s-bc { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }

/* 热门 */
.hot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.hot a {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color .16s, color .16s, background .16s;
}
.hot a:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ========== 8. 概览数字 ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.stats > div {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stats > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.stats > div:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stats b {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  background: linear-gradient(160deg, var(--text) 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ========== 9. 结果卡 ========== */
.results { margin-top: 48px; }
.results-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.results-head h2 { font-size: 19px; font-weight: 680; }
.results-head .dim { font-size: 12.5px; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  animation: rise .34s cubic-bezier(.22, .8, .3, 1) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.card-none { border-color: color-mix(in srgb, var(--bad) 34%, var(--line)); }
.card-none::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bad) 55%, transparent), transparent); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.card-info h3 { font-size: 20px; font-weight: 700; line-height: 1.32; }
.card-info .en { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--line-soft);
  color: var(--text-2);
  border: 1px solid transparent;
}
.tag.id {
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.card-ver {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 172px;
  padding-left: 20px;
  border-left: 1px dashed var(--line);
}
.ver-label { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ver {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--accent);
  text-shadow: 0 0 34px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ver-none { color: var(--bad); font-size: 27px; text-shadow: none; }

.ver-src {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.src-dl    { background: var(--ok-soft);    color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.src-asu   { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.src-media { background: var(--warn-soft);  color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.src-none  { background: var(--bad-soft);   color: var(--bad);  border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 18px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line-soft);
}
.facts > div { display: flex; gap: 8px; align-items: baseline; }
.facts dt { font-size: 12px; color: var(--muted); flex: none; }
.facts dd { margin: 0; font-size: 13.5px; color: var(--text-2); }

.hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 12px 14px;
  background: var(--line-soft);
  border-radius: 11px;
  border-left: 2px solid var(--accent-line);
}

.sibs { margin-top: 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sibs a {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--line-soft);
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 12.5px;
  transition: border-color .16s, color .16s;
}
.sibs a:hover { color: var(--accent); border-color: var(--accent-line); text-decoration: none; }

/* 空结果 */
.empty {
  margin-top: 48px;
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty h2 { font-size: 20px; }
.empty p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }

/* ========== 10. 区块标题 ========== */
.howto, .packages { margin-top: 72px; }
.howto h2, .packages h2 {
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.howto h2::before, .packages h2::before {
  counter-increment: sec;
  content: "0" counter(sec);
  margin-right: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
}

/* 步骤 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px 20px 17px 58px;
  font-size: 14px;
  color: var(--text-2);
  transition: border-color .2s, background .2s;
}
.steps li:hover { border-color: var(--accent-line); background: var(--card-hi); }
.steps li b { color: var(--text); display: block; font-size: 14.5px; margin-bottom: 3px; font-weight: 650; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px; top: 17px;
  width: 25px; height: 25px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  display: grid; place-items: center;
}

.kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  font-size: 13px;
}

/* ========== 11. 版本一览 ========== */
.pack-lead { margin: 0; font-size: 13.5px; line-height: 1.7; }

.pack-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
  padding: 0;
}
.pack-group:first-of-type .pack-group-head { margin-top: 22px; }
.pg-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}
.pg-title::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}
.pack-group[data-gen="5.1"] .pg-title::before { background: var(--muted); box-shadow: none; }
.pg-meta { font-size: 12.5px; color: var(--muted); }
.pg-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pack-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px 14px;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.pack-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.pack-card:hover {
  border-color: var(--accent-line);
  background: var(--card-hi);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pack-card:hover::after { opacity: 1; }

.pack-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.pack-ver {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.pack-badge {
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.pack-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pack-date.na { opacity: .7; }
.pack-models { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.pack-note { margin: 3px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pack-foot { margin: 18px 0 0; font-size: 12.5px; line-height: 1.7; }

/* ========== 12. 表格 ========== */
.table-wrap {
  /* clip 而非 auto：让表头吸附在页面滚动上，同时保留圆角裁剪 */
  overflow: clip;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.table-wrap.wide { margin-top: 18px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  position: sticky;
  top: var(--nav-h);
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--panel);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--line-soft); }
tbody tr.none td { opacity: .72; }

.rowlink { font-weight: 550; }
.sub { display: block; font-size: 11.5px; font-weight: 400; margin-top: 1px; color: var(--muted); }

/* ---- 全部机型表 ---- */
#tbl {
  table-layout: fixed;
  min-width: 760px;
  /* collapse 模式下 sticky 单元格背景铺不满整格，会透出滚过的行 */
  border-collapse: separate;
  border-spacing: 0;
}

#tbl col.c-model { width: 32%; }
#tbl col.c-id    { width: 14%; }
#tbl col.c-no    { width: 11%; }
#tbl col.c-year  { width: 6%; }
#tbl col.c-bc    { width: 11%; }
#tbl col.c-src   { width: 10%; }
#tbl col.c-win   { width: 16%; }

#tbl thead th {
  position: sticky;
  top: var(--nav-h);
  height: 40px;
  padding: 0 14px;
  vertical-align: middle;
  z-index: 3;
  box-shadow: 0 10px 18px -16px rgba(0, 0, 0, .9);
}
#tbl thead th.c-model { padding-left: 18px; }
#tbl thead th.c-year { text-align: center; }

#tbl tbody td {
  height: 46px;
  padding: 0 14px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--line-soft);
}
#tbl tbody tr:last-child td { border-bottom: 0; }
#tbl tbody td.c-model { padding-left: 18px; padding-right: 12px; }
#tbl tbody td.c-year { text-align: center; }
#tbl tbody tr:not(.grp-head):hover td { background: var(--accent-soft); }
#tbl tbody tr.grp-head:hover { background: none; }

#tbl td.c-model .rowlink {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  transition: color .14s;
}
#tbl td.c-model .rowlink:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#tbl td.c-model .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.3;
}
#tbl .mono { font-family: var(--mono); font-size: 12.5px; }
#tbl td.c-no { font-size: 12px; color: var(--muted); padding: 0 10px; }
#tbl td.c-year { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; padding: 0 6px; }
#tbl td.c-win { font-size: 12.5px; color: var(--text-2); }

/* Boot Camp 版本号：等宽，前缀对齐便于竖着扫读 */
.bcv {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--text);
}
.bcv-none { color: var(--bad); font-size: 12.5px; font-family: inherit; font-weight: 500; }
#tbl .dash { color: var(--muted); }

/* 来源徽章统一宽度，右边缘不再参差 */
#tbl .ver-src {
  display: inline-block;
  min-width: 66px;
  text-align: center;
}

/* 分组标题：只做视觉分隔，不吸附（两个分组标题会重叠并把数据行切掉半截） */
#tbl tr.grp-head th {
  height: auto;
  padding: 22px 18px 8px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text-2);
}
#tbl tbody:first-of-type tr.grp-head th { padding-top: 14px; }
.grp-name { position: relative; padding-left: 12px; }
.grp-name::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 12px;
  margin-top: -6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--glow);
}
.grp-n {
  margin-left: 9px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 底部图例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 18px 0 0;
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .lg { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.legend .lg.src-dl { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
.legend .lg.src-asu { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.legend .lg.src-media { background: var(--warn); box-shadow: 0 0 8px color-mix(in srgb, var(--warn) 55%, transparent); }
.legend .lg.src-none { background: var(--bad); box-shadow: 0 0 8px color-mix(in srgb, var(--bad) 55%, transparent); }

/* 列表页工具栏 */
.list-tools { margin-top: 26px; }
.list-tools input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .18s, box-shadow .22s;
}
.list-tools input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.chip i { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 11px; margin-left: 2px; }
.chip i::before { content: "·"; margin-right: 3px; opacity: .55; }
.chip:hover { border-color: var(--accent-line); color: var(--accent); }
.chip.on {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 55%, var(--accent)));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -12px var(--glow);
}
.chip.on i { color: rgba(255, 255, 255, .8); }

/* 提示条 */
.notice {
  margin: 28px 0 0;
  padding: 15px 17px;
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.65;
}
.notice.err {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
}
.notice code { background: rgba(0, 0, 0, .12); }

/* ========== 13. 页脚 ========== */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
.foot::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.foot p { margin: 0 0 8px; }
.foot .dim { font-size: 12px; }

/* 页脚底栏：版权 + 闲鱼引流 */
.foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.foot .copyright { margin: 0; font-size: 12.5px; color: var(--muted); }
.xy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 180px;
  margin: 0;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.xy:hover { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px var(--glow); }
.xy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xy svg { width: 16px; height: 16px; flex: none; }
.xy b { font-weight: 700; }
.xy.done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 34%, transparent); color: var(--ok); }
.xy.done:hover { background: var(--ok); border-color: transparent; color: #fff; }

/* ========== 14. 响应式 ========== */
/* 平板竖屏（720–800）：表格容器放不下 760px 最小宽度，改为跟随容器免得被裁 */
@media (min-width: 721px) and (max-width: 800px) {
  #tbl { min-width: 0; }
}

@media (max-width: 720px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .card-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
  /* 手机上按钮宽度贴合内容，不必为防跳动预留固定宽度 */
  .xy { min-width: 0; }

  .card-ver {
    align-items: flex-start;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px dashed var(--line);
  }
  .ver { font-size: 30px; }

  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stats > div { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; }
  .stats b { font-size: 24px; }
  .stats span { margin-top: 0; }

  .howto, .packages { margin-top: 52px; }

  /* 窄屏下表格转成卡片，避免横向滚动 */
  .table-wrap.wide { background: none; border: 0; box-shadow: none; overflow: visible; }
  #tbl { display: block; min-width: 0; }
  #tbl thead { display: none; }
  #tbl tbody { display: block; }

  #tbl tbody tr.grp-head {
    display: block;
    margin: 6px 0 10px;
    padding: 0 2px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  #tbl tr.grp-head th {
    display: block;
    position: static;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
  }
  /* 卡片内部用网格显式定位，避免 flex 把版本块挤到标识符那一行 */
  #tbl tbody tr[data-row] {
    display: grid;
    grid-template-columns: auto auto 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 15px 16px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
  }
  #tbl tbody tr[data-row]:hover { background: var(--card); }
  #tbl tbody tr[data-row]:hover td { background: none; }
  #tbl tbody td {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  #tbl tbody td.c-model { grid-column: 1 / -1; padding: 0; }
  #tbl td.c-model .rowlink { display: block; font-size: 15px; white-space: normal; }
  #tbl td.c-model .sub { white-space: normal; }

  #tbl tbody td.c-id   { grid-column: 1; grid-row: 2; }
  #tbl tbody td.c-no   { grid-column: 2; grid-row: 2; }
  #tbl tbody td.c-year { grid-column: 3; grid-row: 2; justify-self: start; }
  #tbl tbody td.c-id,
  #tbl tbody td.c-no,
  #tbl tbody td.c-year {
    font-size: 11.5px;
    color: var(--muted);
  }

  #tbl tbody td.c-bc {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
  }
  #tbl tbody td.c-bc::before {
    content: "Boot Camp";
    display: block;
    font-size: 10px;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 1px;
  }
  #tbl tbody td.c-src {
    grid-column: 2 / 4;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    margin-bottom: 2px;
  }
  #tbl tbody td.c-win {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-2);
  }
  #tbl tbody td.c-win::before {
    content: "支持系统";
    display: block;
    font-size: 10px;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 1px;
  }
  #tbl .ver-src { min-width: 0; }
  .legend { gap: 8px 16px; }
}

@media (max-width: 470px) {
  .brand-text i { display: none; }
  .brand-text b { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .topnav a { padding: 6px 8px; font-size: 12.5px; }
  .theme-btn { width: 30px; height: 30px; }
  .foot-bar { gap: 12px; }
  .hero .sub { font-size: 14px; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
