:root {
  --bg: #0d0d10;
  --bg-alt: #111116;
  --surface: #16161c;
  --surface-2: #1c1c24;
  --text: #ece8e0;
  --text-muted: #99948a;
  --border: #26262e;
  --border-soft: #2f2f38;
  --gold: #e0b183;
  --gold-dim: rgba(224, 177, 131, 0.25);
  --primary-action: #e0b183;
  --primary-action-fg: #1a130b;
  --radius: 10px;
  --radius-pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --serif: 'Songti SC', 'Noto Serif CJK SC', 'STSong', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
button, a { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.2px; }
ul { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 84px; }
.section-shell { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.section-padding { padding-block: 84px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 16px; background: var(--gold); color: var(--primary-action-fg); border-radius: 6px; }
.skip-link:focus { top: 10px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
  padding-inline: max(24px, calc((100% - 1100px) / 2));
  background: rgba(13, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; flex: 1 1 0; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.brand small { font-family: var(--font); font-size: 9px; font-weight: 600; letter-spacing: 3px; color: var(--gold); }
.site-nav { display: flex; flex: 0 1 auto; justify-content: center; gap: 30px; }
.site-nav a { font-size: 14px; color: var(--text-muted); padding-block: 6px; white-space: nowrap; transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; flex: 1 1 0; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-toggle { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 38px; border: 1px solid var(--border-soft); border-radius: 10px; cursor: pointer; }
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--text); }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--gold); outline-offset: 3px; }

/* language menu */
.lang-switch { position: relative; }
.lang-summary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.lang-summary::-webkit-details-marker { display: none; }
.lang-summary::after { content: ''; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.lang-summary:hover { color: var(--text); border-color: var(--border-soft); }
.lang-switch[open] .lang-summary { color: var(--gold); border-color: var(--gold-dim); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  width: min(360px, calc(100vw - 32px)); max-height: min(60vh, 420px); overflow: auto;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.lang-menu a { padding: 9px 10px; font-size: 13px; color: var(--text-muted); border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-menu a:hover { background: var(--surface); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--gold); }

/* buttons */
.button {
  display: inline-flex; gap: 10px; justify-content: center; align-items: center;
  border: 1px solid var(--primary-action);
  background: var(--primary-action); color: var(--primary-action-fg);
  min-height: 48px; padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.button:hover { background: #eec49a; border-color: #eec49a; }
.button:active { transform: translateY(1px); }
.button-ghost { background: var(--surface-2); border-color: var(--border-soft); color: var(--text); }
.button-ghost:hover { background: #232330; border-color: #3a3a48; }

/* shared typography */
.eyebrow { font-size: 12px; letter-spacing: 2.5px; color: var(--gold); font-weight: 600; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.32; }
h2 b { color: var(--gold); font-weight: 400; font-size: 18px; margin-inline-end: 8px; vertical-align: 3px; }
h3 { font-size: 20px; line-height: 1.45; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-intro { font-size: 14px; line-height: 1.9; color: var(--text-muted); text-align: end; max-width: 340px; }
.section-note { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero */
.hero { padding-block: 104px 84px; text-align: center; }
.hero .eyebrow { display: inline-block; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.2; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-description { margin: 22px auto 0; max-width: 620px; font-size: 16px; line-height: 1.95; color: var(--text-muted); }
.hero-note { margin: 12px auto 0; max-width: 620px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-platforms { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.hero-platforms span { display: inline-flex; align-items: center; gap: 7px; }
.hero-platforms svg { width: 15px; height: 15px; fill: currentColor; }
.hero-platforms i { width: 1px; height: 14px; background: var(--border-soft); }

/* highlight strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner { display: flex; justify-content: space-between; gap: 18px; padding-block: 18px; flex-wrap: wrap; }
.strip-inner > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.strip-inner b { color: var(--gold); font-weight: 400; font-size: 11px; }

/* sections & cards */
.page-section + .page-section { border-top: 1px solid var(--border); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); padding: 28px 26px; }
.feature-card h3 { font-size: 20px; }
.feature-card h3::before { content: '✦'; color: var(--gold); font-size: 12px; margin-inline-end: 8px; vertical-align: 2px; }
.feature-card p { margin-top: 12px; font-size: 14px; line-height: 1.95; color: var(--text-muted); }
/* 定价页功能分组：同类软件都按模块列清单，比一段说明更好扫读 */
.feature-card-list { margin-top: 14px; }
.feature-card-list li { display: flex; gap: 9px; padding: 7px 0; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.feature-card-list li::before { content: '·'; color: var(--gold); flex: none; }
.feature-card-list li:last-child { border-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  display: inline-block; padding: 7px 13px; font-size: 12px; line-height: 1.2;
  color: var(--text-muted); background: var(--bg-alt);
  border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
}
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.spec { display: block; padding: 14px 18px; font-size: 13px; line-height: 1.8; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; }

/* pricing */
.page-hero { padding-block: 88px 40px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; }
.page-hero .hero-description { margin-top: 18px; }
.pricing-section { padding-block: 28px 84px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pricing-plan { display: flex; flex-direction: column; padding: 30px 28px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; }
.pricing-plan-featured { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(224, 177, 131, 0.08); }
.pricing-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pricing-plan-head h2 { font-size: 22px; }
/* 价格独立成行作为主视觉：原来挤在标题右侧 13px，两档价格不好对比 */
.pricing-plan-price { margin-top: 16px; font-family: var(--serif); font-size: 34px; line-height: 1.2; color: var(--gold); }
.pricing-plan-price strong { font-weight: 400; }
.pricing-plan-price-note { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.pricing-plan-featured .pricing-plan-price { color: var(--text); }
.pricing-plan-intro { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.pricing-plan-list { margin-top: 6px; }
.pricing-plan-list li { display: flex; gap: 10px; padding: 13px 0; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--border); }
.pricing-plan-list li::before { content: '✦'; color: var(--gold); font-size: 9px; line-height: 2.4; flex: none; }
.pricing-plan-list li:last-child { border-bottom: 0; }
.pricing-plan-fine { margin-top: 14px; font-size: 12px; line-height: 1.8; color: var(--text-muted); }
.pricing-plan-cta { margin-top: 22px; padding: 13px 18px; text-align: center; font-size: 13px; color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); }
.pricing-plan-button { margin-top: 22px; width: 100%; }

/* articles */
.articles-more { font-size: 14px; color: var(--gold); white-space: nowrap; }
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-card { position: relative; display: block; padding: 24px 22px 46px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; transition: border-color 0.2s, transform 0.2s; }
.article-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.article-card h2, .article-card h3 { font-size: 16px; line-height: 1.55; }
.article-card p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.article-card-more { position: absolute; bottom: 18px; inset-inline-end: 20px; color: var(--gold); font-size: 15px; }
[dir="rtl"] .article-card-more { transform: scaleX(-1); }

/* article page */
.article-page { max-width: 760px; margin-inline: auto; padding-block: 72px 96px; }
.article-meta { margin-top: 14px; font-size: 12px; letter-spacing: 1px; color: var(--text-muted); }
.article-body { max-width: 68ch; margin-top: 28px; }
.article-body h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.28; }
.article-body h2 { font-size: 24px; line-height: 1.4; margin-top: 44px; }
.article-body h3 { font-size: 19px; margin-top: 32px; }
.article-body p { margin-top: 16px; font-size: 16px; line-height: 1.95; color: var(--text-muted); }
.article-body ul { margin-top: 16px; display: grid; gap: 8px; }
.article-body li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.9; color: var(--text-muted); }
.article-body li::before { content: '✦'; position: absolute; inset-inline-start: 0; top: 4px; color: var(--gold); font-size: 9px; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong, .article-body b { color: var(--text); font-weight: 600; }
.article-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; color: var(--text-muted); white-space: nowrap; }
.article-body th { color: var(--text); font-weight: 600; }
.back-link { display: inline-block; font-size: 13px; color: var(--text-muted); }
.back-link:hover { color: var(--gold); }

/* footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 32px; padding-block: 44px; align-items: start; }
.footer-brand { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.footer-brand span { font-family: var(--font); color: var(--gold); font-size: 10px; letter-spacing: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: 12px; line-height: 1.9; color: var(--text-muted); text-align: end; }

/* misc pages */
.section-index h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.notfound { text-align: center; }
.notfound h1 { font-size: 34px; margin-top: 12px; }
.notfound .button { margin-top: 24px; }

/* responsive */
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .section-shell { width: calc(100% - 40px); }
  .section-padding { padding-block: 56px; }
  .header { min-height: 60px; padding-inline: 20px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .header-actions { margin-inline-start: auto; }
  .nav-burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; z-index: 55;
    flex-direction: column; gap: 0; padding: 6px 20px 16px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: 0; }
  .lang-switch { position: static; }
  .lang-menu { grid-template-columns: 1fr; inset-inline-end: 12px; top: calc(100% + 6px); }
  .hero { padding-block: 56px 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-platforms { gap: 12px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .section-intro { text-align: start; max-width: none; }
  .card-grid, .spec-list, .pricing-grid, .articles-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 22px; }
  .page-hero { padding-block: 56px 28px; }
  .pricing-section { padding-block: 20px 56px; }
  .pricing-plan { padding: 24px 22px; }
  .pricing-plan-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pricing-plan-price { text-align: start; }
  .article-page { padding-block: 48px 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
  .footer-legal { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* compare */
.compare-page h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.compare-head-stacked { flex-direction: column; align-items: flex-start; }
.compare-intro { margin-top: 16px; max-width: 720px; font-size: 15px; line-height: 1.9; color: var(--text-muted); }
.compare-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
.compare-category-card { padding: 26px 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; }
.compare-category-card h2 { font-size: 20px; }
.compare-category-card h2 a:hover { color: var(--gold); }
.compare-category-card p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.compare-subhead { font-size: 22px; margin-bottom: 20px; }
.compare-table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--border-soft); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: start; white-space: nowrap; }
.compare-table thead th { color: var(--text); font-weight: 600; background: var(--surface); }
.compare-table tbody th { color: var(--text-muted); font-weight: 400; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .is-us { color: var(--gold); }
.cell-yes { color: var(--text); }
.cell-yes::before { content: '✦'; color: var(--gold); margin-inline-end: 7px; font-size: 9px; }
.cell-partial { color: var(--text-muted); }
.cell-no { color: #6f6a62; }
.compare-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.compare-facts > div { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; font-size: 13px; }
.compare-facts span { display: block; color: var(--text-muted); font-size: 11px; letter-spacing: 1px; }
.compare-facts strong { display: block; margin-top: 6px; font-weight: 500; color: var(--text); }
.compare-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.compare-columns h2 { font-size: 20px; margin-bottom: 12px; }
.compare-list { display: grid; gap: 10px; }
.compare-list li { position: relative; padding-inline-start: 18px; font-size: 14px; line-height: 1.85; color: var(--text-muted); }
.compare-list li::before { content: '✦'; position: absolute; inset-inline-start: 0; top: 4px; color: var(--gold); font-size: 9px; }
.compare-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* free tools */
.tools-index .section-intro { text-align: start; max-width: none; }
.tool-panel { margin-top: 48px; padding: 30px 28px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; }
.tool-panel h2 { font-size: 22px; }
.tool-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.tool-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--text-muted); }
.tool-field input { padding: 11px 12px; background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: 9px; color: var(--text); font: inherit; font-size: 14px; }
.tool-field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.tool-submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.tool-status { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.tool-status.is-error { color: #e08f83; }
.tool-result { margin-top: 28px; }
.tool-result h2 { font-size: 20px; }

/* legal */
.legal-back { margin-top: 40px; }
.footer-legal-links { margin-bottom: 6px; }
.footer-legal-links a:hover { color: var(--gold); }

@media (max-width: 720px) {
  .compare-head { flex-direction: column; align-items: flex-start; }
  .compare-categories, .compare-columns { grid-template-columns: 1fr; }
  .tool-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tool-form { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
}

/* mobile refinements */
@media (max-width: 720px) {
  .eyebrow { letter-spacing: 1.5px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; }
  .hero-actions .button { flex: 1 1 140px; max-width: 220px; padding-inline: 16px; text-align: center; line-height: 1.35; }
  .compare-facts > div { flex: 1 1 100%; }
  .compare-actions .button { flex: 1 1 140px; max-width: 220px; text-align: center; }
  .compare-table-wrap--pair .compare-table { min-width: 0; font-size: 13px; }
  .compare-table-wrap--pair .compare-table th,
  .compare-table-wrap--pair .compare-table td { padding: 9px 8px; white-space: normal; line-height: 1.5; }
  .compare-table-wrap--pair .compare-table thead th { font-size: 12px; }
  .compare-table-wrap--wide { -webkit-overflow-scrolling: touch; }
  .compare-table-wrap--wide .compare-table { min-width: 560px; }
  .compare-table-wrap--wide .compare-table thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); }
  .compare-table-wrap--wide .compare-table tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--border); }
}

@media (max-width: 720px) {
  /* 语言菜单在手机上用两列，18 门语言不必排成很长的一列 */
  .lang-menu { grid-template-columns: 1fr 1fr; }
}

/* magazine homepage */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-block: 88px 72px;
  text-align: start;
}
.hero-copy { min-width: 0; max-width: 620px; }
.hero-visual { min-width: 0; display: flex; justify-content: center; }
.astrolabe { width: 100%; max-width: 520px; height: auto; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.12; }
.hero-description { margin: 22px 0 0; max-width: 560px; }
.hero-actions { justify-content: flex-start; }
.hero-platforms { justify-content: flex-start; }

.story { counter-reset: chapter; }
.story .page-section, .story .articles-section { counter-increment: chapter; }
.story .section-heading h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.22; }
.story .section-heading h2 b { display: none; }
.story .section-heading h2::before {
  content: counter(chapter, decimal-leading-zero);
  display: inline-block;
  margin-inline-end: 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  vertical-align: 4px;
}

.download-section { background: linear-gradient(180deg, rgba(224, 177, 131, 0.05), transparent 62%); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.download-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px 52px; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; transition: border-color 0.2s, transform 0.2s;
}
.download-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.download-platform { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.download-arch { font-size: 13px; color: var(--text-muted); }
.download-size { font-size: 12px; color: var(--text-muted); }
.download-action { position: absolute; inset-inline-end: 22px; bottom: 16px; color: var(--gold); font-size: 20px; }
.download-note { margin-top: 18px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-block: 56px 40px; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-platforms { justify-content: center; }
  .hero-visual { order: 2; }
  .astrolabe { max-width: 300px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .astrolabe { max-width: 260px; }
  .download-grid { grid-template-columns: 1fr; }
}

/* header CTA + more menu */
.header-download { min-height: 40px; padding: 9px 18px; font-size: 13px; white-space: nowrap; }
.nav-more { position: relative; }
.nav-more summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 14px; color: var(--text-muted); padding-block: 6px; white-space: nowrap;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after {
  content: ''; width: 6px; height: 6px;
  border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}
.nav-more[open] summary { color: var(--gold); }
.nav-more-menu {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 60; display: grid; gap: 2px; min-width: 170px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.nav-more-menu a { padding: 10px 12px; font-size: 13px; color: var(--text-muted); border-radius: 8px; white-space: nowrap; }
.nav-more-menu a:hover { background: var(--surface); color: var(--text); }

/* standalone download page */
.download-page { max-width: 960px; padding-block: 72px 96px; }
.download-hero { margin-top: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.download-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin-top: 12px; }
.download-lead { margin-top: 18px; max-width: 640px; font-size: 15px; line-height: 1.9; color: var(--text-muted); }
.download-meta-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.download-meta { font-size: 12px; letter-spacing: 1px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.download-meta-sep { width: 1px; height: 11px; background: var(--border-soft); }
.download-requirements { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }

/* 平台分组：两列并排，直线条边框与金色细则，参考商城页的规格表质感 */
.download-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.download-platform-block { padding: 24px 24px 18px; background: var(--surface); border: 1px solid var(--border-soft); }
.download-platform-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.download-platform-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 8px; }
.download-platform-head h2 { font-size: 19px; letter-spacing: 0.3px; }
/* 前端检测到的系统：整块描金，并显示标记；检测不到时保持原样，不影响其他平台可点 */
.download-platform-block[data-detected="true"] { border-color: var(--gold-dim); background: var(--surface-2); }
.download-platform-block[data-detected="true"] .download-platform-icon { color: var(--primary-action-fg); background: var(--gold); border-color: var(--gold); }
.download-platform-badge { margin-inline-start: auto; padding: 3px 9px; font-size: 11px; letter-spacing: 0.4px; color: var(--primary-action-fg); background: var(--gold); border-radius: var(--radius-pill); white-space: nowrap; }
.download-platform-badge[hidden] { display: none; }
.download-platform-hint { margin-inline-start: auto; font-size: 12px; color: var(--text-muted); }
.download-arch-list { margin-top: 4px; }
.download-arch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.download-arch-row:last-child { border-bottom: 0; }
.download-arch-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.download-arch-name { font-size: 14px; color: var(--text); }
.download-arch-size { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.download-arch-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 16px; border: 1px solid var(--gold-dim); border-radius: var(--radius-pill); color: var(--gold); font-size: 13px; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.download-arch-button:hover { background: var(--gold); border-color: var(--gold); color: var(--primary-action-fg); }

/* 规格与步骤：复用商城的 dl 规格行 + 金色标题细则 */
.download-details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.download-detail-block { min-width: 0; }
.download-detail-title { font-size: 16px; letter-spacing: 0.4px; }
.download-detail-title::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 8px; background: var(--gold-dim); }
.download-spec-list { margin: 12px 0 0; }
.download-spec-row { display: grid; grid-template-columns: 116px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.download-spec-row:last-child { border-bottom: 0; }
.download-spec-row dt { color: var(--text-muted); }
.download-spec-row dd { margin: 0; color: var(--text); }
.download-steps { margin: 12px 0 0; padding-inline-start: 1.2em; font-size: 13px; line-height: 1.9; color: var(--text-muted); list-style: decimal; }
.download-steps li + li { margin-top: 6px; }

@media (max-width: 720px) {
  .header-download { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .nav-more { position: static; }
  .nav-more summary { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-more-menu {
    position: static; transform: none; min-width: 0; padding: 0 0 0 14px;
    border: 0; box-shadow: none; background: transparent;
  }
  .nav-more-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .download-page { padding-block: 48px 64px; }
  .download-page .download-grid { grid-template-columns: 1fr; }
  .download-platforms { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .download-platform-block { padding: 20px 18px 14px; }
  .download-details { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .download-spec-row { grid-template-columns: 100px 1fr; gap: 10px; }
  .download-arch-row { flex-wrap: wrap; gap: 10px; }
}

.product-shot {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 1px solid var(--border-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: var(--surface);
}

.download-source {
  display: inline-flex; align-self: flex-start; margin-top: 6px;
  padding: 2px 8px; border: 1px solid var(--border-soft); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.5px; color: var(--text-muted);
}
