/* Lumo 官网主题。颜色、字号、间距都走下面的变量，深色模式只改变量。 */

:root {
  --brand: #1b3a6b;
  --brand-hover: #142d55;
  --brand-soft: #e8eef8;
  --accent: #1b3a6b;
  --lamp: #f4b43e;
  --lamp-strong: #e49b1a;
  --lamp-soft: #fff3d6;
  --lamp-ink: #6e4a00;
  --ink: #16213a;
  --text: #3d4a5e;
  --muted: #697588;
  --line: #e1e7ef;
  --line-strong: #cbd4e1;
  --paper: #fff;
  --mist: #f3f6fa;
  --btn: #1b3a6b;
  --btn-hover: #142d55;
  --code-bg: #0f1c34;
  --code-fg: #dce5f3;
  --code-dim: #7d8da8;
  --danger: #b42318;
  --shadow-win: 0 1px 2px rgb(22 33 58 / 6%), 0 18px 40px -14px rgb(22 33 58 / 26%);
  --top-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8fb0f0;
    --brand-hover: #a9c3f5;
    --brand-soft: #1a2a47;
    --accent: #8fb0f0;
    --lamp-soft: #3b2f12;
    --lamp-ink: #f6d38b;
    --ink: #eaeff6;
    --text: #bac5d5;
    --muted: #8793a8;
    --line: #233049;
    --line-strong: #31405c;
    --paper: #0c1424;
    --mist: #101b2f;
    --btn: #2f5aa3;
    --btn-hover: #3b69b8;
    --code-bg: #080f1d;
    --danger: #f97066;
    --shadow-win: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 40px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
}

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

main {
  flex: 1;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 48px, 1200px);
  }
}

/* ---------- 按钮与链接 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 0.9375rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-main {
  background: var(--btn);
  color: #fff;
}

.btn-main:hover {
  background: var(--btn-hover);
}

.btn-line {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn-lamp {
  background: var(--lamp);
  color: #1f1603;
}

.btn-lamp:hover {
  background: var(--lamp-strong);
}

.btn-ghost {
  border-color: rgb(255 255 255 / 36%);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

.more {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* ---------- 页眉 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 36px;
  height: var(--top-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.top-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav ul a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.top-nav ul a:hover {
  background: var(--mist);
  color: var(--ink);
}

.top-nav ul a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.top-nav ul a[aria-current]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: var(--lamp);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.top-gh:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.875rem/1 var(--font);
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 24px -16px rgb(22 33 58 / 25%);
  }

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

  .top-nav ul {
    flex-direction: column;
  }

  .top-nav ul a {
    padding: 12px 8px;
    font-size: 1rem;
  }

  .top-nav ul a[aria-current]::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }

  .top-actions {
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 128px;
  background: linear-gradient(180deg, var(--mist), var(--paper) 78%);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-tag-more {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-weight: 500;
}

.hero-tag:hover .hero-tag-more {
  text-decoration: underline;
}

.lamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 3px var(--lamp-soft);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.25rem, 1.25rem + 3.1vw, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-text {
  max-width: 34em;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.hero-points .i {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* 右边的「台面」：浏览器窗口、手机和终端叠在一起，左上方打一束灯光。 */
.stage {
  position: relative;
  padding: 8px 20px 56px 0;
}

.stage-light {
  position: absolute;
  left: -26%;
  top: -46%;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(244 180 62 / 58%),
    rgb(244 180 62 / 20%) 55%,
    rgb(244 180 62 / 0%)
  );
  pointer-events: none;
}

.win {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-win);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.win-bar span {
  flex: 0 1 280px;
  margin-left: 14px;
  padding: 1px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font: 12px/1.6 var(--font);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win img {
  display: block;
  width: 100%;
  height: auto;
}

.stage-win {
  z-index: 1;
}

.stage-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 25%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border: 6px solid #111d33;
  border-radius: 28px;
  background: #111d33;
  box-shadow: 0 22px 40px -14px rgb(15 28 52 / 50%);
}

.stage-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: top;
}

.term {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-fg);
  font: 12.5px/1.75 var(--mono);
  box-shadow: 0 18px 32px -14px rgb(15 28 52 / 55%);
}

.term p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.term-p {
  color: var(--lamp);
}

.term-warn {
  color: #f6c867;
}

.term-dim {
  color: var(--code-dim);
}

.stage-term {
  position: absolute;
  left: -32px;
  bottom: 12px;
  z-index: 3;
  width: min(74%, 430px);
}

/* 进场只有这一组：窗口、手机、终端依次落定，灯慢慢亮起来。 */
@media (prefers-reduced-motion: no-preference) {
  .stage-light {
    animation: lamp-on 1.4s ease-out both;
  }

  .stage-win,
  .stage-phone,
  .stage-term {
    animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .stage-phone {
    animation-delay: 0.18s;
  }

  .stage-term {
    animation-delay: 0.34s;
  }
}

@keyframes lamp-on {
  from {
    opacity: 0;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- 版本信息条 ---------- */

.facts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -72px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 28px -16px rgb(22 33 58 / 22%);
}

.facts > div {
  padding: 18px 22px;
  border-left: 1px solid var(--line);
}

.facts > div:first-child {
  border-left: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.facts dd a {
  color: inherit;
}

/* ---------- 区块 ---------- */

.sec {
  padding: 104px 0;
}

.sec-mist {
  background: var(--mist);
}

.sec-tight {
  padding: 72px 0 96px;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 12px 56px;
  margin-bottom: 48px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sec-head p {
  max-width: 40em;
  margin: 0;
  line-height: 1.8;
}

.sec-head-tight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.sec-head-tight h2 {
  font-size: 1.5rem;
}

/* 三种装法：一整块面板分三栏，不拆成三张浮起来的卡片。 */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.way {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 30px 28px;
  border-left: 1px solid var(--line);
}

.way:first-child {
  border-left: 0;
}

.way h3 {
  margin: 0;
  font-size: 1.25rem;
}

.way p {
  margin: 0;
  font-size: 0.9375rem;
}

.way .more {
  margin-top: auto;
  padding-top: 4px;
}

.way-steps {
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.9375rem;
}

.way-steps li + li {
  margin-top: 8px;
}

.way-steps li::marker {
  color: var(--brand);
  font-weight: 700;
}

.way-steps code,
.way p code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--mist);
  color: var(--ink);
}

.cmd {
  position: relative;
  border-radius: 10px;
  background: var(--code-bg);
}

.cmd pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--code-fg);
  font: 13px/1.8 var(--mono);
}

.cmd-line {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cmd-line::before {
  content: "$ ";
  color: var(--lamp);
  user-select: none;
  -webkit-user-select: none;
}

.cmd-line.is-cont::before {
  content: "";
}

.cmd-copy,
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  background: rgb(15 28 52 / 80%);
  color: var(--code-fg);
  font: 12px/1.6 var(--font);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.cmd:hover .cmd-copy,
.code-block:hover .code-copy,
.cmd-copy:focus-visible,
.code-copy:focus-visible,
.cmd-copy[data-done],
.code-copy[data-done] {
  opacity: 1;
}

@media (hover: none) {
  .cmd-copy,
  .code-copy {
    opacity: 1;
  }
}

/* 重点功能：图文左右交替。 */
.spots {
  display: grid;
  gap: 96px;
}

.spot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}

.spot-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.spot-flip .spot-copy {
  order: 2;
}

.spot-copy h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.4;
}

.spot-copy p {
  max-width: 30em;
  margin: 0;
  line-height: 1.9;
}

/* 功能清单：图标加两行字，不加卡片边框。 */
.feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feat-icon .i {
  width: 22px;
  height: 22px;
}

.feat h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* 更新记录与开发笔记并排。 */
.news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}

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

.release {
  position: relative;
  padding: 0 0 24px 30px;
}

.release::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.release::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.release:last-child {
  padding-bottom: 0;
}

.release:last-child::after {
  display: none;
}

.release.is-current::before {
  border-color: var(--lamp);
  background: var(--lamp);
  box-shadow: 0 0 0 4px var(--lamp-soft);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.release-ver {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

a.release-ver:hover {
  text-decoration: underline;
}

.release time {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.release-now {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lamp-soft);
  color: var(--lamp-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.release p {
  margin: 6px 0 0;
  font-size: 0.9375rem;
}

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

.note a {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.note:first-child a {
  padding-top: 0;
  border-top: 0;
}

.note a:not(:has(img)) {
  grid-template-columns: minmax(0, 1fr);
}

.note img {
  width: 136px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
}

.note a:hover .note-title {
  color: var(--brand);
}

.note-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* 常见问题：两栏折叠列表。 */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 56px;
}

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

.qa summary {
  position: relative;
  padding: 20px 36px 20px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 14px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 2px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.qa[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

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

.qa p {
  margin: -4px 0 22px;
  line-height: 1.85;
}

/* 收尾的一块墨蓝。 */
.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 16px;
  background: #1b3a6b;
  color: #fff;
}

.closing h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.75rem;
}

.closing p {
  max-width: 34em;
  margin: 0;
  color: rgb(255 255 255 / 78%);
}

.closing-act {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.foot {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.875rem;
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
}

.foot-brand p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.foot-cols h2 {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-cols li + li {
  margin-top: 8px;
}

.foot-cols a {
  color: var(--text);
  text-decoration: none;
}

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

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-base a {
  color: inherit;
}

/* ---------- 列表页 ---------- */

.page {
  padding: 56px 0 104px;
}

.list-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.list-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.3;
}

.list-head p {
  margin: 0;
  line-height: 1.8;
}

.list-count {
  color: var(--muted);
  font-size: 0.875rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chips a[aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.chip-n {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.rows {
  max-width: 960px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.row-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  align-items: center;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.row-link:not(:has(.row-cover)) {
  grid-template-columns: minmax(0, 1fr);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.row-cat {
  color: var(--brand);
  font-weight: 600;
}

.row-pin {
  padding: 0 6px;
  border-radius: 4px;
  background: var(--lamp-soft);
  color: var(--lamp-ink);
}

.row-title {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}

.row-link:hover .row-title {
  color: var(--brand);
}

.row-excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9375rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row-cover {
  width: 208px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty {
  color: var(--muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}

.pager a,
.pager span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.pager [aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pager .pager-gap {
  border: 0;
}

.search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 20px;
}

.search input,
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
}

.search input {
  flex: 1;
  height: 46px;
}

.search input:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 0;
}

.lost {
  max-width: 640px;
}

.lost-code {
  margin: 0;
  color: var(--lamp-strong);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lost h1 {
  margin: 8px 0 12px;
  font-size: 2.25rem;
}

/* ---------- 正文排版（文章与文档共用） ---------- */

.prose {
  min-width: 0;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.prose > * {
  margin-top: 0;
  margin-bottom: 0;
}

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

.prose > h2 {
  margin-top: 2.2em;
  font-size: 1.5rem;
  line-height: 1.4;
}

.prose > h3 {
  margin-top: 1.9em;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.prose > h4 {
  margin-top: 1.6em;
  color: var(--ink);
  font-size: 1.0625rem;
}

.prose > h2 + *,
.prose > h3 + *,
.prose > h4 + * {
  margin-top: 0.7em;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

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

.prose li + li {
  margin-top: 0.45em;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
}

.prose blockquote > * {
  margin: 0;
}

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

.prose :not(pre) > code {
  padding: 0.12em 0.4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--mist);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  display: block;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.prose th,
.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.prose th {
  border-bottom-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .prose td:first-child {
    white-space: nowrap;
  }
}

/* 代码块：结构由服务端给（figure.code-block > pre.code-lines > code > span.line），行号用计数器画。 */
.prose pre {
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-fg);
  font: 0.875rem/1.75 var(--mono);
  tab-size: 2;
}

.prose pre code {
  font-size: inherit;
}

.prose figure {
  margin-left: 0;
  margin-right: 0;
}

.code-block {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--code-bg);
}

.code-block[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--code-dim);
  font: 12px/1.6 var(--mono);
  pointer-events: none;
}

.code-block:hover[data-lang]::before {
  opacity: 0;
}

.code-block .code-lines {
  margin: 0;
  padding: 16px 0;
  border-radius: 0;
  background: none;
}

.code-lines code {
  display: block;
  width: max-content;
  min-width: 100%;
  counter-reset: line;
}

.code-lines .line {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  column-gap: 16px;
  padding-right: 20px;
}

.code-lines .line::before {
  content: counter(line);
  counter-increment: line;
  padding-right: 10px;
  border-right: 1px solid rgb(255 255 255 / 8%);
  color: var(--code-dim);
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
}

.code-lines :is(.c, .ch, .cm, .c1, .cs, .cp, .cpf) {
  color: #7f93b5;
}

.code-lines :is(.k, .kc, .kd, .kn, .kp, .kr, .na, .nt) {
  color: #93b6ff;
}

.code-lines :is(.s, .sa, .sb, .sc, .dl, .sd, .s1, .s2, .se, .sh, .si, .sx, .sr, .ss) {
  color: #f2c879;
}

.code-lines :is(.m, .mb, .mf, .mh, .mi, .mo, .il, .kt) {
  color: #f5a98a;
}

.code-lines :is(.nf, .fm, .nc, .nn, .nd, .ne) {
  color: #fff;
  font-weight: 600;
}

.code-lines .gi {
  background: rgb(52 168 83 / 18%);
}

.code-lines .gd {
  background: rgb(234 67 53 / 18%);
}

.code-lines .err {
  color: inherit;
  background: none;
}

/* ---------- 文章页 ---------- */

.article {
  max-width: 1080px;
  padding: 56px 0 104px;
}

.article-head,
.article-cover,
.article-tags,
.adjacent,
.article-foot {
  max-width: 740px;
}

.article-cats {
  display: flex;
  gap: 12px;
  margin: 0;
}

.article-cats a {
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.article-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-meta a {
  color: var(--text);
  text-decoration: none;
}

.article-cover {
  margin: 0 0 40px;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 220px;
  justify-content: space-between;
  gap: 56px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
}

.article-tags a {
  padding: 3px 12px;
  border-radius: 999px;
  background: hsl(var(--hue, 220) 60% 95%);
  color: hsl(var(--hue, 220) 45% 30%);
  font-size: 0.8125rem;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .article-tags a {
    background: hsl(var(--hue, 220) 30% 18%);
    color: hsl(var(--hue, 220) 60% 80%);
  }
}

.adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.adj {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
}

.adj:hover {
  border-color: var(--line-strong);
  background: var(--mist);
}

.adj span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.adj-next {
  grid-column: 2;
  text-align: right;
}

/* 本页目录，由 site.js 从正文的 h2、h3 生成。 */
.toc {
  position: sticky;
  top: calc(var(--top-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--top-h) - 64px);
  overflow: auto;
  font-size: 0.875rem;
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--text);
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.lv3 {
  padding-left: 26px;
  font-size: 0.8125rem;
}

.toc a[aria-current] {
  border-left-color: var(--lamp);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 评论 ---------- */

.comments {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.comments > h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.c-list,
.c-replies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.c-replies {
  margin-top: 12px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.c-replies .c {
  padding: 8px 0;
  border-bottom: 0;
}

.c-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.875rem;
}

.c-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.c-badge {
  padding: 0 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
}

.c-head time {
  color: var(--muted);
}

.c-body {
  margin-top: 6px;
  line-height: 1.8;
}

.c-body p {
  margin: 0 0 0.6em;
}

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

.c-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.c-who {
  margin: 0;
  font-size: 0.9375rem;
}

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

.field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.field label {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.field-opt {
  color: var(--muted);
  font-weight: 400;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.c-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.c-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.c-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

.c-status {
  color: var(--brand);
  font-size: 0.875rem;
}

.c-status[data-state="error"] {
  color: var(--danger);
}

/* ---------- 文档页 ---------- */

.doc {
  display: grid;
  grid-template-columns: 208px minmax(0, 760px) 200px;
  justify-content: space-between;
  gap: 48px;
  padding: 44px 0 104px;
}

.doc-nav {
  position: sticky;
  top: calc(var(--top-h) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--top-h) - 64px);
  overflow: auto;
  font-size: 0.9375rem;
}

.doc-group + .doc-group,
.doc-nav > ul + .doc-group,
.doc-group + ul {
  margin-top: 24px;
}

.doc-nav h2 {
  margin: 0 0 6px;
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.doc-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.doc-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.doc-nav a[aria-current] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.doc-main {
  min-width: 0;
}

.doc-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc-lede {
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.doc-head:not(:has(.doc-lede)) {
  margin-bottom: 32px;
}

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.releases-full {
  margin-top: 8px;
}

.releases-full .release {
  padding-bottom: 28px;
}

/* ---------- 窄屏 ---------- */

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

  .doc > .toc {
    display: none;
  }
}

@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: minmax(0, 740px);
  }

  .article-grid > .toc {
    display: none;
  }

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

@media (max-width: 960px) {
  .hero {
    padding: 48px 0 104px;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .stage {
    padding-right: 12px;
  }

  .stage-term {
    left: 12px;
  }

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

  .facts > div:nth-child(4) {
    border-left: 0;
  }

  .facts > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .sec {
    padding: 80px 0;
  }

  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 36px;
  }

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

  .way {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .way:first-child {
    border-top: 0;
  }

  .spots {
    gap: 72px;
  }

  .spot,
  .spot-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .spot-flip .spot-copy {
    order: 0;
  }

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

  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
  }

  /* 文档目录收成一行可横向滑动的标签。 */
  .doc-nav {
    position: static;
    display: flex;
    gap: 8px;
    max-height: none;
    margin-inline: -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .doc-nav h2 {
    display: none;
  }

  .doc-group,
  .doc-nav ul {
    display: contents;
  }

  .doc-group + .doc-group,
  .doc-nav > ul + .doc-group,
  .doc-group + ul {
    margin: 0;
  }

  .doc-nav a {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.875rem;
  }
}

@media (max-width: 760px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

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

  .closing {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

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

  .row-link {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    padding: 20px 0;
  }

  .row-cover {
    width: 112px;
  }

  .row-title {
    font-size: 1.0625rem;
  }

  .row-excerpt {
    display: none;
  }

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

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.125rem;
  }

  .hero-text {
    font-size: 1.0625rem;
  }

  .hero-cta .btn {
    flex: 1;
  }

  .stage {
    padding: 0 0 72px;
  }

  .stage-phone {
    width: 30%;
    border-width: 4px;
    border-radius: 20px;
  }

  .stage-phone img {
    border-radius: 16px;
  }

  .stage-term {
    left: 0;
    width: 88%;
    font-size: 11px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -48px;
  }

  .facts > div {
    padding: 14px 16px;
  }

  .facts > div:nth-child(odd) {
    border-left: 0;
  }

  .facts > div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .facts > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .note a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .note img {
    width: 96px;
  }

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

  .adj-next {
    grid-column: auto;
  }

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