/* =========================================================
   fengyueai2.com.cn · 风月AI 下载与角色互动指南
   视觉：夜梅子 + 玫瑰 + 香槟金 + 米白，杂志式排版，直角硬边
   ========================================================= */

:root {
  --night: #140a12;
  --plum: #2a1421;
  --plum-2: #3b1c2c;
  --rose: #e8657f;
  --rose-2: #ff9aad;
  --rose-deep: #a83c55;
  --gold: #d8b184;
  --gold-2: #f0d9b8;
  --cream: #fbf6f0;
  --paper: #fffdf9;
  --ink: #1a1016;
  --ink-2: #372a31;
  --muted: #6d5b62;
  --line: rgba(26, 16, 22, 0.16);
  --line-2: rgba(26, 16, 22, 0.08);
  --wrap: 1160px;
  --hd: 58px;
  --dock: 62px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, 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(--cream);
  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;
}

.serif {
  font-family: var(--serif);
}

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

:focus-visible {
  outline: 2px solid var(--rose);
  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(--rose);
  color: #fff;
  font-size: 14px;
}

.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(--gold), var(--rose));
}

/* ---------- 动态背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(720px 580px at 10% 6%, rgba(232, 101, 127, 0.1), transparent 68%),
    radial-gradient(660px 560px at 92% 44%, rgba(216, 177, 132, 0.16), transparent 70%),
    radial-gradient(600px 520px at 44% 96%, rgba(168, 60, 85, 0.08), transparent 72%),
    linear-gradient(168deg, #fdf9f3 0%, #fbf6f0 52%, #f5ede2 100%);
}

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

.o1 {
  width: 40vw;
  height: 34vw;
  left: -12vw;
  top: 14vh;
  background: rgba(232, 101, 127, 0.16);
}

.o2 {
  width: 32vw;
  height: 28vw;
  right: -9vw;
  top: 48vh;
  background: rgba(216, 177, 132, 0.24);
  animation-duration: 46s;
  animation-delay: -12s;
}

.o3 {
  width: 26vw;
  height: 24vw;
  left: 36vw;
  top: 80vh;
  background: rgba(232, 101, 127, 0.1);
  animation-duration: 52s;
  animation-delay: -24s;
}

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

.grid-lines {
  position: absolute;
  inset: -60px;
  background-image:
    linear-gradient(90deg, rgba(26, 16, 22, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(26, 16, 22, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  -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 46s linear infinite;
}

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

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

.petals {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 24%, rgba(232, 101, 127, 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 12%, rgba(216, 177, 132, 0.7), transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 62%, rgba(232, 101, 127, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 78%, rgba(216, 177, 132, 0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 42%, rgba(232, 101, 127, 0.35), transparent 100%);
  background-size: 320px 320px, 420px 420px, 380px 380px, 460px 460px, 300px 300px;
  animation: petalDrift 60s linear infinite;
  opacity: 0.7;
}

@keyframes petalDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-60px, -120px, 0); }
}

/* ---------- 顶部细条 ---------- */
.rail {
  background: #0f070d;
  color: rgba(240, 217, 184, 0.5);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(216, 177, 132, 0.12);
}

.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(240, 217, 184, 0.28);
}

/* ---------- 吸顶导航 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--hd);
  background: rgba(251, 246, 240, 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, 249, 0.97);
  box-shadow: 0 10px 28px rgba(26, 16, 22, 0.1);
}

.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(--gold);
  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: 18px;
}

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

.hd-nav a::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 8px;
  height: 1px;
  background: var(--rose);
  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: 6px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  flex: none;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  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: 700;
  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-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  box-shadow: 4px 4px 0 var(--gold);
}

.btn-rose:hover {
  background: #db526e;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--gold);
}

.btn-rose:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #2a1421;
  border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(232, 101, 127, 0.9);
}

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

.btn-ghost {
  border-color: rgba(240, 217, 184, 0.4);
  color: var(--gold-2);
}

.btn-ghost:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--plum);
}

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

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f7ede8;
  padding: 24px 0 0;
  background:
    radial-gradient(720px 560px at 86% 4%, rgba(232, 101, 127, 0.28), transparent 64%),
    radial-gradient(520px 440px at 4% 90%, rgba(216, 177, 132, 0.14), transparent 70%),
    linear-gradient(165deg, #2a1421 0%, #170b13 54%, #321826 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(240, 217, 184, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(240, 217, 184, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(216, 177, 132, 0.45);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}

.eyebrow span {
  color: var(--rose-2);
  font-size: 8px;
}

.hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(31px, 8.2vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.hero h1 em {
  font-style: normal;
  color: var(--rose-2);
  border-bottom: 0.09em solid var(--gold);
}

.hero-lead {
  max-width: 33em;
  margin-bottom: 18px;
  color: rgba(247, 237, 232, 0.74);
  font-size: 14.5px;
}

.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(216, 177, 132, 0.22);
  border-left: 1px solid rgba(216, 177, 132, 0.22);
}

.hero-stats div {
  padding: 9px 10px;
  border-right: 1px solid rgba(216, 177, 132, 0.22);
  border-bottom: 1px solid rgba(216, 177, 132, 0.22);
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(247, 237, 232, 0.58);
}

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

.art-code {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(240, 217, 184, 0.5);
}

.art-frame {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(216, 177, 132, 0.65);
  background: var(--plum);
  box-shadow: 10px 10px 0 rgba(232, 101, 127, 0.45);
}

.art-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.art-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(216, 177, 132, 0.6);
  background: rgba(20, 10, 18, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
}

.quote-card {
  position: absolute;
  z-index: 3;
  left: -10px;
  bottom: 18px;
  max-width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 177, 132, 0.5);
  background: rgba(20, 10, 18, 0.92);
  box-shadow: 4px 4px 0 rgba(232, 101, 127, 0.35);
}

.quote-line {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.quote-from {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(216, 177, 132, 0.7);
}

.art-dot {
  position: absolute;
  right: 4px;
  bottom: -10px;
  width: 8px;
  height: 8px;
  background: var(--rose);
}

.hero-edge {
  position: relative;
  z-index: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 26%, var(--rose) 26%, var(--rose) 58%, transparent 58%);
}

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--gold);
  color: var(--plum);
}

.marquee-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  animation: marqueeMove 50s linear infinite;
}

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

@keyframes marqueeMove {
  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: 24px;
}

.kicker {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--rose-deep);
}

.kicker::before {
  content: "— ";
  color: var(--gold);
}

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

.sec h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 5.8vw, 35px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.sec h2 em {
  font-style: normal;
  color: var(--rose-deep);
  background: linear-gradient(transparent 72%, rgba(216, 177, 132, 0.55) 72%);
  padding: 0 0.03em;
}

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

/* ---------- 01 六项 ---------- */
.grid6 {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.g-card {
  position: relative;
  padding: 18px 16px 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 253, 249, 0.65);
  transition: background 0.16s ease;
}

.g-card:hover {
  background: var(--paper);
}

.g-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.g-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.note-line {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 2px solid var(--rose);
  background: rgba(232, 101, 127, 0.06);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 02 演示 ---------- */
.sec-demo {
  position: relative;
  overflow: hidden;
  border-bottom-color: rgba(216, 177, 132, 0.2);
  background:
    radial-gradient(600px 460px at 92% 6%, rgba(232, 101, 127, 0.22), transparent 66%),
    linear-gradient(160deg, #22101b 0%, #150a12 58%, #2b1522 100%);
  color: #f7ede8;
}

.sec-demo .kicker {
  color: var(--gold);
}

.sec-demo h2 {
  color: #fff;
}

.sec-demo h2 em {
  color: var(--rose-2);
  background: linear-gradient(transparent 72%, rgba(216, 177, 132, 0.35) 72%);
}

.sec-demo .sec-lead {
  color: rgba(247, 237, 232, 0.62);
}

.demo {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 177, 132, 0.32);
  background: rgba(20, 10, 18, 0.55);
}

.demo-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.demo-scene {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(247, 237, 232, 0.9);
}

.demo-hint {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(240, 217, 184, 0.5);
}

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

.choice {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 177, 132, 0.32);
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: rgba(247, 237, 232, 0.78);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.choice:hover {
  border-color: var(--gold);
}

.choice.is-active {
  border-color: var(--rose);
  background: rgba(232, 101, 127, 0.16);
  color: #fff;
}

.chat-who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 177, 132, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.chat-ava {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid rgba(216, 177, 132, 0.45);
  overflow: hidden;
}

.chat-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-sub {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(240, 217, 184, 0.5);
}

.replies {
  padding: 12px 0 4px;
}

.reply {
  padding: 12px 13px;
  border: 1px solid rgba(216, 177, 132, 0.22);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 237, 232, 0.9);
}

.reply + .reply {
  margin-top: 8px;
}

.demo-ready .reply {
  display: none;
}

.demo-ready .reply.is-active {
  display: block;
  animation: replyIn 0.25s ease both;
}

@keyframes replyIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.demo-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: rgba(240, 217, 184, 0.58);
}

/* ---------- 03 创作 ---------- */
.create-grid {
  display: grid;
  gap: 12px;
}

.c-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-top: 2px solid var(--ink);
  background: rgba(255, 253, 249, 0.72);
}

.c-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 800;
}

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

.c-card > p:not(.c-meta) {
  margin-bottom: 12px;
}

.c-card .c-meta {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  word-break: keep-all;
}

.tip-box {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid var(--gold);
  background:
    linear-gradient(120deg, rgba(216, 177, 132, 0.16), transparent 62%),
    var(--paper);
}

.tip-title {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

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

/* ---------- 04 界面 ---------- */
.sec-screens {
  background: rgba(255, 253, 249, 0.45);
}

.gallery-wrap {
  width: 100%;
}

.gallery {
  display: flex;
  align-items: flex-end;
  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-tall {
  width: 232px;
}

.g-wide {
  width: 340px;
}

.g-square {
  width: 250px;
}

.g-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--plum);
  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(--rose);
}

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

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

/* ---------- 05 三步 ---------- */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.step {
  position: relative;
  padding: 16px 0 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-n {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

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

.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.04em;
  color: var(--muted);
  word-break: keep-all;
}

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

.mid-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

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

/* ---------- 06 用户 ---------- */
.sec-voices {
  background: rgba(255, 253, 249, 0.45);
}

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

.voice {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.voice img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  object-fit: cover;
  margin-bottom: 10px;
}

.voice blockquote {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.voice blockquote::before {
  content: "“";
  color: var(--rose);
  font-size: 20px;
  margin-right: 1px;
}

.voice figcaption {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 07 FAQ ---------- */
.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: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  line-height: 20px;
  border: 1px solid var(--gold);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--rose-deep);
}

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

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

/* ---------- 08 词 ---------- */
.words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.words a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  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;
}

.words a:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--gold-2);
}

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

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

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

/* ---------- 深色 CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding: 42px 0 46px;
  background:
    radial-gradient(540px 420px at 88% 4%, rgba(232, 101, 127, 0.28), transparent 66%),
    radial-gradient(460px 360px at 6% 96%, rgba(216, 177, 132, 0.16), transparent 70%),
    linear-gradient(160deg, #2a1421 0%, #140a12 60%, #311725 100%);
  color: #fff;
}

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

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

.final-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(216, 177, 132, 0.6);
}

.final h2 {
  font-size: clamp(26px, 6.6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.final h2 em {
  font-style: normal;
  color: var(--rose-2);
  border-bottom: 0.07em solid var(--gold);
}

.final-sub {
  max-width: 30em;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: rgba(247, 237, 232, 0.68);
}

.final-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(216, 177, 132, 0.45);
}

/* ---------- 页脚 ---------- */
.foot {
  padding: 30px 0 26px;
  background: #0f070d;
  border-top: 1px solid rgba(216, 177, 132, 0.12);
  color: rgba(247, 237, 232, 0.62);
}

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

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

.foot-brand .brand-tile {
  border-color: rgba(216, 177, 132, 0.3);
}

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

.foot-desc {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(247, 237, 232, 0.4);
}

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

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12.5px;
  text-decoration: none;
  color: rgba(247, 237, 232, 0.7);
}

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

.foot-note {
  padding-top: 13px;
  border-top: 1px solid rgba(216, 177, 132, 0.12);
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(247, 237, 232, 0.52);
}

.foot-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(247, 237, 232, 0.44);
}

/* ---------- 底部条 ---------- */
.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(--ink);
  background: rgba(255, 253, 249, 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;
  color: var(--muted);
  white-space: nowrap;
}

.dock .btn {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--gold);
}

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  background: rgba(10, 5, 9, 0.62);
  -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(--plum);
  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: 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(--rose-deep);
}

.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(10, 5, 9, 0.92);
}

.lightbox[hidden] {
  display: none;
}

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

.lb-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 177, 132, 0.5);
  background: rgba(216, 177, 132, 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,
  .marquee-row,
  .petals,
  .choice {
    animation: none !important;
  }

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

  .btn,
  .g-btn {
    transition: none;
  }
}

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

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

@media (min-width: 560px) {
  .grid6 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--ink);
  }

  .step {
    padding: 18px 16px;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

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

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

  .g-tall {
    width: 250px;
  }

  .g-wide {
    width: 380px;
  }

  .g-square {
    width: 270px;
  }
}

@media (min-width: 768px) {
  :root {
    --hd: 66px;
    --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: 34px;
  }

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

  .hero-art {
    max-width: 340px;
    padding-top: 22px;
  }

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

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

  .hero-stats dt {
    font-size: 16px;
  }

  .sec {
    padding: 58px 0;
  }

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

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

  .grid6 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .g-card {
    padding: 22px 20px 20px;
  }

  .g-card h3 {
    font-size: 19px;
  }

  .gallery {
    gap: 16px;
    padding: 0 26px 8px;
  }

  .demo-scene {
    font-size: 17px;
  }

  .reply {
    font-size: 16px;
  }

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

  .faq {
    break-inside: avoid;
  }

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

  .faq summary::after {
    top: 13px;
  }

  .faq p {
    padding-right: 42px;
    font-size: 13.5px;
  }

  .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: 18px;
  }

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

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

  .foot-note {
    max-width: 62em;
  }
}

@media (min-width: 1100px) {
  .gallery {
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    gap: 20px;
  }

  .g-tall {
    width: 264px;
  }

  .g-wide {
    width: 410px;
  }

  .g-square {
    width: 292px;
  }

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