/* =========================================================
   tofai2.com.cn · tofai 下载 · 角色创作指南
   视觉：钴蓝 + 象牙白 + 橘橙，瑞士海报 / 编辑排版，直角硬边
   ========================================================= */

:root {
  --cobalt: #1f4bff;
  --cobalt-2: #4b6dff;
  --cobalt-deep: #0c1f8c;
  --cobalt-ink: #0a1750;
  --orange: #ff6b35;
  --amber: #ffd166;
  --ivory: #f8f5ee;
  --paper: #fffdf7;
  --ink: #10131f;
  --ink-2: #232a3d;
  --muted: #5c6274;
  --line: rgba(16, 19, 31, 0.16);
  --line-2: rgba(16, 19, 31, 0.08);
  --line-w: rgba(255, 253, 247, 0.18);
  --wrap: 1180px;
  --head: 58px;
  --bar: 64px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 14px);
}

body {
  margin: 0;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, dl, dd, blockquote, figure, pre {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--orange);
  color: #fff;
}

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

.shell {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cobalt);
  color: #fff;
  font-size: 14px;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 滚动进度 ---------- */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cobalt));
}

/* ---------- 动态非纯色背景 ---------- */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(760px 620px at 12% 8%, rgba(31, 75, 255, 0.1), transparent 68%),
    radial-gradient(680px 560px at 92% 34%, rgba(255, 107, 53, 0.1), transparent 70%),
    radial-gradient(620px 520px at 46% 88%, rgba(255, 209, 102, 0.18), transparent 72%),
    linear-gradient(172deg, #fdfbf4 0%, #f8f5ee 52%, #f3eee3 100%);
}

.mesh-spot {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(52px);
  animation: floatSpot 34s ease-in-out infinite alternate;
}

.spot-a {
  width: 42vw;
  height: 38vw;
  left: -12vw;
  top: 12vh;
  background: rgba(31, 75, 255, 0.16);
}

.spot-b {
  width: 34vw;
  height: 30vw;
  right: -10vw;
  top: 46vh;
  background: rgba(255, 107, 53, 0.15);
  animation-duration: 42s;
  animation-delay: -9s;
}

.spot-c {
  width: 30vw;
  height: 26vw;
  left: 32vw;
  top: 78vh;
  background: rgba(255, 209, 102, 0.3);
  animation-duration: 48s;
  animation-delay: -20s;
}

@keyframes floatSpot {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.14); }
}

.mesh-grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(90deg, rgba(16, 19, 31, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(16, 19, 31, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 88px 88px, 88px 88px; }
}

.mesh-grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.42'/></svg>");
}

/* ---------- 顶部细条 ---------- */
.toprail {
  background: var(--ink);
  color: rgba(255, 253, 247, 0.52);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 253, 247, 0.1);
}

.toprail-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.toprail p {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toprail-note {
  display: none;
  color: rgba(255, 253, 247, 0.32);
}

/* ---------- 吸顶导航 ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--head);
  background: rgba(248, 245, 238, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.head.is-solid {
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 8px 26px rgba(16, 19, 31, 0.1);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--head);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}

.brand-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-tile img {
  width: 27px;
  height: 27px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.brand-word small {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.head-nav {
  display: none;
  gap: 20px;
}

.head-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 5px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
}

.head-nav a::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 9px;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.head-nav a:hover::after {
  transform: scaleX(1);
}

.head .head-cta {
  display: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  flex: none;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    color 0.14s ease, border-color 0.14s ease;
}

.btn-cobalt {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
  box-shadow: 4px 4px 0 rgba(16, 19, 31, 0.9);
}

.btn-cobalt:hover {
  background: #163ad6;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(16, 19, 31, 0.92);
}

.btn-cobalt:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(16, 19, 31, 0.9);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(255, 107, 53, 0.95);
}

.btn-amber:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--orange);
}

.btn-xl {
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 26px 0 0;
  overflow: hidden;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  background: rgba(255, 253, 247, 0.7);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(31px, 8.4vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero h1 mark {
  position: relative;
  display: inline-block;
  padding: 0 0.04em 0.02em;
  background: linear-gradient(transparent 68%, var(--amber) 68%);
  color: var(--cobalt);
}

.hero-lead {
  max-width: 36em;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-facts li {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero-facts span {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 304px;
  margin: 0 auto;
  padding: 14px 14px 0 0;
}

.hero-plate {
  position: absolute;
  left: 34px;
  right: 0;
  top: 0;
  bottom: 26px;
  background: var(--cobalt);
  transform: rotate(-2.4deg);
  transform-origin: center;
}

.hero-plate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 34%;
  height: 18px;
  background: var(--orange);
}

.hero-frame {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(16, 19, 31, 0.14);
}

.hero-frame img {
  width: 100%;
  height: auto;
}

.sticker {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: var(--amber);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(16, 19, 31, 0.86);
}

.sticker b {
  font-size: 12px;
}

.sticker-a {
  left: -4px;
  top: 22%;
  transform: rotate(-5deg);
}

.sticker-b {
  right: -6px;
  bottom: 16%;
  background: #fff;
  transform: rotate(4deg);
}

.hero-tag {
  position: absolute;
  right: 0;
  top: -12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(248, 245, 238, 0.86);
  padding: 1px 4px;
}

.hero-rule {
  height: 1px;
  background: var(--line);
}

/* ---------- 关键词跑马灯 ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: tickerMove 46s linear infinite;
}

.ticker-row i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--ink);
  transform: rotate(45deg);
}

@keyframes tickerMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 区块通用 ---------- */
.sec {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.sec-head {
  margin-bottom: 26px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.kicker-num {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 21px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sec h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 5.6vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sec h2 em {
  font-style: normal;
  padding: 0 0.04em;
  color: var(--cobalt);
  background: linear-gradient(transparent 70%, rgba(255, 209, 102, 0.92) 70%);
}

.sec-lead {
  max-width: 40em;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 01 差异 ---------- */
.why-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.why-card {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.why-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--cobalt);
}

.card-num {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.why-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 13.5px;
  color: var(--ink-2);
}

.card-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare {
  display: grid;
  gap: 12px;
}

.compare-col {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.6);
}

.compare-col.is-accent {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #fff;
}

.compare-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 900;
}

.compare-col ul {
  display: grid;
  gap: 8px;
}

.compare-col li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--orange);
}

.compare-col.is-accent li::before {
  background: var(--amber);
}

/* ---------- 02 口味 ---------- */
.sec-flavor {
  background: rgba(255, 253, 247, 0.5);
}

.flavor-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -18px 14px;
  padding: 0 18px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.flavor-tabs::-webkit-scrollbar {
  display: none;
}

.flavor-tab {
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.flavor-tab:hover {
  border-color: var(--ink);
}

.flavor-tab.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.flavor-panels {
  display: grid;
  gap: 12px;
}

.flavor-panel {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.flavor-panel[hidden] {
  display: none;
}

.flavor-label {
  margin: 14px 0 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.flavor-main .flavor-label:first-child {
  margin-top: 0;
}

.flavor-main > p {
  font-size: 13.5px;
}

.flavor-list {
  display: grid;
  gap: 7px;
}

.flavor-list li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.flavor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cobalt);
}

.flavor-quote {
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 209, 102, 0.16);
  font-size: 13.5px;
  line-height: 1.65;
}

.flavor-model {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.flavor-shot {
  margin: 0;
}

.flavor-shot img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.flavor-shot figcaption {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

/* ---------- 03 模板 ---------- */
.tpl-grid {
  display: grid;
  gap: 12px;
}

.tpl {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 75, 255, 0.05);
}

.tpl-head h3 {
  font-size: 14.5px;
  font-weight: 900;
}

.copy-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.copy-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.copy-btn.is-done {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.tpl-code {
  padding: 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

.tpl-note {
  padding: 9px 14px 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

.tpl-tip {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--cobalt);
  background: rgba(31, 75, 255, 0.06);
  font-size: 13.5px;
}

/* ---------- 04 预览 ---------- */
.sec-shots {
  padding-bottom: 30px;
}

.shots-wrap {
  position: relative;
}

.shots {
  display: flex;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4px 18px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: 62vw;
  max-width: 250px;
  scroll-snap-align: center;
}

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shot-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--orange);
}

.shot-btn img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.shot figcaption span {
  display: inline-block;
  margin-right: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
}

.shots-hint {
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- 05 入门 ---------- */
.steps {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.step {
  position: relative;
  padding: 16px 15px 15px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.72);
}

.step-num {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cobalt);
}

.step h3 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 900;
}

.step p {
  font-size: 13.5px;
  color: var(--ink-2);
}

.step-meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.inline-cta {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(120deg, rgba(31, 75, 255, 0.08), transparent 62%),
    var(--paper);
}

.inline-cta-title {
  font-size: 17px;
  font-weight: 900;
}

.inline-cta-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 06 FAQ ---------- */
.sec-faq {
  background: rgba(255, 253, 247, 0.5);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  position: relative;
  padding: 14px 34px 14px 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 12px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  color: var(--cobalt);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.faq[open] summary::after {
  content: "−";
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.faq p {
  padding: 0 30px 16px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------- 07 长尾词 ---------- */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.word-cloud a:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

/* ---------- 08 关于 ---------- */
.sec-about {
  padding-bottom: 46px;
}

.about-in {
  display: grid;
  gap: 16px;
}

.about-in h2 {
  font-size: clamp(22px, 5.2vw, 30px);
}

.about-body {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.about-body b {
  color: var(--ink);
}

.about-meta {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- 深色 CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding: 40px 0 44px;
  background:
    radial-gradient(620px 420px at 84% 10%, rgba(31, 75, 255, 0.55), transparent 66%),
    radial-gradient(520px 380px at 8% 92%, rgba(255, 107, 53, 0.24), transparent 70%),
    linear-gradient(150deg, #0a1750 0%, #060d2e 54%, #0d1f66 100%);
  color: #fff;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.final-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.final-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.final h2 {
  font-size: clamp(25px, 6.4vw, 38px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.final-sub {
  max-width: 32em;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.74);
}

.final-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 页脚 ---------- */
.foot {
  padding: 30px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070d22;
  color: rgba(255, 253, 247, 0.66);
}

.foot-in {
  display: grid;
  gap: 16px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand .brand-tile {
  border-color: rgba(255, 255, 255, 0.2);
}

.foot-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

.foot-desc {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 247, 0.5);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  font-size: 12.5px;
  text-decoration: none;
  color: rgba(255, 253, 247, 0.72);
}

.foot-nav a:hover {
  color: var(--amber);
}

.foot-note {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(255, 253, 247, 0.44);
}

.foot-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 247, 0.36);
}

/* ---------- 移动端底部条 ---------- */
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink);
  background: rgba(255, 253, 247, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.bottombar.is-hidden {
  transform: translateY(110%);
}

.bottombar-txt {
  min-width: 0;
  margin-right: auto;
  line-height: 1.3;
}

.bottombar-txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
}

.bottombar-txt span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.bottombar .btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  background: rgba(10, 12, 22, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.drawer[hidden] {
  display: none;
}

.drawer-card {
  width: 100%;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 2px solid var(--ink);
  animation: drawerUp 0.24s ease both;
}

@keyframes drawerUp {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  margin-bottom: 14px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}

.drawer-nav a span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--orange);
}

.drawer-note {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 20, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lb-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 入场动画（仅在 JS 生效后启用） ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

  .mesh-spot,
  .mesh-grid,
  .ticker-row,
  .eyebrow .dot,
  .final::before {
    animation: none !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }

  .btn,
  .why-card,
  .shot-btn {
    transition: none;
  }
}

/* =========================================================
   断点
   ========================================================= */

@media (min-width: 420px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 560px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

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

  .flavor-panel {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
    padding: 20px 18px;
  }

  .flavor-shot {
    align-self: start;
  }

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

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

  .step {
    padding: 18px 16px 16px;
  }

  .inline-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 18px;
  }

  .inline-cta .btn {
    justify-self: start;
  }

  .about-in {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .final-in {
    justify-items: start;
  }
}

@media (min-width: 768px) {
  :root {
    --head: 66px;
    --bar: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .shell {
    padding: 0 26px;
  }

  .toprail-note {
    display: block;
  }

  .head-nav {
    display: flex;
  }

  .head .head-cta {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .burger {
    display: none;
  }

  .bottombar {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 30px;
    padding-bottom: 44px;
  }

  .hero-visual {
    max-width: 330px;
  }

  .hero h1 {
    font-size: clamp(38px, 4.6vw, 52px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-facts b {
    font-size: 15px;
  }

  .sec {
    padding: 60px 0;
  }

  .sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    grid-template-areas:
      "kick lead"
      "title lead";
    column-gap: 34px;
    align-items: end;
    margin-bottom: 32px;
  }

  .sec-head .kicker {
    grid-area: kick;
  }

  .sec-head h2 {
    grid-area: title;
    margin-bottom: 0;
  }

  .sec-head .sec-lead {
    grid-area: lead;
    padding-bottom: 3px;
    font-size: 14.5px;
  }

  .why-grid {
    gap: 16px;
  }

  .why-card {
    padding: 22px 20px 18px;
  }

  .why-card h3 {
    font-size: 20px;
  }

  .compare-col {
    padding: 20px;
  }

  .flavor-panel {
    grid-template-columns: minmax(0, 1fr) 210px;
    padding: 24px 22px;
  }

  .flavor-shot img {
    max-width: 100%;
  }

  .flavor-tabs {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
  }

  .shots {
    padding: 4px 26px 18px;
    gap: 16px;
  }

  .shot {
    width: 220px;
  }

  .shots-hint {
    padding: 0 26px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .step {
    padding: 18px 15px 16px;
  }

  .step h3 {
    font-size: 16.5px;
  }

  .tpl-grid {
    gap: 16px;
  }

  .tpl-code {
    font-size: 12px;
  }

  .faq summary {
    padding: 16px 40px 16px 0;
    font-size: 15.5px;
  }

  .faq summary::after {
    right: 4px;
    top: 14px;
  }

  .faq p {
    padding-right: 60px;
    font-size: 14px;
  }

  .final {
    padding: 58px 0 62px;
  }

  .foot {
    padding: 36px 0 30px;
  }

  .foot-in {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    row-gap: 20px;
  }

  .foot-nav {
    justify-content: flex-end;
  }

  .foot-note {
    grid-column: 1 / -1;
    max-width: 62em;
  }

  .foot-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .hero-in {
    gap: 48px;
  }

  .hero-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-visual {
    max-width: 350px;
  }

  .sticker-a {
    left: -14px;
  }

  .sticker-b {
    right: -18px;
  }

  .shot {
    width: 232px;
  }
}

/* 大屏时四张预览整体居中，不再横滑 */
@media (min-width: 1100px) {
  .shots {
    justify-content: center;
    overflow: visible;
    gap: 16px;
    padding: 4px 26px 20px;
  }

  .shot {
    width: 244px;
  }

  .shots-hint {
    display: none;
  }
}
