/* 树集 Mac 客户端页（moa.if9.cool/mac）：与官网首页及客户端共享同一套「拾光」设计令牌（shared/design-tokens.json）。
   顶栏、圆角、胶囊按钮和明暗切换与首页完全对齐；侧栏与口袋跟随明暗外观自适应。 */
:root {
  --paper: #FDFCF9;
  --card: #FFFFFF;
  --ink: #292524;
  --ink-soft: #57534E;
  --mute: #A8A29E;
  --line: #F0EDE8;
  --line-strong: #E3DFD7;
  --wash: #F4F1EC;
  --desk: #F3EFE8;

  --bamboo: #6FA07A;
  --if9-accent: var(--bamboo);
  --honey: #C6A45C;
  --warn: #92530A;

  /* 侧栏：浅色温润暖灰纸底 + 白卡片；深色柔和暗房 */
  --room: #F4F1EC;
  --room-card: #FFFFFF;
  --room-line: #E3DFD7;
  --room-ink: #292524;
  --room-soft: #57534E;

  --shadow: 0 1px 2px rgb(41 37 36 / .03), 0 6px 20px rgb(41 37 36 / .05);
  --shadow-lg: 0 4px 14px rgb(41 37 36 / .06), 0 24px 48px rgb(41 37 36 / .12);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, "PingFang SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1917;
    --card: #252220;
    --ink: #E9E6E1;
    --ink-soft: #B9B3AC;
    --mute: #78716C;
    --line: #2B2826;
    --line-strong: #3B3733;
    --wash: #2A2725;
    --desk: #151312;
    --bamboo: #82B38D;
    --honey: #D4B470;
    --warn: #E7B675;
    --room: #1E1C1A;
    --room-card: #272422;
    --room-line: #36322E;
    --room-ink: #E9E6E1;
    --room-soft: #B9B3AC;
    --shadow: 0 1px 2px rgb(0 0 0 / .24), 0 8px 24px rgb(0 0 0 / .26);
    --shadow-lg: 0 6px 18px rgb(0 0 0 / .34), 0 28px 56px rgb(0 0 0 / .46);
  }
}

html[data-theme="dark"] {
  --paper: #1B1917;
  --card: #252220;
  --ink: #E9E6E1;
  --ink-soft: #B9B3AC;
  --mute: #78716C;
  --line: #2B2826;
  --line-strong: #3B3733;
  --wash: #2A2725;
  --desk: #151312;
  --bamboo: #82B38D;
  --honey: #D4B470;
  --warn: #E7B675;
  --room: #1E1C1A;
  --room-card: #272422;
  --room-line: #36322E;
  --room-ink: #E9E6E1;
  --room-soft: #B9B3AC;
  --shadow: 0 1px 2px rgb(0 0 0 / .24), 0 8px 24px rgb(0 0 0 / .26);
  --shadow-lg: 0 6px 18px rgb(0 0 0 / .34), 0 28px 56px rgb(0 0 0 / .46);
  color-scheme: dark;
}

html[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -.02em; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: var(--line-strong); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mute); outline-offset: 2px; border-radius: 8px; }
code { font-family: var(--mono); font-size: .88em; background: var(--wash); padding: .12em .4em; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 999px; font-size: 13px; text-decoration: none; z-index: 100; }
.skip:focus { top: 14px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--max), 100% - 56px); } }

/* 访客态显示控制 */
html[data-visitor="guest"] [data-for]:not([data-for~="guest"]),
html[data-visitor="back"] [data-for]:not([data-for~="back"]),
html[data-visitor="fresh"] [data-for]:not([data-for~="fresh"]),
html[data-visitor="member"] [data-for]:not([data-for~="member"]) { display: none !important; }

/* 按钮体系（与首页一致） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); box-shadow: var(--shadow); }
.btn-line { border-color: var(--line-strong); background: var(--card); color: var(--ink); }
.btn-line:hover { background: var(--wash); }

/* ───────── 顶部毛玻璃导航栏（与首页对齐） ───────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.crumbs { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 999px; transition: transform .25s ease; }
.brand:hover img { transform: scale(1.06); }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: .12em; }
.slash { color: var(--line-strong); font-size: 16px; }
.sub-brand { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.sub-brand:hover { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 13.5px; color: var(--ink-soft); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-acts { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 36px; padding: 0 16px; font-size: 13.5px; }

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: background-color .2s, color .2s;
}
.theme-btn:hover { background: var(--wash); color: var(--ink); }
.theme-btn svg { width: 17px; height: 17px; }
.icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-acts { margin-left: auto; }
}

/* ───────── 首屏 ───────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 12px; color: var(--ink-soft); margin-bottom: 18px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--bamboo); }

.hero {
  display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); gap: 32px 48px;
  align-items: end; padding-block: clamp(32px, 5vw, 68px) clamp(28px, 3.4vw, 44px);
}
.hero-title {
  font-size: clamp(52px, 8.5vw, 108px); line-height: 1.04; font-weight: 600;
  letter-spacing: -.03em;
}
.hero-side { display: grid; gap: 20px; padding-bottom: .3em; }
.lede { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; color: var(--ink-soft); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { font-size: 13px; color: var(--mute); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { padding-bottom: 0; }
}

/* ───────── 演示台 ───────── */
.stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px;
  padding: clamp(14px, 2.4vw, 26px); padding-bottom: 54px;
  background: var(--desk); border: 1px solid var(--line); border-radius: 28px;
  user-select: none; -webkit-user-select: none;
}
.win {
  border-radius: 18px; overflow: hidden; background: var(--paper);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-ruce { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 440px; padding: 6px; gap: 6px; }

/* 拾光侧栏（跟随明暗外观） */
.room {
  background: var(--room); color: var(--room-ink);
  border: 1px solid var(--room-line); border-radius: 14px;
  padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.room-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.room-head .dots { width: 100%; margin-bottom: 12px; }
.room-head b { font-size: 17px; font-weight: 600; }
.room-count { font-size: 12px; color: var(--room-soft); }
.room-empty { font-size: 12.5px; color: var(--room-soft); margin-top: 6px; line-height: 1.6; }
.room-empty[hidden] { display: none; }
.batches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.batch { background: var(--room-card); border: 1px solid var(--room-line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.batch-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thumbs { position: relative; width: 44px; height: 30px; flex: none; }
.thumbs span { position: absolute; top: 2px; width: 24px; height: 24px; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .22); }
.thumbs span:nth-child(1) { left: 0; transform: rotate(-7deg); }
.thumbs span:nth-child(2) { left: 10px; z-index: 1; }
.thumbs span:nth-child(3) { left: 20px; transform: rotate(7deg); }
.batch-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.batch-sub { font-size: 11.5px; color: var(--room-soft); line-height: 1.4; }
.batch-txt { min-width: 0; }
.batch-txt > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-pct { font-family: var(--rounded); font-weight: 600; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.batch-pct small { font-size: 15px; margin-left: 3px; color: var(--room-soft); }
.batch-meter { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.batch-meter span:last-child { font-family: var(--mono); font-size: 10.5px; color: var(--room-soft); text-align: right; line-height: 1.5; }
.bar { height: 4px; border-radius: 999px; background: var(--room-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--bamboo); border-radius: 999px; transition: width .12s linear; }
.batch-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.batch-acts button {
  border: 1px solid var(--room-line); background: var(--room-card); color: var(--room-ink);
  font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.batch-acts button:hover { background: var(--wash); }
.batch-acts .is-latest { border-color: var(--bamboo); }
.batch.is-ended { padding: 6px 8px; background: transparent; border-color: transparent; }
.batch.is-ended .batch-name { font-size: 12.5px; }
.batch.is-withdrawn .batch-name { text-decoration: line-through; color: var(--mute); }

/* 合集口袋 */
.board { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.board-bar { display: flex; justify-content: flex-start; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash); font-size: 12px; }
.seg > * { padding: 3px 12px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; }
.seg b { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .06); font-weight: 600; }
.pockets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; padding-top: 8px; }
.pocket { position: relative; padding-top: 72px; }
.covers { position: absolute; inset: 0 6% auto; height: 98px; pointer-events: none; }
.cover {
  position: absolute; bottom: 0; width: 48%; aspect-ratio: 1; border-radius: 6px;
  border: 2.5px solid #fff; box-shadow: 0 2px 6px rgb(41 37 36 / .18);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cover:nth-child(1) { left: 0; transform: rotate(-8deg); }
.cover:nth-child(2) { left: 27%; z-index: 1; transform: translateY(-6px); }
.cover:nth-child(3) { right: 0; transform: rotate(7deg); }
.pocket.is-target .cover:nth-child(1) { transform: rotate(-12deg) translateY(-10px); }
.pocket.is-target .cover:nth-child(2) { transform: translateY(-16px); }
.pocket.is-target .cover:nth-child(3) { transform: rotate(11deg) translateY(-10px); }
.pocket.got .cover { animation: settle .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes settle { 0% { translate: 0 18px; } 100% { translate: 0 0; } }
.face {
  position: relative; z-index: 2; background: var(--card); border-radius: 16px;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 10px 12px 9px; display: grid; gap: 4px; min-height: 66px;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.face-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.p-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-key { font-family: var(--mono); font-size: 10.5px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 5px; color: var(--ink-soft); background: var(--paper); }
.face-bot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--ink-soft); }
.mark { display: inline-flex; align-items: center; gap: 5px; }
.switch {
  width: 26px; height: 15px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--line-strong); position: relative; transition: background-color .15s;
}
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .22); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(11px); }
.drop-hint { display: none; font-size: 11.5px; font-weight: 600; color: var(--bamboo); }
.send {
  position: absolute; right: 8px; top: -14px; z-index: 3; display: none;
  border: 0; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow);
}
.stage.has-selection .send { display: block; }
.stage.is-dragging .send, .stage.is-retarget .send, .stage.has-selection .to-here { display: none; }
.stage.is-retarget .pocket:not(.is-from) .to-here { display: block; }
.pocket.is-target .face {
  background: color-mix(in srgb, var(--bamboo) 14%, var(--card));
  border-color: var(--bamboo);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bamboo) 22%, transparent);
}
.pocket.is-target .face-bot { display: none; }
.pocket.is-target .drop-hint { display: block; }
.stage.is-retarget .pocket { cursor: pointer; }
.stage.is-retarget .face { border-style: dashed; border-color: var(--ink-soft); }
.stage.is-retarget .pocket.is-from .face { opacity: .45; border-style: solid; }

/* 照片窗口 */
.win-photos { display: flex; flex-direction: column; }
.photos-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.photos-bar b { font-size: 14px; }
.drag-hint { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.drag-hint::before { content: "← "; }
[data-hint-touch] { display: none; }
@media (hover: none) { [data-hint-desktop] { display: none; } [data-hint-touch] { display: inline; } [data-hint-touch]::before { content: none; } }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; align-content: start; flex: 1; }
.photo {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; cursor: grab; border-radius: 3px;
  background: var(--tile); touch-action: manipulation;
}
.photo:active { cursor: grabbing; }
.photo[aria-pressed="true"] { outline: 3px solid #3478F6; outline-offset: -3px; }
.photo[aria-pressed="true"]::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 14px; height: 14px; border-radius: 50%; background: #3478F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border: 1.5px solid #fff; }
.photo .tag {
  position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 600; line-height: 1;
  padding: 3px 5px; border-radius: 5px; background: rgb(28 25 23 / .78); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.photo.is-marked .tag { opacity: 1; transform: none; }

.t-sky  { --tile: linear-gradient(#BFD0D6 0 56%, #7E8F6B 56%); }
.t-sea  { --tile: linear-gradient(#DCE4E6 0 42%, #6F95A6 42%); }
.t-dusk { --tile: radial-gradient(circle at 68% 44%, #F6D9A8 0 9%, transparent 9.5%), linear-gradient(#E8B88A 0 52%, #5E5A6E 52%); }
.t-cat  { --tile: radial-gradient(ellipse at 50% 74%, #6F675E 0 22%, transparent 23%), linear-gradient(#CFC6BA 0 50%, #8E867C 50%); }
.t-food { --tile: radial-gradient(circle at 50% 62%, #C98E58 0 26%, #F7F2E8 27% 34%, transparent 35%), linear-gradient(#F1EBE0 0 40%, #DDD3C3 40%); }
.t-shot { --tile: linear-gradient(#FFFFFF 0 16%, #F4F1EC 16% 30%, #FFFFFF 30% 80%, #E3DFD7 80%); }
.t-leaf { --tile: linear-gradient(#9DB38A 0 48%, #5F7A55 48%); }
.t-room { --tile: linear-gradient(90deg, transparent 0 62%, #D8CBB6 62% 64%, transparent 64%), linear-gradient(#E9E1D3 0 64%, #A88A6A 64%); }
.t-meme { --tile: linear-gradient(#F3E3A6 0 70%, #292524 70%); }
.t-snow { --tile: linear-gradient(#EEF1F2 0 38%, #A3B0B8 38% 46%, #E6EAEC 46%); }
.t-tea  { --tile: radial-gradient(circle at 46% 58%, #7A5A3A 0 18%, #EFE6D8 19% 27%, transparent 28%), linear-gradient(#D8CDB8 0 100%); }
.t-rose { --tile: linear-gradient(#EBCFCB 0 60%, #9B6B6E 60%); }
.cover, .thumbs span, .ghost span { background: var(--tile); }

.status {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-size: 13px; color: var(--ink-soft); padding-inline: 16px;
}
.ghost { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: 64px; height: 64px; }
.ghost span { position: absolute; inset: 0; border-radius: 6px; border: 3px solid #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .25); }
.ghost span:nth-child(2) { transform: rotate(-6deg) translate(-4px, 2px); }
.ghost span:nth-child(3) { transform: rotate(6deg) translate(4px, 3px); }
.ghost em { position: absolute; right: -8px; top: -8px; z-index: 3; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bamboo); color: #fff; font: 700 12px/22px var(--sans); text-align: center; font-style: normal; }
.cursor { position: absolute; z-index: 30; width: 22px; height: 22px; pointer-events: none; left: 0; top: 0; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
.noscript-shot { grid-column: 1 / -1; }
.noscript-shot img { width: 100%; border-radius: 14px; }

@media (max-width: 1080px) {
  .win-ruce { grid-template-columns: 188px minmax(0, 1fr); }
  .pockets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .win-ruce { grid-template-columns: 1fr; min-height: 0; }
  .room { order: 2; }
  .room-head .dots { display: none; }
  .pockets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .board { padding-inline: 10px; }
  .pockets { gap: 16px 8px; }
  .pocket { padding-top: 46px; }
  .covers { height: 68px; }
  .face { padding: 8px; min-height: 58px; }
  .p-name { font-size: 13px; }
  .p-key, .mark-label { display: none; }
  .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .batch-pct { font-size: 32px; }
}

/* ───────── 正文区块 ───────── */
.section-index {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.block { padding-block: clamp(64px, 9vw, 112px) 0; }
.block-head { display: grid; gap: 12px; max-width: 42em; margin-bottom: clamp(28px, 4vw, 40px); }
.block-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.16; }
.block-head p { font-size: 16px; color: var(--ink-soft); max-width: 38em; }
.note { margin-top: 24px; font-size: 13.5px; color: var(--ink-soft); max-width: 48em; padding-left: 14px; border-left: 2px solid var(--line-strong); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); display: grid; align-content: start; gap: 10px; }
.step-no { font-family: var(--rounded); font-weight: 600; font-size: 34px; line-height: 1; color: var(--bamboo); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--ink-soft); font-size: 14.5px; }
.lanes { display: grid; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.lane { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--wash); }
.lane-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--ink); flex: none; }
.lane-bar { width: 44px; height: 4px; border-radius: 999px; background: var(--line-strong); overflow: hidden; flex: none; }
.lane-bar i { display: block; height: 100%; width: 64%; background: var(--bamboo); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 柔和暖底区块：防误触撤销 */
.undo-band { background: var(--wash); border-block: 1px solid var(--line); margin-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 96px); }
.life { display: grid; gap: 10px; }
.life-axis, .life-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.life-axis span { font-size: 12.5px; color: var(--ink-soft); padding: 0 0 10px 10px; border-left: 1px solid var(--line-strong); line-height: 1.4; }
.life-bar {
  display: flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.span-2 { grid-column: 1 / span 2; }
.span-4 { grid-column: 1 / span 4; border-color: color-mix(in srgb, var(--bamboo) 55%, var(--line-strong)); }
.span-5 { grid-column: 1 / span 5; }
.undo-list { margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.undo-list dt { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.undo-list dd { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 860px) { .undo-list { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 520px) { .life-axis span { font-size: 11px; padding-left: 5px; } .life-bar { font-size: 12.5px; padding: 0 10px; height: 36px; } }

/* 窗口三态 */
.cascade { position: relative; margin: 0; padding-right: 2px; }
.cas { display: block; margin-left: auto; }
.cas img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.cas-full { width: 100%; }
.cas-collapsed { width: 72.3%; margin-top: -64.2%; position: relative; }
.cas-mini { width: 28.8%; margin-top: -64.2%; position: relative; }
.cas-stack { position: relative; }
.edge { position: absolute; top: -18px; bottom: -18px; right: -1px; border-right: 2px dashed var(--line-strong); }
.cascade figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.cascade figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 760px) { .cascade figcaption { grid-template-columns: 1fr; gap: 12px; } }

/* 快捷键 */
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.keys li { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.combo { display: flex; gap: 6px; }
kbd {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 9px;
}
@media (max-width: 560px) { .keys li { grid-template-columns: 1fr; gap: 10px; } }

/* 直连速度 */
.speed { margin: 0; padding: clamp(20px, 3vw, 30px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; max-width: 860px; }
.speed figcaption { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.speed-rows { display: grid; gap: 14px; }
.speed-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 104px; gap: 14px; align-items: center; font-size: 14px; }
.speed-label { font-weight: 600; }
.speed-value { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.speed-track { position: relative; height: 14px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.speed-bar { position: absolute; left: 0; top: 0; bottom: 0; width: max(var(--w), 4px); background: var(--mute); border-radius: 999px; }
.speed-bar-accent { background: var(--bamboo); }
.speed-range { position: absolute; top: 0; bottom: 0; left: calc(var(--from) + 2px); width: calc(var(--w) - 2px); border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bamboo) 36%, transparent) 0 2px, transparent 2px 6px); }
.speed-scale { display: flex; justify-content: space-between; margin: 10px 104px 0 78px; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.speed-take { margin-top: 16px; font-size: 14.5px; font-weight: 600; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 860px; font-size: 14px; color: var(--ink-soft); }
.facts li { padding-left: 16px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--bamboo); }
@media (max-width: 640px) {
  .speed-row { grid-template-columns: 52px minmax(0, 1fr); }
  .speed-value { grid-column: 2; margin-top: -8px; font-size: 13px; }
  .speed-scale { margin: 10px 0 0 66px; }
  .facts { grid-template-columns: 1fr; }
}

/* 细节 */
.details { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.details > div { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.details dd { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 960px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }

/* 下载 */
.download { padding-bottom: 24px; }
.dl-card { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.dl-card img { width: clamp(84px, 11vw, 124px); height: auto; flex: none; }
.dl-main { display: grid; gap: 12px; }
.dl-main h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; }
.dl-main p { color: var(--ink-soft); font-size: 14.5px; }
.dl-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; font-size: 14px; color: var(--ink-soft); }
.dl-notes h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.dl-notes ul { margin: 0; padding-left: 1.1em; display: grid; gap: 5px; }
.dl-notes b { color: var(--ink); }
@media (max-width: 760px) {
  .dl-card { flex-direction: column; align-items: flex-start; }
  .dl-notes { grid-template-columns: 1fr; }
}

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 44px 40px; margin-top: 64px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft);
}
.foot-brand { display: flex; align-items: baseline; gap: 10px; }
.foot-brand b { color: var(--ink); font-size: 15px; letter-spacing: .08em; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
