/* FAswitch 官网：打盹咸鱼的米白和黑线，留白多，字少。
   无 JS 也能看到全部内容与下载；不使用 opacity:0 隐藏任何正文。 */

:root {
  --paper: #f5f1e8;
  --paper-2: #efe9dc;
  --card: #fffdf9;
  --moon: #ebe3d2;
  --ink: #1f1d1a;
  --ink-2: #4b473f;
  --ink-3: #6e695e;
  --line: #e3dccd;
  --line-2: #d3cbb9;
  --moss: #3f6b52;
  --moss-deep: #2c4c3a;
  --moss-soft: #e4ece3;
  --sand: #f6ecd8;
  --sand-line: #e6d6b6;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 1px 2px rgba(31, 29, 26, .04);
  --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 24px 48px -32px rgba(31, 29, 26, .3);
  --sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }
::selection { background: var(--moss-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }
section[id], main[id], details[id] { scroll-margin-top: 88px; }

/* 只给屏幕阅读器的原生控件：保持可聚焦，不用 opacity 隐藏 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--card);
  font-size: 13px;
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 40px); }

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--ink); color: var(--card); }
.btn-primary:hover { background: #38342e; transform: translateY(-1px); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: #b8ae98; transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }

.link-quiet { color: var(--ink-3); font-size: 14px; }
.link-quiet:hover { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }
.link-moss { display: inline-block; margin-top: 12px; color: var(--moss-deep); font-size: 15px; font-weight: 600; }
.link-moss:hover { text-decoration: underline; text-underline-offset: 3px; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss-deep);
  font-size: 12.5px;
  font-weight: 600;
}
.pill-quiet { background: var(--paper-2); color: var(--ink-2); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 232, .9);
  backdrop-filter: blur(12px) saturate(140%);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

/* 手机端菜单开关：默认收起，用原生 checkbox 支撑，不依赖 JS */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.bars { display: block; width: 14px; height: 1.5px; background: currentColor; box-shadow: 0 -4.5px 0 currentColor, 0 4.5px 0 currentColor; }
.nav-toggle:focus-visible + .nav-toggle-label,
#view-accounts:focus-visible ~ .example-switch label[for="view-accounts"],
#view-providers:focus-visible ~ .example-switch label[for="view-providers"] { outline: 2px solid var(--moss); outline-offset: 3px; }

.site-nav { display: none; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px 14px; border-radius: 11px; color: var(--ink-2); font-size: 15px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle:checked ~ .site-nav {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
  }
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .link-quiet { display: none; }

/* ---------- 首屏 ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(30px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
.hero-copy { min-width: 0; }

.eyebrow { color: var(--ink-3); font-size: 14px; letter-spacing: .04em; }

.hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; background-image: linear-gradient(transparent 68%, rgba(63, 107, 82, .2) 68%); }
.lead { max-width: 30em; color: var(--ink-2); font-size: 18px; line-height: 1.8; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.size-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.size-note a { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

/* 一条睡着的鱼，慢慢浮着 */
.hero-art { position: relative; display: grid; place-items: center; min-height: clamp(220px, 34vw, 400px); }
.hero-moon {
  position: absolute;
  width: min(84%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--moon);
}
.hero-fish { position: relative; width: min(100%, 470px); animation: drift 7s ease-in-out infinite; }
.hero-shadow {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 46%;
  height: 12px;
  margin-left: -23%;
  border-radius: 50%;
  background: rgba(31, 29, 26, .09);
  filter: blur(7px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(-10px) rotate(-1.2deg); } }
@keyframes breathe { 50% { transform: scaleX(.86); opacity: .7; } }

/* ---------- 通用区块 ---------- */
.section { padding-block: clamp(56px, 7.5vw, 104px); }
.section-tight { padding-block: 0 clamp(40px, 5vw, 64px); }
.section-alt { background: var(--paper-2); }

.section-head { margin-bottom: clamp(26px, 3.4vw, 42px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.section-lead { max-width: 38em; margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- 三件事 ---------- */
.values { display: grid; gap: 14px; }
.values li { padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.value-icon { width: 28px; height: 28px; fill: none; stroke: var(--moss); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.values h2 { margin: 12px 0 6px; font-size: 18px; font-weight: 650; }
.values p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* ---------- 界面示例 ---------- */
.example-panels [data-panel] { display: none; }
#view-accounts:checked ~ .example-panels [data-panel="accounts"],
#view-providers:checked ~ .example-panels [data-panel="providers"] { display: block; }

.example-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 14px;
  background: var(--paper-2);
}
.example-switch label {
  padding: 8px 18px;
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
#view-accounts:checked ~ .example-switch label[for="view-accounts"],
#view-providers:checked ~ .example-switch label[for="view-providers"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.shot-card { overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.shot-card .shot { width: 100%; background: #fff; }
.shot-card figcaption { padding: 14px 20px 16px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 三步 ---------- */
.steps { display: grid; gap: 14px; }
.steps > li { min-width: 0; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.step-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss-deep);
  font-size: 15px;
  font-weight: 700;
}
.steps h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 650; }
.steps p { color: var(--ink-2); font-size: 15px; }
.step-hint { margin-top: 8px; color: var(--ink-3) !important; font-size: 14px !important; }

.callout { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--moss-soft); color: var(--ink-2); font-size: 15px; }
.callout strong { color: var(--moss-deep); }

/* 折起来的细节 */
.fold { margin-top: 12px; }
.fold > summary { color: var(--moss-deep); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fold > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.fold p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.fold p code, .fine-print code, .faq code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.code-block { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); }
.code-block code { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.copy-btn {
  display: none;
  align-items: center;
  margin-top: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.copy-btn:hover { border-color: #b8ae98; }
html.js .copy-btn { display: inline-flex; }
.copy-btn[data-state="done"] { border-color: transparent; background: var(--moss-soft); color: var(--moss-deep); }

/* ---------- 下载 ---------- */
.dl-main {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.dl-tag { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.dl-main h3 { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.015em; }
.dl-points { margin-top: 12px; display: grid; gap: 4px; }
.dl-points li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 15px; }
.dl-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--moss); }
.dl-main-action { display: grid; gap: 10px; justify-items: center; }
.dl-main-action .btn { width: 100%; white-space: nowrap; }

.dl-grid { display: grid; gap: 14px; margin-top: 14px; }
.dl-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.dl-card h3 { margin-top: 10px; font-size: 18px; font-weight: 650; }
.dl-sub { margin-top: 2px; color: var(--ink-3); font-size: 14px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 16px; }

.fine-print { display: grid; gap: 6px; margin-top: 22px; }
.fine-print li { min-width: 0; color: var(--ink-3); font-size: 14px; }
.fine-print a { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Mac 安装：折叠的大卡片 */
.fold-card { margin-top: 20px; padding: 18px 24px; border-radius: var(--radius); background: var(--paper-2); }
.fold-card > summary { font-size: 16px; }
.fold-card .fold-lead { font-size: 15px; }
.mac-steps { display: grid; gap: 14px; margin-top: 16px; counter-reset: mac; }
.mac-steps li { counter-increment: mac; }
.mac-steps h4 { font-size: 15.5px; font-weight: 650; }
.mac-steps h4::before { content: counter(mac) ". "; color: var(--moss); }
.mac-steps p { margin-top: 2px; }
.fold-card a:not(.btn) { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

.warn-box { margin-top: 16px !important; padding: 14px 18px; border: 1px solid var(--sand-line); border-radius: var(--radius-sm); background: var(--sand); color: #55452c !important; }
.warn-box strong { color: #3f3320; }

.spec-list { margin-top: 14px; }
.spec-list > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.spec-list dt { font-size: 14px; font-weight: 650; }
.spec-list dd { color: var(--ink-2); font-size: 14px; }

.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.link-row p { margin-top: 0; }

/* ---------- 常见问题（原生 details） ---------- */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--moss-deep); }
.plus { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--moss); transition: transform .2s ease; }
.plus::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.plus::after { top: 0; left: 6px; width: 1.5px; height: 14px; }
.faq details[open] .plus::after { transform: scaleY(0); }
.faq details p { padding: 0 30px 20px 2px; color: var(--ink-2); font-size: 15.5px; }
.faq details p a { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 支持开发者：来由 → 支持用在哪 → 赞赏方式 → 感谢名单，主要动作只有扫码 ---------- */
.phrase { display: inline-block; }   /* 标题窄了按半句换行，不把一个短语拆到两行 */
.sponsor { display: grid; gap: 14px; }
.sponsor-costs { min-width: 0; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.sponsor h3, .thanks h3, .sign h3 { font-size: 18px; font-weight: 650; }
#support .section-lead { text-wrap: pretty; }
#support [hidden] { display: none !important; }
/* 一项一行，数字加粗，句子照原话不拆 */
.cost-list { display: grid; gap: 8px; margin-top: 14px; }
.cost-list li { display: flex; align-items: center; min-width: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.cost-list strong { color: var(--ink); font-weight: 700; }
.sponsor-free { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }
.sponsor-free a { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }

/* 一张 .pay-card 一种付款方式；显示中的卡两张起，整块换到下一行横排 */
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pay-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 264px; max-width: 100%; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.pay-card .qr { width: 184px; }
.pay-card .qr-crop { width: 184px; height: 184px; }
/* 支付宝收款码：整张图显示，不裁；图自带白边，框里不再加内边距 */
.qr-full { display: block; width: 184px; height: 184px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr-full img { width: 100%; height: 100%; object-fit: contain; }
/* GitHub：没有码，一颗心 + 一句说明 + 一个按钮 */
.pay-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--moss-soft); }
.pay-mark svg { width: 28px; height: 28px; fill: none; stroke: var(--moss); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pay-note { max-width: 200px; color: var(--ink-3); font-size: 14px; }

/* 赞助了？留个名：失败时把服务器的原话写在框下 */
.sign { margin-top: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.sign-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.sign-note { color: var(--ink-3); font-size: 14px; }
.sign-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sign-row input, .sign-row select { min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.sign-row input { flex: 1 1 220px; min-width: 0; }
.sign-row input::placeholder { color: var(--ink-3); }
.sign-row input:focus-visible, .sign-row select:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.sign-row .btn:disabled { opacity: .6; cursor: default; transform: none; }
.sign-status { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }
.sign-status:empty { margin: 0; }
.sign-status[data-kind="ok"] { color: var(--moss-deep); }
.sign-status[data-kind="err"] { color: #a3402e; }

.thanks { margin-top: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.thanks[hidden] { display: none; }
.thanks-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thanks-list li { padding: 2px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 14.5px; }
.thanks-note { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.thanks-note:empty { display: none; }

/* 贡献者：静态名单，圆形头像 + 名字 */
.contributors { margin-top: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.contributors h3 { font-size: 18px; font-weight: 650; }
.contributors h3 small { margin-left: 8px; color: var(--ink-3); font-size: 14px; font-weight: 400; }
.contributor-list { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 14px; }
.contributor-list li { display: grid; justify-items: center; gap: 6px; width: 84px; text-align: center; }
.contributor-list img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.contributor-list span { max-width: 100%; color: var(--ink-2); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 下载致谢：点了下载区的下载链接才由 site.js 填字，不弹窗、不拦截；没有 JS 就没有这行 */
.dl-thanks { margin-top: 14px; color: var(--ink-3); font-size: 14.5px; }
.dl-thanks:empty { margin: 0; }
.dl-thanks a { color: var(--moss-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 遇到问题 ---------- */
.help-grid { display: grid; gap: 14px; }
.help-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.help-card .link-moss { margin-top: auto; padding-top: 12px; }
.help-card h3 { margin-bottom: 6px; font-size: 18px; font-weight: 650; }
.help-card p { color: var(--ink-2); font-size: 15px; }

.qr { display: block; width: 148px; }
.qr-crop { position: relative; display: block; width: 148px; height: 148px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.qr-crop img { position: absolute; width: 242.3%; height: 242.3%; max-width: none; left: -71%; top: -38.3%; }

/* ---------- 结尾 ---------- */
.closing { background: var(--paper-2); }
.closing-inner { display: grid; justify-items: center; gap: 6px; padding-block: clamp(36px, 5vw, 64px); text-align: center; }
.closing-fish { width: 170px; margin-bottom: -14px; }
.closing h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 24px; }
.footer-inner .brand-mark { width: 30px; height: 30px; }
.footer-inner .brand strong { font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-left: auto; color: var(--ink-3); font-size: 13.5px; }

/* ---------- 响应式 ---------- */
@media (min-width: 701px) {
  .values, .steps, .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
  .spec-list > div { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-grid.more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor { grid-template-columns: minmax(0, 1fr) auto; }
  .sponsor:has(.pay-card:not([hidden]) ~ .pay-card:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .dl-main { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; }
  .dl-main-action { min-width: 240px; }
}

@media (min-width: 861px) {
  .container { width: min(1080px, 100% - 64px); }
  .container-narrow { width: min(780px, 100% - 64px); }
  .nav-toggle, .nav-toggle-label { display: none; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { flex-direction: row; gap: 6px; }
  .site-nav a { padding: 6px 12px; color: var(--ink-2); }
  .header-actions .link-quiet { display: inline; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  /* 多张付款卡时开销卡占满一行，四条排成两列，不拉成四根长条 */
  .sponsor:has(.pay-card:not([hidden]) ~ .pay-card:not([hidden])) .cost-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .container, .container-narrow { width: calc(100% - 32px); }
  .lead { font-size: 17px; }
  .cta-row .btn, .closing-actions .btn { flex: 1 1 100%; }
  .qr { width: min(100%, 148px); }
  .footer-note { margin-left: 0; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .nav-toggle-label { padding: 8px 9px; white-space: nowrap; }
  .header-actions .btn-sm { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}
