/* ============================================================
   Skill 星云 — 146 个技能库
   ============================================================ */
:root {
  --bg: #080b10;
  --bg-2: #0d1219;
  --panel: rgba(255, 255, 255, .038);
  --panel-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --fg: #e9eef5;
  --muted: #8d9bab;
  --muted-2: #5f6b79;
  --accent: #4a8fe0;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 粒子画布（固定在背景，仅英雄区可见） ---------- */
/* 画布在 .deck 内，规则见文件末尾的控制台区块 */

#tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(12, 17, 24, .93);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 260px;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity .13s ease;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}
#tip.on { opacity: 1; }
#tip b { display: block; font-family: var(--mono); font-size: 12.5px; }
#tip span { color: var(--muted); font-size: 11.5px; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 96px;
  background: radial-gradient(ellipse 90% 60% at 50% 42%,
              rgba(74, 143, 224, .10), transparent 70%);
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 20%, #9db4cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #36cfc9, #4a8fe0 45%, #b37feb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16.5px);
  max-width: 620px;
}
.lead kbd {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--fg);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.stat {
  min-width: 104px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 14, 20, .6);
  backdrop-filter: blur(11px);
}
.stat b {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  max-width: 760px;
}
.legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, .58);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: all .16s ease;
}
.legend button i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c);
}
.legend button:hover { color: var(--fg); border-color: var(--line-2); }
.legend button.on {
  color: #fff;
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, transparent);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- 主体 ---------- */
main {
  position: relative;
  z-index: 2;
  /* 半透明 + 极淡网格：让背后的环境粒子透上来，整页都有科技感 */
  background:
    linear-gradient(rgba(96,158,206,.038) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(96,158,206,.038) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg,
      rgba(6,9,13,.74) 0%, rgba(11,16,24,.82) 460px, rgba(6,9,13,.88) 100%);
  min-height: 100vh;
  padding-bottom: 90px;
}

.toolbar {
  /* 不再吸顶：筛选区常驻后有三五排 chip，吸顶会盖住三成屏幕。
     放在正文流里，滚走就滚走，不遮挡内容。 */
  position: static;
  z-index: 30;
  padding: 16px 0 13px;
  background: rgba(8, 11, 16, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.tb-inner { max-width: 1280px; margin: 0 auto; padding: 0 26px; }

/* 滚动后折叠筛选区，避免它吃掉三成屏幕并盖住正文 */
.filt-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.filt-btn:hover { color: var(--fg); border-color: var(--line-2); }
.filt-btn[aria-expanded="true"] {
  color: #fff;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

/* 筛选区常驻：不再折叠隐藏 */
.tb-filters { display: block; }
.filt-btn { display: none !important; }
@keyframes tbfade { from { opacity: 0; transform: translateY(-5px); } }

.tb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tb-row + .tb-row { margin-top: 11px; }

.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; stroke: var(--muted-2); fill: none; stroke-width: 2;
}
.search input {
  width: 100%;
  padding: 9px 34px 9px 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s;
}
.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: var(--muted-2); }
.search .clr {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--muted-2); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 3px; display: none;
}
.search.has .clr { display: block; }
.search .clr:hover { color: var(--fg); }

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 13px;
  cursor: pointer;
  transition: all .15s;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--panel-2); color: #fff; }

.tb-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tb-count b { color: var(--fg); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chips .lbl {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .1em;
  margin-right: 3px;
  min-width: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, var(--muted-2));
}
.chip.on {
  color: #fff;
  border-color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 20%, transparent);
}
.chip .n { opacity: .55; font-size: 10.5px; font-variant-numeric: tabular-nums; }

.reset {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit; font-size: 12.5px;
  padding: 6px 13px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.reset:hover { color: #fff; border-color: var(--line-2); }
.reset[hidden] { display: none; }

/* ---------- 卡片网格 ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 26px; }

.group { margin-top: 38px; scroll-margin-top: 112px; }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.group-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.group-head .bar {
  width: 3px; height: 17px; border-radius: 2px;
  background: var(--c, var(--accent));
  box-shadow: 0 0 10px var(--c, var(--accent));
  align-self: center;
}
.group-head .cnt {
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(283px, 1fr));
  gap: 13px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.014));
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s, background .18s;
  overflow: hidden;
  text-align: left;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--c);
  opacity: .5;
  transition: opacity .18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 55%, var(--line-2));
  background: linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.02));
}
.card:hover::before { opacity: 1; }
.card.pulse { animation: pulse .9s ease; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent); }
}

.card-top { display: flex; align-items: flex-start; gap: 9px; }
.card h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.2px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  word-break: break-word;
  flex: 1;
}
.dot {
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 9px var(--c);
  margin-top: 5px;
}

.card .purpose {
  margin: 0;
  font-size: 13px;
  color: #b9c6d4;
  line-height: 1.55;
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 3px;
}
.card .tags span {
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .05);
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.card-foot .ind {
  color: var(--c);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot .sep { margin-left: auto; }

.empty { text-align: center; padding: 90px 20px; color: var(--muted-2); }
.empty[hidden] { display: none; }

/* ---------- 从目标出发：流程卡片 ---------- */
.block.first { margin-top: 30px; }

.flows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 12px;
}
.flow {
  position: relative;
  text-align: left;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  cursor: pointer;
  font: inherit;
  color: var(--fg);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s, background .18s;
  overflow: hidden;
}
.flow::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--c); opacity: .55; transition: opacity .18s;
}
.flow:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 55%, var(--line-2));
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}
.flow:hover::before { opacity: 1; }
.flow-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.flow-top .ic { font-size: 17px; line-height: 1; }
.flow-top h3 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.flow-goal {
  margin: 0 0 11px; font-size: 12.5px; line-height: 1.6; color: var(--muted);
  min-height: 40px;
}
.flow-chain { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.flow-chain i {
  font-style: normal; font-family: var(--mono); font-size: 10.5px;
  padding: 2.5px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .055); color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .05);
  max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.flow-chain .ar { color: var(--muted-2); font-size: 10px; }
.flow-chain .more { color: var(--c); border-color: transparent; background: none; }

/* 流程详情 */
.flow-steps { margin: 0; padding: 0; list-style: none; counter-reset: fs; }
.flow-steps li {
  position: relative;
  counter-increment: fs;
  padding: 0 0 20px 44px;
}
.flow-steps li:last-child { padding-bottom: 4px; }
.flow-steps li::before {
  content: counter(fs);
  position: absolute; left: 0; top: -1px;
  width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--c) 34%, #0c1017);
  border: 1px solid color-mix(in srgb, var(--c) 62%, transparent);
}
/* 连接线 */
.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 13px; top: 29px; bottom: 2px;
  width: 1px; background: linear-gradient(180deg,
    color-mix(in srgb, var(--c) 45%, transparent), transparent);
}
.flow-steps a.step-name {
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  color: var(--fg); text-decoration: none;
}
.flow-steps a.step-name:hover { color: var(--c); text-decoration: underline; }
.flow-steps .why {
  display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.flow-steps .purpose {
  display: block; margin-top: 3px; font-size: 12px; color: var(--muted-2);
}
.flow-head-goal {
  font-size: 15px; line-height: 1.7; color: #cdd9e6; margin: 0 0 24px;
  padding-left: 13px; border-left: 2px solid var(--c);
}

@media (max-width: 720px) {
  .flows { grid-template-columns: 1fr; }
  .flow-goal { min-height: 0; }
}

/* ---------- 语言角标 / 原文对照 ---------- */
.lang {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  padding: 0 5px;
  margin-right: 6px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  vertical-align: 1px;
}
.lang.big { font-size: 10px; margin-left: 8px; color: var(--accent); border-color: var(--accent); }
.sheet-orig {
  font-size: 13.6px;
  line-height: 1.75;
  color: #9fb0c2;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .028);
  border-left: 2px solid var(--line-2);
  white-space: pre-wrap;
}
.sheet-orig.en { font-family: var(--sans); letter-spacing: .002em; }
.srclang { margin: -8px 0 18px; font-size: 11.5px; color: var(--muted-2); }

/* ---------- 收藏 ---------- */
.card .fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 27px; height: 27px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, color .15s, background .15s;
  z-index: 1;
}
.card:hover .fav, .card:focus-within .fav { opacity: 1; }
.card .fav:hover { background: rgba(255,255,255,.09); color: var(--fg); }
.card .fav.on { opacity: 1; color: #F5A623; }
@media (hover: none) { .card .fav { opacity: 1; } }

.chip.favonly { gap: 5px; }
.chip.favonly .star { font-size: 13px; }
.chip.favonly.on {
  color: #fff;
  border-color: #F5A623;
  background: rgba(245, 166, 35, .18);
}
.chip.favonly.on .star { color: #F5A623; }
.btn.on { color: #F5A623; border-color: rgba(245,166,35,.55); }

/* ---------- 安装命令框 ---------- */
.cmdbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #05080c;
  margin-bottom: 8px;
}
.cmdbox code {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.4px;
  color: #8fd4c8;
  word-break: break-all;
  line-height: 1.6;
}
.cmdbox .btn { flex: 0 0 auto; padding: 7px 13px; font-size: 12.4px; }
.cmdbox.warn {
  border-style: dashed;
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted-2);
  font-size: 12.5px;
  justify-content: center;
}
.cmdnote {
  margin: 0 0 4px;
  font-size: 11.8px;
  color: var(--muted-2);
}

/* ---------- 来源与致谢 / 联系区块 ---------- */
.block { margin-top: 62px; scroll-margin-top: 112px; }
.block[hidden] { display: none; }

.block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.block-head .bar {
  width: 3px; height: 17px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.block-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.block-head .cnt {
  margin-left: auto; font-size: 12px; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.block-lead {
  color: var(--muted); font-size: 13.5px; line-height: 1.7;
  margin: 0 0 18px; max-width: 820px;
}

.sources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 10px;
}
.source {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  text-decoration: none;
  color: var(--fg);
  transition: all .16s ease;
}
.source:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.source .av {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  background: rgba(255, 255, 255, .07);
  color: #cfe0f0;
}
.source .meta { min-width: 0; flex: 1; }
.source .meta b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.source .meta span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.source .n {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.contact-text p {
  margin: 0 0 14px;
  color: #b0bfce;
  font-size: 13.8px;
  line-height: 1.75;
  max-width: 640px;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 9px; }
.contact-note { color: var(--muted-2) !important; font-size: 12.5px !important; }

.qr {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}
.qr img, .qr-ph {
  width: 156px; height: 156px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 7px;
  display: block;
}
.qr-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 12px;
  padding: 12px;
  text-align: center;
}
.qr-ph code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  word-break: break-all;
}
.qr figcaption {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}

.foot {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}
.foot p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.7;
}
.foot p + p { margin-top: 6px; }

/* 卡片/详情里的作者行 */
.card-foot .by {
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 46%;
}
.credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 12.5px;
  color: var(--muted);
}
.credit b { color: var(--fg); font-weight: 600; }
.credit a { color: var(--accent); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.credit .un { color: var(--muted-2); font-style: normal; }

/* ---------- 详情弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 18px;
  background: rgba(4, 6, 9, .72);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}
.modal.on { display: flex; }
.sheet {
  width: 100%;
  max-width: 880px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #0c1017;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  animation: rise .26s cubic-bezier(.2,.75,.3,1);
  overflow: hidden;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.985); } }

.sheet-head {
  position: relative;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--c) 13%, transparent), transparent);
}
.sheet-head h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  word-break: break-word;
  padding-right: 40px;
}
.sheet-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.sheet-meta span {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.sheet-meta span.c {
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.x {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 17px; line-height: 1;
  cursor: pointer;
  transition: all .15s;
}
.x:hover { color: #fff; border-color: var(--line-2); background: var(--panel-2); }

.sheet-body { padding: 22px 26px 30px; }

.sheet-purpose {
  font-size: 15.5px;
  line-height: 1.7;
  color: #cdd9e6;
  margin: 0 0 18px;
  padding-left: 13px;
  border-left: 2px solid var(--c);
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 9px;
  margin-bottom: 22px;
}
.kv div {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.kv b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.kv span { font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em; }

.sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 24px 0 11px;
}
.sec-title::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.sheet-desc {
  font-size: 13.8px;
  line-height: 1.72;
  color: #a9b8c8;
  margin: 0;
  white-space: pre-wrap;
}

.md {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090d13;
  padding: 20px 22px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 13.6px;
  line-height: 1.75;
  color: #b7c5d4;
}
.md h1, .md h2, .md h3, .md h4 {
  color: #fff;
  margin: 22px 0 9px;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.md h1 { font-size: 19px; }
.md h2 { font-size: 16.5px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 14.5px; }
.md h4 { font-size: 13.5px; color: #cdd9e6; }
.md > *:first-child { margin-top: 0; }
.md p { margin: 0 0 11px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 21px; }
.md li { margin-bottom: 5px; }
.md li::marker { color: var(--muted-2); }
.md code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 1.5px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .075);
  color: #8fd4c8;
}
.md pre {
  margin: 0 0 13px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #05080c;
  border: 1px solid var(--line);
  overflow-x: auto;
}
.md pre code {
  background: none; padding: 0; color: #9fb3c8;
  font-size: 12.4px; line-height: 1.62;
}
.md blockquote {
  margin: 0 0 13px;
  padding: 3px 0 3px 14px;
  border-left: 2px solid var(--line-2);
  color: var(--muted);
}
.md table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 12.6px;
}
.md th, .md td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}
.md th { background: rgba(255, 255, 255, .04); color: #dbe5ef; font-weight: 600; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.md a { color: var(--accent); }
.md strong { color: #e9eef5; }

.md-load {
  padding: 26px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.sheet-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 12.8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn:hover { background: var(--panel-2); border-color: var(--muted-2); }
.btn.primary {
  background: color-mix(in srgb, var(--c) 22%, transparent);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  color: #fff;
}
.btn .path {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.btn.ok { color: #52c41a; border-color: #52c41a55; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .tb-count { margin-left: 0; width: 100%; }
  .sheet-head { padding: 20px 18px 16px; }
  .sheet-body { padding: 18px 18px 24px; }
  .wrap, .tb-inner { padding: 0 16px; }
  .md { padding: 15px 15px; max-height: 55vh; }

  /* 英雄区：2×2 统计卡 + 更紧凑的图例，避免粒子穿字 */
  .hero { padding: 40px 18px 84px; }
  .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    width: 100%;
    max-width: 340px;
  }
  .stat { min-width: 0; padding: 12px 14px; }
  .stat b { font-size: 22px; }
  .legend { gap: 6px; max-width: 100%; }
  .legend button { font-size: 11px; padding: 5px 9px; }
  .lead { font-size: 14px; }
  .scroll-hint { bottom: 16px; }

  /* 筛选栏在窄屏上会折成十几行、把正文整个盖住 ——
     改成单行横向滚动，工具栏高度就固定住了。 */
  .toolbar { padding: 11px 0 9px; }
  .tb-row + .tb-row { margin-top: 8px; }
  .search { flex: 1 1 100%; max-width: none; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    /* 让最后一个 chip 不贴边 */
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .lbl { display: none; }
  .chip { flex: 0 0 auto; }
  .seg button { padding: 8px 11px; font-size: 12px; }
  .group, .block { scroll-margin-top: 118px; }
  .contact { grid-template-columns: 1fr; gap: 22px; }
  .qr { justify-self: center; }
  .sources { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  .card, .flow { transition: none; }
  .card:hover, .flow:hover { transform: none; }
  .sheet { animation: none; }
  html { scroll-behavior: auto; }
}

/* 键盘可见的焦点环 —— 鼠标点击时不显示，Tab 时才出现 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.card:focus-visible { outline-offset: 3px; }
.search input:focus-visible { outline-offset: 0; }

/* 跳转到主内容（屏幕阅读器 / 键盘用户） */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: #fff;
  border-radius: 0 0 10px 0; font-size: 13px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ============================================================
   控制台（英雄区）
   ============================================================ */
.deck {
  position: relative;
  height: 100vh;
  min-height: 740px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 12% 50%, rgba(74,143,224,.13), transparent 70%),
    radial-gradient(ellipse 40% 45% at 78% 18%, rgba(54,207,201,.07), transparent 70%),
    #05070a;
}
/* 全站环境粒子层 */
#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.deck-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#cloud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;   /* 节点需要可点：面板 z-index 更高，不会挡住 */
  display: block;
}

/* ---------- 顶栏 ---------- */
.deck-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(74,143,224,.28), rgba(54,207,201,.16));
  border: 1px solid rgba(120,180,220,.28);
}
.brand-mark svg {
  width: 15px; height: 15px;
  stroke: #9fd8ee; stroke-width: 1.4; fill: none;
}
.brand-name {
  font-size: 13.5px; font-weight: 600; letter-spacing: .015em;
  line-height: 1.2; color: #e6eef6;
}
.brand-name i {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 2px;
}

.deck-tools {
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(12,17,24,.66);
  backdrop-filter: blur(14px);
}
.dtool {
  min-width: 30px; height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: inherit; font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.dtool:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.dtool.on {
  color: #fff;
  background: rgba(74,143,224,.22);
  border-color: rgba(120,180,230,.4);
}
.dtool-sep {
  width: 1px; height: 18px; margin: 0 4px;
  background: var(--line);
}

.deck-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.deck-search {
  position: relative; display: block;
  width: 236px;
}
.deck-search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; stroke: var(--muted-2);
  fill: none; stroke-width: 2;
}
.deck-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12,17,24,.66);
  backdrop-filter: blur(14px);
  color: var(--fg);
  font: inherit; font-size: 12.5px;
  outline: none;
  transition: border-color .16s;
}
.deck-search input:focus { border-color: rgba(74,143,224,.7); }
.deck-search input::placeholder { color: var(--muted-2); }

/* ---------- 巨大品牌标题 ---------- */
.deck-brand::before {
  content: "";
  position: absolute;
  left: -8%; top: -30%;
  width: 118%; height: 190%;
  background: radial-gradient(ellipse at 30% 40%, rgba(74,143,224,.16), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.deck-brand {
  position: absolute;
  left: 3.2%;
  top: 8.5%;
  z-index: 4;
  max-width: 46%;
  pointer-events: none;
}
.db-kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(140,190,225,.7);
}
.db-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #36CFC9;
  box-shadow: 0 0 10px #36CFC9;
  animation: dbpulse 2.4s ease-in-out infinite;
}
@keyframes dbpulse { 0%,100%{opacity:.45; transform:scale(.85)} 50%{opacity:1; transform:scale(1.15)} }

.deck-brand h1 {
  margin: 16px 0 14px;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.0;
  letter-spacing: -.038em;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 12%, #a7c0d8 94%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.deck-brand h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #36CFC9, #4A8FE0 46%, #B37FEB);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.db-tagline {
  margin: 0 0 18px;
  font-size: clamp(13px, 1.15vw, 15.5px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 30em;
}
.db-tagline strong { color: #d5e6f4; font-weight: 600; }
.db-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.db-meta span {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted-2);
}

/* ---------- 球体标签 ---------- */
.orb-label {
  position: absolute;
  left: 11.5%; top: calc(50% + 120px);
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
  width: 190px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(5,8,12,.55);
  backdrop-filter: blur(3px);
}
.orb-label b {
  display: block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
  color: #eaf2f9;
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
}
.orb-label span {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .06em;
  color: rgba(150,190,220,.75);
}

/* ---------- 数据卡 ---------- */
.deck-stats {
  position: absolute;
  left: 20.5%; top: 58%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 9px;
  width: 168px;
}
.dstat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.dstat:hover { border-color: rgba(120,180,230,.35); }
.dstat i {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(74,143,224,.15);
  color: #8dc6ec;
  font-size: 11px; font-style: normal;
}
.dstat b {
  font-size: 17px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1;
  color: #eef5fb;
}
.dstat span {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 右侧详情面板 ---------- */
.deck-panel {
  position: absolute;
  right: 2.2%; top: 11%;
  width: 348px;
  max-height: 78%;
  overflow-y: auto;
  z-index: 5;
  border-radius: 16px;
  border: 1px solid rgba(120,160,200,.18);
  background: linear-gradient(180deg, rgba(16,23,32,.9), rgba(10,15,21,.94));
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.045);
  scrollbar-width: thin;
}
.deck-panel::-webkit-scrollbar { width: 5px; }
.deck-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 3px; }

.dp-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, #4A8FE0) 11%, transparent), transparent);
}
.dp-kicker {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.dp-kicker em { font-style: normal; color: var(--c, #4A8FE0); }
.dp-head h2 {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 15.5px; font-weight: 650;
  line-height: 1.35; letter-spacing: -.01em;
  word-break: break-word; color: #f0f6fb;
}
.dp-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.dp-badges span {
  font-size: 10.5px; padding: 2.5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.dp-badges span.c {
  color: var(--c, #4A8FE0);
  border-color: color-mix(in srgb, var(--c, #4A8FE0) 45%, transparent);
  background: color-mix(in srgb, var(--c, #4A8FE0) 13%, transparent);
}
.dp-body { padding: 15px 18px 18px; }
.dp-purpose {
  margin: 0 0 13px;
  font-size: 13.5px; line-height: 1.65;
  color: #d3e0ec;
  padding-left: 11px;
  border-left: 2px solid var(--c, #4A8FE0);
}
.dp-orig {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.05);
  font-size: 12px; line-height: 1.68;
  color: #97a9bb;
  max-height: 120px; overflow-y: auto;
}
.dp-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.dp-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7px; margin-bottom: 14px;
}
.dp-cell {
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}
.dp-cell b {
  display: block; font-size: 15px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #e8f1f8; line-height: 1.1;
}
.dp-cell span {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2);
}
.dp-cmd {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(120,180,230,.22);
  background: #05080c;
  margin-bottom: 12px;
}
.dp-cmd code {
  flex: 1;
  font-family: var(--mono); font-size: 10.5px;
  color: #8fd4c8; word-break: break-all; line-height: 1.5;
}
.dp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-actions .btn { padding: 7px 12px; font-size: 11.5px; border-radius: 8px; }

.dp-list { display: flex; flex-direction: column; gap: 5px; }
.dp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--fg);
  transition: all .14s;
}
.dp-item:hover { background: rgba(255,255,255,.06); border-color: var(--line); }
.dp-item .dot2 {
  flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c, #4A8FE0);
}
.dp-item b {
  flex: 1;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-item span {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--muted-2);
}
.dp-more {
  margin-top: 7px; width: 100%;
  padding: 7px; border-radius: 7px;
  border: 1px dashed rgba(255,255,255,.12);
  background: none; color: var(--muted);
  font: inherit; font-size: 11.5px; cursor: pointer;
}
.dp-more:hover { color: var(--fg); border-color: rgba(255,255,255,.26); }

/* ---------- 面板里的科普区块 ---------- */
.dp-edu {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dp-edu-h {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px;
  font-size: 12.5px; font-weight: 650;
  color: #dbe9f5;
}
.dp-edu-h:not(:first-child) { margin-top: 14px; }
.dp-edu-h span {
  font-family: var(--mono);
  font-size: 9px;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(74,143,224,.18);
  border: 1px solid rgba(120,180,230,.3);
  color: #8dc6ec;
}
.dp-edu p {
  margin: 0;
  font-size: 12.2px; line-height: 1.72;
  color: #92a6ba;
}
.dp-edu p strong { color: #cfe1f0; font-weight: 600; }
.dp-edu code {
  font-family: var(--mono); font-size: 11px;
  padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,.06);
  color: #8fd4c8;
}
.dp-edu .dp-cmd { margin: 8px 0 7px; }
.dp-note {
  margin: 0 !important;
  font-size: 11.3px !important;
  line-height: 1.66 !important;
  color: var(--muted-2) !important;
}

/* ---------- 底部命令条 ---------- */
.deck-cmd {
  position: absolute;
  bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 6;
  display: flex; align-items: center; gap: 9px;
  width: min(620px, calc(100% - 40px));
  padding: 9px 10px 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,200,.22);
  background: rgba(14,20,28,.86);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .2s, box-shadow .2s;
}
.deck-cmd:focus-within {
  border-color: rgba(74,143,224,.65);
  box-shadow: 0 18px 60px rgba(0,0,0,.6), 0 0 0 3px rgba(74,143,224,.13);
}
.cmd-ic { color: #7fd8e8; font-size: 13px; }
.deck-cmd input {
  flex: 1;
  border: 0; background: none; outline: none;
  color: var(--fg); font: inherit; font-size: 13.5px;
}
.deck-cmd input::placeholder { color: var(--muted-2); }
.cmd-go {
  flex: 0 0 auto;
  width: 33px; height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(120,180,230,.35);
  background: linear-gradient(145deg, rgba(74,143,224,.3), rgba(54,207,201,.18));
  color: #dff0fa; font-size: 14px;
  cursor: pointer;
  transition: all .16s;
}
.cmd-go:hover { background: linear-gradient(145deg, rgba(74,143,224,.5), rgba(54,207,201,.3)); }

.deck-hint {
  position: absolute;
  bottom: 11px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .deck { height: auto; min-height: 0; padding: 0 16px 40px; }
  /* 窄屏：画布只占顶部 360px，球体居中，不画放射图 */
  .deck-stage { position: relative; inset: auto; height: 300px; margin: 0 -16px; }
  .deck-brand {
    position: static; max-width: none;
    padding: 96px 0 6px;
    pointer-events: auto;
  }
  .deck-brand h1 { font-size: clamp(36px, 11vw, 52px); margin: 12px 0 10px; }
  .db-tagline { font-size: 13px; margin-bottom: 12px; }
  .deck-top { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .deck-tools { order: 3; width: 100%; justify-content: center; }
  .deck-search { width: 168px; }
  .orb-label {
    position: absolute; left: 50%; bottom: 6px;
    transform: translateX(-50%); width: auto; max-width: 90%;
  }
  .deck-stats {
    position: static; transform: none; width: 100%;
    display: grid; grid-template-columns: repeat(2, 1fr);
    margin-top: 8px;
  }
  .deck-panel {
    position: static; width: 100%; max-height: none;
    margin-top: 14px;
  }
  .deck-cmd { position: static; transform: none; width: 100%; margin-top: 14px; }
  .deck-hint { position: static; transform: none; margin-top: 14px; text-align: center; }
}

/* ---------- 双语切换（首页与使用说明共用） ----------
   默认中文；body.lang-en 时切英文。
   用 display:revert 而不是 inline —— 否则块级元素会塌成一行。 */
.i18n-en { display: none; }
body.lang-en .i18n-en { display: revert; }
body.lang-en .i18n-zh { display: none; }

/* ---------- 顶栏：使用说明入口 + 语言切换 ---------- */
.deck-guide {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  color: #9db4c8;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: .16s;
}
.deck-guide:hover {
  color: #cfe8ff;
  border-color: rgba(120,180,230,.5);
  background: rgba(74,143,224,.12);
}
.deck-lang {
  flex: 0 0 auto;
  height: 34px; min-width: 48px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px; font-weight: 600;
  color: #9db4c8;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: .16s;
}
.deck-lang:hover {
  color: #cfe8ff;
  border-color: rgba(120,180,230,.5);
  background: rgba(74,143,224,.12);
}
@media (max-width: 900px) {
  .deck-guide, .deck-lang { margin-top: 0; }
  .deck-top { flex-wrap: wrap; gap: 8px; }
}

/* ---------- 页脚导航 ---------- */
.foot-nav { margin: 0 0 12px; }
.foot-nav a {
  display: inline-block;
  font-size: 12.5px;
  color: #8fa8c0;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(120, 180, 230, .38);
  transition: .16s;
}
.foot-nav a:hover { color: #cfe8ff; border-bottom-color: #4A8FE0; }

/* 筛选联动：当前组合下没有结果的 chip 变暗 */
.chip.is-zero {
  opacity: .38;
}
.chip.is-zero:hover { opacity: .7; }
