/* 温故 · wengu.tooip.cn
   单页静态站：无构建步骤、无第三方依赖、无外部请求。
   配色取自 App 本体：纸白 #F7F4EE、墨蓝 #1F2A44、书签金 #E8B04B。 */

:root {
  color-scheme: light dark;

  --paper: #f7f4ee;
  --paper-deep: #efe9dd;
  --panel: #fffdf9;
  --ink: #1f2a44;
  --ink-2: #4a5368;
  --ink-3: #646c7e;
  --line: #e4ddcf;
  --line-strong: #d3c9b8;
  --gold: #e8b04b;
  --gold-deep: #8a5a08;

  --paper-rgb: 247 244 238;
  --ink-rgb: 31 42 68;
  --gold-rgb: 232 176 75;

  --btn-bg: #1f2a44;
  --btn-fg: #f7f4ee;
  --shadow-sm: 0 1px 2px rgb(31 42 68 / 0.06);
  --shadow: 0 2px 4px rgb(31 42 68 / 0.04), 0 20px 44px -22px rgb(31 42 68 / 0.32);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    "SimSun", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --max: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 1.25rem;
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101521;
    --paper-deep: #161d2c;
    --panel: #171e2d;
    --ink: #f2eee4;
    --ink-2: #c2c8d4;
    --ink-3: #98a0b0;
    --line: #283145;
    --line-strong: #3a455c;
    --gold: #eebc62;
    --gold-deep: #eebc62;

    --paper-rgb: 16 21 33;
    --ink-rgb: 242 238 228;
    --gold-rgb: 238 188 98;

    --btn-bg: #eebc62;
    --btn-fg: #141a28;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow: 0 2px 4px rgb(0 0 0 / 0.35), 0 24px 48px -24px rgb(0 0 0 / 0.9);
  }
}

/* ---------- 基础 ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgb(var(--gold-rgb) / 0.35);
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

/* ---------- 图标 ---------- */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* ---------- 顶部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.08);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(var(--paper-rgb) / 0.86);
    backdrop-filter: saturate(1.5) blur(14px);
    -webkit-backdrop-filter: saturate(1.5) blur(14px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-inline-start: auto;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.header__cta {
  margin-inline-start: 0;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn__meta {
  font-weight: 400;
  font-size: 0.8125em;
  opacity: 0.72;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
  transition: border-color 0.16s ease;
}

.text-link:hover {
  border-bottom-color: var(--ink);
}

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--gold-deep);
}

.hero h1 {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(
    transparent 62%,
    rgb(var(--gold-rgb) / 0.34) 62%,
    rgb(var(--gold-rgb) / 0.34) 94%,
    transparent 94%
  );
}

@media (prefers-color-scheme: dark) {
  .hero h1 em {
    background: linear-gradient(
      transparent 70%,
      rgb(var(--gold-rgb) / 0.22) 70%,
      rgb(var(--gold-rgb) / 0.22) 95%,
      transparent 95%
    );
  }
}

.hero__lede {
  max-width: 34em;
  margin-top: 1.4rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin-top: 1.6rem;
  font-size: 0.8438rem;
  color: var(--ink-3);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__facts li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- 手机示意图 ---------- */

.hero__art {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 4% 0 10%;
  background: radial-gradient(
    58% 52% at 50% 42%,
    rgb(var(--gold-rgb) / 0.26),
    transparent 72%
  );
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(17.5rem, 74vw);
  aspect-ratio: 9 / 17.6;
  padding: 0.5rem;
  border-radius: 2.7rem;
  background: linear-gradient(160deg, #303b57, #151c2c 62%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 44px 64px -34px rgb(20 28 46 / 0.65);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 0.95rem 0.9rem;
  border-radius: 2.25rem;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 12% 0%, rgb(255 255 255 / 0.85), transparent 60%),
    radial-gradient(70% 42% at 92% 8%, rgb(var(--gold-rgb) / 0.22), transparent 62%),
    linear-gradient(180deg, var(--panel), var(--paper-deep));
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: linear-gradient(160deg, #3d4968, #1b2334 62%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 1px 2px rgb(0 0 0 / 0.5),
      0 44px 64px -34px rgb(0 0 0 / 0.9);
  }

  .phone__screen {
    background:
      radial-gradient(90% 55% at 12% 0%, rgb(255 255 255 / 0.08), transparent 60%),
      radial-gradient(70% 42% at 92% 8%, rgb(var(--gold-rgb) / 0.18), transparent 62%),
      linear-gradient(180deg, #1a2232, #111726);
  }
}

.phone__island {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  translate: -50% 0;
  width: 4.4rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #0b0e15;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.1rem 0.35rem 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-2);
}

.phone__signal {
  display: flex;
  align-items: flex-end;
  gap: 0.12rem;
}

.phone__signal i {
  display: block;
  width: 0.14rem;
  border-radius: 1px;
  background: var(--ink-2);
}

.phone__signal i:nth-child(1) { height: 0.22rem; }
.phone__signal i:nth-child(2) { height: 0.32rem; }
.phone__signal i:nth-child(3) { height: 0.42rem; }
.phone__signal i:nth-child(4) { height: 0.52rem; }

.phone__clock {
  margin-top: 1.55rem;
  text-align: center;
}

.phone__clock strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.phone__clock span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.mock-widget {
  margin-top: 1.35rem;
  padding: 0.7rem 0.75rem 0.55rem;
  border: 1px solid rgb(var(--ink-rgb) / 0.06);
  border-radius: 1.15rem;
  background: var(--panel);
  box-shadow: 0 1px 2px rgb(31 42 68 / 0.06), 0 14px 28px -20px rgb(31 42 68 / 0.45);
}

.mock-widget__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ink);
}

.mock-widget__title {
  font-size: 0.8125rem;
  font-weight: 700;
}

.mock-widget__count {
  font-size: 0.625rem;
  color: var(--ink-3);
}

.mock-widget__list {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.05rem;
}

.mock-widget__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.24rem;
  font-size: 0.6875rem;
  color: var(--ink);
}

.mock-widget__list li span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.34rem;
  background: var(--c);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
}

.p-douyin { --c: #161823; }
.p-bilibili { --c: #fb7299; }
.p-xiaohongshu { --c: #ff2442; }
.p-web { --c: #4a6fa5; }

.mock-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem 0.4rem;
  margin-top: 1.2rem;
}

.mock-app {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.mock-app__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  background: var(--c);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 14px -8px rgb(22 24 35 / 0.55);
}

.mock-app__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.2), transparent 58%);
}

.mock-app__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.5625rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-2);
}

.phone__dots {
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  margin-top: auto;
  padding-top: 1rem;
}

.phone__dots i {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.22);
}

.phone__dots i:first-child {
  background: rgb(var(--ink-rgb) / 0.55);
}

.hero__caption {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- 引言 ---------- */

.manifesto {
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.manifesto__inner {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  text-align: center;
}

.manifesto .mark {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.5rem;
  color: var(--gold-deep);
}

.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.58;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.manifesto blockquote span {
  color: var(--ink-3);
}

.manifesto__note {
  margin-top: 1.35rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ---------- 通用区块 ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section__head p {
  margin-top: 0.85rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

.section__head .eyebrow {
  margin-bottom: 0.75rem;
}

/* ---------- 三步 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.step {
  padding-top: 1.15rem;
  border-top: 2px solid rgb(var(--ink-rgb) / 0.75);
}

.step__num {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.step p {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ---------- 功能 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature {
  padding: 1.45rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  background: rgb(var(--gold-rgb) / 0.16);
  color: var(--gold-deep);
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin-top: 0.45rem;
  color: var(--ink-2);
  font-size: 0.9063rem;
  line-height: 1.75;
}

/* ---------- 安装 ---------- */

.install {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}

.install-steps {
  display: grid;
  gap: 1.4rem;
}

.install-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.install-step__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.install-step h3 {
  font-size: 1rem;
  font-weight: 700;
}

.install-step p {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.install-step .code {
  margin-top: 0.7rem;
}

/* ---------- 下载信息卡 ---------- */

.dl-card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dl-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.dl-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.dl-card__version {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
}

.dl-card__new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: var(--ink-2);
  font-size: 0.7813rem;
  line-height: 1.6;
}

.dl-card__new span {
  flex: none;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgb(var(--gold-rgb) / 0.2);
  color: var(--gold-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dl-card__btn {
  width: 100%;
  margin-top: 1rem;
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.dl-meta div {
  min-width: 0;
}

.dl-meta dt {
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.dl-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.dl-block {
  padding-top: 1rem;
}

.dl-block__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper-deep);
}

.code code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code--wrap {
  align-items: flex-start;
}

.code--wrap code {
  overflow: visible;
  white-space: normal;
  word-break: break-all;
}

.copy {
  flex: none;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.6875rem;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.copy:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.copy.is-copied {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

.dl-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.7813rem;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- 常见问题 ---------- */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-right: 1.7px solid var(--ink-3);
  border-bottom: 1.7px solid var(--ink-3);
  transform: rotate(45deg) translateY(-0.1rem);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-0.1rem);
}

.faq details p {
  margin: -0.15rem 0 1.3rem;
  max-width: 44rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.faq details p code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.875em;
}

/* ---------- 结尾 ---------- */

.final {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.75rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--gold-rgb) / 0.24), transparent 70%);
  pointer-events: none;
}

.final > * {
  position: relative;
}

.final h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  text-wrap: balance;
}

.final p {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  color: inherit;
  opacity: 0.72;
  font-size: 0.9688rem;
}

.final .btn {
  margin-top: 1.75rem;
  background: var(--gold);
  color: #161d2b;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}

/* 深色下结尾卡片本身是纸色，按钮改用墨蓝，避免金色贴着纸色发飘 */
@media (prefers-color-scheme: dark) {
  .final .btn {
    background: #1f2a44;
    color: #f7f4ee;
  }
}

.final__meta {
  margin-top: 1rem;
  font-size: 0.7813rem;
  opacity: 0.6;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding-block: 2.75rem 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer__tagline {
  margin-top: 0.55rem;
  max-width: 20rem;
  font-size: 0.8438rem;
  color: var(--ink-3);
}

.footer__col h2 {
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.footer__col ul {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.footer__col a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.7813rem;
  color: var(--ink-3);
}

.footer__legal a {
  color: inherit;
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
    padding-block: 2.5rem 4rem;
  }

  .hero__art {
    order: 2;
  }

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

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

  .dl-card {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .header__cta {
    margin-inline-start: auto;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .step {
    padding-top: 0.9rem;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    gap: 1rem;
  }

  .mock-app__label {
    font-size: 0.5313rem;
  }
}

@media (max-width: 460px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

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

  /* 首行是 11 个全角字符（含逗号），字号必须压到 «内容宽 / 11» 才能不折行 */
  .hero h1 {
    font-size: clamp(1.55rem, 7.9vw, 2.6rem);
  }
}

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

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