/* AIOWork 软件中心样式：无外部依赖、无网络字体、无内联样式（配合严格 CSP）。 */

/* hidden 属性必须真的隐藏：.button { display: inline-flex } 这类规则会覆盖它。 */
[hidden] { display: none !important; }

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --text: #131722;
  --text-soft: #3d4657;
  --muted: #6b7488;
  --line: #dfe3ee;
  --brand: #3b6cf6;
  --brand-2: #7a4bff;
  --brand-ink: #ffffff;
  --ok: #1f9d63;
  --err: #c8384a;
  --warn: #a96a12;
  --shadow: 0 1px 2px rgba(19, 23, 34, .06), 0 8px 24px rgba(19, 23, 34, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1140px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --bg-soft: #0e1428;
    --surface: #141b30;
    --surface-2: #1a2238;
    --text: #eef1f8;
    --text-soft: #c4cbdc;
    --muted: #8b95ab;
    --line: #26304a;
    --brand: #6d92ff;
    --brand-2: #a483ff;
    --brand-ink: #0b1020;
    --ok: #43d68f;
    --err: #ff7a8a;
    --warn: #ffc06a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #0e1428;
  --surface: #141b30;
  --surface-2: #1a2238;
  --text: #eef1f8;
  --text-soft: #c4cbdc;
  --muted: #8b95ab;
  --line: #26304a;
  --brand: #6d92ff;
  --brand-2: #a483ff;
  --brand-ink: #0b1020;
  --ok: #43d68f;
  --err: #ff7a8a;
  --warn: #ffc06a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
code { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small-note { font-size: 13px; }
.hidden { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}
.icon.big { width: 2.6rem; height: 2.6rem; stroke-width: 1.2; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.brand-text { display: flex; align-items: baseline; gap: 8px; letter-spacing: .2px; min-width: 0; overflow: hidden; }
.brand-text em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); }
.nav-links { display: flex; gap: 16px; margin-left: 12px; font-size: 14px; color: var(--text-soft); white-space: nowrap; }
.nav-links a { flex: 0 0 auto; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
/* 品牌副标题可压缩：语言文案偏长时先省略，绝不把右侧按钮挤出视口 */
.brand-text em { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 当前语言副标题放不下时整条隐藏（由 site.js 判定），右侧按钮永远不被挤出视口 */
.brand.brand-tagline-off .brand-text em { display: none; }
/* 文案偏长的语言（德/俄等）先收紧间距，仍不够再隐藏副标题 */
.nav.nav-compact { gap: 10px; }
.nav.nav-compact .nav-links { gap: 11px; font-size: 13px; margin-left: 8px; }
.nav.nav-compact .lang-trigger { padding: 0 8px; }
.nav.nav-compact .lang-trigger .lang-label { display: none; }
/* 测量态：品牌不收缩、不裁切，才能量出真实内容宽度（由 site.js 临时挂载） */
.nav.nav-measure .brand { flex: 0 0 auto; overflow: visible; }
.nav.nav-measure .brand-text { overflow: visible; }
/* 极窄且文案极长的兜底：宁可少几个链接，也不裁切品牌与按钮 */
.nav.nav-minimal .nav-links { display: none; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}
.icon-button:hover { color: var(--text); border-color: var(--muted); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { color: var(--text); border-color: var(--muted); }
.lang-toggle.active { color: var(--brand); border-color: var(--brand); }

/* 语言切换下拉 */
.lang-switch { display: inline-flex; align-items: center; position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.lang-trigger:hover { color: var(--text); border-color: var(--muted); }
.lang-trigger[aria-expanded="true"] { border-color: var(--brand); color: var(--text); }
.lang-flag {
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 168px;
  max-height: 320px; overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  display: none;
  z-index: 40;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left; white-space: nowrap;
}
.lang-option:hover { background: var(--surface-alt, rgba(128,128,128,.12)); }
.lang-option.active { color: var(--brand); font-weight: 700; background: var(--surface-alt, rgba(128,128,128,.12)); }

/* 法律页：中英分隔线 + 主体信息面板 */
.legal-divider { border: none; border-top: 1px solid var(--line); margin: 40px 0 32px; }
.contact-panel, .legal-entity {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-panel .panel-title, .legal-entity .panel-title { margin: 0 0 14px; }

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.button-small { padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent);
}
.button-primary:hover { transform: translateY(-1px); color: var(--brand-ink); }
.button-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.button-ghost:hover { border-color: var(--muted); }
.button[disabled], .button-coming {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
  box-shadow: none;
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px 72px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.14;
  letter-spacing: -.5px;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 22px; max-width: 34em; color: var(--text-soft); font-size: 17px; }

/* 首屏 slogan：紧跟主标题，用主题色 + 短线做出「一眼看到」的分量 */
.hero-slogan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 18px;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--brand);
}
.hero-slogan::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}


.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tags span, .tags a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 18px;
  margin: 0; padding: 0; color: var(--muted); font-size: 14px;
}
.hero-facts .icon { color: var(--ok); stroke-width: 2.2; }

/* 播放器示意图：纯 CSS 画出来的窗口 + 四条轨 */
.hero-visual { perspective: 1200px; }
.mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.mock:hover { transform: none; }
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px; color: var(--muted);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; font-weight: 500; }
.mock-screen {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 196px;
  padding: 26px 18px 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface) 70%);
}
.mock-sub {
  max-width: 88%;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.mock-play {
  position: absolute; left: 50%; top: 38%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
}
.mock-play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.mock-lanes { padding: 12px 14px 16px; display: grid; gap: 8px; }
.lane {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.lane i { font-style: normal; }
.wave {
  height: 18px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 70%, transparent) 0 2px,
    transparent 2px 4px);
  opacity: .85;
}
.w2 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand-2) 75%, transparent) 0 2px, transparent 2px 4px); }
.w3 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ok) 65%, transparent) 0 2px, transparent 2px 5px); opacity: .7; }
.w4 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 70%, transparent) 0 2px, transparent 2px 6px); opacity: .6; }

/* 鼓谱示意图：五线谱 + 音符点 */
.score-mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.score-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px; color: var(--muted);
}
.score-head b { font-weight: 600; color: var(--text-soft); }
.score-body { position: relative; padding: 22px 18px 26px; }
.staff { display: grid; gap: 9px; }
.staff i {
  display: block; height: 1px;
  background: color-mix(in srgb, var(--line) 90%, var(--muted));
}
.beats { display: flex; align-items: flex-end; gap: 14px; margin-top: 6px; }
.beat { flex: 1; display: grid; gap: 5px; justify-items: center; }
.beat span {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.beat span.ghost { background: var(--line); }
.cursor-line {
  position: absolute; top: 16px; bottom: 22px; left: 42%;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
}

/* ---------- 区块 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 22px; }
.section-alt {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.3px; }
.section-sub { margin: 0; color: var(--text-soft); }
.subsection-title { margin: 32px 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.table-wrap + .table-wrap { margin-top: 16px; }
.section .small-note { margin-top: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 16px;
}
.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card h3 { margin: 12px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}

/* 工作流 */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
}
.steps li {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-no {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700; font-size: 14px;
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.steps h3 { margin: 12px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.product-card-highlight {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%);
}
.product-card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.product-title { margin: 0; font-size: 20px; line-height: 1.3; }
.product-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.product-tagline { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.product-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.feature-list li { position: relative; padding-left: 18px; color: var(--text-soft); }
.feature-list li::before {
  content: "";
  position: absolute; left: 3px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.feature-list li b { color: var(--text); font-weight: 600; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.status-available { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.status-coming { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

/* 下载区 */
.download-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.download-item { display: grid; gap: 4px; }
.download-item .button { justify-self: start; }
.download-note { color: var(--muted); font-size: 12.5px; }
.download-block {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.download-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }

/* 下载加速入口（国内直连 GitHub 失败时的第三方工具） */
.download-help { margin: 2px 0 0; }
.download-help-title { margin: 0 0 6px; font-weight: 700; color: var(--text); }
.download-help-text { margin: 0 0 12px; line-height: 1.65; }
.download-help-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.download-help-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand); font-size: 13.5px; font-weight: 600;
}
.download-help-link:hover { border-color: var(--brand); color: var(--brand); }
.download-help-disclaimer { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.download-help-disclaimer::before { content: "· "; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }

/* ---------- 面板 / 表单 ---------- */
.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel-title { margin: 0 0 14px; font-size: 16px; }
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.req { color: var(--err); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.field textarea { font-family: var(--font); font-size: 14px; line-height: 1.55; resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus, .mini-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}
.error { margin: 12px 0 0; color: var(--err); font-size: 14px; }
.ok-text { margin: 12px 0 0; color: var(--ok); font-size: 14px; }
.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  font-size: 14px;
}
.notice-warn {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
}

.get-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px;
  align-items: start;
}
.get-side { display: grid; gap: 16px; position: sticky; top: 86px; }
.pay-amount { font-weight: 700; margin: 12px 0 4px; }
.paypal-email {
  font-family: var(--mono);
  color: var(--brand);
  word-break: break-all;
  margin: 8px 0;
}
.contact-box { white-space: pre-line; font-size: 14.5px; color: var(--text-soft); }
.mono { font-family: var(--mono); font-size: 13.5px; }

/* 条款 */
.legal { max-width: 860px; display: grid; gap: 6px; }
.legal h3 { margin: 26px 0 6px; font-size: 17px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-soft); font-size: 14.5px; }
.legal p { color: var(--text-soft); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--text-soft); font-size: 14.5px; }

/* ---------- 后台 ---------- */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-grid { display: grid; gap: 16px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.stat b { font-size: 22px; color: var(--brand); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font: inherit; font-size: 14px;
  cursor: pointer;
}
.tab.active { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--text); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.admin-product { display: grid; gap: 14px; }
.admin-product + .admin-product { margin-top: 16px; }
.admin-product-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.inline-field { display: flex; gap: 8px; align-items: center; }
.inline-field input[type="checkbox"] { width: auto; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

.list-stack { display: grid; gap: 10px; }
.list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.list-card.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.list-card.ignored { opacity: .7; }
.list-info { display: grid; gap: 2px; }
.list-info p { margin: 0; font-size: 13.5px; color: var(--text-soft); }
.list-title { margin: 0; font-weight: 600; font-size: 14.5px; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 页脚 */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13.5px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .card, .mock, .product-card { transition: none; }
}

/* 窄屏 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 36px; }
  .hero-visual { order: -1; }
  .mock { transform: none; }
  .nav-links { display: none; }
  .get-grid { grid-template-columns: 1fr; }
  .get-side { position: static; }
}
/* 中窄屏：隐藏品牌副标题 + 语言按钮只留国旗，保证导航一行 */
@media (max-width: 1180px) {
  .brand-text em { display: none; }
}
@media (max-width: 1020px) {
  .lang-trigger .lang-label { display: none; }
  .lang-trigger { padding: 0 8px; }
}
@media (max-width: 560px) {
  .brand-text em { display: none; }
  .nav { gap: 12px; padding: 12px 16px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 18px; }
  .panel, .card, .product-card { padding: 18px; }
  .footer { flex-direction: column; }
}

/* ============ 下单支付页 ============ */
.req { color: var(--err); }
.order-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.order-main { display: grid; gap: 16px; }
.order-side { display: grid; gap: 16px; position: sticky; top: 86px; }

.plan-cards { display: grid; gap: 12px; }
.plan-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--surface); transition: border-color .15s ease;
}
.plan-card:hover { border-color: var(--brand); }
.plan-card input { margin-top: 4px; }
.plan-card-highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-card-body { display: flex; flex-direction: column; gap: 3px; }
.plan-card-name { font-weight: 600; }
.plan-card-price { font-size: 20px; font-weight: 700; color: var(--brand); }
.plan-card-usd { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-card-note { font-size: 13px; color: var(--muted); }
.plan-card-meta { font-size: 12.5px; color: var(--muted); }

.price-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-top: 8px;
  background: var(--surface-2); border-radius: var(--radius-sm);
}
.price-summary b { font-size: 22px; color: var(--brand); }

.result-empty { text-align: center; padding: 24px 8px; color: var(--muted); }
.result-empty .icon.big { width: 40px; height: 40px; }
.result-empty p { margin: 12px 0 0; font-size: 14px; }

.result-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.result-meta dt { color: var(--muted); font-size: 13px; }
.result-meta dd { margin: 0; font-size: 13.5px; word-break: break-all; }
.result-actions { display: flex; gap: 10px; margin-top: 14px; }

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-side { position: static; }
}

/* ---------- 更新日志 ---------- */
.changelog-row { display: flex; justify-content: flex-start; margin-top: 2px; }
.changelog-button { gap: 7px; }
.changelog-button .icon { width: 15px; height: 15px; }

.changelog-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 24, .55);
  backdrop-filter: blur(3px);
}
.changelog-modal {
  width: 100%; max-width: 620px; max-height: 82vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: changelog-in .18s ease-out;
}
@keyframes changelog-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.changelog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.changelog-title { margin: 0; font-size: 17px; font-weight: 700; }
.changelog-close {
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 8px; font-size: 22px; line-height: 1;
}
.changelog-close:hover { background: var(--surface-2); color: var(--text); }

.changelog-body {
  overflow-y: auto; padding: 8px 22px 22px;
}
.changelog-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry-latest .changelog-version {
  color: var(--brand-ink); background: var(--brand);
}
.changelog-entry-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.changelog-version {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px;
}
.changelog-date { color: var(--muted); font-size: 12.5px; }
.changelog-entry-title { margin: 10px 0 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.changelog-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.changelog-list li { color: var(--text-soft); font-size: 14px; line-height: 1.6; }

@media (max-width: 560px) {
  .changelog-modal { max-height: 88vh; }
  .changelog-head { padding: 14px 16px; }
  .changelog-body { padding: 4px 16px 16px; }
}
