/* 幻言官网。深色、电影感：大号宋体标题，雨夜的紫和玫瑰色当光源，会员用金色。
   颜色和 App 的深色主题同一套（apps/mobile/lib/ui/theme/tokens.dart），只是底色更深一点。 */

@font-face {
  font-family: "HY Display";
  src: url("/assets/fonts/display-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "HY Display";
  src: url("/assets/fonts/display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #08070d;
  --bg-2: #0c0b12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f4f1fb;
  --ink-2: #bdb7cf;
  --ink-3: #8a849d;
  --violet: #a08bff;
  --violet-soft: rgba(160, 139, 255, 0.16);
  --rose: #e47ccf;
  --gold: #f3cf8a;
  --danger: #ff6b81;
  --success: #4cd7a0;
  --brand: linear-gradient(120deg, #8c74ff 0%, #b979ec 52%, #e47ccf 100%);
  --brand-text: linear-gradient(100deg, #c3b4ff 0%, #f0a6e0 45%, #ffe0b0 62%, #f0a6e0 80%, #c3b4ff 100%);
  --gold-grad: linear-gradient(135deg, #f8dfa6 0%, #d8a257 100%);
  --font-display: "HY Display", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-latin: "Instrument Serif", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: max(20px, env(safe-area-inset-left));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* 样式里写了 display 的元素，hidden 也要能藏住（停售的套餐、没有年付时的切换按钮） */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* 手机浏览器不认 body 上的 overflow-x，装饰图形伸出屏幕时整页会左右晃：在 main 上裁掉（clip 不影响 sticky） */
main { overflow-x: hidden; overflow-x: clip; }

/* 胶片颗粒，整页叠一层。 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(160, 139, 255, 0.4); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.serif { font-family: var(--font-display); font-weight: 900; }
.serif-500 { font-family: var(--font-display); font-weight: 500; }

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

/* ---------- 按钮 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 34px -14px rgba(185, 121, 236, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(185, 121, 236, 1), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
/* 鼠标移上去时扫过一道光 */
.btn-primary::after, .btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover::after, .btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); }

.btn-gold {
  color: #2a1a06;
  background: var(--gold-grad);
  box-shadow: 0 14px 34px -16px rgba(216, 162, 87, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn.is-off { opacity: 0.5; pointer-events: none; }

/* ---------- 顶栏 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(8, 7, 13, 0.74);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(140, 116, 255, 0.7); }
.brand-name { font-size: 23px; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; transition: color 0.25s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 15px; color: var(--ink-2); transition: color 0.25s; }
.nav-login:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.nav-toggle .i { width: 20px; height: 20px; }
.nav-menu {
  display: grid;
  padding: 8px var(--gutter) 22px;
  border-top: 1px solid var(--line);
}
.nav-menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.nav-menu a:last-child { border-bottom: 0; color: var(--violet); }

/* ---------- 进场动画（没有 JS 时全部直接显示） ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 序幕 ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(760px, 100svh);
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 34% at 70% 34%, rgba(140, 116, 255, 0.42), transparent 70%),
    radial-gradient(30% 30% at 88% 72%, rgba(228, 124, 207, 0.26), transparent 70%),
    radial-gradient(34% 30% at 18% 86%, rgba(228, 124, 207, 0.16), transparent 70%),
    radial-gradient(26% 24% at 40% 12%, rgba(243, 207, 138, 0.08), transparent 70%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-glyph {
  position: absolute;
  right: -4vw;
  top: 52%;
  transform: translateY(-50%);
  font-size: min(92vh, 1000px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.075);
  user-select: none;
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.hero-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-size: 13.5px;
  letter-spacing: 0.08em;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  animation: ping 2.4s var(--ease) infinite;
}

.hero-title {
  margin: 30px 0 28px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(76px, 10.6vw, 172px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.hero-title .line { display: block; }
.shine {
  font-style: normal;
  background: var(--brand-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
  filter: drop-shadow(0 0 34px rgba(200, 140, 255, 0.32));
}
.hero-lead {
  max-width: 31em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.85;
  color: var(--ink-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1800px;
  padding: 20px 0;
}
.hero-vertical {
  position: absolute;
  right: calc(var(--gutter) - 8px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.55em;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- 手机样机（照着 App 的聊天页画的） ---------- */

.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 320 / 680;
  margin: 0;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(155deg, #34304a 0%, #0f0d17 38%, #1b1828 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 60px 120px -30px rgba(120, 86, 255, 0.55),
    0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.hero .phone {
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(1.2deg);
  animation: float 9s ease-in-out infinite;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 5;
  width: 92px;
  height: 27px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.chat-art {
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: center 30% / cover no-repeat;
  filter: blur(9px) saturate(1.15) brightness(0.7);
  transition: opacity 0.8s;
}
.chat-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 18, 0.62) 0%, rgba(12, 11, 18, 0.3) 34%, rgba(12, 11, 18, 0.86) 100%);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 48px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 11, 18, 0.32);
}
.chat-back, .chat-more {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
}
.chat-back .i, .chat-more .i { width: 15px; height: 15px; }
.chat-more { margin-left: auto; }
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: center 72% / cover;
  box-shadow: 0 0 0 2px #0c0b12, 0 0 0 3.5px #b48cff;
  transition: background-image 0.6s;
}
.chat-who { display: grid; line-height: 1.25; }
.chat-who b { font-size: 15px; }
.chat-who small { font-size: 11px; color: var(--ink-3); }
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 11px 6px;
  overflow: hidden;
}

.msg { max-width: 88%; }
.msg p { font-size: 13.5px; line-height: 1.72; }
.msg-ai {
  align-self: flex-start;
  padding: 10px 13px;
  border-radius: 17px 17px 17px 6px;
  background: rgba(26, 25, 37, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f7ebff;
}
.msg-ai i { color: #a7a1bc; }
.msg-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 17px 17px 6px 17px;
  background: linear-gradient(135deg, #6f5bea, #9e5ed6);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(111, 91, 234, 0.9);
}
.msg-tools { display: flex; gap: 8px; }
.recall, .regen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.recall .i, .regen .i { width: 13px; height: 13px; }
.recall {
  color: #d3c8ff;
  background: rgba(160, 139, 255, 0.16);
  border: 1px solid rgba(160, 139, 255, 0.4);
}
.regen { color: var(--ink-2); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.06); }
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin: 8px 10px 14px;
  padding: 0 6px 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--ink-3);
}
.send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-2);
}
.send .i { width: 15px; height: 15px; }

/* 打字机演示里的状态 */
.msg.is-new { animation: pop 0.5s var(--ease) both; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7a1bc;
  animation: dots 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--violet);
  animation: blink 1s steps(1) infinite;
}

/* 浮在手机旁边的两张卡片 */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(24, 22, 34, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  transition: border-color 0.6s, box-shadow 0.6s, opacity 0.6s, transform 0.6s var(--ease);
}
.float-memory {
  left: -6%;
  top: 14%;
  width: 236px;
  transform: rotate(-4deg);
  animation: float2 8s ease-in-out infinite;
}
.float-memory p { margin: 9px 0 8px; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.float-meta { font-size: 11.5px; color: var(--ink-3); }
.float-memory.is-lit {
  border-color: rgba(243, 207, 138, 0.6);
  box-shadow: 0 0 0 1px rgba(243, 207, 138, 0.35), 0 0 46px -6px rgba(243, 207, 138, 0.45), 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}
.float-memory.is-swap { opacity: 0; }
.float-import {
  right: -2%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float2 9s ease-in-out -3s infinite;
}
.float-import > .i {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.float-import div { display: grid; line-height: 1.4; }
.float-import b { font-size: 13.5px; }
.float-import span { font-size: 11.5px; color: var(--ink-3); }

/* 记忆分类的颜色和 App 里一样（apps/mobile/lib/ui/memory/memory_kinds.dart），文字提亮一点。 */
.kind {
  display: inline-block;
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.7;
}
.kind-relation { color: #ff7d98; background: rgba(240, 86, 122, 0.16); }
.kind-promise { color: #f6bf62; background: rgba(242, 169, 59, 0.16); }
.kind-like { color: #5fd6a8; background: rgba(63, 191, 143, 0.16); }
.kind-hint { color: #4fd3d8; background: rgba(46, 191, 196, 0.16); }
.kind-state { color: #7ab6ff; background: rgba(79, 157, 247, 0.16); }
.kind-event { color: #b9a2ff; background: rgba(155, 123, 255, 0.18); }

/* ---------- 滚动的关键词带 ---------- */

.ticker {
  position: relative;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-row {
  display: flex;
  width: max-content;
  font-size: 21px;
  color: var(--ink-2);
  animation: marquee 60s linear infinite;
}
.ticker-row span { display: inline-flex; align-items: center; }
.ticker-row span::after {
  content: "✦";
  margin-inline: 30px;
  font-size: 13px;
  color: var(--violet);
}

/* ---------- 每一幕的通用排版 ---------- */

.act { position: relative; padding: clamp(80px, 8.5vw, 124px) 0; }
.act-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.act-head-center { max-width: 1000px; margin-inline: auto; text-align: center; }
.act-head-center .act-lead { margin-inline: auto; }
.act-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 13.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}
.act-no {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  background: var(--brand-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag-gold {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #2a1a06;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.act-title {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5.8vw, 86px);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
/* 大标题只在标点和 <br> 处换行，不把一个词拆到两行；实在放不下才随便断 */
.hero-title, .act-title, .finale-title, .lost-title, .doc-title { word-break: keep-all; overflow-wrap: anywhere; }
.act-spark { width: 22px; height: 22px; color: #eaa6e4; filter: drop-shadow(0 0 10px rgba(228, 124, 207, 0.55)); }
.act-lead {
  max-width: 36em;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.9;
  color: var(--ink-2);
  text-wrap: pretty;
}
.note {
  max-width: 780px;
  margin-top: 30px;
  padding: 15px 20px;
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(243, 207, 138, 0.05);
  font-size: 14.5px;
  color: var(--ink-2);
}
.note-center {
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- 第一幕：拼贴卡片 ---------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(160, 139, 255, 0.16), transparent);
  pointer-events: none;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile-wide { grid-column: span 2; }
.tile h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 700; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 13, 0.6);
}
.tile-demo p { color: #f7ebff; font-size: 15px; line-height: 1.8; }
.tile-demo i { color: #a7a1bc; }
.demo-styled .msg { max-width: 100%; }
.demo-styled .msg p { font-size: 15px; }
.versions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.versions b { color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; }
.v-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-2);
}
.v-btn .i { width: 13px; height: 13px; }
.versions .regen { margin-left: auto; }
.demo-bg { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
.bg-thumb {
  position: relative;
  width: 66px;
  aspect-ratio: 300 / 460;
  border-radius: 14px;
  background: center / cover;
  border: 2px solid transparent;
  opacity: 0.75;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.bg-thumb.is-on {
  border-color: var(--violet);
  opacity: 1;
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 16px 30px -14px rgba(160, 139, 255, 0.9);
}
.demo-chips { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 10px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: var(--ink-2);
}
.chip em { margin-right: 6px; font-style: normal; color: var(--ink-3); }
.chip.is-on { color: #e1d8ff; border-color: rgba(160, 139, 255, 0.55); background: var(--violet-soft); }

/* ---------- 左右分栏的幕 ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}
.split-reverse .split-copy { order: 2; }
.split-copy .act-title { font-size: clamp(38px, 4.4vw, 64px); }
.spec { margin-top: 36px; }
.spec li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .i {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: var(--violet-soft);
  color: var(--violet);
}
.spec div { display: grid; line-height: 1.5; }
.spec b { font-size: 16px; }
.spec span { font-size: 14px; color: var(--ink-3); }
.aside {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.aside .i { color: var(--gold); }

.split-visual { position: relative; }
[data-import] { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.card-fan { position: relative; width: 100%; height: 330px; }
.mini-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 168px;
  height: 258px;
  margin-left: -84px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.95);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 1.1s var(--ease);
}
.mini-card:nth-child(3) { z-index: 2; box-shadow: 0 30px 70px -20px rgba(140, 116, 255, 0.6); }
.mini-card span { position: absolute; inset: 0; background: center / cover; }
.mini-card b { position: absolute; left: 14px; bottom: 12px; font-size: 21px; }
/* 后面几张被挡住一半，名字只给最前面那张 */
.mini-card:not(:nth-child(3)) b { display: none; }
.js [data-import]:not(.is-in) .mini-card { transform: translate(0, 30px) rotate(0); }
.mini-card:nth-child(1), .mini-card:nth-child(5) { transition-delay: 0.15s; }
.mini-card:nth-child(2), .mini-card:nth-child(4) { transition-delay: 0.05s; }

.import-panel {
  position: relative;
  z-index: 3;
  width: min(430px, 100%);
  margin-top: -24px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: rgba(24, 22, 34, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.import-head { display: flex; align-items: center; gap: 10px; }
.import-head .i { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--brand); color: #fff; }
.import-head b { font-size: 15px; }
.import-head span { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.import-bar { height: 6px; margin: 16px 0 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.import-bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--brand); transition: width 2.2s var(--ease) 0.6s; }
.js [data-import]:not(.is-in) .import-bar span { width: 0; }
.import-status { font-size: 13.5px; color: var(--success); }

/* ---------- 第三幕：记忆 ---------- */

.act-memory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 45% at 50% 30%, rgba(140, 116, 255, 0.12), transparent 70%);
}
.memory-stage {
  padding: clamp(20px, 3vw, 40px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 0;
  top: 6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(160, 139, 255, 0.5), rgba(228, 124, 207, 0.5) 70%, rgba(243, 207, 138, 0.7));
}
.timeline li { position: relative; display: grid; padding-top: 28px; line-height: 1.5; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: var(--bg);
}
.timeline b { font-size: 14.5px; }
.timeline span { font-size: 13.5px; color: var(--ink-3); }
.timeline .is-key::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.timeline .is-now::before { border: 0; background: var(--brand); box-shadow: 0 0 18px rgba(228, 124, 207, 0.8); }
.timeline .is-now b { color: #f0a6e0; }

.memory-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; }
.memory-book {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 13, 0.62);
}
.mb-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; }
.mb-head .i { color: var(--violet); }
.mb-head b { font-size: 15px; }
.mb-head span { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.mb-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  transition: border-color 0.6s, background-color 0.6s, color 0.6s, box-shadow 0.6s, transform 0.6s var(--ease);
}
.mb-list li.is-lit {
  border-color: rgba(160, 139, 255, 0.55);
  background: rgba(160, 139, 255, 0.12);
  color: var(--ink);
  box-shadow: 0 0 34px -8px rgba(160, 139, 255, 0.55);
  transform: translateX(6px);
}
.memory-chat { display: flex; flex-direction: column; gap: 12px; padding: 6px; }
.memory-chat .msg { max-width: 100%; }
.memory-chat .msg p { font-size: 14.5px; }
.recall-line { align-self: flex-start; transition: opacity 0.6s, transform 0.6s var(--ease); }
.recall-line .recall { height: 30px; padding: 0 12px; font-size: 12.5px; box-shadow: 0 0 30px -6px rgba(160, 139, 255, 0.7); }
.js [data-memory]:not(.is-recalled) .recall-line { opacity: 0; transform: translateY(8px) scale(0.94); }
.js [data-memory]:not(.is-replied) .memory-chat .msg-ai { opacity: 0; transform: translateY(10px); }
.memory-chat .msg-ai { transition: opacity 0.7s, transform 0.7s var(--ease); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.pillar { padding-top: 24px; border-top: 1px solid var(--line-2); }
.pillar .i { width: 30px; height: 30px; color: var(--violet); }
.pillar h3 { margin: 16px 0 8px; font-size: 21px; }
.pillar p { font-size: 15px; color: var(--ink-2); }

/* ---------- 第四幕：尺度 ---------- */

.act-freedom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 50% at 26% 50%, rgba(228, 124, 207, 0.12), transparent 70%);
}
.promises { margin-top: 34px; }
.promises li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises b { font-size: 17px; }
.promises span { font-size: 15px; color: var(--ink-2); }

.switch-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(32, 28, 44, 0.9), rgba(20, 18, 28, 0.9));
  box-shadow: 0 50px 100px -50px rgba(228, 124, 207, 0.55);
}
.sc-row { display: flex; align-items: center; gap: 14px; }
.sc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--violet);
}
.sc-icon .i { width: 22px; height: 22px; }
.sc-text { display: grid; line-height: 1.5; }
.sc-text b { font-size: 17px; }
.sc-text span { font-size: 13.5px; color: var(--ink-3); }
.toggle {
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
  margin-left: auto;
  border-radius: 16px;
  background: var(--brand);
  transition: background 0.4s;
}
.toggle span {
  position: absolute;
  top: 3px;
  left: 27px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: left 0.4s var(--ease);
}
.toggle[aria-checked="false"] { background: rgba(255, 255, 255, 0.16); }
.toggle[aria-checked="false"] span { left: 3px; }
.sc-state { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.sc-off { display: none; align-items: center; gap: 8px; color: var(--success); }
.switch-card.is-off .sc-on { display: none; }
.switch-card.is-off .sc-off { display: flex; }
.redline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 107, 129, 0.32);
  background: rgba(255, 107, 129, 0.07);
  font-size: 14.5px;
  line-height: 1.75;
  color: #f4cdd3;
}
.redline .i { width: 22px; height: 22px; margin-top: 2px; color: var(--danger); }
.redline b { color: #ff8b9c; }

/* ---------- 第五幕：多端 ---------- */

.devices {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 0 20px;
}
.laptop { width: min(920px, 88%); margin-right: 8%; }
.laptop-screen {
  border: 11px solid #17151f;
  border-bottom-width: 16px;
  border-radius: 20px 20px 4px 4px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 70px 120px -50px rgba(140, 116, 255, 0.55);
}
.laptop-screen img { width: 100%; height: auto; }
.laptop-base {
  position: relative;
  height: 16px;
  margin: 0 -7%;
  border-radius: 2px 2px 20px 20px;
  background: linear-gradient(180deg, #34303f, #16141d);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.9);
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 6px;
  border-radius: 0 0 8px 8px;
  background: #0f0d14;
  transform: translateX(-50%);
}
.phone-sm {
  position: absolute;
  right: 2%;
  bottom: -10px;
  width: 238px;
  padding: 8px;
  border-radius: 40px;
}
.phone-sm .phone-screen { border-radius: 33px; }
.phone-sm .phone-screen::before { top: 8px; width: 70px; height: 21px; }
.phone-sm .chat-top { padding-top: 36px; }
.phone-sm .msg p { font-size: 12px; }
.phone-sm .chat-input { height: 38px; font-size: 11.5px; }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- 幕间：广场封面墙 ---------- */

.act-square { padding-bottom: clamp(80px, 9vw, 130px); }
.wall {
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding-block: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wall-row { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row-reverse { animation-direction: reverse; animation-duration: 80s; }
.wall:hover .wall-row { animation-play-state: paused; }
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 228px;
  height: 344px;
  flex: none;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--art) center / cover;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.cover:hover { transform: translateY(-6px); }
.cover::before {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 13, 0.7));
}
.cover > * { position: relative; }
.cover b { font-size: 25px; line-height: 1.2; }
.cover span { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.cover small { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; }
.cover em {
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}
.likes { margin-left: auto; font-style: normal; color: #ff7c9c; font-size: 12.5px; }

/* ---------- 对比表 ---------- */

.compare {
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.cmp-row { display: grid; grid-template-columns: 0.9fr 1.15fr 1.15fr 1.3fr; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  font-size: 15px;
  color: var(--ink-2);
}
.cmp-row > [role="rowheader"] { color: var(--ink); font-weight: 600; }
.cmp-head > span { padding-block: 18px; font-size: 13.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.cmp-row > .cmp-us {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(90deg, rgba(140, 116, 255, 0.12), rgba(228, 124, 207, 0.07));
  border-inline: 1px solid rgba(160, 139, 255, 0.3);
}
.cmp-head > .cmp-us { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: 0.04em; }
.cmp-head img { border-radius: 6px; }
.cmp-row b { font-weight: 800; color: var(--gold); }
.i.ok { color: var(--success); }
.i.no { color: var(--danger); opacity: 0.85; }

/* ---------- 会员 ---------- */

.act-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 40% at 72% 60%, rgba(243, 207, 138, 0.07), transparent 70%);
}
.period {
  display: flex;
  width: fit-content;
  margin: 0 auto 44px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.period button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background-color 0.3s, color 0.3s;
}
.period small { font-size: 12px; font-weight: 700; color: var(--gold); }
.period [aria-checked="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.plan h3 { min-height: 40px; display: flex; align-items: center; font-size: 22px; }
.plan-for { margin: 6px 0 22px; font-size: 14px; color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: 2px; }
.price .cur { font-size: 22px; color: var(--ink-2); }
.price .num { font-family: var(--font-latin); font-size: 80px; line-height: 0.95; letter-spacing: -0.02em; }
.price .per { margin-left: 8px; font-size: 15px; color: var(--ink-3); }
.price-alt { min-height: 22px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.plan ul { flex: 1; margin: 22px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.plan li .i { margin-top: 4px; color: var(--violet); }
.plan .btn { width: 100%; }
.badge { font-family: var(--font-latin); font-style: italic; font-size: 38px; font-weight: 400; line-height: 1; }
.badge-plus { background: linear-gradient(100deg, #c3b4ff, #f0a6e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-pro { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-plus {
  border-color: rgba(160, 139, 255, 0.34);
  background: linear-gradient(180deg, rgba(140, 116, 255, 0.11), rgba(255, 255, 255, 0.02));
}
.plan-pro {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #1a1520, #110e16) padding-box,
    linear-gradient(140deg, #f8dfa6, #d8a257 42%, rgba(216, 162, 87, 0.18) 80%) border-box;
  box-shadow: 0 50px 100px -50px rgba(216, 162, 87, 0.55);
}
.plan-pro li .i { color: var(--gold); }
.plan-flag {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #2a1a06;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.act-pricing .note-center { margin-top: 36px; max-width: 760px; font-size: 14px; }

/* ---------- 下载 ---------- */

.downloads { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.dl:hover { border-color: var(--line-2); transform: translateY(-4px); }
.dl > .i { width: 32px; height: 32px; color: var(--ink); }
.dl h3 { margin-top: 16px; font-size: 19px; }
.dl p { margin: 2px 0 20px; font-size: 13.5px; color: var(--ink-3); }
.dl .btn { margin-top: auto; }
.help {
  max-width: 820px;
  margin: 30px auto 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-2);
}
.help summary::-webkit-details-marker { display: none; }
.help summary .i { transition: transform 0.3s; }
.help[open] summary .i { transform: rotate(180deg); }
.help ul { padding: 0 22px 18px; }
.help li { padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.help b { color: var(--ink); }

/* ---------- 问答 ---------- */

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 64px; align-items: start; }
.faq-wrap .act-head { position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #e4dcff; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { max-width: 42em; padding: 0 0 26px; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 开场 ---------- */

.finale {
  position: relative;
  padding: clamp(120px, 14vw, 200px) 0 clamp(240px, 26vw, 330px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.finale-bg { position: absolute; inset: 0; z-index: -1; }
.finale-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 55% at 50% 100%, rgba(140, 116, 255, 0.38), transparent 72%),
    radial-gradient(30% 40% at 20% 90%, rgba(228, 124, 207, 0.2), transparent 70%),
    radial-gradient(30% 40% at 80% 90%, rgba(243, 207, 138, 0.1), transparent 70%);
}
.cast {
  position: absolute;
  left: 50%;
  bottom: -70px;
  display: flex;
  align-items: flex-end;
  transform: translateX(-50%);
}
.cast span {
  width: 200px;
  height: 306px;
  margin-inline: -18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--art) center / cover;
  opacity: 0.4;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
}
.cast span:nth-child(1) { transform: rotate(-12deg) translateY(40px); }
.cast span:nth-child(2) { transform: rotate(-6deg) translateY(12px); }
.cast span:nth-child(3) { z-index: 1; opacity: 0.6; transform: translateY(-6px); }
.cast span:nth-child(4) { transform: rotate(6deg) translateY(12px); }
.cast span:nth-child(5) { transform: rotate(12deg) translateY(40px); }
.finale-title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8.6vw, 136px);
  line-height: 1.04;
}
.finale .act-lead { margin-inline: auto; }
.finale .hero-cta { justify-content: center; }

/* ---------- 页脚 ---------- */

.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; }
.footer-col h3 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-2); }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- 协议页 ---------- */

.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 820px; }
.doc-title { margin-bottom: 12px; font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; }
.doc-meta { margin-bottom: 40px; font-size: 14px; color: var(--ink-3); }
.doc-body { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.doc-body h2, .doc-body h3, .doc-body h4 { margin: 40px 0 12px; color: var(--ink); line-height: 1.4; }
.doc-body h2 { font-size: 26px; }
.doc-body h3 { font-size: 20px; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 1.3em; list-style: disc; }
.doc-body li { margin: 4px 0; }
.doc-body li::marker { color: var(--violet); }
.doc-body strong { color: var(--ink); }
.doc-body > h2:first-child { display: none; }
.doc-loading { color: var(--ink-3); }

/* ---------- 404 ---------- */

.lost {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  text-align: center;
  overflow: hidden;
}
.lost-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(140, 116, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, rgba(228, 124, 207, 0.14), transparent 70%);
}
.lost-code {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: clamp(90px, 16vw, 200px);
  line-height: 1;
  background: var(--brand-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.lost-title {
  margin: 8px 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.08;
}
.lost .hero-cta { justify-content: center; }

/* ---------- 动画 ---------- */

@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
@keyframes shine { to { background-position: -220% 0; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes float { 0%, 100% { transform: rotateY(-16deg) rotateX(7deg) rotateZ(1.2deg) translateY(0); } 50% { transform: rotateY(-13deg) rotateX(5deg) rotateZ(0.6deg) translateY(-14px); } }
@keyframes float2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes dots { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 平板和手机 ---------- */

@media (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .downloads { grid-template-columns: repeat(3, 1fr); }
  .float-memory { left: -2%; }
}

@media (max-width: 980px) {
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-vertical { display: none; }
  .hero-glyph { right: 50%; transform: translate(50%, -50%); top: 64%; font-size: 120vw; }
  .hero .phone { transform: none; animation: none; }
  /* 别挡住聊天页顶上的名字：放到头像下面那片空着的背景上 */
  .float-memory { left: 0; top: 21%; }
  .float-import { right: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
  .memory-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
  .faq-wrap .act-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .laptop { margin-right: 18%; }
  .phone-sm { width: 190px; }
}

@media (max-width: 680px) {
  :root { --gutter: max(18px, env(safe-area-inset-left)); }
  .brand-name { font-size: 21px; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 100px; }
  .hero-title { font-size: clamp(64px, 19vw, 96px); margin: 24px 0 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { gap: 6px 16px; font-size: 13px; }
  .hero-stage { padding-top: 40px; }
  .phone { width: 290px; }
  .float-memory { width: 200px; top: 23%; left: -2%; padding: 12px 14px; }
  .float-memory p { font-size: 12.5px; }
  .float-import { bottom: 6%; right: -2%; padding: 10px 12px; }
  .float-import > .i { width: 32px; height: 32px; padding: 7px; }
  .ticker-row { font-size: 17px; }
  .act-label { letter-spacing: 0.16em; }
  /* 一行最长九个字（「比自己搭酒馆省心，」），320 宽的手机也放得下 */
  .act-title, .split-copy .act-title { font-size: clamp(30px, 9.4vw, 44px); }
  .finale-title { font-size: clamp(44px, 14vw, 64px); }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { padding: 20px; border-radius: 26px; }
  .card-fan { height: 280px; }
  .mini-card { width: 130px; height: 200px; margin-left: -65px; }
  .mini-card b { font-size: 17px; }
  [data-import] .mini-card:nth-child(1) { --x: -96px !important; }
  [data-import] .mini-card:nth-child(2) { --x: -48px !important; }
  [data-import] .mini-card:nth-child(4) { --x: 48px !important; }
  [data-import] .mini-card:nth-child(5) { --x: 96px !important; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .timeline::before { display: none; }
  .devices { flex-direction: column; align-items: center; }
  .laptop { width: 100%; margin: 0; }
  .laptop-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 12px 12px 3px 3px; }
  .laptop-base { height: 10px; }
  .phone-sm { position: relative; right: auto; bottom: auto; width: 230px; margin-top: -40px; }
  .cover { width: 176px; height: 268px; padding: 13px; border-radius: 20px; }
  .cover b { font-size: 21px; }
  .cover span { font-size: 12.5px; }
  /* 对比表在手机上一行一张卡：先说幻言，再列另外两种 */
  .compare { border-radius: 24px; }
  .cmp-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 18px 20px; }
  .cmp-row + .cmp-row { border-top: 0; }
  .cmp-head + .cmp-row ~ .cmp-row { border-top: 1px solid var(--line); }
  .cmp-row > span { align-items: flex-start; padding: 0; font-size: 14px; line-height: 1.6; }
  .cmp-row > [role="rowheader"] { margin-bottom: 2px; font-size: 16px; }
  .cmp-row > span[role="cell"]::before { flex: 0 0 5.8rem; font-size: 12.5px; line-height: 1.85; color: var(--ink-3); }
  .cmp-row > span:nth-child(2) { order: 2; }
  .cmp-row > span:nth-child(2)::before { content: "自己搭酒馆"; content: "自己搭酒馆" / ""; }
  .cmp-row > span:nth-child(3) { order: 3; }
  .cmp-row > span:nth-child(3)::before { content: "常见陪聊 App"; content: "常见陪聊 App" / ""; }
  .cmp-row > .cmp-us { order: 1; margin-inline: -10px; padding: 8px 10px; border: 0; border-radius: 12px; }
  .cmp-row > span.cmp-us::before { content: "幻言"; content: "幻言" / ""; color: #cdbfff; font-weight: 700; }
  .cmp-row .i { margin-top: 0.22em; flex: none; }
  .downloads { grid-template-columns: 1fr 1fr; }
  .downloads .dl:first-child { grid-column: 1 / -1; }
  .dl { padding: 20px 18px 18px; }
  .cast span { width: 140px; height: 214px; margin-inline: -14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
