/* ============================================================
   Deskchat — minimal, motion-driven website
   设计语言：纸质极简 + 细线网格 + 滚动揭示动效
   ============================================================ */

:root {
  --paper: #F6F2E9;
  --card: #FFFDF6;
  --ink: #1A1E24;
  --soft: #5C6675;
  --muted: #8A8E97;
  --line: #D9D2C2;
  --line-soft: #E7E1D3;
  --blue: #8F7B68;
  --orange: #C96F3A;
  --yellow: #F4D06F;
  --green: #6F9B6B;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.25, .8, .25, 1);
  --font-serif: Georgia, "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 24px;
  color: var(--ink);
  font-family: var(--font-serif);
  background: var(--paper);
  /* 细网格背景 */
  background-image:
    linear-gradient(rgba(120, 110, 95, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 110, 95, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

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

/* 实体选择高亮 —— 让纸感保持柔和 */
::selection {
  background: rgba(143, 123, 104, .18);
  color: var(--ink);
}

/* ============================================================
   滚动揭示 — 核心动效
   [data-reveal] 默认隐藏下方，进入视口后浮升归位
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed,
header[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 兄弟节点顺次延迟 */
.plain-section [data-reveal] { transition-delay: 0s; }
.text-columns article[data-reveal] { transition-delay: calc(var(--i, 0) * .08s); }
.feature-row[data-reveal] { transition-delay: calc(var(--i, 0) * .04s); }
.edition-card[data-row] { transition-delay: calc(var(--i, 0) * .08s); }
.faq-list details[data-reveal] { transition-delay: calc(var(--i, 0) * .05s); }

/* ============================================================
   顶部导航
   ============================================================ */
.top-nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 30px rgba(60, 56, 48, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: opacity .25s var(--ease);
}
.brand:hover { opacity: .7; }

.brand span { display: grid; }

.brand strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 10px;
  font-family: var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 13px;
}

.nav-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .42s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav-button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .28s var(--ease);
}
.nav-button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ============================================================
   Hero 区
   ============================================================ */
.hero-window {
  display: block;
  padding: 72px 0 56px;
}

.hero-content {
  max-width: 640px;
}

.overline {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .15s forwards;
}

h1 {
  margin: 14px 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.028em;
}

/* 逐行揭示 */
.reveal-lines {
  display: block;
}
.hero-content.is-revealed h1 {
  opacity: 1;
  transform: none;
}
.hero-content h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s;
}

.hero-lede {
  margin: 0 0 28px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .7s forwards;
}

.callout-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0 18px;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(20px);
}
.hero-content[data-reveal].is-revealed .callout-title,
[data-reveal].is-revealed .callout-title {
  opacity: 1; transform: none; transition: all .9s var(--ease);
}

.footnote {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: .005em;
}

#trial-callout {
  padding: 28px 0 16px;
  border-top: 1px dashed var(--line-soft);
}
#trial-callout .overline { animation-delay: .15s; }
#trial-callout [data-reveal] { transition-delay: .1s; }

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.button:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 56, 48, .08);
}

.button.primary {
  border: none;
  color: #fff;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.button.primary:hover { background: #2a323d; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 30, 36, .22); }
.button.primary:hover::after { transform: translateX(120%); }

/* ============================================================
   视频窗口
   ============================================================ */
.video-window {
  max-width: 820px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.video-window:hover {
  box-shadow: 0 24px 60px rgba(60, 56, 48, .1);
  transform: translateY(-3px);
}

.window-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, .45);
}
.window-titlebar span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--soft);
  text-transform: uppercase;
}
.window-controls { display: flex; gap: 7px; }
.window-controls i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.video-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 0;
}

.video-stage {
  position: relative;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.video-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: rgba(247, 243, 234, .6);
  text-align: center;
}
.video-card-placeholder p { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.video-card-placeholder small { font-size: 12px; color: var(--soft); font-family: var(--font-sans); }

.play-button {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 50px; height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.play-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(26, 30, 36, .3);
}

.video-copy { padding: 24px; }
.video-copy h2 {
  margin: 8px 0 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.video-copy p { margin: 0 0 18px; color: var(--soft); font-size: 13.5px; line-height: 1.75; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--soft);
}
.progress-row i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.progress-row i b {
  position: absolute;
  inset: 0;
  width: 35%;
  border-radius: inherit;
  background: var(--blue);
  animation: progressPulse 4s var(--ease-soft) infinite;
}

@keyframes progressPulse {
  0%, 100% { width: 28%; opacity: .7; }
  50% { width: 62%; opacity: 1; }
}

/* ============================================================
   通用段落
   ============================================================ */
.plain-section { padding: 64px 0; }

.section-heading { margin-bottom: 40px; }
.section-heading.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.section-heading.split-heading > p { max-width: 360px; text-align: right; }

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.022em;
}
.section-heading p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.7; }

/* ---------- 三列介绍 ---------- */
.text-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.text-columns article {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--card);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.text-columns article:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 44px rgba(60, 56, 48, .07);
}
.text-columns h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.005em;
}
.text-columns p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.75; }

/* ============================================================
   功能对比表（Free / Premium）
   ============================================================ */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.feature-row:last-child { border-bottom: none; }
.feature-row:hover:not(.featurehead) {
  background: rgba(247, 243, 234, .55);
  padding-left: 32px;
}

.feature-row.featurehead {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(247, 243, 234, .42);
}
.featurehead .feature-name { display: none; }
.featurehead [data-tier] { text-align: center; }

.feature-name {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}
.feature-free,
.feature-paid {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.feature-paid { color: var(--green); }
.feature-free:not(:empty) { color: var(--ink); }

/* 占位的「等待加入」 */
.feature-free small,
.feature-paid small {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .7;
}

.feature-note {
  margin-top: 18px;
  padding: 0 4px;
  max-width: 640px;
}

/* ============================================================
   角色卡片轮播
   ============================================================ */
.profile-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
}

.built-in-character {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--card);
  overflow: hidden;
}

.built-in-profile {
  min-height: 360px;
  padding: 24px 32px;
  border: 0;
  border-radius: 0;
}

.character-preview {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 46px);
  align-items: center;
  min-height: 340px;
}

.character-portrait {
  display: grid;
  place-items: center;
  width: 330px;
  min-height: 340px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.character-preview img {
  width: 390px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(60, 56, 48, .12));
  animation: portraitFloat 6s var(--ease-soft) infinite;
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(18px); }
  50% { transform: translateY(6px); }
}

.character-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.character-label {
  margin: 0 0 10px;
  color: #8f7b68;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.character-preview .character-info h3 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.6vw, 60px);
  line-height: .95;
  letter-spacing: -.035em;
}
.character-info > p:not(.character-label) { font-size: 16px; line-height: 1.9; color: var(--soft); }

.built-in-profile dl,
.character-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 16px 0 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-meta span {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.card-meta small { font-size: 12px; color: var(--soft); }

.profile-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.profile-card p { margin: 0 0 16px; color: var(--soft); font-size: 14px; line-height: 1.7; }
.profile-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; }
.profile-card dl div { padding: 12px; border-radius: 8px; background: var(--paper); }
.profile-card dt { margin: 0 0 4px; font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.profile-card dd { margin: 0; font-size: 14px; }

/* ============================================================
   套餐卡片
   ============================================================ */
.edition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--card);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.edition-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 56px rgba(60, 56, 48, .09);
}

.edition-card > span:first-child {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

.edition-card.recommended {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(143, 123, 104, .08), var(--card));
}
.edition-card.recommended > span:first-child { color: var(--blue); }
.edition-card.recommended::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--blue), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.edition-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.edition-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 18px;
  font-family: var(--font-serif);
}
.edition-card .price em {
  font-style: normal;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.edition-card .price small {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

.edition-card ul {
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.edition-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  border-bottom: 1px dashed var(--line-soft);
}
.edition-card li:last-child { border-bottom: none; }
.edition-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 8px; height: 1px;
  background: var(--line);
}

.price-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -8px 0 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--green);
  letter-spacing: .02em;
}
.price-note span:last-child {
  color: var(--orange);
  font-weight: 600;
}

.edition-card .purchase-button {
  width: 100%;
  border-color: rgba(154, 128, 107, .34);
  color: #fffefa;
  background: rgba(154, 128, 107, .82);
  transition: all .3s var(--ease);
}
.edition-card .purchase-button:hover {
  background: rgba(132, 108, 88, .95);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(132, 108, 88, .28);
}
.edition-card.recommended .purchase-button {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}
.edition-card.recommended .purchase-button:hover { background: #746555; box-shadow: 0 12px 30px rgba(143, 123, 104, .3); }

.editions-note {
  margin-top: 22px;
  max-width: 640px;
}

/* ============================================================
   下载入口区块
   ============================================================ */
.user-center {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  transition: box-shadow .45s var(--ease);
}
.user-center:hover { box-shadow: 0 24px 60px rgba(60, 56, 48, .08); }

.user-center > div:first-child { margin-bottom: 28px; }
.user-center h2 { margin: 8px 0 12px; }
.user-center > div:first-child p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.8; }

.account-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.account-list a,
.account-list button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.account-list a:hover,
.account-list button:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(143, 123, 104, .08);
}
.account-list strong { font-family: var(--font-sans); font-size: 14px; }
.account-list span { font-family: var(--font-sans); font-size: 11.5px; color: var(--soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  padding: 18px 22px;
  background: var(--card);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-list details:hover { border-color: var(--line); }

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--soft);
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }

.faq-list p {
  margin: 14px 0 0;
  color: var(--soft);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.85;
  max-width: 680px;
  overflow: hidden;
  animation: faqOpen .45s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 56px;
  border-top: 1px solid var(--line-soft);
}
.site-footer strong { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.site-footer span { font-family: var(--font-sans); font-size: 12px; color: var(--muted); }

/* ============================================================
   下载弹窗
   ============================================================ */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  transition: opacity .3s var(--ease);
}
.download-modal.is-hidden {
  display: none;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 36, 30, .32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s var(--ease);
}

.download-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 252, .95);
  box-shadow: 0 34px 90px rgba(40, 36, 30, .22);
  animation: modalIn .4s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.download-modal-card h2 {
  margin: 8px 0 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.download-modal-card p:not(.overline) {
  color: var(--soft);
  line-height: 1.8;
  font-size: 14px;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}
.download-choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  text-decoration: none;
  transition: all .28s var(--ease);
}
.download-choice:hover {
  border-color: var(--blue);
  background: rgba(143, 123, 104, .06);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(143, 123, 104, .12);
}
.download-choice span {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
}
.download-choice small {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, .64);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }

/* ============================================================
   入口页（index.html）
   ============================================================ */
.intro-page {
  min-height: 100vh;
  padding-top: 0;
  background-image:
    linear-gradient(rgba(120, 110, 95, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 110, 95, .035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.intro-shell { min-height: 100vh; }

.intro-screen {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 80px 0 96px;
}

.intro-lockup {
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-title {
  margin: 0;
  color: #050505;
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 76px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.035em;
  animation: fadeFloat .9s var(--ease) both;
}

.intro-subtitle {
  margin: 4px 0 20px;
  color: rgba(96, 96, 96, .62);
  font-family: "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  animation: fadeFloat .9s var(--ease) .12s both;
}

.intro-paper {
  position: relative;
  width: 156px; height: 136px;
  margin: 2px 0 18px;
  display: grid;
  place-items: center;
  color: #050505;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(238,235,228,.58)),
    radial-gradient(rgba(88, 82, 73, .16) .55px, transparent .8px);
  background-size: 100% 100%, 5px 5px;
  box-shadow: inset 0 0 28px rgba(118, 108, 96, .055);
  transform: rotate(-.6deg);
  animation: fadeFloat .9s var(--ease) .2s both;
}

.intro-doodle-star {
  position: absolute;
  top: 14px; left: 15px;
  font-size: 24px;
  transform: rotate(-10deg);
  animation: starTwinkle 3s var(--ease-soft) infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: .65; transform: rotate(-10deg) scale(1); }
  50% { opacity: 1; transform: rotate(-10deg) scale(1.18); }
}

.intro-bear {
  font-family: "Comic Sans MS", "Source Han Serif SC", cursive;
  font-size: 32px;
  letter-spacing: -.06em;
  transform: rotate(4deg);
  display: inline-block;
  animation: bearBob 3.2s var(--ease-soft) infinite;
}
@keyframes bearBob {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-5px); }
}

.intro-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(88, 86, 82, .64);
  font-family: "Source Han Serif SC", "SimSun", serif;
  font-size: 14px;
  text-decoration: none;
  transition: color .3s var(--ease), transform .3s var(--ease);
  animation: introStartFloat 1s var(--ease) .35s both;
}
.intro-start:hover { color: rgba(41, 38, 34, .9); transform: translateY(-2px); }
.intro-start:hover .handdrawn-star { transform: rotate(-11deg) scale(1.12); }

.handdrawn-star {
  width: 40px; height: 40px;
  overflow: visible;
  transform: rotate(-11deg);
  transition: transform .3s var(--ease);
}
.handdrawn-star path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawStar 1.4s var(--ease) .5s forwards;
}
.handdrawn-star path:nth-child(2) {
  stroke-width: 1.35;
  opacity: .72;
  transform-origin: center;
  transform: rotate(5deg) translate(-1px, 1px);
  animation-delay: .8s;
}

/* ============================================================
   关键帧
   ============================================================ */
@keyframes fadeFloat {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawStar {
  to { stroke-dashoffset: 0; }
}
@keyframes introStartFloat {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .video-layout { grid-template-columns: 1fr; }
  .video-stage { border-right: none; border-bottom: 1px solid var(--line); }
  .text-columns { grid-template-columns: repeat(2, 1fr); }
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
  .account-list { grid-template-columns: repeat(2, 1fr); }
  .section-heading.split-heading > p { text-align: left; }
}

@media (max-width: 640px) {
  body { padding-top: 14px; }
  .video-window { max-width: 100%; }
  .text-columns { grid-template-columns: 1fr; }
  .edition-grid { grid-template-columns: 1fr; }
  .account-list { grid-template-columns: 1fr; }
  .download-choice-grid { grid-template-columns: 1fr; }
  .user-center { padding: 24px; }
  .top-nav { padding: 10px 14px; }
  .nav-button { padding: 8px 14px; font-size: 11px; }
  .character-preview { grid-template-columns: 1fr; text-align: center; }
  .character-portrait { width: 100%; min-height: 260px; }
  .character-preview img { width: 320px; }
  .feature-rows { border-radius: var(--radius-md); }
  .feature-row { grid-template-columns: 1fr 60px 60px; padding: 14px 16px; gap: 10px; }
  .feature-row:hover:not(.featurehead) { padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-content h1,
  .hero-content .hero-lede,
  .hero-content .hero-actions,
  .hero-content .overline,
  .callout-title { opacity: 1; transform: none; }
}
