:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --bg-deep: #eee6f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fffdfa;
  --surface-soft: #f3edf9;
  --text: #261f33;
  --heading: #1e172b;
  --muted: #746b80;
  --line: rgba(93, 65, 143, 0.13);
  --line-strong: rgba(93, 65, 143, 0.24);
  --accent: #7654d6;
  --accent-strong: #5e3ec4;
  --accent-soft: #e9e0ff;
  --accent-ink: #4c2fa8;
  --pink: #eaa7cc;
  --gold: #e7b56a;
  --mint: #86cdbd;
  --shadow-sm: 0 10px 30px rgba(58, 38, 92, 0.09);
  --shadow-lg: 0 30px 90px rgba(58, 38, 92, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --max: 1180px;
  --header-h: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0c17;
  --bg-deep: #161020;
  --surface: rgba(28, 23, 39, 0.78);
  --surface-solid: #191522;
  --surface-soft: #201a2c;
  --text: #ede8f5;
  --heading: #fff9ff;
  --muted: #aaa0ba;
  --line: rgba(211, 191, 255, 0.13);
  --line-strong: rgba(211, 191, 255, 0.24);
  --accent: #9c7af0;
  --accent-strong: #b495ff;
  --accent-soft: #2d2342;
  --accent-ink: #d8c9ff;
  --pink: #e4a9d0;
  --gold: #e6ba76;
  --mint: #83d0c0;
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(178, 140, 255, 0.23), transparent 31rem),
    radial-gradient(circle at 96% 12%, rgba(234, 167, 204, 0.20), transparent 26rem),
    radial-gradient(circle at 52% 85%, rgba(134, 205, 189, 0.13), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(118, 84, 214, 0.12) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(118, 84, 214, 0.24);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(40, 25, 70, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  color: var(--heading);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 7px 16px rgba(94, 62, 196, 0.25));
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--line-strong);
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: 25px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 80px rgba(178, 140, 255, 0.14);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(118, 84, 214, 0.12);
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 20px;
  color: var(--heading);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.gradient-text {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, var(--accent-strong), #a474ee 45%, #d28abf 78%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead,
.page-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 35px rgba(94, 62, 196, 0.30);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(94, 62, 196, 0.38);
}

.button-ghost {
  color: var(--accent-ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.aurora {
  position: absolute;
  inset: 6% 0 0 4%;
  border-radius: 46% 54% 58% 42% / 42% 38% 62% 58%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(140deg, rgba(157, 123, 237, 0.28), rgba(235, 175, 209, 0.23), rgba(134, 205, 189, 0.18));
  filter: blur(5px);
  transform: rotate(-7deg);
}

.phone {
  position: relative;
  z-index: 2;
  width: min(330px, 78vw);
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 46px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(232, 220, 250, 0.46));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.phone-screen {
  min-height: 590px;
  padding: 24px 20px;
  overflow: hidden;
  border-radius: 37px;
  background:
    radial-gradient(circle at 50% 3%, rgba(172, 139, 244, 0.28), transparent 14rem),
    linear-gradient(180deg, #fffdfa, #f4eff9);
  color: #261f33;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #756b82;
  font-size: 11px;
  font-weight: 800;
}

.phone-top .dots {
  letter-spacing: 0.18em;
}

.book-cover {
  position: relative;
  width: 178px;
  height: 238px;
  margin: 34px auto 25px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 15px 24px 24px 15px;
  color: #fff;
  background: linear-gradient(145deg, #6545c4, #9a73e5 60%, #d8a6ce);
  box-shadow: 0 24px 50px rgba(86, 55, 160, 0.34);
  transform: rotate(-3deg);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 14px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 5px 0 15px rgba(255, 255, 255, 0.10);
}

.book-cover::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -64px;
  bottom: -48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.04), 0 0 0 40px rgba(255, 255, 255, 0.03);
}

.book-cover small {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.78;
}

.book-cover strong {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1.35;
}

.phone-title {
  text-align: center;
}

.phone-title strong {
  display: block;
  font-size: 20px;
}

.phone-title span {
  color: #8c8297;
  font-size: 12px;
}

.waveform {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 28px 0 18px;
}

.waveform i {
  width: 3px;
  height: var(--h, 13px);
  border-radius: 99px;
  background: linear-gradient(to top, #7654d6, #d69ccc);
  animation: wave 1.35s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -80ms);
}

@keyframes wave {
  from { transform: scaleY(0.55); opacity: 0.52; }
  to { transform: scaleY(1.18); opacity: 1; }
}

.phone-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-top: 21px;
}

.control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6d49ca;
  background: rgba(118, 84, 214, 0.08);
  font-size: 20px;
}

.control-main {
  width: 58px;
  height: 58px;
  color: #fff;
  background: linear-gradient(145deg, #7654d6, #5e3ec4);
  box-shadow: 0 14px 30px rgba(94, 62, 196, 0.34);
}

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--heading);
  font-size: 14px;
}

.floating-card span {
  color: var(--muted);
  font-size: 11px;
}

.float-a {
  left: 0;
  top: 19%;
  animation: float 5.5s ease-in-out infinite;
}

.float-b {
  right: -12px;
  bottom: 17%;
  animation: float 6.2s ease-in-out -1.5s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.metrics {
  padding: 8px 0 52px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.metric {
  padding: 25px 26px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--heading);
  font-size: 28px;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 8% -4%;
  z-index: -1;
  border-radius: 70px;
  background: linear-gradient(120deg, rgba(172, 143, 238, 0.09), rgba(236, 177, 211, 0.10), rgba(134, 205, 189, 0.08));
  transform: skewY(-1.2deg);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-head h2 {
  margin: 10px 0 13px;
  color: var(--heading);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 252px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  bottom: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 84, 214, 0.17), transparent 68%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 22px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 20px 0 9px;
  color: var(--heading);
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.flow-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.flow-node {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
}

.flow-node strong {
  display: block;
  color: var(--heading);
}

.flow-node span {
  color: var(--muted);
  font-size: 12px;
}

.flow-arrow {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.showcase-card {
  min-height: 410px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stacked {
  display: grid;
  gap: 18px;
}

.mini-shot {
  position: relative;
  min-height: 180px;
  padding: 21px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(118, 84, 214, 0.12), rgba(234, 167, 204, 0.13));
  border: 1px solid var(--line);
}

.mini-shot h3,
.showcase-card h3 {
  margin: 0 0 7px;
  color: var(--heading);
  font-size: 20px;
}

.mini-shot p,
.showcase-card p {
  color: var(--muted);
  font-size: 13px;
}

.reader-preview {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 21px;
  margin-top: 24px;
}

.reader-cover {
  height: 132px;
  border-radius: 17px;
  background: linear-gradient(150deg, #7551d3, #b87edb 66%, #e7b5d3);
  box-shadow: 0 18px 35px rgba(75, 47, 144, 0.24);
}

.reader-lines {
  display: grid;
  align-content: center;
  gap: 10px;
}

.reader-lines i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--line-strong);
}

.reader-lines i:nth-child(2) { width: 84%; }
.reader-lines i:nth-child(3) { width: 92%; }
.reader-lines i:nth-child(4) { width: 68%; }

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}

.source-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(134, 205, 189, 0.14);
}

.source-row strong {
  display: block;
  color: var(--heading);
  font-size: 13px;
}

.source-row span {
  color: var(--muted);
  font-size: 11px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  font-weight: 900;
}

.step strong {
  color: var(--heading);
}

.step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 18px 50px 18px 20px;
  color: var(--heading);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--accent);
  font-size: 22px;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

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

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(125deg, #4d31a5, #7654d6 54%, #c37dbc);
  box-shadow: 0 30px 80px rgba(75, 46, 153, 0.31);
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -70px;
  top: -105px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.045), 0 0 0 56px rgba(255, 255, 255, 0.03);
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.cta-band p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .action-row {
  position: relative;
  z-index: 1;
}

.cta-band .button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.page-hero {
  padding: 74px 0 42px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding-bottom: 90px;
}

.doc-nav {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.doc-nav strong {
  display: block;
  margin: 0 8px 10px;
  color: var(--heading);
  font-size: 13px;
}

.doc-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

.doc-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.doc-section h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 26px;
}

.doc-section > p {
  margin-top: 0;
  color: var(--muted);
}

.doc-section h3 {
  margin: 25px 0 8px;
  color: var(--heading);
  font-size: 18px;
}

.doc-section ol,
.doc-section ul {
  padding-left: 1.3em;
  color: var(--muted);
}

.doc-section li + li {
  margin-top: 8px;
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  color: var(--muted);
  background: var(--accent-soft);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: var(--surface-solid);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(118, 84, 214, 0.12);
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
}

.feedback-output {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.feedback-output.is-visible {
  display: block;
}

.feedback-output pre {
  max-height: 330px;
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-soft);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.site-footer {
  padding: 44px 0 36px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links h4 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 14px;
}

.footer-links a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-visual {
    min-height: 600px;
  }

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

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

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

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

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .doc-nav strong {
    display: none;
  }

  .doc-nav a {
    white-space: nowrap;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    z-index: 60;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-lg);
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 800;
  }

  .mobile-nav a:hover {
    color: var(--accent-ink);
    background: var(--accent-soft);
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 64px;
  }

  .shell,
  .narrow {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand small {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone {
    width: min(305px, 86vw);
  }

  .phone-screen {
    min-height: 540px;
  }

  .floating-card {
    display: none;
  }

  .metric-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

  .flow-panel,
  .cta-band,
  .doc-section {
    padding: 23px;
  }

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

  .reader-preview {
    grid-template-columns: 74px 1fr;
  }

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

  .copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* 留言保存模式 */
.server-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--accent-soft);
  font-size: 13px;
}

.server-banner strong {
  color: var(--heading);
}

.server-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(231, 181, 106, 0.14);
}

.server-banner.is-online .server-dot {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(134, 205, 189, 0.14);
}

.server-banner.is-offline .server-dot {
  background: #d86b79;
  box-shadow: 0 0 0 5px rgba(216, 107, 121, 0.14);
}

.saved-message {
  display: none;
  margin: 20px 0;
  padding: 22px;
  border: 1px solid rgba(118, 84, 214, 0.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(118, 84, 214, 0.11), rgba(134, 205, 189, 0.11));
}

.saved-message.is-visible {
  display: block;
}

.saved-message .serial {
  display: block;
  margin: 5px 0 2px;
  color: var(--accent-strong);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.saved-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.public-message-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.message-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-solid);
  font-size: 12px;
  font-weight: 800;
}

.message-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.message-empty {
  color: var(--muted);
  font-size: 13px;
}

.admin-shell {
  padding-bottom: 80px;
}

.admin-login {
  max-width: 560px;
  margin: 0 auto;
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.is-visible {
  display: block;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-toolbar .field {
  min-width: 180px;
  flex: 1 1 180px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.admin-stat strong {
  display: block;
  color: var(--heading);
  font-size: 27px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 12px;
}

.message-admin-list {
  display: grid;
  gap: 14px;
}

.admin-message {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-message-head h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
}

.admin-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 12px;
}

.admin-message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-message-field {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-message-field.full {
  grid-column: 1 / -1;
}

.admin-message-field strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 12px;
}

.admin-message-field pre {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 850;
}

.badge.resolved {
  color: #287665;
  background: rgba(134, 205, 189, 0.18);
}

.badge.processing {
  color: #83621f;
  background: rgba(231, 181, 106, 0.20);
}

@media (max-width: 820px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .admin-message-grid {
    grid-template-columns: 1fr;
  }

  .admin-message-field.full {
    grid-column: auto;
  }

  .admin-message-head {
    flex-direction: column;
  }
}