/* =========================================================
   aifengyue2.com.cn · 风月AI 下载与角色卡指南
   视觉：墨绿 + 芥黄 + 砂纸白，档案 / 索引式排版，直角硬边
   ========================================================= */

:root {
  --night: #0a1d17;
  --forest: #123328;
  --forest-2: #1b4638;
  --forest-ink: #0c241c;
  --amber: #e3b341;
  --amber-2: #f2d28a;
  --amber-ink: #805610;
  --bone: #f3eedf;
  --paper: #fffdf6;
  --ink: #101915;
  --ink-2: #2c3a33;
  --muted: #4f5d55;
  --line: rgba(16, 25, 21, 0.16);
  --line-2: rgba(16, 25, 21, 0.08);
  --wrap: 1180px;
  --hd: 56px;
  --dock: 62px;
  --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(--hd) + 12px);
}

body {
  margin: 0;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  overflow-x: clip;
  -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;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--amber);
  color: var(--forest-ink);
}

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

.wrap {
  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(--amber);
  color: var(--forest-ink);
  font-size: 14px;
  font-weight: 700;
}

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

/* ---------- 滚动进度 ---------- */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), #9ecfae);
}

/* ---------- 动态非纯色背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(700px 560px at 83% 4%, rgba(227, 179, 65, 0.18), transparent 66%),
    radial-gradient(640px 560px at 8% 34%, rgba(27, 70, 56, 0.12), transparent 70%),
    radial-gradient(600px 520px at 52% 94%, rgba(227, 179, 65, 0.1), transparent 72%),
    linear-gradient(172deg, #f8f4e8 0%, #f3eedf 54%, #ece5d1 100%);
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(52px);
  animation: orbFloat 40s ease-in-out infinite alternate;
}

.b1 {
  width: 42vw;
  height: 36vw;
  left: -13vw;
  top: 10vh;
  background: rgba(27, 70, 56, 0.16);
}

.b2 {
  width: 34vw;
  height: 30vw;
  right: -10vw;
  top: 44vh;
  background: rgba(227, 179, 65, 0.22);
  animation-duration: 48s;
  animation-delay: -11s;
}

.b3 {
  width: 28vw;
  height: 24vw;
  left: 34vw;
  top: 78vh;
  background: rgba(27, 70, 56, 0.1);
  animation-duration: 54s;
  animation-delay: -23s;
}

@keyframes orbFloat {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to { transform: translate3d(4%, -4%, 0) scale(1.16); }
}

.grid-lines {
  position: absolute;
  inset: -70px;
  background-image:
    linear-gradient(90deg, rgba(16, 25, 21, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(16, 25, 21, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 74%);
  animation: gridMove 48s linear infinite;
}

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

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  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>");
}

.dust {
  position: absolute;
  inset: -12%;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 26%, rgba(227, 179, 65, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 14%, rgba(27, 70, 56, 0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 58%, rgba(227, 179, 65, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 80%, rgba(27, 70, 56, 0.32), transparent 100%),
    radial-gradient(1.5px 1.5px at 54% 44%, rgba(227, 179, 65, 0.34), transparent 100%);
  background-size: 340px 340px, 440px 440px, 400px 400px, 480px 480px, 320px 320px;
  animation: dustDrift 62s linear infinite;
  opacity: 0.75;
}

@keyframes dustDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-54px, -110px, 0); }
}

/* ---------- 顶部细条 ---------- */
.rail {
  background: #081510;
  color: rgba(242, 210, 138, 0.52);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(227, 179, 65, 0.14);
}

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

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

.rail-note {
  display: none;
  color: rgba(242, 210, 138, 0.3);
}

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

.hd.is-solid {
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 0 10px 26px rgba(10, 29, 23, 0.12);
}

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

.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: 36px;
  height: 36px;
  flex: none;
  background: #fff;
  border: 1px solid var(--forest);
  overflow: hidden;
}

.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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);
}

.hd-nav {
  display: none;
  gap: 17px;
}

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

.hd-nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 2px;
  background: var(--amber-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.hd .hd-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-amber {
  background: var(--amber);
  color: #16211c;
  border-color: var(--forest-ink);
  box-shadow: 4px 4px 0 rgba(12, 36, 28, 0.9);
}

.btn-amber:hover {
  background: #eec257;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(12, 36, 28, 0.92);
}

.btn-amber:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(12, 36, 28, 0.9);
}

.btn-line {
  border-color: rgba(243, 238, 223, 0.45);
  color: var(--bone);
}

.btn-line:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--forest-ink);
}

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

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--bone);
  padding: 24px 0 0;
  background:
    radial-gradient(700px 540px at 88% 2%, rgba(227, 179, 65, 0.26), transparent 62%),
    radial-gradient(560px 460px at 2% 92%, rgba(78, 140, 110, 0.2), transparent 70%),
    linear-gradient(162deg, #13382c 0%, #0a1d17 56%, #17392c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(242, 210, 138, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(242, 210, 138, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 210, 138, 0.42);
  color: var(--amber-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.eyebrow span {
  color: var(--amber);
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 8.7vw, 50px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
  border-bottom: 4px solid rgba(227, 179, 65, 0.36);
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 18px;
  color: rgba(243, 238, 223, 0.78);
  font-size: 14.5px;
  line-height: 1.78;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(242, 210, 138, 0.24);
  border-left: 1px solid rgba(242, 210, 138, 0.24);
}

.hero-stats div {
  padding: 9px 10px;
  border-right: 1px solid rgba(242, 210, 138, 0.24);
  border-bottom: 1px solid rgba(242, 210, 138, 0.24);
}

.hero-stats dt {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bone);
}

.hero-stats dd {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(242, 210, 138, 0.74);
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 2px auto 0;
  padding: 0 6px 16px;
}

.art-code {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: right;
  color: rgba(242, 210, 138, 0.62);
}

.art-frame {
  position: relative;
  border: 1px solid rgba(242, 210, 138, 0.5);
  background: var(--forest-ink);
  box-shadow: 6px 6px 0 rgba(227, 179, 65, 0.35);
}

.art-frame img {
  width: 100%;
  filter: saturate(0.94) contrast(1.02);
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(18, 51, 40, 0.34), transparent 46%),
    linear-gradient(0deg, rgba(10, 29, 23, 0.42), transparent 42%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.art-tag {
  position: absolute;
  left: -1px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 9px;
  background: var(--amber);
  color: var(--forest-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.quote-card {
  position: absolute;
  left: 2px;
  bottom: -6px;
  z-index: 2;
  max-width: 86%;
  padding: 11px 14px;
  background: rgba(10, 29, 23, 0.94);
  border-left: 3px solid var(--amber);
  border-top: 1px solid rgba(242, 210, 138, 0.28);
}

.quote-line {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bone);
}

.quote-from {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 210, 138, 0.76);
}

.hero-edge {
  position: relative;
  height: 10px;
  background: var(--amber);
}

/* ---------- 关键词横条 ---------- */
.marquee {
  overflow: hidden;
  background: var(--amber);
  border-top: 1px solid var(--forest-ink);
  border-bottom: 1px solid var(--forest-ink);
}

.marquee-row {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 9px 0;
  animation: marqueeMove 34s linear infinite;
}

.marquee-row span {
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #2a2312;
  white-space: nowrap;
}

.marquee-row i {
  width: 4px;
  height: 4px;
  background: #6b5313;
  transform: rotate(45deg);
}

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

/* ---------- 通用区块 ---------- */
.sec {
  position: relative;
  padding: 46px 0;
}

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

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber-ink);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber-ink);
}

.kicker.light {
  color: var(--amber);
}

.kicker.light::before {
  background: var(--amber);
}

.sec h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 7.2vw, 40px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.sec h2 em {
  font-style: normal;
  color: var(--amber-ink);
  border-bottom: 3px solid rgba(227, 179, 65, 0.44);
}

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

.sec-demo,
.final {
  background:
    radial-gradient(620px 460px at 88% 0%, rgba(227, 179, 65, 0.16), transparent 66%),
    linear-gradient(165deg, #123328 0%, #0a1d17 60%, #1b4638 100%);
  color: var(--bone);
}

.sec-demo h2 em,
.final h2 em {
  color: var(--amber);
  border-bottom-color: rgba(227, 179, 65, 0.4);
}

.sec-demo .sec-lead,
.final .final-sub {
  color: rgba(243, 238, 223, 0.7);
}

.note-line {
  margin-top: 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--amber);
  background: rgba(227, 179, 65, 0.1);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 01 五层角色卡 ---------- */
.layers {
  max-width: 920px;
  border-top: 2px solid var(--ink);
}

.layer {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.l-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--amber-ink);
}

.l-body h3 {
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

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

/* ---------- 02 写法 ---------- */
.sec-build {
  background: rgba(255, 253, 246, 0.55);
}

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

.b-item {
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 253, 246, 0.8);
}

.b-time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-ink);
}

.b-item h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 800;
}

.b-item p {
  font-size: 13px;
  color: var(--ink-2);
}

.tip-box {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--forest);
  background:
    linear-gradient(120deg, rgba(227, 179, 65, 0.16), transparent 60%),
    var(--paper);
}

.tip-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.tip-box p:last-child {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 03 世界书与 MOD ---------- */
.settings-grid {
  display: grid;
  gap: 12px;
}

.set-col {
  padding: 16px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 253, 246, 0.8);
}

.set-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
}

.set-list li {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.set-list b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.set-list span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.set-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.set-col-dark {
  border-top-color: var(--amber);
  background: var(--forest);
  color: var(--bone);
}

.set-col-dark .set-title {
  color: var(--bone);
}

.set-col-dark .set-list li {
  border-top-color: rgba(242, 210, 138, 0.2);
}

.set-col-dark .set-list span,
.set-col-dark .set-note {
  color: rgba(243, 238, 223, 0.66);
}

.switch-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.7);
}

.switch-title {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.switch-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.sw-name {
  font-size: 13.5px;
  font-weight: 700;
}

.sw-name b {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.sw {
  flex: none;
  min-width: 34px;
  padding: 3px 7px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.sw.on {
  background: var(--amber);
  color: var(--forest-ink);
  font-weight: 700;
}

.sw.off {
  border: 1px solid var(--line);
  color: var(--muted);
}

.switch-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 04 对比示例 ---------- */
.compare {
  display: grid;
  gap: 12px;
}

.cmp-card {
  padding: 16px;
  border: 1px solid rgba(242, 210, 138, 0.22);
  background: rgba(10, 29, 23, 0.5);
}

.cmp-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(243, 238, 223, 0.78);
}

.cmp-tag span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(242, 210, 138, 0.5);
  color: var(--amber-2);
  font-size: 10px;
}

.cmp-chat {
  display: grid;
  gap: 8px;
}

.cmp-you {
  justify-self: end;
  max-width: 90%;
  padding: 9px 12px;
  border: 1px solid rgba(242, 210, 138, 0.32);
  font-size: 13px;
  color: rgba(243, 238, 223, 0.82);
}

.cmp-reply {
  max-width: 94%;
  padding: 10px 12px;
  border-left: 2px solid rgba(242, 210, 138, 0.4);
  background: rgba(243, 238, 223, 0.06);
  font-size: 13.5px;
  color: var(--bone);
}

.cmp-why {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(243, 238, 223, 0.72);
}

.cmp-good {
  border-color: rgba(227, 179, 65, 0.7);
  background: rgba(27, 70, 56, 0.55);
}

.cmp-good .cmp-reply {
  border-left-color: var(--amber);
  background: rgba(227, 179, 65, 0.12);
}

.cmp-take {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: rgba(227, 179, 65, 0.1);
  font-size: 13px;
  color: rgba(243, 238, 223, 0.86);
}

/* ---------- 05 界面预览 ---------- */
.sec-screens {
  background: rgba(255, 253, 246, 0.5);
}

.gallery-wrap {
  width: 100%;
}

.gallery {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.g-item {
  flex: none;
  display: flex;
  flex-direction: column;
}

.g-card {
  width: 286px;
}

.g-phone {
  width: 236px;
}

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

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

.g-btn img {
  width: 100%;
}

.g-item figcaption {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}

.g-item figcaption span {
  margin-right: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber-ink);
}

.g-item figcaption b {
  display: block;
  margin-bottom: 1px;
  font-size: 12.5px;
  color: var(--ink);
}

/* ---------- 06 三步上手 ---------- */
.steps {
  display: grid;
  gap: 12px;
}

.step {
  padding: 16px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 253, 246, 0.78);
}

.step-n {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-ink);
}

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

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

.step .step-meta {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
  word-break: keep-all;
}

.mid-cta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

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

.mid-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 07 四个误区 ---------- */
.mistakes {
  display: grid;
  gap: 12px;
}

.mk {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.72);
}

.mk-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber-ink);
}

.mk h3 {
  margin: 5px 0 6px;
  font-size: 16.5px;
  font-weight: 900;
}

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

.mk .mk-fix {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--amber-ink);
}

/* ---------- 08 三种用法 ---------- */
.sec-routes {
  background: rgba(255, 253, 246, 0.5);
}

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

.rt {
  padding: 16px;
  border-top: 2px solid var(--amber);
  background: rgba(255, 253, 246, 0.8);
}

.rt .rt-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 7px;
  background: var(--forest);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.rt h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 900;
}

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

.rt .rt-meta {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 2px solid var(--ink);
}

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

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--amber-ink);
}

.faq[open] summary::after {
  content: "−";
  background: var(--amber);
  color: var(--forest-ink);
  border-color: var(--amber);
}

.faq p {
  padding: 0 0 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 相关搜索 ---------- */
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.words a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.72);
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
}

.words a:hover {
  border-color: var(--amber-ink);
  background: var(--paper);
}

/* ---------- 关于 ---------- */
.about-in {
  display: grid;
  gap: 14px;
}

.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.02em;
  color: var(--muted);
}

/* ---------- 深色收尾 ---------- */
.final {
  position: relative;
  padding: 50px 0 54px;
  text-align: center;
}

.final-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-tag {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(242, 210, 138, 0.72);
}

.final h2 {
  margin-bottom: 10px;
  font-size: clamp(27px, 7.4vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.final .final-sub {
  margin-bottom: 18px;
  font-size: 13.5px;
}

.final-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(242, 210, 138, 0.68);
}

/* ---------- 页脚 ---------- */
.foot {
  padding: 28px 0 24px;
  background: #081510;
  color: rgba(243, 238, 223, 0.6);
}

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

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

.foot-brand .brand-tile {
  border-color: rgba(242, 210, 138, 0.4);
}

.foot-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--bone);
}

.foot-desc {
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(242, 210, 138, 0.5);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 12.5px;
  color: rgba(243, 238, 223, 0.74);
  text-decoration: none;
}

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

.foot-note {
  padding-top: 12px;
  border-top: 1px solid rgba(242, 210, 138, 0.14);
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(243, 238, 223, 0.52);
}

.foot-copy {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(243, 238, 223, 0.42);
}

/* ---------- 底部下载条 ---------- */
.dock {
  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(--forest-ink);
  background: rgba(255, 253, 246, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.dock-txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.dock-txt span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  background: rgba(8, 21, 16, 0.64);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  overscroll-behavior: contain;
}

.drawer[hidden] {
  display: none;
}

.drawer-card {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 2px solid var(--forest);
  animation: drawerUp 0.24s ease both;
  overscroll-behavior: contain;
}

@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: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  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(--amber-ink);
}

.drawer-note {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  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(8, 21, 16, 0.94);
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none;
}

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

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

/* ---------- 入场 ---------- */
.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;
  }

  .orb,
  .grid-lines,
  .dust,
  .marquee-row {
    animation: none;
  }

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

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

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

/* ---------- 560+ ---------- */
@media (min-width: 560px) {
  .wrap {
    padding: 0 22px;
  }

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

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

  .g-card {
    width: 300px;
  }

  .g-phone {
    width: 250px;
  }

  .mid-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  :root {
    --hd: 64px;
    --dock: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .wrap {
    padding: 0 26px;
  }

  .rail-note {
    display: block;
  }

  .hd-nav {
    display: flex;
  }

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

  .burger {
    display: none;
  }

  .dock {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

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

  .hero-art {
    max-width: 400px;
  }

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

  .sec {
    padding: 58px 0;
  }

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

  .sec h2 {
    font-size: clamp(30px, 4.2vw, 42px);
  }

  .hero-stats {
    max-width: 520px;
  }

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

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

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

  .routes {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .about-in {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px 24px;
  }

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

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

  .final {
    padding: 64px 0 68px;
  }
}

/* ---------- 900+ ---------- */
@media (min-width: 900px) {
  .layer {
    grid-template-columns: 56px 1fr;
    padding: 20px 0;
  }

  .l-body h3 {
    font-size: 18px;
  }

  .faq-list {
    columns: 2;
    column-gap: 40px;
  }

  .faq {
    break-inside: avoid;
  }

  .faq summary {
    min-height: 58px;
  }

  .words a {
    min-height: 40px;
    font-size: 13px;
  }
}

/* ---------- 1100+ ---------- */
@media (min-width: 1100px) {
  .gallery {
    justify-content: center;
    overflow: visible;
  }

  .g-card {
    width: 330px;
  }

  .g-phone {
    width: 262px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero .hero-in {
    gap: 48px;
    padding-bottom: 54px;
  }

  .hero-art {
    max-width: 430px;
  }

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