/* ==========================================================================
   墨匣 官网样式
   亮/暗双主题，纯 CSS 变量驱动；无外部依赖，单文件。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --text: #15181c;
  --text-2: #5b6472;
  --text-3: #8b95a3;
  --line: #e5e8ed;
  --line-2: #eef1f5;
  --accent: #4f46e5;
  --accent-2: #2f6fed;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-line: rgba(79, 70, 229, 0.22);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 8px 24px -10px rgba(16, 24, 40, 0.16), 0 2px 6px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 40px 80px -32px rgba(16, 24, 40, 0.3), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;
}

[data-theme="dark"] {
  --bg: #0e1013;
  --bg-soft: #14171c;
  --bg-elev: #16191f;
  --text: #e9ecf1;
  --text-2: #9aa4b2;
  --text-3: #6b7482;
  --line: #232830;
  --line-2: #1b1f25;
  --accent: #8b8cf7;
  --accent-2: #6aa8ff;
  --accent-soft: rgba(139, 140, 247, 0.12);
  --accent-line: rgba(139, 140, 247, 0.28);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.8), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

p { margin: 0; }

::selection { background: var(--accent-soft); }

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

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-2);
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .ver {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}
.nav a.is-active { color: var(--text); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-2);
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }

.menu-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text-3); }

.btn--lg { font-size: 16px; padding: 15px 26px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 50% auto -10%;
  height: 620px;
  background: radial-gradient(48% 48% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.pill b { color: var(--text); font-weight: 600; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
  flex: none;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__meta {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 截图 ---------- */
.shot {
  margin: 56px auto 0;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-soft);
}
.shot__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.shot__bar span {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}
.shot img { width: 100%; }
.shot--flat { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 0; }

/* ---------- 卡片 / 网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.7px; }

/* ---------- 图文分块 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 96px; }
.split--flip .split__text { order: 2; }
.split__text h2 {
  font-size: clamp(23px, 2.8vw, 30px);
  margin-bottom: 16px;
}
.split__text > p {
  color: var(--text-2);
  font-size: 16.5px;
  margin-bottom: 22px;
}
.split__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.split__list li {
  display: flex;
  gap: 11px;
  font-size: 15px;
  color: var(--text-2);
}
.split__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
.split__list b { color: var(--text); font-weight: 600; }

/* ---------- 主题色卡 ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.theme-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}
.theme-card__preview {
  height: 92px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}
.theme-card__preview .l1 {
  height: 8px;
  border-radius: 4px;
  width: 62%;
  opacity: 0.85;
}
.theme-card__preview .l2 {
  height: 6px;
  border-radius: 3px;
  width: 92%;
  opacity: 0.42;
}
.theme-card__preview .l3 {
  height: 6px;
  border-radius: 3px;
  width: 78%;
  opacity: 0.28;
}
.theme-card__name {
  padding: 11px 15px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.theme-card__name em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
}

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; }
table.kb {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.kb th,
table.kb td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
table.kb th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: var(--line);
}
table.kb tr:last-child td { border-bottom: none; }
table.kb td:first-child { color: var(--text-2); }
table.kb td:last-child { white-space: nowrap; }

kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  white-space: nowrap;
}

/* ---------- 下载区 ---------- */
.download {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.download__main { padding: 40px; }
.download__main h2 { font-size: 27px; margin-bottom: 12px; }
.download__main > p { color: var(--text-2); margin-bottom: 26px; }
.download__aside {
  padding: 40px;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
}
.download__aside h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.spec {
  display: grid;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.spec span:first-child { color: var(--text-3); }
.spec span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }

.hash {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
  color: var(--text-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.note {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 18px;
  line-height: 1.6;
}
.note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 46px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 20px 30px 20px 0;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__body {
  padding: 0 40px 22px 0;
  color: var(--text-2);
  font-size: 15px;
}
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--bg-soft);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer__brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer__links a { color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__legal {
  width: 100%;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- 文档页 ---------- */
.doc {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 56px;
  align-items: start;
  padding: 48px 0 96px;
}
.doc__nav {
  position: sticky;
  top: 88px;
  font-size: 14px;
}
.doc__nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin: 22px 0 10px;
}
.doc__nav h4:first-child { margin-top: 0; }
.doc__nav a {
  display: block;
  color: var(--text-2);
  padding: 5px 0;
  font-size: 14px;
}
.doc__nav a:hover { color: var(--accent); text-decoration: none; }

.doc__body { min-width: 0; font-size: 15.5px; }
.doc__body h1 { font-size: 32px; margin-bottom: 12px; }
.doc__body h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.doc__body h3 { font-size: 17px; margin: 30px 0 10px; }
.doc__body p { color: var(--text-2); margin-bottom: 14px; }
.doc__body ul { color: var(--text-2); padding-left: 22px; margin: 0 0 16px; }
.doc__body li { margin-bottom: 7px; }
.doc__body code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}
.doc__body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 18px;
}
.doc__body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- 更新日志 ---------- */
.log-entry {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.log-entry:last-child { border-bottom: none; }
.log-entry__meta { font-size: 14px; }
.log-entry__ver {
  font-weight: 700;
  font-size: 17px;
  display: block;
  margin-bottom: 4px;
}
.log-entry__date { color: var(--text-3); font-size: 13px; }
.log-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: 10px;
}
.log-entry__body h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--text);
}
.log-entry__body h3:first-child { margin-top: 0; }
.log-entry__body ul {
  padding-left: 20px;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.log-entry__body li { margin-bottom: 7px; }

/* ---------- 工具类 ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--text-2); }
.hidden { display: none !important; }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--flip .split__text { order: 0; }
  .split + .split { margin-top: 64px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; }
  .download__aside { border-left: none; border-top: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .doc__nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .doc__nav h4 { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .log-entry { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 11px 12px; }
  .menu-toggle { display: grid; }
  .hero { padding-top: 52px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .grid--2 { grid-template-columns: 1fr; }
  .hero__meta { gap: 6px 14px; font-size: 12.5px; }
}

@media (max-width: 560px) {
  .grid--3,
  .themes { grid-template-columns: 1fr; }
  .download__main,
  .download__aside { padding: 26px; }
  .shot__bar span { display: none; }
  .topbar__actions { gap: 6px; margin-left: 4px; }
  .btn { padding: 10px 14px; }
}

@media (max-width: 420px) {
  /* 窄屏优先保住品牌和下载按钮，版本号先让位 */
  .brand .ver { display: none; }
}

/* ---------- 平台切换 ---------- */
.pf-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}

.pf {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.pf:hover { color: var(--text); }

.pf.is-active {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.pf.is-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: 1px;
}

@media (max-width: 560px) {
  .pf { font-size: 13px; padding: 8px 12px; }
  .pf-switch { width: 100%; }
}
