/* ==========================================================================
   一起树官网 · 设计系统
   黑白灰 / 大量留白 / 单一强调色 / 无多余装饰
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f7f7f5;
  --paper-3: #efefec;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #82827f;
  --line: #e5e5e1;
  --line-strong: #cfcfca;
  --accent: #e03e1a;
  --accent-dark: #b92f10;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

.section { padding-block: 120px; }
.section--tight { padding-block: 88px; }
.section--wash { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 700;
}

.h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 700;
}

.h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 700;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 660px;
}

.muted { color: var(--ink-3); }
.small { font-size: 13px; line-height: 1.7; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .lead { margin-top: 18px; }

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .24s var(--ease), color .24s var(--ease),
    border-color .24s var(--ease), transform .24s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 17px; line-height: 1; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

.text-accent { color: var(--accent); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px;
  height: 26px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
}
.brand-mark::before { width: 10px; height: 10px; top: 6px; left: 6px; }
.brand-mark::after { width: 4px; height: 4px; bottom: 5px; right: 5px; background: var(--accent); }
.brand-sub { font-size: 10px; color: var(--ink-3); letter-spacing: .16em; font-weight: 500; border-left: 1px solid var(--line-strong); padding-left: 11px; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 8px;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-login {
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 8px 0;
}
.header-login:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: var(--ink-3);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: 112px 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}
.hero h1 { margin-top: 26px; }
.hero h1 .accent-line { color: var(--accent); }
.hero .lead { margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-note { display: flex; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-note div { min-width: 120px; }
.hero-note strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.hero-note span { font-size: 12px; color: var(--ink-3); }

/* 抽象直播预览卡（纯 CSS，无图片依赖） */
.hero-visual { position: relative; }
.preview-card {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 14px;
  box-shadow: 18px 18px 0 var(--paper-3);
}
.preview-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #2a2a2a 0%, #4a4a4a 48%, #1a1a1a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 22px);
}
.preview-glow {
  width: 44%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
}
.live-tag {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  padding: 5px 9px;
}
.live-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.preview-bottom { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.preview-bottom b { display: block; font-size: 17px; letter-spacing: -.01em; }
.preview-bottom span { font-size: 11px; opacity: .7; }
.preview-meta { display: flex; align-items: center; gap: 12px; padding: 14px 2px 2px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-3); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  flex-shrink: 0;
}
.preview-meta strong { font-size: 13px; display: block; }
.preview-meta small { color: var(--ink-3); font-size: 11px; }
.waveform { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.waveform i { width: 2px; background: var(--accent); display: block; height: 40%; animation: wave 1.4s ease-in-out infinite alternate; }
.waveform i:nth-child(2) { animation-delay: .2s; height: 80%; }
.waveform i:nth-child(3) { animation-delay: .4s; height: 55%; }
.waveform i:nth-child(4) { animation-delay: .6s; height: 95%; }
.waveform i:nth-child(5) { animation-delay: .8s; height: 45%; }
@keyframes wave { to { height: 22%; } }

.preview-float {
  position: absolute;
  right: -28px; bottom: 38px;
  background: var(--ink); color: #fff;
  padding: 16px 20px;
  min-width: 168px;
}
.preview-float span { display: block; font-size: 10px; letter-spacing: .14em; color: #aaa; }
.preview-float strong { font-size: 26px; letter-spacing: -.03em; }
.preview-float strong em { font-style: normal; color: var(--accent); }

/* ---------- 数据条 ---------- */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-strip > div { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip strong { display: block; font-size: 32px; letter-spacing: -.04em; line-height: 1.2; }
.stat-strip span { font-size: 12px; color: var(--ink-3); }

/* ---------- 直播卡片 ---------- */
.room-card { display: block; }
.room-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2c2c2c;
  display: grid;
  place-items: center;
}
.room-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
}
.room-thumb .shape {
  width: 46%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  transition: transform .6s var(--ease);
}
.room-card:hover .shape { transform: scale(1.1); }
.room-thumb[data-tone="1"] { background: linear-gradient(135deg, #3f3f3f, #6c6c6c 55%, #242424); }
.room-thumb[data-tone="2"] { background: linear-gradient(135deg, #575757, #262626 60%, #747474); }
.room-thumb[data-tone="3"] { background: linear-gradient(160deg, #1f1f1f, #4a4a4a 50%, #333); }
.room-thumb[data-tone="4"] { background: linear-gradient(120deg, #6a6a6a, #2a2a2a 65%, #505050); }
.room-thumb[data-tone="5"] { background: linear-gradient(200deg, #383838, #686868 55%, #202020); }
.room-thumb[data-tone="6"] { background: linear-gradient(140deg, #4c4c4c, #7a7a7a 45%, #2d2d2d); }
.room-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 4px 8px;
}
.room-viewers {
  position: absolute; z-index: 2; right: 12px; top: 12px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 11px; padding: 4px 8px;
}
.room-title {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin-top: 16px;
  transition: color .2s var(--ease);
}
.room-card:hover .room-title { color: var(--accent); }
.room-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  font-size: 11px;
  color: var(--ink-2);
  background: transparent;
  transition: all .2s var(--ease);
}
.tag:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tag.is-active, .filter-chip { background: transparent; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.qr-box {
  width: 148px; height: 148px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 14px 14px,
    #fff;
  display: grid; place-items: center;
  text-align: center;
}
.qr-box span { background: #fff; padding: 6px; font-size: 11px; color: var(--ink-3); }

/* ---------- 功能行 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 92px minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding-block: 46px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; padding-top: 8px; }
.feature-row p { color: var(--ink-2); font-size: 15px; }
.feature-row .link-arrow { margin-top: 20px; }

/* ---------- 步骤 ---------- */
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step span { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .12em; }
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- CTA 大块 ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding-block: 96px;
}
.cta-band .eyebrow { color: #a9a9a9; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.cta-inner .h2 { max-width: 680px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 22px; }
.field > label,
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field textarea,
.field select,
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #aaa; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; }
.field-error { display: none; color: var(--accent); font-size: 12px; margin-top: 7px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--accent); }
.field.is-invalid .field-error { display: block; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all .2s var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.checkbox-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.checkbox-line input { margin-top: 5px; accent-color: var(--accent); }

.form-card {
  border: 1px solid var(--line);
  padding: 40px;
  background: #fff;
}
.form-card h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 8px; }
.form-card > p { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }

/* ---------- 搜索与筛选 ---------- */
.search-bar { display: flex; gap: 12px; max-width: 560px; }
.search-bar .input { flex: 1; }
.search-bar .btn { flex-shrink: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 34px 40px; }
.filter-row .mono { margin-right: 8px; }
.empty-state { padding: 72px 0; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); }

/* ---------- 手风琴 ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: transparent; border: 0;
  padding: 24px 0;
  text-align: left;
  font-size: 16px; font-weight: 600;
}
.acc-trigger::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1; }
.acc-item.is-open .acc-trigger::after { content: "−"; }
.acc-panel { display: none; padding-bottom: 26px; color: var(--ink-2); font-size: 14px; max-width: 760px; }
.acc-item.is-open .acc-panel { display: block; }

/* ---------- 下载平台卡 ---------- */
.platform-card {
  border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex; flex-direction: column; min-height: 290px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.platform-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.platform-card .mono { margin-bottom: 26px; }
.platform-card h3 { font-size: 28px; letter-spacing: -.03em; }
.platform-card p { font-size: 14px; color: var(--ink-2); margin-top: 12px; flex: 1; }
.platform-card .btn { margin-top: 28px; width: 100%; }

/* ---------- 入口列表 ---------- */
.entry-list { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  grid-template-columns: 60px 1fr auto 24px;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.entry:hover { padding-inline: 16px; background: var(--paper-2); }
.entry .mono { color: var(--accent); }
.entry strong { font-size: 17px; }
.entry span { font-size: 13px; color: var(--ink-3); }
.entry-arrow { font-size: 20px; color: var(--ink-3); }
.entry:hover .entry-arrow { color: var(--accent); }

/* ---------- 登录弹窗 / 通用弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, .55);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal-panel {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  padding: 38px;
  animation: modal-in .24s var(--ease);
}
.modal-panel--wide { max-width: 720px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0; background: transparent; font-size: 24px; line-height: 1;
  color: var(--ink-3);
}
.modal-close:hover { color: var(--accent); }
.modal-panel h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.modal-panel > p { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.modal-foot { margin-top: 24px; font-size: 12px; color: var(--ink-3); text-align: center; }
.modal-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.player-mock {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #333, #666 55%, #222);
  display: grid; place-items: center;
  position: relative;
  margin-bottom: 24px;
}
.player-mock .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; padding-left: 4px;
  border: 0;
}
.player-mock .play:hover { background: var(--accent-dark); }
.player-mock .corner { position: absolute; left: 14px; top: 14px; color: #fff; font-size: 11px; letter-spacing: .12em; }

/* ---------- 结果卡 ---------- */
.result-box {
  display: none;
  border: 1px solid var(--ink);
  padding: 30px;
  margin-top: 28px;
  background: var(--paper-2);
}
.result-box.is-visible { display: block; }
.result-box h3 { font-size: 20px; margin-bottom: 10px; }
.result-box p { font-size: 14px; color: var(--ink-2); }
.result-box pre {
  white-space: pre-wrap; word-break: break-word;
  font-size: 13px; line-height: 1.8;
  background: #fff; border: 1px solid var(--line);
  padding: 18px; margin: 16px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: 76px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); max-width: 300px; margin-top: 18px; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 20px; text-transform: uppercase; }
.footer-col a { display: block; font-size: 13px; color: var(--ink-2); padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 200;
  background: var(--ink); color: #fff;
  padding: 13px 22px;
  font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .section { padding-block: 92px; }
  .hero-grid { gap: 48px; }
  .preview-float { right: -10px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 60px minmax(0, 1fr); }
  .feature-row > div:last-child { grid-column: 2; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions { gap: 14px; }
  .hero { padding-block: 72px 76px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  html { scroll-padding-top: 76px; }
  .brand-sub { display: none; }
  .header-inner { height: 66px; }
  .nav { top: 66px; max-height: calc(100vh - 66px); }
  .section { padding-block: 72px; }
  .section--tight { padding-block: 60px; }
  .display { font-size: clamp(38px, 10.5vw, 56px); }
  .h2 { font-size: 32px; }
  .lead { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-note { gap: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--4 { gap: 20px; }
  .stat-strip strong { font-size: 26px; }
  .stat-strip > div { padding: 24px 18px; }
  .feature-row { grid-template-columns: 1fr; gap: 12px; padding-block: 32px; }
  .feature-row > div:last-child { grid-column: 1; }
  .feature-num { padding-top: 0; }
  .preview-card { box-shadow: 10px 10px 0 var(--paper-3); }
  .preview-float { right: -4px; bottom: -18px; padding: 12px 14px; min-width: 136px; }
  .preview-float strong { font-size: 21px; }
  .form-card { padding: 26px 20px; }
  .modal-panel { padding: 28px 22px; }
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; }
  .entry { grid-template-columns: 40px 1fr 20px; gap: 12px; }
  .entry span { display: none; }
  .cta-band { padding-block: 68px; }
  .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
