/* ==========================================================================
   SnapClaim 下载页样式
   配色令牌直接沿用 App 的 AppColorScheme（lib/app/theme.dart），
   所以网页和手机里看到的是同一套视觉语言：浅色冷灰、深色暖黑、主色 emerald。
   ========================================================================== */

:root {
  /* —— 浅色（默认，与 App AppColorScheme.light 一致） —— */
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-soft: #94a3b8;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-bg: #ecfdf5;
  --accent-ring: rgba(16, 185, 129, 0.35);
  /* 右上角光晕的底色。刻意压得很淡：它要穿过 header 的毛玻璃
     （saturate(180%) 会把绿色再加饱和），浓了顶部会显得刺眼 */
  --accent-glow: rgba(16, 185, 129, 0.09);
  /* 首屏图片蒙层的底色（rgb 分量，便于调透明度），跟随主题 */
  --scrim: 255, 255, 255;
  --danger: #ef4444;
  --code-bg: #f1f5f9;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -24px rgba(15, 23, 42, 0.35);
  --header-bg: rgba(255, 255, 255, 0.82);

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

html[data-theme="dark"] {
  /* —— 深色（与 App AppColorScheme.dark 一致：暖黑而非冷蓝黑） —— */
  --bg: #141210;
  --bg-2: #1d1b17;
  --card: #1d1b17;
  --border: #2e2b25;
  --fg: #eeeae1;
  --fg-muted: #a8a194;
  --fg-soft: #7c766b;
  --accent: #2eb98a;
  --accent-light: #45c99c;
  --accent-bg: #0f2b20;
  --accent-ring: rgba(46, 185, 138, 0.4);
  --accent-glow: rgba(46, 185, 138, 0.07);
  --scrim: 20, 18, 16;
  --danger: #e08b80;
  --code-bg: #26231e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(20, 18, 16, 0.82);
}

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

html {
  scroll-behavior: smooth;
  /* 顶部导航固定高度，锚点跳转时别被挡住 */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 右上角的光晕挪到 .hero__bg::before（见「首屏」一节）：
   之前挂在 body 上是 position: fixed，滚到哪一屏都跟着；现在只出现在首屏。 */

img {
  max-width: 100%;
  display: block;
}

/* 脚本会往一些元素上加 hidden（拿不到数据时就别占位），
   统一在这里兜住，免得被别的 display 规则盖掉 */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}

.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 12px 0;
  z-index: 99;
}

.skip-link:focus {
  left: 0;
}

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

/* ============================== 顶部导航 ==============================
   玻璃层交给 ::before：它比导航条本身向下多出 --nav-fade 的一小截，
   再用 mask 把「底色 + 模糊」一起淡出。
   关键点：mask 对 backdrop-filter 同样生效，所以模糊本身就是渐隐的 ——
   底部不再有那条 1px 实线，取而代之是一小段羽化把「模糊→清晰」的
   突变线化掉。羽化带刻意收得很窄（10px 上下）：既要足够软化边界，
   又不能让 header 视觉上「长高一截」——宽了会显得柔光铺得很开，反而难受。
   注意 inset 要撑出导航盒、且 .nav 不能有 overflow:hidden，否则羽化带会被裁掉。 */

/* 羽化带高度走注册属性，这样未滚动 → 滚动时它是真的在「变长」而不是硬切 */
@property --nav-fade {
  syntax: "<length>";
  inherits: true;
  initial-value: 10px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 10px 只够把边界化开，header 视觉高度仍是它本来的 68px */
  --nav-fade: 10px;
  /* 底色和模糊都搬到 ::before 上了，本体保持透明，免得自己再切出一条硬边 */
  background: none;
  border-bottom: 0;
  transition: --nav-fade 0.3s ease;
}

.nav.is-scrolled {
  --nav-fade: 14px;
}

.nav::before {
  content: "";
  position: absolute;
  /* 负的 z-index：压在导航内容之下，但仍在导航自己的层叠上下文里，不会被页面盖住 */
  z-index: -1;
  inset: 0 0 calc(-1 * var(--nav-fade));
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - var(--nav-fade)),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--nav-fade)), transparent);
}

/* 系统关闭了透明度 / 浏览器不支持毛玻璃：老老实实给实底 + 细分割线。
   这种降级下必须把悬出来的过渡带收掉，否则会露出一条悬空的色块 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before {
    inset: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav::before {
    inset: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand__tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex: none;
}

.brand__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  text-decoration: none;
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 11px;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--fg);
  background: var(--bg-2);
}

html[data-theme="dark"] .nav__link:hover,
html[data-theme="dark"] .nav__link.is-active {
  background: #26231e;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--fg-soft);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* 深色下隐藏太阳、浅色下隐藏月亮 */
html[data-theme="light"] .icon-moon,
html[data-theme="dark"] .icon-sun {
  display: none;
}

.nav__cta {
  flex: none;
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
}

/* ============================== 按钮 ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease-out, box-shadow 0.22s, background 0.22s,
    border-color 0.22s, color 0.22s;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 12px 26px -14px var(--accent-ring), var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px var(--accent-ring);
}

.btn--primary:active {
  transform: translateY(0) scale(0.985);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg-soft);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 13px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn--lg {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 15px;
}

.btn--block {
  width: 100%;
}

/* ============================== 首屏 ==============================
   产品图在桌面端铺满首屏作背景，文字压在左侧的蒙层上；
   窄屏（<940px）图片回到正常流，显示在内容上方，不平铺、不裁切。 */

.hero {
  position: relative;
  /* 窄屏图片是通栏的，顶上不留缝，直接贴着导航 */
  padding: 0 0 clamp(40px, 5vw, 70px);
}

.hero__bg {
  position: relative;
  overflow: hidden;
}

.hero__bg img {
  display: block;
  width: 100%;
  height: auto;
}

/* 右上角光晕：挂在首屏上而不是 body 上，所以滚过首屏就没了。
   衰减用三段而不是「一条直线到头」：中心快速退到 30%，再拖着一条
   长尾巴到 82% 才彻底没——边缘是化开的，看不出渐变在哪结束 */
.hero__bg::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    var(--accent-glow) 0%,
    color-mix(in srgb, var(--accent-glow) 30%, transparent) 45%,
    transparent 82%
  );
  pointer-events: none;
}

/* 窄屏：图片底边淡出，和下面的内容衔接 */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  padding-top: clamp(24px, 4vw, 40px);
}

.hero__intro {
  max-width: 34rem;
}

@media (min-width: 940px) {
  .hero {
    /* 撑满一屏：视口高度减去固定导航 */
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    display: grid;
    align-content: center;
    padding-block: clamp(40px, 6vh, 76px);
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* 图片底边淡出那条在桌面端不要，换成左侧的横向蒙层，保证文字可读、右侧产品图可见 */
  .hero__bg::after {
    inset: 0;
    height: auto;
    background: linear-gradient(
      90deg,
      rgb(var(--scrim)) 0%,
      rgba(var(--scrim), 0.95) 38%,
      rgba(var(--scrim), 0.72) 58%,
      rgba(var(--scrim), 0.28) 74%,
      rgba(var(--scrim), 0) 92%
    );
  }

  .hero__inner {
    padding-top: 0;
  }

  .hero__intro {
    max-width: min(34rem, 54%);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 18px 0 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  color: var(--fg-muted);
  font-size: clamp(15px, 1.5vw, 16.5px);
  max-width: 34em;
}

.hero__lead strong {
  color: var(--fg);
  font-weight: 700;
}

/* 下载入口：分裂按钮 —— 左半一键下推荐包，右半展开菜单挑其他架构。
   目标是把「下最常用的那个包」压缩到一次点击。 */
.dl-select {
  position: relative;
  margin-top: 26px;
  max-width: 460px;
}

.dl-split {
  display: flex;
  align-items: stretch;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 14px 30px -14px var(--accent-ring), var(--shadow-sm);
}

.dl-split__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.dl-split__main:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dl-split__main:active {
  background: rgba(255, 255, 255, 0.24);
}

.dl-split__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
}

.dl-split__icon svg {
  width: 19px;
  height: 19px;
}

.dl-split__label {
  flex: 1;
  min-width: 0;
  display: block;
}

.dl-split__label b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
}

.dl-split__label small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.dl-split__caret {
  flex: none;
  width: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.dl-split__caret:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dl-split__caret:active {
  background: rgba(255, 255, 255, 0.24);
}

.dl-split__caret svg {
  width: 18px;
  height: 18px;
  transition: transform 0.24s;
}

.dl-select.is-open .dl-split__caret svg {
  transform: rotate(180deg);
}

/* 这一版只有一个架构包时没有可选项，把下拉箭头收掉 */
.dl-select.is-single .dl-split__caret {
  display: none;
}

/* 用 visibility 而不是 display 收起：能过渡，且隐藏时不会被 Tab 聚焦到 */
.dl-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: min(64vh, 430px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  transition: opacity 0.18s ease-out, transform 0.2s ease-out, visibility 0.18s;
}

.dl-select.is-open .dl-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dl-menu__title {
  padding: 6px 10px 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.dl-menu__group {
  display: grid;
  gap: 3px;
}

.dl-menu__hint {
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.16s, transform 0.16s;
}

.dl-item:hover,
.dl-item:focus-visible {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.dl-item__icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 15px;
}

.dl-item__body {
  flex: 1;
  min-width: 0;
}

.dl-item__name {
  display: block;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
}

.dl-item__note {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--fg-muted);
}

.dl-item__meta {
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dl-item__size {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg-muted);
}

.dl-item__dl {
  display: block;
  font-size: 11px;
  color: var(--fg-soft);
}

/* 菜单底部：下载源切换。只配了一个源时这块是 hidden 的。
   负外边距是为了让分割线横跨整个面板（.dl-menu 的 padding 是 8px） */
.dl-menu__foot {
  margin: 7px -8px -8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

.dl-menu__foot[hidden] {
  display: none;
}

.dl-menu__foot-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.dl-src {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dl-src__btn {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.dl-src__btn:hover {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
}

.dl-src__btn[aria-pressed='true'] {
  border-color: transparent;
  background: var(--accent-bg);
  color: var(--accent);
}

.dl-src__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 按钮下方一行元信息：发布日期、累计下载。版本号只在顶部 badge 出现一次 */
.dl-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.dl-meta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.dl-meta a:hover {
  text-decoration: underline;
}

.dl-meta__sep {
  color: var(--fg-soft);
}

.link-plain {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.link-plain:hover {
  text-decoration: underline;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-muted);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

/* 首屏里的扫码卡片：约到手机上装的另一条路 */
.qr {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.qr__code {
  width: 84px;
  height: 84px;
  flex: none;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.qr__code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr__text b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.qr__text span {
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* 太窄时并排会挤坏，改成上下摞着 */
@media (max-width: 420px) {
  .qr {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================== 通用分节 ============================== */

.section {
  padding: clamp(48px, 6vw, 82px) 0;
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(23px, 3.2vw, 32px);
  margin-bottom: 12px;
}

.section__lead {
  color: var(--fg-muted);
  font-size: 15px;
}

/* ============================== 特性卡片 ============================== */

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-bg);
  font-size: 19px;
  margin-bottom: 13px;
}

.card h3 {
  font-size: 15.5px;
  margin-bottom: 7px;
}

.card p {
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* ============================== 表格 ============================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 440px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

thead th {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-2);
}

tbody tr:last-child td {
  border-bottom: none;
}

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 窄屏：表格不横向滚，两列布局本来也能塞下 */
@media (max-width: 620px) {
  table {
    min-width: 0;
  }
}

/* ============================== 更新日志 ============================== */

.timeline {
  display: grid;
  gap: 14px;
}

.release {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.release[open] {
  box-shadow: var(--shadow-sm);
}

.release__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.release__head::-webkit-details-marker {
  display: none;
}

.release__ver {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}

.release__date {
  font-size: 12.5px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.release__sum {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release__caret {
  flex: none;
  color: var(--fg-soft);
  transition: transform 0.24s;
}

.release[open] .release__caret {
  transform: rotate(180deg);
}

.release__caret svg {
  width: 16px;
  height: 16px;
}

.release__body {
  padding: 2px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* 正文里的标题：脚本把 Release 的 # / ## 往下压两级渲染成 h3 / h4 / h5 */
.release__body h3 {
  font-size: 16px;
  color: var(--fg);
  margin: 22px 0 10px;
}

.release__body h3:first-child {
  margin-top: 16px;
}

.release__body h4 {
  font-size: 14.5px;
  color: var(--fg);
  margin: 16px 0 8px;
}

.release__body h5 {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 14px 0 6px;
}

.release__body p,
.release__body ul,
.release__body ol {
  margin: 9px 0;
}

.release__body ul,
.release__body ol {
  padding-left: 20px;
}

.release__body li {
  margin: 4px 0;
}

.release__body strong {
  color: var(--fg);
}

.release__body a {
  color: var(--accent);
  text-decoration: none;
}

.release__body a:hover {
  text-decoration: underline;
}

.release__body blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  border-radius: 0 10px 10px 0;
  color: var(--fg-muted);
}

.release__body code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--fg);
}

.release__body pre {
  background: var(--code-bg);
  padding: 12px 14px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 12px 0;
}

.release__body pre code {
  background: none;
  padding: 0;
}

.release__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.release__empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 数据来源提示 */
.source-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================== 常见问题 ============================== */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.faq[open] summary::after {
  content: "–";
}

.faq p {
  padding-bottom: 15px;
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* ============================== 隐私区 ============================== */

.callout {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.6vw, 38px);
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}

.callout h2 {
  font-size: clamp(20px, 2.6vw, 27px);
  margin-bottom: 12px;
}

.callout p {
  color: var(--fg-muted);
  font-size: 14.5px;
  max-width: 56em;
}

.callout ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--fg-muted);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.callout li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.callout svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

/* ============================== 页脚 ============================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 34px;
  background: var(--bg-2);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__brand {
  max-width: 30rem;
}

.footer__brand p {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
}

.footer__links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* ============================== 回到顶部 ============================== */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg-muted);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--accent);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ============================== 入场动画 ============================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 复制成功的临时提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 减少动态：跟 App 一样，系统开着就收掉动画 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
