/* Nomacs中文站 — 全站样式
   纯手写 CSS，无框架、无外部字体、无 CDN
   主色取自官方仓库 ImageLounge/nomacs.svg（#006699） */

/* ---------- 设计变量 ---------- */
:root {
  --brand-50: #eef7fb;
  --brand-100: #d9edf6;
  --brand-200: #b4dbeb;
  --brand-300: #7ec0dd;
  --brand-400: #48a2c9;
  --brand-500: #1f86b3;
  --brand-600: #006699;
  --brand-700: #00527a;
  --brand-800: #003f5e;
  --brand-900: #062a3a;

  --ink: #10232e;
  --ink-2: #2c3f4a;
  --ink-3: #52636e;
  --line: #dde8ee;
  --line-2: #c9dae3;
  --bg: #ffffff;
  --bg-soft: #f6fafc;
  --bg-tint: #eef7fb;

  --link: #005a86;
  --link-hover: #003f5e;

  --ok: #1d6b4f;
  --ok-bg: #eaf6f0;
  --warn-ink: #6b4a00;
  --warn-bg: #fff7e8;
  --warn-line: #edd9a9;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(16, 35, 46, 0.06), 0 8px 24px rgba(16, 35, 46, 0.06);
  --shadow-2: 0 2px 6px rgba(16, 35, 46, 0.08), 0 20px 48px rgba(16, 35, 46, 0.1);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Microsoft YaHei", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  border: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--brand-900);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
}

h4 {
  font-size: 1.03rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-hover);
}

strong {
  color: var(--brand-900);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--brand-50);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.36em;
  overflow-wrap: anywhere;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 6vw, 84px);
}

.section--tint {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-600);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  color: var(--ink-2);
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 120;
  background: var(--brand-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-900);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: auto;
  min-height: 44px;
  padding: 6px 2px;
  border-radius: var(--radius-s);
}

.brand:hover {
  color: var(--brand-800);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-name {
  font-size: 1.08rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-name small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-link:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.nav-link[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.nav-toggle-icon {
  width: 18px;
  height: 18px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 102, 153, 0.22);
}

.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 82, 122, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 82, 122, 0.24);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-800);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.94rem;
}

.btn-block {
  width: 100%;
}

.btn-on-dark {
  background: #fff;
  color: var(--brand-800);
}

.btn-on-dark:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}

/* ---------- 首页英雄区 ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 72px) clamp(36px, 4.5vw, 64px);
  background:
    radial-gradient(1100px 420px at 82% -8%, var(--brand-50) 0%, rgba(238, 247, 251, 0) 62%),
    #fff;
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--brand-600);
  white-space: nowrap;
}

.hero-lede {
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.16rem);
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-facts svg {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
  flex: none;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--brand-50);
  aspect-ratio: 1561 / 832;
  object-fit: cover;
}

.hero-figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

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

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

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

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card--soft {
  background: var(--bg-soft);
  box-shadow: none;
}

.card--link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.card--link:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card--link .more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card--link .more svg {
  width: 15px;
  height: 15px;
}

/* ---------- 列表与步骤 ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin-top: 10px;
  color: var(--ink-2);
}

.checks li:first-child {
  margin-top: 0;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006699' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.5 4.5L19.5 7'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  border: 1px solid var(--brand-100);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 22px 24px 22px 74px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.steps p:last-child,
.steps ul:last-child {
  margin-bottom: 0;
}

.steps p,
.steps li {
  color: var(--ink-2);
}

.steps ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.steps ul li {
  position: relative;
  padding-left: 18px;
}

.steps ul li + li {
  margin-top: 6px;
}

.steps ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
}

/* ---------- 提示块 ---------- */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.callout svg {
  width: 22px;
  height: 22px;
  color: var(--brand-700);
  margin-top: 2px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--brand-800);
}

.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: #4d3703;
}

.callout--warn svg {
  color: #8a5b00;
}

.callout--warn strong {
  color: var(--warn-ink);
}

.callout--neutral {
  background: var(--bg-soft);
  border-color: var(--line);
}

.callout--neutral svg {
  color: var(--ink-3);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}

th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--bg-soft);
  color: var(--brand-900);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  white-space: nowrap;
}

/* ---------- 版本信息 ---------- */
.version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.version-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
}

.version-card--stable {
  border-top: 4px solid var(--brand-600);
}

.version-card--pre {
  border-top: 4px solid var(--brand-300);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.tag--stable {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #c6e6d7;
}

.tag--pre {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.tag--muted {
  background: var(--bg-soft);
  color: var(--ink-3);
  border-color: var(--line);
}

.version-number {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-900);
  margin: 10px 0 2px;
  line-height: 1.15;
}

.version-meta {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.version-card ul {
  margin-bottom: 0;
}

/* ---------- 功能页截图占位 ---------- */
.shot {
  margin: 22px 0 0;
}

.shot-frame {
  display: grid;
  place-items: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-m);
  background:
    linear-gradient(180deg, #fbfdfe 0%, var(--bg-soft) 100%);
  color: var(--ink-3);
  text-align: center;
  padding: 20px;
}

.shot-frame svg {
  width: 34px;
  height: 34px;
  color: var(--brand-300);
}

.shot-frame strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.shot-frame span {
  font-size: 0.8rem;
  max-width: 26em;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ---------- 编号功能区 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 46px);
  align-items: start;
  padding-block: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.feature-block:first-of-type {
  border-top: 0;
}

.feature-block__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  margin-bottom: 8px;
}

.feature-block h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  margin-bottom: 10px;
}

.feature-block p {
  color: var(--ink-2);
}

/* ---------- 常见问题 ---------- */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-900);
  list-style: none;
}

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

.faq summary:hover {
  background: var(--brand-50);
}

.faq summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--brand-600);
  transition: transform 0.18s ease;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 20px 20px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-top: 18px;
  font-size: 0.84rem;
  color: var(--ink-3);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-2);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 4px;
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* ---------- 页头标题区 ---------- */
.page-head {
  padding-block: clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(820px 300px at 88% -30%, var(--brand-50) 0%, rgba(238, 247, 251, 0) 70%),
    #fff;
}

.page-head h1 {
  margin-bottom: 12px;
}

.page-head .lede {
  max-width: 46em;
  margin-bottom: 0;
}

.page-head .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

/* ---------- 下载平台 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  flex: none;
}

.platform-icon svg {
  width: 21px;
  height: 21px;
}

.platform-head h2,
.platform-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.platform dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 0.92rem;
}

.platform dt {
  color: var(--ink-3);
  white-space: nowrap;
}

.platform dd {
  margin: 0;
  color: var(--ink-2);
  min-width: 0;
}

.platform .btn {
  margin-top: auto;
}

.platform-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ---------- 下载弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 42, 58, 0.55);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(6, 42, 58, 0.35);
  padding: clamp(22px, 3vw, 32px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-dialog h2 {
  margin: 0 44px 10px 0;
  font-size: 1.4rem;
}

.modal-dialog > p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 18px;
}

.qr-slot {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.qr-box {
  width: 168px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, #fbfdfe 0%, var(--bg-soft) 100%);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 12px;
}

.qr-box svg {
  width: 34px;
  height: 34px;
  color: var(--brand-300);
}

/* 已填入真实二维码图片时的容器：去掉虚线占位边框，改为白底细边 */
.qr-box--image {
  border: 1px solid var(--line);
  border-style: solid;
  background: #fff;
  padding: 10px;
  overflow: hidden;
}

.qr-box--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-slot figcaption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-900);
}

.modal-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-3);
}

body.modal-open {
  overflow: hidden;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-900);
  color: #d6e6ee;
  margin-top: 0;
  padding-block: clamp(36px, 4.5vw, 56px) 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer p {
  color: #bed4df;
}

.site-footer a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-block: 2px;
  text-decoration: none;
  color: #d6e6ee;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-cta {
  margin-top: 4px;
}

.footer-bottom {
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 10px;
  font-size: 0.82rem;
  color: #a9c4d2;
}

.footer-bottom p {
  margin: 0;
  color: #a9c4d2;
}

.footer-bottom strong {
  color: #e6f1f7;
}

.footer-disclaimer {
  max-width: 78em;
}

/* ---------- 文章正文 ---------- */
.prose {
  max-width: 74ch;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.anchor-offset {
  scroll-margin-top: 90px;
}

/* ---------- 来源列表 ---------- */
.sources {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: src;
}

.sources li {
  counter-increment: src;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-size: 0.93rem;
}

.sources li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-600);
}

.sources .src-title {
  display: block;
  font-weight: 700;
  color: var(--brand-900);
}

.sources .src-url {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

/* ---------- 资料卡 ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.fact dt {
  color: var(--ink-3);
}

.fact dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 58vh;
  text-align: center;
  padding-block: clamp(40px, 8vw, 96px);
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--brand-100);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.error-page .lede {
  max-width: 34em;
  margin-inline: auto;
}

/* ---------- 动效 ---------- */
/* 仅做位移动效，正文始终可见，避免内容依赖脚本显示 */
.js .reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: transform 0.55s ease;
}

.js .reveal.is-visible {
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .btn-primary:hover,
  .card--link:hover {
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure {
    order: -1;
    max-width: 620px;
  }

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

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

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    order: 4;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 10px var(--gutter) 18px;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .nav-link[aria-current="page"] {
    box-shadow: none;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .platform-grid,
  .version-grid,
  .fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-facts li {
    font-size: 0.82rem;
  }

  .steps > li {
    padding: 20px 18px 20px 18px;
  }

  .steps > li::before {
    position: static;
    margin-bottom: 10px;
  }

  .header-cta-label {
    display: none;
  }

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

  .qr-box {
    width: 168px;
  }

  .modal-dialog h2 {
    font-size: 1.2rem;
    margin-right: 38px;
  }

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

  .footer-list a {
    min-height: 44px;
    padding-block: 6px;
  }

  .breadcrumb a {
    min-height: 44px;
    padding-block: 8px;
  }
}

@media (max-width: 520px) {
  .header-actions {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-name small {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .modal,
  .nav-toggle {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}
