/* ==========================================================================
   星云开发者总站 · Dev Portal
   原生 CSS，零外部依赖。浅色为默认，支持深色与响应式。
   ========================================================================== */

/* ---------- 1. 主题与基础 ---------- */
:root {
  --bg: #f7f8fc;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --ink: #111326;
  --ink-2: #343a51;
  --muted: #62697e;
  --faint: #9298ab;
  --line: #e5e7f0;
  --line-strong: #d3d7e5;
  --brand: #4b55d6;
  --brand-ink: #333bb0;
  --brand-soft: #eef0ff;
  --brass: #b48a4a;
  --danger: #c24141;
  --shadow-sm: 0 1px 2px rgba(17, 19, 38, .04), 0 8px 24px -16px rgba(17, 19, 38, .18);
  --shadow-md: 0 2px 4px rgba(17, 19, 38, .04), 0 18px 44px -22px rgba(17, 19, 38, .22);
  --shadow-lg: 0 32px 80px -32px rgba(17, 19, 38, .3);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --wrap: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .8, .26, 1);
}

[data-theme="dark"] {
  --bg: #080a12;
  --bg-2: #0c0f1a;
  --surface: #11141f;
  --surface-2: #151927;
  --ink: #eef0f8;
  --ink-2: #c7ccdb;
  --muted: #969db2;
  --faint: #6b7288;
  --line: #232838;
  --line-strong: #31374a;
  --brand: #9aa2ff;
  --brand-ink: #b9beff;
  --brand-soft: #1a1e35;
  --brass: #d0a967;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -16px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 44px -22px rgba(0, 0, 0, .7);
  --shadow-lg: 0 32px 80px -32px rgba(0, 0, 0, .85);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 顶层网格：只在页面顶部淡淡出现，给一点仪器感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 0%, transparent 76%);
  opacity: .55;
}

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

::selection { background: var(--brand); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol, dl, dd, h1, h2, h3, h4, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: .12em .38em;
  border-radius: 4px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--faint);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  color: var(--muted);
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
  flex: none;
}

/* ---------- 2. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn .icon { width: 16px; height: 16px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--ink) 75%, transparent); }
.btn-primary:active { transform: translateY(0); }

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #7c5cff, #5b45d6);
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: 0 14px 32px -16px rgba(124, 92, 255, .75);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 18px 38px -16px rgba(124, 92, 255, .9);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-2); transform: translateY(-1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding-bottom: 2px;
  transition: gap .18s var(--ease), border-color .18s var(--ease);
}
.text-link:hover { gap: 11px; border-color: var(--brand); }
.text-link .icon { width: 15px; height: 15px; }

/* ---------- 3. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(17, 19, 38, .4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark { width: 30px; height: 30px; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand-text small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--faint);
  margin-top: 3px;
}
.brand-short { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.search-jump:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.search-jump .icon { width: 15px; height: 15px; }
.search-jump kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  background: var(--surface-2);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.icon-sun, .icon-moon { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.login-btn:hover {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  transform: translateY(-1px);
}
.login-btn .icon { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .login-btn { width: 36px; padding: 0; }
  .login-btn span { display: none; }
}

/* ---------- 3.5 顶部产品跑马灯 ---------- */
.product-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.product-ticker::before,
.product-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 3;
  pointer-events: none;
}
.product-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 60%, transparent) 48%, transparent);
}
.product-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 60%, transparent) 48%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 38s linear infinite;
  will-change: transform;
}
.product-ticker:hover .ticker-track,
.product-ticker:focus-within .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 100vw;
  padding: 13px 20px;
  box-sizing: border-box;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s var(--ease);
}
.ticker-item:hover { color: var(--ink); }
.ticker-item.is-archived { opacity: .52; }
.ticker-item.is-archived:hover { opacity: 1; }
.ticker-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.ticker-item:hover .ticker-icon {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.ticker-icon .icon { width: 15px; height: 15px; }
.ticker-ver {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .02em;
  color: var(--faint);
}
.ticker-sep {
  width: 3px;
  height: 3px;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--line-strong);
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

/* ---------- 4. 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 78px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 440px at 10% -14%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 66%),
    radial-gradient(680px 400px at 94% 4%, color-mix(in srgb, var(--brass) 10%, transparent), transparent 64%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(1180px, 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 28%, transparent), transparent);
}

.hero-orbit {
  position: absolute;
  top: -96px;
  right: -110px;
  width: 760px;
  height: 665px;
  color: var(--ink);
  opacity: .5;
  pointer-events: none;
}
[data-theme="dark"] .hero-orbit { opacity: .38; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 650px; }

.hero-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--brass) 24%, var(--line));
  border-left: 2px solid var(--brass);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brass) 6%, transparent);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-notice .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brass); }
.hero-notice span { min-width: 0; }

.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(96deg, var(--brand) 0%, #8a6fe8 52%, var(--brass) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.stats {
  display: flex;
  align-items: stretch;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
  min-width: 76px;
}
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat dt {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .04em;
  order: 2;
}
.stat dd {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
}

/* 发布卡 */
.release-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.release-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 20%, transparent) 55%, var(--brass));
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.live-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--faint);
}
.live-flag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #17a47a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #17a47a 16%, transparent);
}

.release-list { padding: 2px 0; }

.release-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color .16s var(--ease);
}
.release-item:last-child { border-bottom: 0; }
.release-item:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }

.release-body { display: block; min-width: 0; }

.release-item .rel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.release-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.release-line strong { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.release-ver {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}
.release-item p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.release-item time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 2px;
  white-space: nowrap;
}

.release-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.release-foot:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 5%, var(--surface-2)); }
.release-foot b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.release-foot .icon { width: 14px; height: 14px; }
.release-foot span:last-child { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 4.5 首屏产品矩阵 ---------- */
.matrix-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.matrix-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 25%, transparent) 55%, var(--brass));
  opacity: .9;
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.matrix-head .mono-label,
.matrix-head .live-flag { white-space: nowrap; }

.matrix-status {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--muted);
}
.matrix-status span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--line);
}
.matrix-status span:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.matrix-status b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.matrix-stat--active b { color: #2f7f63; }
[data-theme="dark"] .matrix-stat--active b { color: #4FA68A; }
.matrix-stat--paused b { color: #5f6b80; }
[data-theme="dark"] .matrix-stat--paused b { color: #a7b3c6; }
.matrix-stat--archived b { color: #b45454; }
[data-theme="dark"] .matrix-stat--archived b { color: #e08a8a; }

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.matrix-cell {
  position: relative;
  min-height: 104px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  background: var(--surface);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.matrix-cell:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.matrix-cell.is-archived { opacity: .78; }
.matrix-cell.is-archived:hover { opacity: 1; }
.matrix-cell--more { background: var(--surface-2); }
.matrix-cell--more:hover { background: color-mix(in srgb, var(--brand) 6%, var(--surface-2)); }
.matrix-cell--more .matrix-name { color: var(--muted); }
.matrix-cell--more:hover .matrix-name { color: var(--ink); }
.matrix-more-arrow {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--brand);
}
.matrix-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.matrix-code { flex: none; }
.matrix-top .cadence { margin-left: 1px; }
.matrix-code {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--faint);
}
.matrix-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 14%, transparent);
}
.matrix-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.matrix-cell.is-archived .matrix-name { color: var(--muted); }
.matrix-cell:hover .matrix-name { color: var(--ink); }
.matrix-cell:hover .matrix-code { color: var(--accent); }
.matrix-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  color: var(--faint);
}
.matrix-meta span:first-child { font-size: 10px; color: var(--muted); }
.matrix-meta span:last-child { color: var(--muted); }
.matrix-cell.is-archived .matrix-meta span:last-child { color: #b45454; }
[data-theme="dark"] .matrix-cell.is-archived .matrix-meta span:last-child { color: #e08a8a; }

.matrix-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.matrix-foot:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 5%, var(--surface-2)); }
.matrix-foot b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.matrix-foot .icon { width: 14px; height: 14px; }
.matrix-foot span:last-child { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 5. 通用区块头 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 700;
}
.section-head p:not(.eyebrow):not(.sync-note) {
  max-width: 580px;
  font-size: 14px;
  color: var(--muted);
}
.sync-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
}
.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #17a47a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #17a47a 14%, transparent);
}

/* ---------- 6. 目录与工具条 ---------- */
.catalog { padding: 72px 0 84px; }

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 38px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  flex: 1 1 300px;
  max-width: 480px;
  min-width: 240px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.search-field .icon { width: 16px; height: 16px; color: var(--faint); }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13.5px;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--faint); }
.search-field input::-webkit-search-cancel-button { display: none; }

.search-clear {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--muted);
}
.search-clear:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.search-clear .icon { width: 12px; height: 12px; }

.search-kbd {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
  background: var(--surface-2);
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.chip b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--faint);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip[aria-pressed="true"] b { color: color-mix(in srgb, var(--bg) 60%, transparent); }

.result-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 7. 产品分组与卡片 ---------- */
.group { margin-bottom: 62px; }
.group:last-child { margin-bottom: 0; }

.group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.group-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--faint);
  margin-bottom: 7px;
}
.group-head h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 650;
}
.group-head p {
  margin-top: 6px;
  max-width: 620px;
  font-size: 13px;
  color: var(--muted);
}
.group-count {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  padding-bottom: 2px;
  white-space: nowrap;
}

.cards {
  display: grid;
  gap: 18px;
}
.cards--web { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--desktop { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  --accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent) 72%);
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  box-shadow: var(--shadow-md);
}
.card:hover::before { transform: scaleX(1); }

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
[data-theme="dark"] .card-icon { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.card:hover .card-icon { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.card-icon .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.card--archived .card-icon {
  color: var(--muted);
  border-color: var(--line-strong);
  background: transparent;
}

.card-code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--faint);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}
.card-top .pill { margin-left: auto; flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 11%, transparent);
}
.pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
[data-theme="dark"] .pill { background: color-mix(in srgb, var(--tone) 18%, transparent); }
.pill--stable { --tone: #14835a; }
.pill--live { --tone: #2f63d4; }
.pill--fresh { --tone: #b83c76; }
.pill--preview { --tone: #8a5a0f; }
.pill--paused { --tone: #5f6b80; }
.pill--archived { --tone: #b45454; }
[data-theme="dark"] .pill--stable { --tone: #4fc796; }
[data-theme="dark"] .pill--live { --tone: #7fa2ff; }
[data-theme="dark"] .pill--fresh { --tone: #f08bb4; }
[data-theme="dark"] .pill--preview { --tone: #e0a850; }
[data-theme="dark"] .pill--paused { --tone: #a7b3c6; }
[data-theme="dark"] .pill--archived { --tone: #e08a8a; }

.card-name {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.015em;
}
.card-name .card-en {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--faint);
}
.card-tagline {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.card-desc {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
  min-height: 5.2em;
}
.card-platform {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
}
.card-platform .cadence {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

/* 更新节奏：三格信号条，高频亮满，低频只亮一格 */
.cadence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.cadence-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}
.cadence-bars i {
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  opacity: .24;
}
.cadence-bars i:nth-child(2) { height: 5.5px; }
.cadence-bars i:nth-child(3) { height: 8px; }
.cadence--high { color: color-mix(in srgb, var(--accent) 78%, var(--ink)); }
.cadence--high .cadence-bars i { opacity: 1; }
.cadence--low { color: var(--muted); }
.cadence--low .cadence-bars i:nth-child(1) { opacity: .9; }
.cadence--low .cadence-bars i:nth-child(2) { opacity: .42; }
.cadence--low .cadence-bars i:nth-child(3) { opacity: .16; }
.cadence--compact { font-size: 8.5px; gap: 4px; }
.cadence--compact .cadence-bars { height: 7px; gap: 1px; }
.cadence--compact .cadence-bars i:nth-child(1) { height: 2.5px; }
.cadence--compact .cadence-bars i:nth-child(2) { height: 4.5px; }
.cadence--compact .cadence-bars i:nth-child(3) { height: 7px; }

.changes {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.changes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.changes-head .ver {
  color: var(--accent);
  letter-spacing: .02em;
}
.changes ul { display: grid; gap: 5px; }
.changes li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.changes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* 已终止项目卡 */
.card--archived {
  background: color-mix(in srgb, var(--surface) 76%, var(--bg));
  box-shadow: none;
}
.card--archived::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 75%);
  transform: scaleX(1);
  opacity: .55;
}
.card--archived .card-name { color: var(--ink-2); }
.card--archived .card-desc { color: var(--muted); }
.card--archived .card-platform { color: var(--faint); }
.card--archived:hover { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }

.archive-versions ul { display: grid; gap: 6px; }
.archive-versions li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding-left: 0;
  font-size: 11.5px;
  line-height: 1.5;
}
.archive-versions li::before { display: none; }
.archive-versions .hist-v {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 1px;
}
.archive-versions li.is-latest .hist-v { color: var(--accent); }
.archive-note {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  line-height: 1.5;
  color: var(--faint);
}

.hit-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--accent);
}
.hit-note b { font-family: var(--mono); font-weight: 600; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}
.card-meta .ver {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10.5px;
  font-weight: 600;
}
.card-meta .date { color: var(--muted); }

.card-open,
.card-more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.card-open:hover { color: var(--accent); }
.card-open .icon,
.card-more .icon { width: 13px; height: 13px; }
.card-more { color: var(--faint); }
.card:hover .card-more { color: var(--accent); }

/* 宽卡：本地工具 */
.card--wide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 0;
  padding: 0;
}
.wide-main { padding: 28px 30px; display: flex; flex-direction: column; }
.wide-main .card-desc { min-height: 0; max-width: 520px; }
.wide-side {
  padding: 28px 30px;
  background: var(--surface-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wide-side .changes { margin-top: 0; background: var(--surface); }
.wide-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.wide-note .mono-label {
  flex: none;
  padding-top: 2px;
  color: var(--brass);
  letter-spacing: .12em;
}
.wide-note p { font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

/* 归档行 */
.archive-row {
  --accent: #6b7280;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 15px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.archive-row:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line-strong));
}
.archive-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.archive-icon .icon { width: 18px; height: 18px; }
.archive-main { min-width: 0; flex: 1; }
.archive-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.archive-title .code {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.archive-main p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}
.archive-meta .ver { color: var(--ink-2); font-weight: 600; }
.archive-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
}
.archive-row:hover .archive-more { color: var(--ink); }
.archive-more .icon { width: 13px; height: 13px; }

/* 空状态 / noscript */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.empty-icon .icon { width: 22px; height: 22px; }
.empty-state h3 { font-size: 18px; font-weight: 650; }
.empty-state p { margin: 8px auto 20px; max-width: 420px; font-size: 13px; color: var(--muted); }

.noscript {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.noscript strong { color: var(--ink); }
.noscript p { margin-top: 8px; }

/* ---------- 8. 版本时间线 ---------- */
.releases {
  position: relative;
  padding: 76px 0 84px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.releases-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.releases-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.releases-intro h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -.03em;
  line-height: 1.2;
}
.releases-intro > p:not(.eyebrow) {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.rel-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.rel-filter > label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--faint);
}
.select-wrap {
  position: relative;
  flex: 1;
  max-width: 200px;
}
.select-wrap select {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 11px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
}
.select-wrap .icon {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--faint);
  pointer-events: none;
}

.rel-stats {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rel-stats dt { font-size: 10.5px; color: var(--faint); }
.rel-stats dd {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.rel-stats div:last-child dd { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }

.timeline { border-top: 1px solid var(--line-strong); }
.rel { border-bottom: 1px solid var(--line); }
.rel-link {
  display: grid;
  grid-template-columns: 92px 18px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 10px 18px 2px;
  transition: background-color .16s var(--ease);
}
.rel-link:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.rel-link:hover .rel-name { color: var(--accent); }

.rel-body { display: block; min-width: 0; }

.rel-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.rel-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.rel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  position: relative;
  z-index: 1;
}
.rel-line {
  position: absolute;
  top: -18px;
  bottom: -19px;
  left: 50%;
  width: 1px;
  background: var(--line-strong);
}
/* 首行从圆点中心起，末行到圆点中心止，中间各段覆盖整行，轨道线才不会断 */
.rel:first-child .rel-line { top: 9.5px; }
.rel:last-child .rel-line { bottom: calc(100% - 9.5px); }

.rel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .16s var(--ease);
}
.rel-ver {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}
.rel-note {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-toggle {
  margin-top: 22px;
  height: 38px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- 9. 关于 ---------- */
.about { padding: 84px 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: start;
}
.about-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  letter-spacing: -.03em;
  font-weight: 700;
}
.about-copy > p:not(.eyebrow) {
  max-width: 470px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.about-copy .text-link { margin-top: 24px; }

.principles { border-top: 1px solid var(--line-strong); }
.principles li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principle-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  padding-top: 3px;
}
.principles h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.principles p { margin-top: 5px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- 10. 页脚 ---------- */
.site-footer {
  background: #0a0d17;
  color: #b9bfd0;
  padding: 56px 0 24px;
  border-top: 1px solid #1c2131;
}
[data-theme="dark"] .site-footer { background: #070911; }
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer a { color: #b9bfd0; transition: color .16s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer code { background: rgba(255, 255, 255, .07); color: #cfd4e2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.brand--footer { margin-bottom: 14px; }
.brand--footer .brand-mark { color: #8e96ff; }
.brand--footer .brand-text strong { color: #f2f4fb; font-size: 14px; }
.brand--footer .brand-text small { color: #6d7488; }
.footer-brand p { font-size: 12.5px; color: #7e8598; }
.footer-ver {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: #6d7488;
  border: 1px solid #252b3c;
  border-radius: 5px;
  padding: 2px 7px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: #6d7488;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col li { font-size: 12.5px; color: #9aa1b3; }
.footer-col li a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.footer-col li a span {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #7a8296;
  transition: color .16s var(--ease);
}
.footer-col li a:hover span { color: #9aa1b3; }
.footer-status li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer-status b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: #cfd4e2; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid #1c2131;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .02em;
  color: #7a8296;
}

/* ---------- 11. 统一通行证弹层 ---------- */
.auth-dialog {
  width: min(430px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.auth-dialog::backdrop {
  background: rgba(7, 9, 16, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.auth-dialog[open]::backdrop { animation: authBackdrop .3s var(--ease) both; }
.auth-dialog[open] .auth-card { animation: authIn .34s var(--ease) both; }
.auth-dialog.is-closing::backdrop { animation: authBackdropOut .22s var(--ease) both; }
.auth-dialog.is-closing .auth-card { animation: authOut .22s var(--ease) both; }
.auth-card {
  position: relative;
  padding: 34px 30px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .62);
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.auth-close:hover { background: var(--surface-2); color: var(--ink); }
.auth-close .icon { width: 14px; height: 14px; }
.auth-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  color: var(--brand);
}
.auth-mark .icon { width: 24px; height: 24px; }
.auth-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--faint);
}
.auth-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}
.auth-msg {
  max-width: 320px;
  white-space: normal;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: balance;
}
.auth-msg .nowrap { white-space: nowrap; }
.auth-ok { width: 100%; margin-top: 22px; }
@media (max-width: 480px) {
  .auth-dialog { width: calc(100vw - 32px); }
  .auth-card { padding: 30px 22px 22px; border-radius: 18px; }
  .auth-card h2 { font-size: 23px; }
}

/* ---------- 12. 产品详情弹层 ---------- */
.product-dialog {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.product-dialog::backdrop {
  background: rgba(7, 9, 16, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.product-dialog[open] .dlg { animation: dlgIn .24s var(--ease); }

.dlg {
  --accent: var(--brand);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.dlg-head {
  position: relative;
  flex: none;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    var(--surface);
}
.dlg-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dlg-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}
.dlg-icon .icon { width: 22px; height: 22px; }
.dlg-code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}
.dlg-top .pill { margin-left: auto; }

.dlg-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.dlg-close:hover { background: var(--surface-2); color: var(--ink); }
.dlg-close .icon { width: 15px; height: 15px; }

.dlg-head-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.dlg-head-link:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}
.dlg-head-link .icon { width: 15px; height: 15px; }

.dlg-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 700;
}
.dlg-en {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--faint);
}
.dlg-tagline {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.dlg-scroll { overflow: auto; }
.dlg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  padding: 26px 32px 34px;
}
.dlg-desc { font-size: 13.5px; line-height: 1.8; color: var(--muted); }

.dlg-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.dlg-fact { padding: 12px 14px; border-right: 1px solid var(--line); }
.dlg-fact:last-child { border-right: 0; }
.dlg-fact dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}
.dlg-fact dd { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.dlg-fact dd.mono { font-family: var(--mono); font-size: 12px; }
.dlg-fact dd .cadence { display: flex; margin-top: 5px; font-weight: 500; }

.dlg-works { margin-top: 22px; }
.dlg-works > ul { display: grid; gap: 8px; margin-top: 10px; }
.dlg-works li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}
.work-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.work-main b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.work-main span { font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.work-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.work-ver { font-family: var(--mono); font-size: 9px; color: var(--accent); }
@media (max-width: 480px) {
  .dlg-works li { flex-direction: column; gap: 6px; }
  .work-side { align-items: flex-start; }
}

.dlg-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.dlg-section-title span {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--faint);
}

.dlg-changes { margin-bottom: 26px; }
.dlg-changes ul { display: grid; gap: 7px; }
.dlg-changes li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.dlg-changes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hist { position: relative; }
.hist-item {
  position: relative;
  padding: 0 0 20px 20px;
  border-left: 1px solid var(--line-strong);
  margin-left: 3px;
}
.hist-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.hist-dot {
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hist-item.is-current .hist-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.hist-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.hist-ver {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.hist-item.is-current .hist-ver { color: var(--accent); }
.hist-head time { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.hist-tag {
  font-size: 9px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.5;
}
.hist-item p { font-size: 12px; line-height: 1.65; color: var(--muted); }

.dlg-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.side-card h4 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.side-card .stack-tags { margin-top: 0; }
.side-card .tag { background: var(--surface); }

.side-actions { display: grid; gap: 8px; }
.side-actions .btn { width: 100%; height: 38px; font-size: 12.5px; }
.side-actions .btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.side-note { font-size: 10.5px; line-height: 1.6; color: var(--faint); word-break: break-all; }
.side-note code { font-size: 10px; }

/* ---------- 12. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--muted);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), color .16s var(--ease);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--ink); }
.to-top .icon { width: 17px; height: 17px; }

/* ---------- 13. 动效 ---------- */
@keyframes dlgIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes authBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes authOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(.97); }
}
@keyframes authBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.card,
.archive-row {
  animation: cardIn .36s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.is-filtered .card,
.is-filtered .archive-row { animation: none; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 40px; }
  .hero h1 { font-size: clamp(34px, 4.1vw, 48px); }
  .releases-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .about-grid { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .hero { padding: 46px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .matrix-card { max-width: 560px; }
  .stats { max-width: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sync-note { padding-bottom: 0; }
  .toolbar { position: static; }
  .result-count { margin-left: 0; flex-basis: 100%; }
  .cards--web { grid-template-columns: 1fr; }
  .cards--all { grid-template-columns: 1fr; }
  .card-desc { min-height: 0; }
  .card--wide { grid-template-columns: 1fr; }
  .wide-side { border-left: 0; border-top: 1px solid var(--line); }
  .releases-grid { grid-template-columns: 1fr; gap: 34px; }
  .releases-intro { position: static; }
  .releases-intro > p:not(.eyebrow) { max-width: 560px; }
  .rel-filter { max-width: 340px; }
  .rel-stats { max-width: 340px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-copy > p:not(.eyebrow) { max-width: 620px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / 4; }
  .dlg-body { grid-template-columns: 1fr; gap: 26px; }
  .dlg-side { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 220px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .header-inner { gap: 10px; }
  .brand-text strong { font-size: 13.5px; }
  .brand-text small { display: none; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .nav { gap: 0; margin-left: 2px; }
  .nav a { padding: 7px 7px; font-size: 12.5px; }
  .nav a::after { left: 7px; right: 7px; }
  .search-jump { padding: 0 8px; }
  .search-jump-text, .search-jump kbd { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { margin: 16px 0; font-size: clamp(26px, 8.2vw, 36px); letter-spacing: -.03em; }
  .lede { font-size: 14px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .stats { flex-wrap: wrap; gap: 18px 0; margin-top: 32px; }
  .stat { flex: 1 1 50%; border-right: 0; margin: 0; padding: 0; min-width: 0; }
  .stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .stat dd { font-size: 19px; }
  .release-item { padding: 13px 16px; }
  .release-head { padding: 15px 16px 12px; }
  .release-foot { padding: 12px 16px; }
  .product-ticker::before,
  .product-ticker::after { width: 32px; }
  .product-ticker { min-height: 46px; }
  .ticker-group { gap: 18px; padding: 11px 14px; }
  .ticker-item { gap: 7px; font-size: 12px; }
  .ticker-icon { width: 24px; height: 24px; border-radius: 6px; }
  .ticker-ver { display: none; }
  .ticker-sep { margin-left: 10px; }
  .matrix-head { padding: 15px 16px 12px; }
  .matrix-status {
    height: auto;
    min-height: 34px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 7.5px;
    letter-spacing: .04em;
  }
  .matrix-status span { padding-right: 10px; margin-right: 10px; }
  .matrix-status b { font-size: 10px; }
  .matrix-cell { min-height: 96px; padding: 10px 11px; }
  .matrix-name { font-size: 11.5px; }
  .matrix-meta { font-size: 8.5px; }
  .matrix-foot { padding: 12px 16px; }
  .catalog { padding: 50px 0 58px; }
  .toolbar { margin-bottom: 28px; gap: 10px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .chips { width: 100%; flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .group { margin-bottom: 44px; }
  .group-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .group-count { padding-bottom: 0; }
  .card { padding: 20px; }
  .cards--desktop { grid-template-columns: 1fr; }
  .wide-main, .wide-side { padding: 22px 20px; }
  .archive-row { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .archive-main { flex-basis: calc(100% - 50px); }
  .archive-main p { white-space: normal; }
  .archive-meta { margin-left: 48px; }
  .archive-more { margin-left: auto; }
  .releases { padding: 54px 0 60px; }
  .rel-link { position: relative; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding-right: 2px; }
  .rel-date {
    position: absolute;
    top: 20px;
    right: 2px;
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
  }
  .rel-marker { grid-row: 1 / 3; }
  .rel-body { grid-column: 2; grid-row: 1; }
  .rel-head { padding-right: 76px; }
  .rel-line { bottom: -19px; }
  .rel-note { -webkit-line-clamp: 3; }
  .about { padding: 58px 0; }
  .principles li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .site-footer { padding: 44px 0 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { margin-top: 32px; }
  .product-dialog { width: 100vw; max-height: 100vh; height: 100vh; }
  .dlg { max-height: 100vh; min-height: 100vh; border-radius: 0; border: 0; }
  .dlg-head { padding: 20px 20px 18px; }
  .dlg-top { margin-bottom: 12px; }
  .dlg-close { position: absolute; top: 16px; right: 16px; }
  .dlg-top .pill { margin-left: 0; }
  .dlg-head-link { margin-left: auto; margin-right: 40px; }
  .dlg-body { padding: 20px 20px 30px; gap: 22px; }
  .dlg-facts { grid-template-columns: 1fr 1fr; }
  .dlg-fact { border-bottom: 1px solid var(--line); }
  .dlg-fact:nth-child(2n) { border-right: 0; }
  .dlg-fact:nth-last-child(-n+2) { border-bottom: 0; }
  .dlg-side { flex-direction: column; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
}

@media (max-width: 480px) {
  .search-jump { display: none; }
}

@media (max-width: 420px) {
  .nav a { padding: 7px 6px; font-size: 12px; }
  .icon-btn { width: 34px; height: 34px; }
  .login-btn { width: 34px; height: 34px; }
  .search-jump { width: 34px; height: 34px; justify-content: center; }
  .stats { gap: 14px 0; }
  .stat dd { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
}

/* ---------- 15. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .ticker-track { animation: none !important; }
  .product-ticker { overflow-x: auto; }
  .product-ticker::before,
  .product-ticker::after { display: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}
