/* ==========================================================================
   Libzora — minimal monochrome landing page
   1 tokens · 2 base · 3 layout · 4 header · 5 hero · 6 features
   6b membership · 7 about · 8 downloads · 9 faq · 10 footer · 11 responsive
   ========================================================================== */

/* 1 · Tokens ============================================================== */

:root {
  /* Grayscale only. The one exception is the green check mark in the
     membership plans, taken from the reference layout. */
  --bg: #fbfbfa;
  --bg-sunken: #f3f3f1;
  --surface: #ffffff;
  --ink: #131313;
  --ink-2: #4a4a48;
  --muted: #797976;
  --line: #e3e3df;
  --line-2: #cfcfc9;
  --line-soft: #efefec;
  --check: #00692a;
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6l3.6 3.6L13.5 4.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Latin from a serif, CJK from the system UI face — both are local fonts,
     so the page ships with no webfont request. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Songti SC", "Source Han Serif SC",
    "Microsoft YaHei", serif;

  --fs-display: clamp(34px, 4.6vw, 58px);
  --fs-h2: clamp(26px, 3.2vw, 42px);
  --fs-h3: clamp(21px, 2.1vw, 28px);
  --fs-lead: 16px;
  --fs-body: 15px;
  --fs-meta: 12px;
  --fs-label: 11px;

  --wrap: 1160px;
  --pad: clamp(20px, 4.5vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 64px;

  --ease: 160ms ease;
}

/* 2 · Base =============================================================== */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* Weight 400 keeps the CJK face out of Bold, which reads much quieter at
   display sizes; the tracking stays mild so it does not cramp CJK glyphs. */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-display);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 14px;
  color: var(--surface);
  background: var(--ink);
  font-size: var(--fs-meta);
  transform: translateY(-150%);
  transition: transform var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* 3 · Layout primitives ================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  margin-block: 14px 18px;
}

/* Small caps label. Optionally prefixed with a hairline-separated number. */
.label {
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* The product name is always written exactly as "Libzora". */
.label.label-brand {
  text-transform: none;
}

.label-num {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--line-2);
}

.lead {
  max-width: 560px;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.85;
}

.body-copy {
  color: var(--ink-2);
  line-height: 1.85;
}

/* Hairline-separated inline list — the one separator idiom used site-wide. */
.inline-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 6px;
  color: var(--muted);
  font-size: var(--fs-meta);
}

.inline-list > * + * {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 22px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.button-primary {
  color: var(--surface);
  background: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: transparent;
}

.button-quiet {
  color: var(--ink-2);
  border-color: var(--line-2);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: var(--fs-meta);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--ink);
}

.shot {
  border: 1px solid var(--line);
  background: var(--surface);
}

.shot-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-meta);
}

/* 4 · Header ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.language-toggle {
  color: var(--muted);
  transition: color var(--ease);
}

.language-toggle:hover,
.language-toggle:focus-visible,
.header-github:hover,
.header-github:focus-visible {
  color: var(--ink);
}

.header-github {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  padding: 8px 0 8px 8px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--ink);
}

.menu-toggle span + span {
  margin-top: 5px;
}

/* 5 · Hero =============================================================== */

.hero {
  padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 76px);
}

.hero-copy {
  max-width: 1080px;
}

.hero h1 {
  max-width: 900px;
  margin-block: 18px 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 30px;
}

.hero-platform {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.2;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

a.hero-platform:hover,
a.hero-platform:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--bg-sunken);
}

.hero-platform strong {
  font-weight: 500;
}

.hero-platform-note {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.hero-platform-arrow {
  color: var(--muted);
  font-size: 12px;
  transition: color var(--ease), transform var(--ease);
}

a.hero-platform:hover .hero-platform-arrow,
a.hero-platform:focus-visible .hero-platform-arrow {
  color: var(--ink);
  transform: translateY(2px);
}

.hero-platform.is-coming {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}

.hero-platform.is-coming strong {
  font-weight: 400;
}

/* Package menus float below their trigger without changing the button row. */
.hero-platforms { position: relative; scroll-margin-top: 100px; }
.platform-download { position: relative; flex: 0 0 auto; }
.platform-download > summary { cursor: pointer; list-style: none; white-space: nowrap; }
.platform-download > summary::-webkit-details-marker { display: none; }
.platform-download > summary:hover,
.platform-download[open] > summary { border-color: var(--ink); background: #fff; }
.platform-download > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.platform-download[open] > summary .hero-platform-arrow { transform: rotate(180deg); color: var(--ink); }
.download-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: min(380px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 16px rgb(0 0 0 / 4%), 0 24px 48px rgb(0 0 0 / 8%);
}
.download-menu .platform-note { margin: 0 0 16px; min-height: 0; font-size: 12px; line-height: 1.65; }
.download-menu .asset-list { margin: 0 -8px -8px; }
.download-menu .asset { padding: 14px 8px; border-color: var(--line); border-radius: 4px; }
.download-menu .asset:last-child { border-bottom: 0; }
.download-menu .asset:hover,
.download-menu .asset:focus-visible { background: var(--bg-sunken); }
.download-menu .asset-name { font-weight: 500; }
.download-menu .asset-meta { margin-top: 5px; font-size: 10px; }
.download-menu .release-bar { margin: 0; padding: 0 0 16px; border-top: 0; gap: 14px; }
.download-menu #latest-version { font-size: 24px; }
.download-menu .downloads-foot { margin-top: 16px; gap: 16px; }
.download-menu .release-files { gap: 14px 20px; }
.download-menu .release-status { font-size: 11px; line-height: 1.65; }
@media (max-width: 700px) {
  .hero-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-download { position: static; min-width: 0; }
  .hero-platforms .hero-platform {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 6px; width: 100%; height: 66px; padding: 12px;
  }
  .hero-platforms .hero-platform-note { font-size: 10px; }
  .hero-platforms .hero-platform-arrow { position: absolute; top: 15px; right: 12px; }
  .download-menu { top: calc(100% + 10px); left: 0; width: min(380px, 100%); }
}

.hero-facts {
  margin-top: 30px;
}

.hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.fact-value {
  color: var(--ink);
  font-weight: 600;
}

.hero-shot {
  margin-top: clamp(48px, 6vw, 76px);
}

/* 6 · Signal strip + features ============================================ */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 16px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 108px);
  margin-top: clamp(56px, 7vw, 92px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.feature-reverse .feature-shot {
  order: 2;
}

.feature-copy {
  max-width: 480px;
}

.feature-copy h3 {
  margin-block: 16px 14px;
}

.feature-copy .meta-list {
  margin-top: 20px;
}

/* 6b · Membership ========================================================= */

.membership {
  border-top: 1px solid var(--line);
}

/* Region switch: underlined tabs on the site-wide hairline. */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}

.region-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  transition: color var(--ease);
}

.region-tab:hover,
.region-tab:focus-visible,
.region-tab[aria-selected="true"] {
  color: var(--ink);
}

.region-tab[aria-selected="true"] {
  font-weight: 600;
}

.region-tab[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
}

/* Same dashed idiom as the "coming soon" platforms in the hero. */
.region-tab-badge {
  padding: 0 8px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
}

.region-panel {
  margin-top: 28px;
}

.region-panel:focus-visible {
  outline-offset: 8px;
}

/* Pre-launch notice above the China plans; mirrors the tab badge idiom. */
.region-notice {
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

/* Lifetime carries the heavier frame; a ring keeps its size equal to the others. */
.plan-featured {
  border-color: var(--line-2);
  box-shadow: 0 0 0 1px var(--line-2);
}

.plan-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.plan-tagline,
.plan-period,
.plan-foot {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.plan-tagline {
  margin-top: 6px;
}

.plan-price {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.plan-price-unit {
  margin-left: 2px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.plan-period {
  margin-top: 16px;
}

.plan-features {
  display: grid;
  gap: 16px;
  margin-block: 24px 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.plan-features li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
}

.plan-features li::before,
.compare-table .is-yes::before {
  width: 14px;
  height: 14px;
  background: var(--check);
  content: "";
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

.plan-features li::before {
  margin-top: calc((1.5em - 14px) / 2);
}

/* margin-top: auto pins the footnote to the bottom of equal-height cards. */
.plan-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.compare-table {
  width: 100%;
  margin-top: clamp(40px, 5vw, 56px);
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.5;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
}

.compare-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.compare-table thead th {
  font-weight: 700;
}

.compare-table thead th:first-child {
  width: 46%;
}

.compare-table tbody th {
  font-weight: 400;
}

.compare-table .is-yes::before {
  display: inline-block;
  vertical-align: -2px;
}

.compare-table .compare-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* The "/ ''" alt text keeps screen readers on the hidden label, not the dash. */
.compare-table .is-no::before {
  content: "\2014";
  content: "\2014" / "";
}

.compare-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.region-soon {
  padding: clamp(28px, 4vw, 44px);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}

.region-soon-title {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.region-soon-body {
  max-width: 560px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
}

/* 7 · About ============================================================== */

.about {
  border-top: 1px solid var(--line);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}

.about-points li {
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-size: var(--fs-meta);
}

.about-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: clamp(32px, 4vw, 48px);
}

.about-actions > .button,
.qq-group {
  width: 100%;
  min-height: 78px;
  border-radius: 12px;
}

.about-actions > .button {
  justify-content: space-between;
  padding: 14px 18px;
}

.qq-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.qq-group:hover {
  border-color: var(--line-2);
  background: var(--bg-sunken);
  transform: translateY(-1px);
}

.qq-group-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.35;
}

.qq-group-label {
  color: var(--muted);
  font-size: var(--fs-meta);
}

.qq-group-number {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(19 19 19 / 12%);
  font-size: var(--fs-meta);
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity var(--ease), transform var(--ease), visibility 0s linear var(--ease);
}

.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.copy-toast.is-error {
  color: var(--ink-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 8 · Downloads ========================================================== */

.downloads {
  background: var(--bg-sunken);
}

.release-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 18px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.release-version {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
}

#latest-version {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#release-published {
  color: var(--muted);
  font-size: var(--fs-meta);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 4vw, 52px);
}

.baidu-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--ink);
  background: transparent;
}

.baidu-download-copy {
  display: grid;
  gap: 8px;
}

.baidu-download .label {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.baidu-download-note {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
}

.baidu-download-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 22px;
}

.baidu-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-meta);
  white-space: nowrap;
}

.baidu-code code {
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-sunken);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  transition: border-color var(--ease);
}

/* The detected platform is marked with weight, not colour. */
.platform.is-recommended .platform-head {
  border-top-color: var(--ink);
}

.platform-head h3 {
  font-size: 24px;
}

.platform-badge {
  color: var(--muted);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform.is-coming {
  opacity: 0.72;
}

.platform.is-coming .platform-head {
  border-top-style: dashed;
}

.platform.is-coming .asset {
  cursor: default;
}

.platform.is-coming .asset:hover {
  border-bottom-color: var(--line);
}

.platform-note {
  margin-top: 8px;
  min-height: 3.4em;
  color: var(--muted);
  font-size: var(--fs-meta);
  line-height: 1.7;
}

.asset-list {
  margin-top: 12px;
}

.asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.asset:first-child {
  border-top: 1px solid var(--line);
}

.asset-name {
  display: block;
  font-size: 14px;
}

.asset-meta {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-arrow {
  color: var(--muted);
  transition: color var(--ease), transform var(--ease);
}

.asset:hover .asset-arrow,
.asset:focus-visible .asset-arrow {
  color: var(--ink);
  transform: translateY(2px);
}

.asset:hover,
.asset:focus-visible {
  border-bottom-color: var(--ink);
}

/* Applied by app.js when a release does not ship a given asset. */
.disabled {
  opacity: 0.42;
}

.downloads-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 3vw, 40px);
}

.release-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: var(--fs-meta);
}

.downloads-mobile {
  margin-top: 28px;
  color: var(--muted);
  font-size: var(--fs-meta);
}

.release-status {
  color: var(--muted);
  font-size: var(--fs-meta);
}

/* 9 · Changelog ========================================================== */

.changelog {
  border-top: 1px solid var(--line);
}

.changelog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: start;
}

.changelog-full {
  margin-top: 26px;
}

.changelog-list {
  border-top: 1px solid var(--line-2);
}

.changelog-entry {
  padding-block: 24px 30px;
  border-bottom: 1px solid var(--line);
}

.changelog-entry.is-latest {
  padding-top: 18px;
}

.changelog-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.changelog-entry-head .label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}

.changelog-entry-head time {
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: none;
}

.changelog-badge {
  color: var(--muted);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.changelog-entry h3 {
  margin-block: 16px 14px;
  font-size: 24px;
}

.changelog-points {
  border-top: 1px solid var(--line);
}

.changelog-points li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.changelog-type {
  color: var(--muted);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  line-height: 1.75;
}

/* 10 · FAQ ================================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-lead);
  transition: color var(--ease);
}

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

.faq-list summary::after {
  color: var(--muted);
  content: "+";
  font-size: 17px;
  font-weight: 300;
}

.faq-list summary:hover {
  color: var(--ink);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 620px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* 10 · Footer ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px 14px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.footer-brand p {
  color: var(--muted);
  font-size: var(--fs-meta);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: var(--fs-meta);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-note {
  padding-bottom: 32px;
  color: #a3a39e;
  font-size: 11px;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 340px;
  padding: 12px 14px;
  color: var(--surface);
  background: var(--ink);
  font-size: var(--fs-meta);
}

/* 11 · Responsive ======================================================== */

@media (max-width: 900px) {
  .feature,
  .faq-grid,
  .changelog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature-reverse .feature-shot {
    order: 0;
  }

  .feature-copy {
    max-width: none;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .platform-note {
    min-height: 0;
  }

  .baidu-download {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .baidu-download-action {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--pad) 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding-block: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-github {
    display: none;
  }
}

@media (max-width: 760px) {
  .strip .wrap {
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .compare-table {
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 4px;
  }

  .compare-table thead th:first-child {
    width: 34%;
  }

  .about-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .about-actions {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .qq-group {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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