:root {
  --ink: #10060e;
  --ink-2: #1a0b16;
  --panel: #24131f;
  --line: rgba(255, 196, 214, 0.14);
  --rose: #ff4d8d;
  --rose-2: #ff7ab0;
  --lilac: #c4a0ff;
  --cream: #f7ecf1;
  --mute: #c9b3bd;
  --gold: #e8c4a8;
  --dock: 292px;
  --radius: 22px;
  --font: "Sora", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(900px 420px at 10% 20%, rgba(168, 85, 247, 0.12), transparent 50%),
    var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.jump {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rose);
  color: #fff;
  padding: 8px 14px;
  z-index: 20;
}
.jump:focus { left: 12px; top: 12px; }

/* ========== 左侧工作台 ========== */
.dock {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--dock);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px 24px;
  background: linear-gradient(180deg, #1d0c18 0%, #140910 100%);
  border-right: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 77, 141, 0.35), 0 10px 24px rgba(255, 77, 141, 0.25);
}
.mark strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.mark em {
  font-style: normal;
  color: var(--mute);
  font-size: 12px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
}

.dock-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dock-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--mute);
  font-size: 14px;
}
.dock-nav a:hover,
.dock-nav a.is-on {
  color: var(--cream);
  background: rgba(255, 77, 141, 0.12);
}

.dock-pulse {
  margin-top: auto;
}
.dock-pulse svg { width: 100%; height: 42px; }
.dock-pulse p {
  margin: 4px 0 0;
  color: var(--rose-2);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.mini-spec {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-spec div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.mini-spec dt {
  font-size: 11px;
  color: var(--mute);
}
.mini-spec dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.dock-dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), #a21caf 140%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(255, 77, 141, 0.35);
}
.dock-dl small {
  font-weight: 500;
  opacity: 0.85;
}

/* ========== 主栏 ========== */
.wrap {
  margin-left: var(--dock);
  position: relative;
  z-index: 1;
  padding: 28px 48px 80px;
  max-width: 1280px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
  color: var(--mute);
  font-size: 13px;
}
.crumb { display: flex; gap: 8px; align-items: center; }
.crumb strong { color: var(--gold); font-weight: 600; }
.trust-line b { color: var(--rose-2); }

.kicker {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--lilac);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 20%, #ffd0e2 55%, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
h3 { margin: 0 0 8px; font-size: 20px; }

.lede, .sublede, .block-lead { color: var(--mute); }
.lede { font-size: 18px; max-width: 38em; }
.sublede { max-width: 46em; }

.opener-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.btn-rose,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-rose {
  background: linear-gradient(135deg, #ff5a9a, #c026d3);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 77, 141, 0.32);
}
.btn-rose:hover { filter: brightness(1.08); }
.btn-line {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-xl { min-height: 56px; padding: 0 32px; font-size: 18px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 36px;
  list-style: none;
}
.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 13px;
}

.phone-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  perspective: 1000px;
}
.device {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #090509;
  border: 8px solid #2a1524;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 77, 141, 0.2);
}
.device img { width: 100%; aspect-ratio: 9/19; object-fit: cover; }
.tilt-left { transform: rotate(-6deg) translateY(18px); }
.tilt-center { transform: translateY(-10px) scale(1.04); z-index: 2; }
.tilt-right { transform: rotate(6deg) translateY(18px); }

.block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}
.block-head span {
  color: var(--rose);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.block-lead { margin: 0 0 22px; }

section { padding: 42px 0; border-top: 1px solid var(--line); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.intro-grid p { color: var(--mute); }
.quote-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2b1524, #1a0d16);
  border: 1px solid var(--line);
}
.quote-card p {
  font-family: var(--display);
  font-size: 22px;
  color: var(--cream);
  line-height: 1.5;
}
.quote-card cite {
  display: block;
  margin-bottom: 16px;
  color: var(--lilac);
  font-style: normal;
  font-size: 13px;
}
.quote-card img {
  border-radius: 14px;
  max-height: 180px;
  width: 100%;
  object-fit: cover;
}

.ledger-sheet {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.ledger-sheet table { width: 100%; border-collapse: collapse; }
.ledger-sheet caption {
  text-align: left;
  padding: 16px 20px 8px;
  color: var(--gold);
  font-size: 13px;
}
.ledger-sheet th,
.ledger-sheet td {
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.ledger-sheet th {
  width: 28%;
  color: var(--mute);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.15);
}
.ledger-cta {
  padding: 28px 24px;
  background: radial-gradient(400px 180px at 80% 0%, rgba(255, 77, 141, 0.2), transparent);
}
.ledger-cta ul {
  padding-left: 18px;
  color: var(--mute);
  font-size: 14px;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  counter-reset: ch;
}
.chapter-list li {
  counter-increment: ch;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.chapter-list li::before {
  content: counter(ch, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  letter-spacing: 0.12em;
  font-size: 12px;
}
.chapter-list p { margin: 0; color: var(--mute); font-size: 15px; }
.chapter-list li:nth-child(odd) { transform: translateY(8px); }

.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.shot-rail figure {
  margin: 0;
  scroll-snap-align: start;
}
.shot-rail img {
  border-radius: 18px;
  border: 6px solid #2a1524;
  aspect-ratio: 9/17;
  object-fit: cover;
  background: #000;
}
.shot-rail figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

.step-line {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: use-step;
}
.step-line li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  padding: 0 0 28px;
  position: relative;
  counter-increment: use-step;
}
.step-line li::before {
  content: counter(use-step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 77, 141, 0.16);
  border: 1px solid rgba(255, 77, 141, 0.45);
  color: var(--rose-2);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step-line li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--rose), transparent);
  pointer-events: none;
}
.step-line li:last-child { padding-bottom: 0; }
.step-line li:last-child::after { display: none; }
.step-copy { min-width: 0; }
.step-copy h3 { margin: 2px 0 8px; }
.step-copy p { margin: 0; color: var(--mute); }

.log-card {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.log-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.log-card b { color: var(--rose-2); }
.log-card time { color: var(--mute); font-size: 13px; }
.log-card ul { margin: 0; color: var(--mute); }

.install-panel {
  text-align: center;
  padding: 48px 24px;
  border-radius: 28px;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(255, 77, 141, 0.28), transparent 70%),
    #1d0d18;
  border: 1px solid rgba(255, 77, 141, 0.28);
}
.install-panel .kicker { color: var(--gold); }
.install-panel p { color: var(--mute); max-width: 34em; margin-left: auto; margin-right: auto; }
.install-meta { margin-top: 14px; font-size: 13px; }

.letter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.letter-list li {
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
}
.letter-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.who { color: var(--gold); font-weight: 600; }
.letter-list time { color: var(--mute); font-variant-numeric: tabular-nums; }
.letter-list p { margin: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--rose);
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--mute); margin: 8px 0 4px; }

.colophon {
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
}
.colo-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--cream);
}
.colo-brand img { border-radius: 10px; }
.colo-brand strong { display: block; }
.hot-search { color: var(--gold); }

.float-dl {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 12;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.4);
}

@media (max-width: 1080px) {
  .dock {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }
  .dock-brand {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .menu-btn { display: flex; }
  .dock-nav,
  .dock-pulse,
  .mini-spec,
  .dock-dl { display: none; }
  .dock.is-open .dock-nav {
    display: flex;
    width: 100%;
    background: #160910;
    border-radius: 14px;
    padding: 8px;
  }
  .wrap {
    margin-left: 0;
    padding: 20px 18px 96px;
  }
  .topbar { flex-direction: column; align-items: flex-start; }
  .intro-grid,
  .ledger-sheet,
  .chapter-list { grid-template-columns: 1fr; }
  .chapter-list li:nth-child(odd) { transform: none; }
  .phone-stack { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tilt-left, .tilt-center, .tilt-right { transform: none; }
  .float-dl { display: inline-flex; }
}

@media (max-width: 680px) {
  h1 { font-size: 34px; }
  .phone-stack { grid-template-columns: 1fr; max-width: 260px; }
  .phone-stack .tilt-left,
  .phone-stack .tilt-right { display: none; }
  .letter-list header { flex-direction: column; }
  .shot-rail { grid-auto-columns: 68%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tilt-left, .tilt-center, .tilt-right { transform: none; }
}
