/* ==========================================================================
   指尖3D / Digit 3D — 官网样式表
   品牌色取自 logo：深藏蓝 #051130 / 主蓝 #0343D4 / 亮蓝 #247CF8 / 纸白 #FAF9F7
   设计语言：制图感（蓝图网格、等距 30° 斜角、尺寸标注线、等宽字号规格）
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink:        #051130;
  --ink-soft:   #0e1b3d;
  --brand:      #0343d4;
  --brand-lite: #247cf8;
  --brand-glow: #7bb0ff;
  --paper:      #faf9f7;

  --bg:         #faf9f7;
  --bg-alt:     #f2f3f7;
  --surface:    #ffffff;
  --surface-2:  #f7f8fb;
  --text:       #0e1b3d;
  --text-muted: #55617f;
  --text-faint: #7c88a3;
  --line:       #e2e5ee;
  --line-soft:  #eef0f6;
  --accent-bg:  #eef3ff;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 17, 48, .06), 0 2px 8px rgba(5, 17, 48, .04);
  --shadow:    0 2px 6px rgba(5, 17, 48, .06), 0 12px 32px rgba(5, 17, 48, .08);
  --shadow-lg: 0 8px 24px rgba(5, 17, 48, .10), 0 32px 64px rgba(5, 17, 48, .12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto,
               Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  --wrap: 1140px;
  --nav-h: 62px;
}

html[data-theme="dark"] {
  --bg:         #070c1a;
  --bg-alt:     #0b1226;
  --surface:    #0f1830;
  --surface-2:  #141e3a;
  --text:       #e8ecf7;
  --text-muted: #9aa6c4;
  --text-faint: #74809e;
  --line:       #222e52;
  --line-soft:  #1a2440;
  --accent-bg:  #12203f;
  --brand:      #4d8bfb;
  --brand-lite: #7bb0ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 2px 8px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5), 0 40px 80px rgba(0,0,0,.45);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* hidden 属性必须真的能藏住东西。浏览器自带的是 `[hidden]{display:none}`，
   任何一条带类名的 display 规则都比它更具体 —— 语言菜单和反馈看板的表单先后都栽在这上面
   （JS 设了 hidden，元素照样显示）。在这儿一次性钉死，往后加组件不用再想这件事。 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    /* 这行不能省：只压时长不压次数的话，infinite 动画（首屏那张图）会被压成
       每一帧随机落在动画的某个位置 —— 看上去就是原地剧烈抖动。压成一次才是停住。 */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; font-weight: 680; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -.022em; }
h3 { font-size: 1.12rem; }
p  { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .88em; font-variant-ligatures: none; }

:focus-visible {
  outline: 2px solid var(--brand-lite);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner {
  height: 100%; display: flex; align-items: center; gap: 10px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: 22px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 27px; height: 27px; flex-shrink: 0; }
.brand__name { font-size: 1.02rem; white-space: nowrap; }
.brand__tag {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .07em; color: var(--brand); background: var(--accent-bg);
  padding: 2px 6px; border-radius: 5px; text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav__links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 550;
  padding: 7px 11px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--brand); background: var(--accent-bg); }

.nav__spacer { flex: 1; }
.nav__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 34px; min-width: 34px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text-muted);
  font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-faint); }
.icon-btn svg { width: 15px; height: 15px; }

.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 14px 16px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 10px; font-size: 1rem; border-radius: 10px; }
  .nav__burger { display: inline-flex; }
}

/* 窄屏导航栏只保留必需项，避免品牌名被挤到换行 */
@media (max-width: 520px) {
  .nav__inner { gap: 6px; padding-inline: 14px; }
  .brand__tag { display: none; }
  .nav__tools { gap: 4px; }
  .nav__tools .btn { padding: 8px 12px !important; }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: .96rem; font-weight: 650; letter-spacing: -.01em;
  cursor: pointer; transition: transform .14s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  text-align: center; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-lite) 100%);
  color: #fff; box-shadow: 0 2px 10px rgba(3, 67, 212, .3);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(3, 67, 212, .38); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.btn--quiet { background: transparent; color: var(--text-muted); padding: 10px 14px; }
.btn--quiet:hover { color: var(--brand); background: var(--accent-bg); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn__sub { display: block; font-size: .68rem; font-weight: 500; opacity: .82; letter-spacing: 0; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }

/* ---------- 5. 区块骨架 ---------- */
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 660px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  display: inline-block; font-family: var(--font-mono); font-size: .7rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.section__lede { margin-top: 14px; color: var(--text-muted); font-size: 1.04rem; }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 6. 首屏 ---------- */
.hero { position: relative; padding: 68px 0 0; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 52px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 13px 6px 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .8rem; color: var(--text-muted); font-weight: 550;
}
.hero__eyebrow b { color: var(--brand); font-weight: 680; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); margin-left: 5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-lite) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 20px; font-size: 1.12rem; color: var(--text-muted); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .82rem; color: var(--text-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 14px; height: 14px; color: var(--brand); }

/* 设备框 */
.device {
  position: relative; border-radius: 20px; padding: 9px;
  background: linear-gradient(160deg, #1b2a4d, #060d1f);
  box-shadow: var(--shadow-lg);
}
.device::after {
  content: ""; position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  width: 74px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28);
}
.device img { display: block; border-radius: 13px; }

/* 首屏那张图的悬浮。曾经在部分浏览器上抖得厉害，三条都是治抖的，别删：
   ① translate3d + will-change 把它单独提成一层，阴影（40px/80px 两层大模糊）
      只栅格化一次；否则每帧重画一整块 900px 的模糊阴影，主线程直接卡住。
   ② backface-visibility 压掉子像素重采样 —— 截图里全是 1px 细线，落在半个
      像素上会一帧一个样，看着就是在抖。
   ③ 只在宽屏跑：窄屏上这张图几乎占满视口，重绘代价最大，收益最小。 */
@media (min-width: 941px) {
  .device--float {
    animation: floaty 7s ease-in-out infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}

/* CAD 尺寸标注线（装饰） */
.dimline {
  position: relative; margin-top: 18px; height: 26px;
  color: var(--text-faint); font-family: var(--font-mono); font-size: .68rem;
}
.dimline::before {
  content: ""; position: absolute; top: 9px; left: 4%; right: 4%; height: 1px;
  background: currentColor; opacity: .45;
}
.dimline span {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 9px; letter-spacing: .04em;
}
.dimline i {
  position: absolute; top: 4px; width: 0; height: 0;
  border-block: 5px solid transparent;
}
.dimline i:first-of-type { left: 4%; border-right: 7px solid currentColor; }
.dimline i:last-of-type { right: 4%; border-left: 7px solid currentColor; }

@media (max-width: 940px) {
  .hero { padding-top: 44px; }
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__sub { font-size: 1.04rem; }
}

/* ---------- 7. 信任条 ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
}
.trust__cell { background: var(--surface); padding: 24px 20px; text-align: center; }
.trust__val { font-size: 1.42rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.trust__val .mono { font-size: .9em; }
.trust__key { margin-top: 3px; font-size: .8rem; color: var(--text-muted); }
@media (max-width: 720px) {
  .trust__row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 8. 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0,1fr); } }

/* 网格项的 min-width 默认是 auto，也就是「不许缩得比内容还窄」。里面只要有一张宽表格
   或一串不换行的长字符，整列就被顶开，手机上整个页面能左右拽（下载页出过这个问题）。
   这几个都是布局用的整幅网格，列宽该由布局说了算，所以一律解除这个最小宽度。 */
.grid > *, .price > *, .dl > *, .hero__inner > *, .footer__grid > * { min-width: 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.card__icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 15px;
  display: grid; place-items: center;
  background: var(--accent-bg); color: var(--brand);
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 7px; }
.card p { color: var(--text-muted); font-size: .93rem; }
.card__list { margin-top: 13px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.card__list li { position: relative; padding-left: 18px; font-size: .87rem; color: var(--text-muted); }
.card__list li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px;
  border-radius: 1px; background: var(--brand-lite); transform: rotate(45deg);
}

/* ---------- 9. 表格 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; min-width: 560px; }
thead th {
  text-align: left; font-weight: 650; font-size: .78rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody th {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  font-weight: 620; color: var(--text); white-space: nowrap;
}
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--brand) 3%, transparent); }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 620; letter-spacing: .01em; white-space: nowrap;
}
.pill--ok   { background: #dcfce7; color: #15803d; }
.pill--pro  { background: #e5edff; color: #1e40af; }
.pill--part { background: #fef3c7; color: #a16207; }
.pill--no   { background: #f1f2f6; color: #6b7280; }
.pill--soon { background: #f3e8ff; color: #7e22ce; }
.pill--beta { background: #cffafe; color: #0e7490; }
html[data-theme="dark"] .pill--ok   { background: #14361f; color: #7ee2a3; }
html[data-theme="dark"] .pill--pro  { background: #16264d; color: #93b8ff; }
html[data-theme="dark"] .pill--part { background: #3a2f11; color: #f5cf6a; }
html[data-theme="dark"] .pill--no   { background: #1d2540; color: #92a0bd; }
html[data-theme="dark"] .pill--soon { background: #2c1b46; color: #d3a7f5; }
html[data-theme="dark"] .pill--beta { background: #0d3440; color: #7fd8e8; }

.ext {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem; font-weight: 640;
  color: var(--brand); background: var(--accent-bg);
  padding: 2px 8px; border-radius: 6px; letter-spacing: .02em;
}

/* 格式速查表。「格式」那列有 .prt/.sldprt/.catpart 这种三连扩展名，跟着 tbody th 的 nowrap 会把
   整列撑到 400 px，把后面的「类型」挤到每行都折行（「3D 精/确」）。这里让扩展名之间可以换行、
   给「类型」钉上 nowrap，两列各自回到该有的宽度。 */
.fmt tbody th { white-space: normal; }
.fmt tbody td:first-of-type { white-space: nowrap; }

/* ---------- 10. 教程 ---------- */
.tut-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.tut-card__shot { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.tut-card__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.tut-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tut-card__meta {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .03em;
}
.tut-card__topics { margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--text-faint); }

.step {
  position: relative; padding: 0 0 30px 50px; border-left: 2px solid var(--line-soft); margin-left: 17px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 4px; }
.step__num {
  position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand);
  font-family: var(--font-mono); font-size: .84rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step h4 { font-size: 1.03rem; margin-bottom: 8px; }
.step__body { color: var(--text-muted); font-size: .94rem; }
.step__notes { display: grid; gap: 8px; margin-top: 13px; }
.step__note {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  font-size: .855rem; padding: 10px 13px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line-soft); color: var(--text-muted);
}
.step__note b { color: var(--text); font-weight: 620; white-space: nowrap; font-size: .8rem; }
.step__note--tip { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 18%, var(--line-soft)); }
.step figure { margin: 14px 0 0; }
.step figure img { border-radius: 11px; border: 1px solid var(--line); background: var(--bg-alt); }

/* 「3D 操作详解」用的名词-释义表：左列是控件名，右列是它干什么 */
.legend {
  display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 7px 16px;
  margin: 14px 0 0; padding: 14px 16px; font-size: .875rem;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 11px;
}
.legend dt { color: var(--text); font-weight: 620; }
.legend dd { margin: 0; color: var(--text-muted); }
@media (max-width: 520px) {
  .legend { grid-template-columns: 1fr; gap: 2px; }
  .legend dd { margin-bottom: 8px; }
  .legend dd:last-child { margin-bottom: 0; }
}

/* 折叠模块 */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc > summary {
  list-style: none; cursor: pointer; padding: 19px 22px;
  display: flex; align-items: center; gap: 14px;
  transition: background .15s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--surface-2); }
.acc__title { flex: 1; font-weight: 640; font-size: 1.03rem; letter-spacing: -.01em; }
.acc__hint { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); white-space: nowrap; }
.acc__chev { width: 18px; height: 18px; color: var(--text-faint); transition: transform .2s; flex-shrink: 0; }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc__inner { padding: 24px 22px 8px; }
.acc__badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-bg); color: var(--brand); flex-shrink: 0;
}
.acc__badge svg { width: 18px; height: 18px; }

/* ---------- 11. 版本迭代 / 路线图 ---------- */
.rel { position: relative; padding-left: 30px; padding-bottom: 42px; border-left: 2px solid var(--line); }
.rel:last-child { padding-bottom: 6px; }
.rel::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg);
  background: var(--brand); box-shadow: 0 0 0 4px var(--bg);
}
.rel--next::before { background: var(--surface); border: 2px solid var(--text-faint); }
.rel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; margin-bottom: 4px; }
.rel__ver { font-family: var(--font-mono); font-size: 1.16rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.rel__date { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.rel__title { margin: 6px 0 14px; color: var(--text-muted); }
.chg__day {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin: 26px 0 12px; font-size: .93rem; font-weight: 620; color: var(--text-muted);
}
.chg__day .mono { font-size: .78rem; font-weight: 700; color: var(--brand); }
.chg { display: grid; gap: 9px; padding: 0; list-style: none; }
.chg li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--text-muted); }
.chg__tag {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 660; letter-spacing: .04em;
  text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 5px; margin-top: 2px;
}
.chg__tag--new { background: #dcfce7; color: #15803d; }
.chg__tag--imp { background: #e5edff; color: #1e40af; }
.chg__tag--fix { background: #fef3c7; color: #a16207; }
html[data-theme="dark"] .chg__tag--new { background: #14361f; color: #7ee2a3; }
html[data-theme="dark"] .chg__tag--imp { background: #16264d; color: #93b8ff; }
html[data-theme="dark"] .chg__tag--fix { background: #3a2f11; color: #f5cf6a; }
@media (max-width: 520px) {
  .chg li { grid-template-columns: 1fr; gap: 3px; }
  .chg__tag { justify-self: start; padding: 3px 8px; }
}

.road { display: grid; gap: 16px; }
.road__item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: start;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.road__idx {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--brand);
  background: var(--accent-bg); border-radius: 8px; padding: 7px 0; text-align: center;
}
.road__item h3 { margin-bottom: 5px; }
.road__item p { color: var(--text-muted); font-size: .92rem; }
@media (max-width: 620px) {
  .road__item { grid-template-columns: 46px 1fr; }
  .road__item > .pill { grid-column: 2; justify-self: start; }
}

/* ---------- 12. 定价 ---------- */
.price { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: start; }
@media (max-width: 780px) { .price { grid-template-columns: 1fr; } }
.price__card { position: relative; padding: 30px; }
.price__card--pro { border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); box-shadow: 0 4px 24px rgba(3,67,212,.13); }
.price__card--pro::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%);
}
.price__name { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.price__amt { margin: 12px 0 6px; font-size: 2.5rem; font-weight: 720; letter-spacing: -.035em; line-height: 1; }
.price__amt small { font-size: .95rem; font-weight: 550; color: var(--text-muted); letter-spacing: 0; }
.price__note { color: var(--text-muted); font-size: .9rem; }
.price__feats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.price__feats li { display: grid; grid-template-columns: 19px 1fr; gap: 10px; font-size: .92rem; color: var(--text-muted); align-items: start; }
.price__feats svg { width: 17px; height: 17px; margin-top: 3px; color: #22c55e; }
.price__feats .no { color: var(--text-faint); }
.price__feats .no svg { color: var(--text-faint); }
.tiers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tier {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 650;
  padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-muted);
}
.tier--hi { border-color: var(--brand); color: var(--brand); background: var(--accent-bg); }

/* ---------- 13. 下载 ---------- */
.dl {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
/* 下载页不放顶栏「下载」：本页就是下载页，点它只是把本页再开一遍，很多人在手机上一直点。
   改成点平台格弹出下载弹层（见下面 .dlsheet）。页面标记是 build.py 写进 <body data-page> 的，不靠 JS，不会闪 */
body[data-page="download.html"] .nav__tools > a[href="download.html"] { display: none; }

/* 下载页没有灰色页头：平台格上方这一行「选择你的设备」就是本页 h1，区块顶部留白也收小，手机上一打开就看得到格子 */
.plat__title { margin: 0 0 18px; font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
.section--flush-top { padding-top: 34px; }

/* ---------- 下载页：点平台格弹出的下载弹层 ----------
   骨架借开发者视频教程那个（.devtut：原生 <dialog>、同一张卡、同一颗关闭键），这里只补下载相关的。
   这段排在 .devtut / .notice / .steps-num / .qqrow 之前，所以选择器都多挂一层 .dlsheet，靠特异性压过它们。 */
html.dlsheet-open { overflow: hidden; }
dialog.dlsheet {
  width: min(460px, calc(100vw - 20px));
  max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
  overscroll-behavior: contain;
}
.dlsheet .devtut__card { padding: 20px 18px 18px; }
/* ❌ 做得比视频弹层那颗更显眼：底色 + 大一号，手机上一眼能找到 */
.dlsheet .devtut__close { top: 10px; right: 10px; width: 38px; height: 38px; background: var(--surface-2); color: var(--text-muted); }
.dlsheet .devtut__close svg { width: 18px; height: 18px; }
.dlsheet .dlsheet__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; padding-right: 46px; }
.dlsheet .dlsheet__head svg { width: 24px; height: 24px; color: var(--brand); flex-shrink: 0; }
.dlsheet .dlsheet__head h2 { margin: 0; padding-right: 0; font-size: 1.15rem; }
.dlsheet .dlsheet__inapp { margin-top: 14px; }
.dlsheet__body { display: grid; gap: 12px; margin-top: 14px; }
.dlsheet__lede { font-size: .9rem; color: var(--text-muted); }
.dlsheet__lede b, .dlsheet__opt p b, .dlsheet .steps-num b { color: var(--text); }
.dlsheet .btn--lg, .dlsheet__opt .btn { width: 100%; }
/* .btn 默认不换行；弹层只有 460 宽，英文的长按钮（No Google Play? Download the APK）会顶出去 */
.dlsheet .btn { white-space: normal; }
.dlsheet .btn--lg { padding: 14px 16px; }
.dlsheet__btns { display: grid; gap: 10px; }
.dlsheet__meta { margin-top: -4px; text-align: center; font-size: .78rem; color: var(--text-faint); }
.dlsheet__label { margin-bottom: -4px; font-size: .8rem; font-weight: 650; color: var(--text-muted); }
.dlsheet .steps-num { gap: 9px; }
.dlsheet .steps-num li { grid-template-columns: 22px 1fr; gap: 10px; font-size: .86rem; }
.dlsheet .steps-num li::before { width: 22px; height: 22px; border-radius: 7px; font-size: .72rem; }
.dlsheet__tip { font-size: .8rem; color: var(--text-faint); }
.dlsheet__more { justify-self: start; font-size: .85rem; font-weight: 600; }
.dlsheet .notice { padding: 12px 13px; font-size: .84rem; }
.dlsheet .notice p + p, .dlsheet .notice p + a { display: block; margin-top: 6px; }
.dlsheet__copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dlsheet__copy .btn, .dlsheet__addr .btn { width: auto; padding: 7px 12px; font-size: .82rem; }
.dlsheet__ok { font-size: .8rem; font-weight: 600; color: var(--brand); }
.dlsheet__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlsheet__row2 .btn { padding: 11px 10px; font-size: .88rem; }
/* 鸿蒙两种装法：认出访客是哪种，那张排到前面、描蓝边 */
.dlsheet__opts { display: flex; flex-direction: column; gap: 10px; }
.dlsheet__opt { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.dlsheet__opt[data-mine] { order: -1; border-color: var(--brand); }
.dlsheet__opt h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .96rem; }
.dlsheet__opt p { font-size: .85rem; color: var(--text-muted); }
.dlsheet__addr {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: .86rem;
}
.dlsheet .qqrow { margin-top: 8px; padding: 10px 12px; }
@media (max-width: 380px) { .dlsheet__row2 { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .dl { grid-template-columns: 1fr; } }
.dl__specs { display: grid; gap: 7px; margin-top: 16px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.dl__specs div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.dl__specs b { color: var(--text-muted); font-weight: 600; }
.hashbox {
  margin-top: 14px; padding: 11px 13px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .71rem; color: var(--text-muted);
  word-break: break-all; line-height: 1.7;
}
.hashbox b { display: block; color: var(--text-faint); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

.notice {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  padding: 15px 17px; border-radius: 12px; font-size: .88rem;
  background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent);
  color: var(--text-muted);
}
.notice svg { width: 18px; height: 18px; color: #d97706; margin-top: 2px; }
.notice b { color: var(--text); }
.notice--info {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 26%, transparent);
}
.notice--info svg { color: var(--brand); }

.steps-num { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps-num li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  font-size: .93rem; color: var(--text-muted);
}
.steps-num li::before {
  counter-increment: s; content: counter(s);
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-bg); color: var(--brand);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
}
.steps-num b { color: var(--text); }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 42px 20px 0; position: relative;
  font-weight: 620; font-size: 1.01rem; border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq[open] summary { border-bottom-color: transparent; }
.faq__a { padding: 0 24px 24px 0; color: var(--text-muted); font-size: .95rem; border-bottom: 1px solid var(--line); }
.faq__a p + p, .faq__a p + ul { margin-top: 11px; }
.faq__a li { margin-bottom: 5px; }

/* ---------- 15. CTA 尾条 ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #051130 0%, #0a1c48 48%, #0343d4 130%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 54px 46px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(90% 120% at 88% 12%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(90% 120% at 88% 12%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(233,238,251,.82); margin-top: 13px; max-width: 46ch; }
.cta-band .btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.26); box-shadow: none; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.42); }
.cta-band .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 4px 18px rgba(0,0,0,.28); }
.cta-band .btn--primary:hover { background: #f0f4ff; }
@media (max-width: 620px) { .cta-band { padding: 38px 26px; } }

/* ---------- 16. 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 34px; margin-top: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.footer__about p { color: var(--text-muted); font-size: .88rem; margin-top: 13px; max-width: 34ch; }
.footer h4 { font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; font-weight: 650; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-muted); font-size: .89rem; }
.footer a:hover { color: var(--brand); }
.footer__bar {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  font-size: .8rem; color: var(--text-faint);
}
.footer__bar .sep { flex: 1; }

/* ---------- 17. 页头（内页） ---------- */
.pagehead { padding: 54px 0 34px; border-bottom: 1px solid var(--line); background: var(--bg-alt); position: relative; overflow: hidden; }
.pagehead__inner { position: relative; max-width: 720px; }
.pagehead h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.pagehead p { margin-top: 14px; color: var(--text-muted); font-size: 1.03rem; }
.crumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 11px; }
.pagehead__cta { margin-top: 22px; }

/* ---------- 18. 目录/锚点导航 ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a {
  font-size: .85rem; font-weight: 570; color: var(--text-muted);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  transition: all .15s;
}
.toc a:hover { color: var(--brand); border-color: var(--brand); background: var(--accent-bg); text-decoration: none; }

/* ---------- 19. 富文本（隐私政策等） ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 42px 0 14px; font-size: 1.42rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 1.06rem; }
.prose p, .prose ul, .prose ol { color: var(--text-muted); font-size: .96rem; }
.prose p + p, .prose ul, .prose ol { margin-top: 13px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); font-weight: 620; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.prose blockquote {
  margin: 18px 0; padding: 15px 19px; border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--text-muted); font-size: .92rem;
}

/* ---------- 20. 滚动入场 ----------
   只在 JS 就绪时才隐藏（html.js 由 <head> 内联脚本加上）。
   JS 加载失败或被禁用时内容照常可见，不会整页空白。 */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. 语言可见性（i18n 由 JS 切换 html[lang]） ---------- */
/* 隐私政策那种「整块只给某语言看」的内容：中文两种看中文版，其余九种一律看英文版
   —— 与其给九种语言各摆一份没人校对过的法律条文，不如老老实实指向英文原文。 */
html[lang="zh-Hans"] [data-en-only],
html[lang="zh-Hant"] [data-en-only] { display: none !important; }
html:not([lang="zh-Hans"]):not([lang="zh-Hant"]) [data-zh-only] { display: none !important; }

/* ---------- 22. 语言选择器 ---------- */
.langpick { position: relative; }
.langpick__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 168px; max-height: min(66vh, 420px); overflow-y: auto;
  padding: 6px; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg, 0 16px 40px rgba(5,17,48,.16));
}
.langpick__menu[hidden] { display: none; }
.langpick__menu button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 9px 12px; border-radius: 8px; text-align: left;
  font: inherit; font-size: .9rem; color: var(--text); white-space: nowrap;
}
.langpick__menu button:hover { background: var(--bg-alt); }
.langpick__menu button[aria-selected="true"] { color: var(--brand); font-weight: 620; }
/* 窄屏上贴着右边容易出血，钉在视口右缘更稳 */
@media (max-width: 420px) {
  .langpick__menu { right: -6px; min-width: 152px; }
}

/* ---------- 23. 开发者视频教程弹层 ---------- */
/* 入口有三处（页脚、首页教程区、教程页页头），弹层本体在 _layout.html 里只放一份。
   用原生 <dialog>：Esc 关闭、焦点圈定、背景不滚动都是浏览器自带的，不用自己写。 */
.devtut {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(430px, calc(100vw - 30px)); max-width: none;
  max-height: calc(100vh - 28px); overflow-y: auto;
  padding: 6px;                      /* 给卡片的投影留一圈，滚动时才不会被裁掉 */
  border: 0; background: none; color: var(--text);
}
.devtut:not([open]) { display: none; }   /* 老浏览器不认 <dialog> 时的兜底 */
.devtut::backdrop { background: rgba(5, 17, 48, .55); }
html[data-theme="dark"] .devtut::backdrop { background: rgba(0, 0, 0, .68); }
.devtut[open] { animation: devtut-in .18s ease-out; }
@keyframes devtut-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.devtut__card {
  position: relative; padding: 28px 24px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.devtut__card h2 { font-size: 1.2rem; padding-right: 32px; }
.devtut__lede { margin-top: 9px; color: var(--text-muted); font-size: .89rem; }

.devtut__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer;
  appearance: none; border: 0; border-radius: 9px; background: none; color: var(--text-faint);
}
.devtut__close:hover { background: var(--bg-alt); color: var(--text); }
.devtut__close svg { width: 16px; height: 16px; }

.devtut__list { display: grid; gap: 10px; margin-top: 20px; }
.devtut__item {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
  transition: transform .14s, border-color .16s, box-shadow .18s;
}
.devtut__item:hover {
  text-decoration: none; transform: translateY(-1px);
  border-color: var(--c); box-shadow: var(--shadow-sm);
}
.devtut__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: var(--c); color: #fff;
}
.devtut__icon svg { width: 22px; height: 22px; }
.devtut__meta { display: grid; gap: 1px; min-width: 0; }
.devtut__name { font-weight: 640; font-size: .95rem; }
.devtut__id { font-size: .76rem; color: var(--text-faint); }
.devtut__go { flex-shrink: 0; width: 17px; height: 17px; margin-left: auto; color: var(--text-faint); }
.devtut__item:hover .devtut__go { color: var(--c); }

/* 平台色。抖音那块本色近黑，深色模式下会糊进卡片背景，所以反过来用浅底深字 */
.devtut__item--douyin { --c: #161823; }
.devtut__item--xhs    { --c: #ff2442; }
.devtut__item--bili   { --c: #00a1d6; }
html[data-theme="dark"] .devtut__item--douyin { --c: #e8ecf7; }
html[data-theme="dark"] .devtut__item--douyin .devtut__icon { color: #0f1830; }

/* 页脚那个入口没有可跳转的地址，只能是按钮，样式跟着页脚链接走 */
.linkish {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .89rem; color: var(--text-muted); text-align: left;
}
.linkish:hover { color: var(--brand); }

/* ---------- 24. 反馈看板（feedback.html） ---------- */
/* 状态药丸复用第 8 节那六个：待处理=part 已确认=beta 处理中=pro 已优化=ok 暂不做=no，
   只有「缺陷」这一档没有现成的红色 */
.pill--bug { background: #fee2e2; color: #b91c1c; }
html[data-theme="dark"] .pill--bug { background: #3d1414; color: #fca5a5; }

.fbtop { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.fbtop b { font-size: 1.05rem; }

/* 表单 */
.fbform { display: grid; gap: 15px; }
.fbrow { display: grid; gap: 7px; }
.fbrow > label { font-weight: 640; font-size: .9rem; }
.fbin, .fbta {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.fbin:focus, .fbta:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.fbta { min-height: 120px; resize: vertical; line-height: 1.65; }
.fbhint { font-size: .8rem; color: var(--text-faint); }
.fbgrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fbmore { font-size: .87rem; color: var(--text-muted); cursor: pointer; font-weight: 570; }
.fbmore::-webkit-details-marker { color: var(--text-faint); }
.fbmsg { font-size: .88rem; min-height: 1.4em; }
.fbmsg.is-err { color: #b91c1c; }
.fbmsg.is-ok { color: #15803d; }
html[data-theme="dark"] .fbmsg.is-err { color: #fca5a5; }
html[data-theme="dark"] .fbmsg.is-ok { color: #7ee2a3; }

/* 分段选择：类型、筛选、排序共用 */
.fbseg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.fbrow > .fbseg { justify-self: start; }   /* 不加会被 grid 拉满整行 */
.fbseg button {
  appearance: none; border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: .85rem; font-weight: 570; padding: 8px 15px; cursor: pointer;
  transition: background .15s, color .15s;
}
.fbseg button + button { border-left: 1px solid var(--line); }
.fbseg button:hover { color: var(--text); }
.fbseg button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* 截图 */
.fbdrop {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 15px;
  text-align: center; color: var(--text-faint); font-size: .87rem; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.fbdrop:hover, .fbdrop.is-over { border-color: var(--brand); color: var(--brand); background: var(--accent-bg); }
.fbshots { display: flex; gap: 9px; flex-wrap: wrap; }
.fbshot { position: relative; width: 78px; height: 78px; }
.fbshot img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.fbshot button {
  position: absolute; top: -6px; right: -6px; width: 21px; height: 21px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-muted); font-size: .8rem; line-height: 1; cursor: pointer;
}
.fbshot button:hover { color: #b91c1c; border-color: #b91c1c; }
.fbshot.is-up img { opacity: .45; }

/* 条目 */
.fblist { display: grid; gap: 12px; margin-top: 18px; }
.fbi {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.fbi--mine { border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.fbi--hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent); }
.fbi__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fbi__when { margin-left: auto; font-size: .76rem; color: var(--text-faint); }
.fbi__title { font-size: 1.02rem; font-weight: 650; margin: 9px 0 0; line-height: 1.45; }
.fbi__body { margin-top: 7px; font-size: .92rem; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
.fbi__shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.fbi__shots img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.fbi__reply {
  margin-top: 12px; padding: 11px 14px; border-radius: 11px;
  background: var(--accent-bg); font-size: .9rem; color: var(--text);
  border-left: 3px solid var(--brand); white-space: pre-wrap; word-break: break-word;
}
.fbi__reply b { display: block; font-size: .76rem; color: var(--brand); margin-bottom: 3px; }
.fbi__foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 13px; font-size: .8rem; color: var(--text-faint); }
.fbi__foot .fbsp { margin-left: auto; }
.fbact {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted);
  font: inherit; font-size: .8rem; font-weight: 570; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.fbact:hover { color: var(--brand); border-color: var(--brand); }
.fbact[aria-pressed="true"] { background: var(--accent-bg); color: var(--brand); border-color: var(--brand); }
.fbact--del:hover { color: #b91c1c; border-color: #b91c1c; }

/* 候选功能：左边一条主色边，跟普通反馈一眼分得开；名次是个圆牌 */
.fbi--plan { border-left: 3px solid var(--brand); }
.fbrank {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
}

.fbempty { text-align: center; color: var(--text-faint); font-size: .92rem; padding: 40px 0; }

/* 提交成功后那张「收好这两个链接」 */
.fbdone { display: grid; gap: 10px; }
.fblink { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.fblink input {
  flex: 1 1 240px; min-width: 0; padding: 9px 12px; font: 500 .82rem var(--font-mono);
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text-muted);
}

/* 看大图 */
.fblight {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px;
  background: rgba(5, 17, 48, .82); cursor: zoom-out;
}
.fblight img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.fblight[hidden] { display: none; }

@media (max-width: 620px) {
  .fbgrid { grid-template-columns: 1fr; }
  .fbi { padding: 15px 16px; }
  .fbi__when { margin-left: 0; width: 100%; }
}

/* ---------- 25. 平台选择器（download.html） ---------- */
/* 七格：安卓手机/平板、iOS 手机/平板、macOS、Windows、鸿蒙。
   两个安卓格指向同一个面板 —— 安装包本来就是同一个 APK，手机平板通用，差别只体现在
   面板顶部那条设备提示（手机推简易界面、平板推全能界面）。iOS 两格同理。
   面板在 HTML 里默认全部展开，由 JS 上来后才收起：没有 JS 的访客和爬虫要能看到全部内容。 */
.plat {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
  margin-bottom: 30px; padding: 0; list-style: none;
}
@media (max-width: 940px) { .plat { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 620px) { .plat { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; } }

.plat__btn {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  display: grid; gap: 7px; align-content: start;
  padding: 15px 15px 13px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s, opacity .18s;
}
.plat__btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.plat__btn svg { width: 22px; height: 22px; color: var(--text-faint); }
.plat__name { font-weight: 620; font-size: .92rem; line-height: 1.3; }
.plat__btn .pill { justify-self: start; }
.plat__btn[aria-selected="true"] {
  border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow);
}
.plat__btn[aria-selected="true"] svg { color: var(--brand); }
/* 「开发中」的两格压暗，但照样能点：点进去有蹲通知的入口，不做成死按钮 */
.plat__btn--soon { opacity: .74; }
.plat__btn--soon:hover { opacity: 1; }
/* 嗅探到访客正用这个平台时挂上，给一眼「就是它」 */
.plat__btn[data-here] .plat__name::after {
  content: "●"; color: var(--brand); font-size: .48rem; vertical-align: middle; margin-left: 6px;
}

.plat-pane { display: grid; gap: 20px; }

/* 两个下载盒。中文默认把 APK 排前面 —— 国内多数设备上没有 Google Play。
   顺序由 JS 按语言写 data-pref，不改 DOM，切换时不会重排出抖动。 */
.dl-pair { display: grid; gap: 20px; }
.dl-pair[data-pref="apk"] .dl--apk { order: -1; }

/* 群号那一行：点一下进剪贴板。香港站由 site.js 现拉后台「交流群」换成列表，与 App「加入交流群」同一份 */
.qqrow {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.qqrow__num { font: 700 1.12rem/1 var(--font-mono); color: var(--text); letter-spacing: .07em; }
.qqrow__lbl { font-size: .82rem; color: var(--text-faint); }
.qqrow__note { flex-basis: 100%; font-size: .82rem; color: var(--text-faint); }
/* 后台勾了「已满」的群：号码后面、复制按钮前面一个红字 */
.qqrow__full { font-size: .85rem; font-weight: 600; color: #d9423a; }
/* 二维码自带白底，暗色主题下也留白边，扫码才认得出 */
.qqrow__qr { width: 132px; height: 132px; object-fit: contain; padding: 6px; border-radius: 10px; background: #fff; }
[data-groups-live] .qqrow + .qqrow { margin-top: 10px; }
