/* ==========================================================================
   Feltale 官网样式
   颜色/字号/间距/圆角/描边/阴影全部来自 style/web/WEB_SPEC.json（奶油米基底 + 暖橙主色）
   硬规则：无纯白/纯黑、无虚线/点线、无毛玻璃、无彩虹渐变、每屏最多 1 个主 CTA
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/fredoka-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/fredoka-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fredoka-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fredoka-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/nunito-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-700.woff2") format("woff2");
}

/* 中日韩网页字体（按站点用字子集化，400–700 可变字重，自托管） */
@font-face {
  font-family: "NotoSC";
  src: url("/assets/fonts/noto-sc.woff2?v=20261112a") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "NotoTC";
  src: url("/assets/fonts/noto-tc.woff2?v=20261112a") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "NotoJP";
  src: url("/assets/fonts/noto-jp.woff2?v=20261112a") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "NotoKR";
  src: url("/assets/fonts/noto-kr.woff2?v=20261112a") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #e8d8c8;
  --bg-light: #f2e7da;
  --bg-shade: #d8c4ac;
  --surface: #e4ccb4;
  --cream: #f5ede0;

  --primary: #f4903a;
  --primary-hover: #e2873a;
  --primary-active: #cf7d39;
  --primary-light: #f6c67e;

  --secondary: #5a4236;
  --secondary-deep: #4a3829;
  --warm: #9c6c44;

  --text: #996a40;
  --text-deep: #4a3829;
  --text-body: #6b5440;
  --text-muted: #8b8480;
  --link: #755131;

  --dark: #684838;
  --dark-deep: #4a3829;
  --dark-text: #f5ede0;
  --dark-text-2: #e8d8c8;
  --dark-link: #f6c67e;
  --dark-border: #c3a98f;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;

  --shadow-1: 0 2px 4px rgba(90, 66, 54, 0.12);
  --shadow-2: 0 4px 8px rgba(90, 66, 54, 0.14);
  --shadow-3: 0 8px 16px rgba(90, 66, 54, 0.16);
  --shadow-cta: 0 6px 16px rgba(244, 144, 58, 0.28);

  --cjk: "Hiragino Sans", "Yu Gothic UI", "Microsoft YaHei", "PingFang SC", "Malgun Gothic", system-ui, sans-serif;
  --font-display: "Fredoka", var(--cjk);
  --font-body: "Nunito", var(--cjk);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 200ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-deep);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 48px;
  }

}

/* 按当前语言切 CJK 字体（只加载对应那一套） */
html[lang="zh-CN"] { --cjk: "NotoSC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="zh-TW"] { --cjk: "NotoTC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
html[lang="ja"] { --cjk: "NotoJP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif; }
html[lang="ko"] { --cjk: "NotoKR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }

/* ---------- 通用排版 ---------- */

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: var(--sp-2);
}

.display {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  max-width: 16ch;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  max-width: 22ch;
}

.h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--text-deep);
  max-width: 62ch;
}

.body {
  color: var(--text-deep);
  max-width: 64ch;
}

.muted {
  color: var(--text-body);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: var(--r-pill);
  border: 2px solid var(--secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary-deep);
  box-shadow: var(--shadow-1), var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--secondary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2), var(--shadow-cta);
}

.btn-primary:active {
  background: var(--primary-active);
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--secondary-deep);
  box-shadow: var(--shadow-1);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--secondary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn-secondary:active {
  background: var(--bg-shade);
  transform: translateY(0) scale(0.98);
}

/* Google Play 官方徽章（不重绘、不拉伸） */
.play-badge {
  display: inline-block;
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-1);
}

.play-badge img {
  height: 56px;
  width: auto;
  border-radius: var(--r-md);
}

.play-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.play-badge:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- 顶部导航 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 2px solid var(--warm);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

/* 滚动后：奶油米毛玻璃（不支持的浏览器自动回退成实色） */
.site-head.is-scrolled {
  background: rgba(232, 216, 200, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--shadow-1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head.is-scrolled { background: var(--bg); }
}

.head-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
  padding-block: 10px;
}

.brand {
  padding-block: 6px;
}

.brand img,
.brand-logo {
  height: 54px;
  width: auto;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
}

@media (max-width: 899px) {
  .brand img,
  .brand-logo {
    height: 42px;
  }
}

.logo-patch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-deep);
  border: 2px solid var(--secondary);
  border-radius: var(--r-md);
  padding: 8px 14px;
  box-shadow: var(--shadow-1);
}

.logo-patch img {
  height: 40px;
  width: auto;
}

.logo-patch-lg {
  padding: 10px 18px;
}

.logo-patch-lg img {
  height: 56px;
}

.hero-logo {
  height: clamp(64px, 9vw, 96px);
  width: auto;
  margin-bottom: 20px;
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: var(--sp-4);
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 16px;
  color: var(--secondary-deep);
  text-decoration: none;
  border-radius: var(--r-sm);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--text-deep);
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--secondary);
  border-radius: var(--r-md);
  background: var(--bg-light);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary-deep);
  stroke-width: 2;
  fill: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .head-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- 移动端抽屉 ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text-deep);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--warm);
}

.mobile-nav .btn {
  margin-top: 24px;
}

.mobile-nav .close {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  border: 2px solid var(--secondary);
  border-radius: var(--r-md);
  background: var(--bg-light);
  cursor: pointer;
}

.mobile-nav .close svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary-deep);
  stroke-width: 2;
  fill: none;
  margin: auto;
  display: block;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- 区块 ---------- */

.section {
  padding-block: 56px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 88px;
  }
}

.section-tight {
  padding-block: 48px;
}

@media (min-width: 900px) {
  .section-tight {
    padding-block: 64px;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

/* ---------- 深色区块（hero / 角色带 / 页脚，全站共 3 处） ---------- */

.dark {
  background: var(--dark-deep);
  color: var(--dark-text-2);
}

.dark h1,
.dark h2,
.dark h3 {
  color: var(--dark-text);
}

.dark .kicker {
  color: var(--primary-light);
}

.dark .lede,
.dark .body {
  color: var(--dark-text-2);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 56px 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

.hero-copy .display {
  color: var(--dark-text);
}

.hero-copy .lede {
  margin-top: var(--sp-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.hero-art {
  position: relative;
  border: 3px solid var(--dark-border);
  border-radius: var(--r-lg);
  padding: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.hero-art figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(74, 56, 41, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: var(--dark-text-2);
  border: 2px solid rgba(195, 169, 143, 0.55);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-art figcaption { background: var(--dark); }
}

@media (min-width: 900px) {
  .hero {
    padding-block: 80px 96px;
  }
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: var(--sp-8);
  }
  .hero-copy .display {
    font-size: clamp(48px, 4.6vw, 66px);
  }
}

/* 小号页面 hero（Games / Support / 法务入口） */
.page-hero {
  padding-block: 48px 40px;
  background: var(--bg);
  border-bottom: 2px solid var(--warm);
}

.page-hero .display {
  font-size: clamp(34px, 4.4vw, 52px);
}

.page-hero .lede {
  margin-top: var(--sp-2);
}

/* ---------- 图文分栏 ---------- */

.split {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .split.reverse > .split-media {
    order: 2;
  }
}

.media-frame {
  border: 3px solid var(--warm);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r-lg) - 3px);
}

/* ---------- 卡片 ---------- */

.cards {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 3px solid var(--warm);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-2);
  color: var(--secondary-deep);
}

.card .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-deep);
  font-size: 16px;
}

/* ---------- 图片卡（地区） ---------- */

.tiles {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .tiles.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--bg-light);
  border: 3px solid var(--warm);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  transition: transform 320ms var(--ease);
}

.tile:hover img { transform: scale(1.03); }

.tile-body {
  padding: 16px 14px 18px;
}

.tile-body h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.tile-body p {
  font-size: 15.5px;
  color: var(--text-deep);
}

/* ---------- 角色带 ---------- */

.band {
  padding-block: 64px;
}

@media (min-width: 900px) {
  .band {
    padding-block: 96px;
  }
}

.band .lede {
  margin-top: var(--sp-3);
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  gap: var(--sp-3);
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--bg-light);
  border: 3px solid var(--warm);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--r-pill);
  background: var(--primary);
  border: 2px solid var(--secondary);
  color: var(--secondary-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  font-size: 16px;
}

/* ---------- 游戏展示卡（Games 页） ---------- */

.showcase {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 3px solid var(--warm);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.showcase-media {
  position: relative;
}

.showcase-media .logo-patch img { height: 52px; width: auto; }

.showcase-media .logo-patch {
  position: absolute;
  left: 20px;
  bottom: 20px;
  box-shadow: var(--shadow-2);
}

.showcase-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.showcase-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.showcase-body .logo {
  height: 84px;
  width: auto;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .showcase-body {
    padding: 48px 40px;
    justify-content: center;
  }
  .showcase-media {
  position: relative;
}

.showcase-media .logo-patch img { height: 52px; width: auto; }

.showcase-media .logo-patch {
  position: absolute;
  left: 20px;
  bottom: 20px;
  box-shadow: var(--shadow-2);
}

.showcase-media > img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--warm);
  background: var(--bg-light);
  color: var(--secondary-deep);
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- 支持页 ---------- */

.pick-grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pick {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 3px solid var(--warm);
  border-radius: var(--r-lg);
  padding: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.pick img {
  height: 64px;
  width: auto;
  flex: none;
}

.pick .pick-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pick strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
}

.pick span {
  font-size: 15px;
  color: var(--text-deep);
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq details {
  background: var(--bg-light);
  border: 3px solid var(--warm);
  border-radius: var(--r-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-1);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
  color: var(--text-body);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding-bottom: 20px;
  color: var(--text-deep);
  max-width: 68ch;
}

/* ---------- 联系卡 ---------- */

.contact-card {
  background: var(--surface);
  border: 3px solid var(--warm);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

@media (min-width: 900px) {
  .contact-card {
    padding: 40px;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- 社交按钮 ---------- */

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 2px solid var(--secondary);
  background: var(--bg-light);
  color: var(--secondary-deep);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.social:hover {
  transform: translateY(-2px);
  background: var(--bg);
  color: var(--secondary-deep);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* ---------- CTA 带 ---------- */

.cta-band {
  background: var(--surface);
  border-top: 3px solid var(--warm);
  border-bottom: 3px solid var(--warm);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
  padding-block: 56px;
}

@media (min-width: 900px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 72px;
  }
  .cta-copy {
    max-width: 52ch;
  }
}

/* ---------- 页脚 ---------- */

.site-foot {
  background: var(--dark);
  color: var(--dark-text-2);
  border-top: 3px solid var(--secondary);
  padding-top: 64px;
}

.foot-grid {
  display: grid;
  gap: var(--sp-4);
  padding-bottom: 48px;
}

@media (min-width: 800px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

.foot-brand img {
  height: 140px;
  width: auto;
  margin-bottom: 0;
}

.foot-brand p {
  color: var(--dark-text-2);
  font-size: 15px;
  max-width: 34ch;
}

.foot-col h3 {
  color: var(--dark-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  color: var(--dark-link);
  text-decoration: none;
  font-size: 15.5px;
}

.foot-col a:hover {
  color: var(--dark-text);
  text-decoration: underline;
}

.foot-bottom {
  border-top: 1px solid var(--dark-border);
  padding-block: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--dark-text-2);
  font-size: 13.5px;
}

/* ---------- 入场动效（fade + 上移 8px，符合规范） ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .play-badge,
  .card,
  .tile,
  .pick,
  .social {
    transition: none;
  }
}

/* ---------- 工具类 ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack-2 > * + * {
  margin-top: var(--sp-2);
}

.stack-3 > * + * {
  margin-top: var(--sp-3);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-6 {
  margin-top: var(--sp-6);
}


/* ==========================================================================
   多语言切换
   ========================================================================== */

.lang-switch {
  position: relative;
  margin-left: auto;
  flex: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--secondary);
  border-radius: var(--r-pill);
  background: var(--bg-light);
  color: var(--secondary-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: var(--bg);
}

.lang-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 2px solid var(--secondary);
  border-radius: var(--r-md);
  background: rgba(245, 237, 224, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-3);
  z-index: 250;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lang-menu { background: var(--cream); }
}

.lang-menu[hidden] { display: none; }

.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--secondary-deep);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: rgba(156, 108, 68, 0.14);
}

.lang-menu button.is-active::after {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* 切语言时的轻微淡入淡出 */
main,
.site-head,
.site-foot {
  transition: opacity 160ms ease;
}

body.lang-switching main,
body.lang-switching .site-head,
body.lang-switching .site-foot {
  opacity: 0.6;
}

/* ==========================================================================
   动效增强（首屏错峰入场 + 列表错峰浮现）
   ========================================================================== */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > *,
.hero-art {
  animation: riseIn 520ms var(--ease) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 40ms; }
.hero-copy > *:nth-child(2) { animation-delay: 110ms; }
.hero-copy > *:nth-child(3) { animation-delay: 180ms; }
.hero-copy > *:nth-child(4) { animation-delay: 250ms; }
.hero-copy > *:nth-child(5) { animation-delay: 320ms; }
.hero-art { animation-delay: 260ms; }

.cards .reveal:nth-child(2),
.tiles .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.cards .reveal:nth-child(3),
.tiles .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-art,
  .cards .reveal,
  .tiles .reveal,
  .steps .reveal {
    animation: none;
    transition: none;
  }
  .tile:hover img { transform: none; }
  body.lang-switching main,
  body.lang-switching .site-head,
  body.lang-switching .site-foot { opacity: 1; }
}

/* 移动端：语言按钮与汉堡并排 */
@media (max-width: 899px) {
  .lang-switch {
    margin-left: auto;
  }
  .lang-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 13.5px;
  }
  .nav-toggle {
    margin-left: 8px;
  }
}


/* ==========================================================================
   第七轮：指针跟随高光 / 进出场 / 页头收缩 / 图标瞄准反馈
   ========================================================================== */

.glow-host {
  position: relative;
  isolation: isolate;
}

.glow-host::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(246, 198, 126, 0.35),
    rgba(244, 144, 58, 0.12) 45%,
    rgba(244, 144, 58, 0) 70%
  );
}

.glow-host:hover::after,
.glow-host:focus-visible::after {
  opacity: 1;
}

/* 击穿内容层，保证高光在文字/图片之下 */
.glow-host > *:not(img) {
  position: relative;
  z-index: 3;
}

.glow-host img {
  z-index: 1;
}

.tile.glow-host::after {
  z-index: 2;
}

/* 按钮/图标 hover 的“瞄准”反馈：轻微放大 + 聚焦环 */
.btn,
.play-badge,
.lang-btn,
.social,
.pick,
.card,
.tile,
.step,
.faq details {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    opacity 220ms var(--ease);
}

.btn:hover,
.social:hover,
.lang-btn:hover {
  box-shadow: var(--shadow-1), 0 0 0 3px rgba(244, 144, 58, 0.25);
}

.card:hover,
.step:hover,
.pick:hover,
.tile:hover,
.faq details:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(244, 144, 58, 0.18);
}

/* 导航项：hover 时指示线由左展开（已有）+ 文字轻微右移 */
.nav a {
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav a:hover {
  transform: translateX(2px);
}

/* 页头滚动收缩 */

/* 进出场：滚动离开视口时渐出 */
.reveal {
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.is-out {
  opacity: 0;
  transform: translateY(10px);
}


/* ==========================================================================
   第八轮：进出场节奏、瞄准动效覆盖更多元素、减少抖动
   ========================================================================== */

:root {
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 渐入渐出更从容：560ms，缓出 */
.reveal {
  transition: opacity 1000ms var(--ease-out-soft), transform 1000ms var(--ease-out-soft);
  will-change: opacity, transform;
}

.reveal.is-out {
  opacity: 0;
  transform: translateY(10px);
}

/* 列表错峰延后一点，避免一起涌出 */
.cards .reveal:nth-child(2),
.tiles .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 140ms;
}

.cards .reveal:nth-child(3),
.tiles .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 280ms;
}

/* 首屏错峰放慢 */
.hero-copy > *,
.hero-art {
  animation-duration: 760ms;
}

.hero-copy > *:nth-child(1) { animation-delay: 60ms; }
.hero-copy > *:nth-child(2) { animation-delay: 150ms; }
.hero-copy > *:nth-child(3) { animation-delay: 240ms; }
.hero-copy > *:nth-child(4) { animation-delay: 330ms; }
.hero-copy > *:nth-child(5) { animation-delay: 420ms; }
.hero-art { animation-delay: 320ms; }

/* 图片类元素也支持指针跟随高光（圆角只给图文分栏/首屏，地区缩略图保持方角） */
.hero-art,
.media-frame,
.showcase-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.media-frame img,
.hero-art img,
.showcase-media > img {
  border-radius: calc(var(--r-lg) - 3px);
}

.tile,
.tile img {
  border-radius: 0;
}

/* 文字链接的瞄准反馈：轻微暖色光晕 + 文字右移 1px */
.nav a,
.foot-col a,
.promo-link {
  position: relative;
}

/* 文字链接：除顶部导航外，hover 统一小幅位移（与 Contact us 一致） */
.foot-col a,
.contact-link,
main a:not(.btn):not(.play-badge):not(.tile):not(.social):not(.brand):not(.pick) {
  display: inline-block;
  transition: transform 300ms var(--ease-out-soft), color 300ms var(--ease-out-soft);
}

.foot-col a:hover,
.contact-link:hover,
main a:not(.btn):not(.play-badge):not(.tile):not(.social):not(.brand):not(.pick):hover {
  transform: translateY(-2px);
}

/* 顶部导航保持“底部下划线”，不要出现上划线/光斑 */
.nav a::before {
  content: none;
}

/* 按钮 hover 节奏放慢一点，动作更“跟手” */
.btn,
.lang-btn,
.social,
.pick,
.card,
.tile,
.step,
.faq details,
.play-badge {
  transition-duration: 260ms;
}

/* 降低毛玻璃开销：模糊半径略减 + 只在需要时合成 */
.site-head.is-scrolled {
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .reveal.is-out {
    transition: none;
  }
}


/* ==========================================================================
   第九轮：页脚联系方式（双色图标）
   ========================================================================== */

.contact-list {
  gap: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-link);
  text-decoration: none;
}

.contact-link .foot-icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.contact-link .foot-icon .ring {
  stroke: var(--dark-text-2);
  opacity: 0.55;
}

.contact-link .foot-icon .glyph {
  fill: var(--primary-light);
}

.contact-link:hover .foot-icon .glyph {
  fill: var(--primary);
}

.contact-link:hover .foot-icon .ring {
  opacity: 0.9;
}

/* 动效再放慢、更渐变 */
.reveal {
  transition-duration: 1000ms;
}

.hero-copy > *,
.hero-art {
  animation-duration: 900ms;
}

.hero-copy > *:nth-child(1) { animation-delay: 80ms; }
.hero-copy > *:nth-child(2) { animation-delay: 190ms; }
.hero-copy > *:nth-child(3) { animation-delay: 300ms; }
.hero-copy > *:nth-child(4) { animation-delay: 410ms; }
.hero-copy > *:nth-child(5) { animation-delay: 520ms; }
.hero-art { animation-delay: 380ms; }

.btn,
.lang-btn,
.social,
.pick,
.card,
.tile,
.step,
.faq details,
.play-badge {
  transition-duration: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  .contact-link:hover,
  .nav a:hover,
  .foot-col a:hover {
    transform: none;
  }
}


/* ==========================================================================
   最终覆盖（第 12 轮）
   1) 所有栏目的进出场统一 1000ms，与首屏节奏一致
   2) 首屏大图：外框刚好包住图片，不留垫边
   3) Regions：外框圆角、内部图片方角、图片不再缩小
   4) Games 展示图内部方角
   ========================================================================== */

.reveal,
.reveal.is-in,
.reveal.is-out {
  transition: opacity 1000ms var(--ease-out-soft), transform 1000ms var(--ease-out-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.is-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-art {
  padding: 0;
  background: transparent;
}

.hero-art img {
  border-radius: 0;
}

.tile {
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.tile-body {
  padding: 20px 22px 24px;
}

.showcase-media > img {
  border-radius: 0;
}

/* REVEAL_OFF: 减少动态效果时彻底关闭进出场过渡 */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .reveal.is-out {
    transition: none !important;
  }
}


/* ==========================================================================
   第 13 轮
   ========================================================================== */

/* 首屏大图：图片按自身比例铺满，外框高度=图片高度（不留白） */
.hero-art {
  display: block;
  line-height: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
}

/* Games 展示图：媒体块不再自带圆角，内部图片方角 */
.showcase-media {
  border-radius: 0;
}

.showcase-media > img {
  border-radius: 0;
}

/* Support 游戏卡：左图右文 */
.pick {
  gap: var(--sp-3);
}

.pick-thumb {
  width: 44%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  flex: none;
}

.pick .pick-faq {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  border: 2px solid var(--warm);
  background: var(--bg-light);
  color: var(--secondary-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 联系方式：图标与文字垂直居中 */
.foot-col a.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-link .foot-icon {
  display: block;
  align-self: center;
}

@media (max-width: 599px) {
  .pick {
    flex-direction: column;
    align-items: flex-start;
  }

  .pick-thumb {
    width: 100%;
    max-width: none;
  }
}


/* ==========================================================================
   第 14 轮
   ========================================================================== */

/* 首屏：外框高度=图片高度，图片绝对铺满内容区，杜绝下方空白 */
.hero-art {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Support 游戏卡：左图右文（覆盖早期的 .pick img 规则） */
.pick {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
}

.pick .pick-thumb {
  width: 46%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  flex: none;
}

.pick .pick-text {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.pick .pick-faq {
  align-self: flex-start;
  width: auto;
}

@media (max-width: 599px) {
  .pick {
    flex-direction: column;
    align-items: flex-start;
  }

  .pick .pick-thumb {
    width: 100%;
    max-width: none;
  }
}


/* ==========================================================================
   第 15 轮：Support 游戏卡（图标版）
   ========================================================================== */

.pick-grid {
  max-width: 860px;
  grid-template-columns: 1fr;
}

.pick {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
  padding: 20px 24px;
}

.pick .pick-icon {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--warm);
  box-shadow: var(--shadow-1);
  background: var(--bg-light);
}

.pick .pick-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 320ms var(--ease-out-soft);
}

.pick .pick-text {
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.pick strong {
  font-size: 22px;
}

.pick .pick-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 2px solid var(--warm);
  background: var(--bg-light);
  color: var(--secondary-deep);
  transition: transform 320ms var(--ease-out-soft), background-color 320ms var(--ease-out-soft);
}

.pick .pick-arrow svg {
  width: 20px;
  height: 20px;
}

.pick:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.pick:hover .pick-icon img {
  transform: scale(1.06);
}

.pick:hover .pick-arrow {
  transform: translateX(4px);
  background: var(--primary);
}

/* 旧的图文缩略图样式作废（保留类名以防缓存页面） */
.pick .pick-thumb {
  display: none;
}

@media (max-width: 599px) {
  .pick {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 16px;
  }

  .pick .pick-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .pick .pick-arrow {
    width: 36px;
    height: 36px;
  }
}


/* ==========================================================================
   第 16 轮：Support 卡片（只留标题、两列排布、hover 位移加大）
   ========================================================================== */

.pick-grid {
  max-width: 880px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pick {
  padding: 16px 18px;
  gap: 16px;
  min-height: 104px;
}

.pick .pick-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.pick strong {
  font-size: 19px;
}

.pick .pick-text {
  gap: 2px;
}

.pick .pick-faq,
.pick [data-copy="support.feltale.desc"] {
  display: none;
}

.pick .pick-arrow {
  width: 38px;
  height: 38px;
  border-width: 2px;
}

.pick .pick-arrow svg {
  width: 17px;
  height: 17px;
}

.pick:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}

.pick:hover .pick-icon img {
  transform: scale(1.08);
}

.pick:hover .pick-arrow {
  transform: translateX(6px);
}

@media (max-width: 719px) {
  .pick-grid {
    grid-template-columns: 1fr;
  }

  .pick {
    min-height: 0;
  }
}


/* ==========================================================================
   第 17 轮：Support 卡片标题放大 + 描述行
   ========================================================================== */

.pick strong {
  font-size: 24px;
  line-height: 1.2;
}

.pick .pick-desc {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-deep);
}

.pick .pick-text {
  gap: 0;
}


/* ==========================================================================
   法务页（隐私政策 / 服务条款）：融入官网版式
   ========================================================================== */

.legal-section {
  padding-block: 48px 96px;
}

.legal {
  max-width: 880px;
}

.legal-lang[hidden] {
  display: none;
}

.legal-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  margin: 0;
}

.legal-meta {
  margin-top: 10px;
  color: var(--text-body);
  font-size: 14px;
}

.legal-prevail {
  margin: 16px 0 4px;
  padding: 10px 14px;
  border: 2px solid var(--warm);
  border-radius: var(--r-md);
  background: var(--bg-light);
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.6;
}

.legal h2 {
  font-size: 22px;
  margin-top: 38px;
  margin-bottom: 10px;
}

.legal h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-deep);
}

.legal p {
  margin: 12px 0;
  color: var(--text-deep);
  line-height: 1.78;
}

.legal ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
  color: var(--text-deep);
  line-height: 1.7;
}

.legal a {
  color: var(--link);
}

.legal p.caps {
  font-weight: 600;
}

.legal .toc {
  margin: 20px 0 4px;
  padding: 16px 20px;
  border: 2px solid var(--warm);
  border-radius: var(--r-lg);
  background: var(--bg-light);
  font-size: 14.5px;
}

.legal .toc ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.legal .toc a {
  color: var(--link);
  text-decoration: none;
}

.legal .toc a:hover {
  text-decoration: underline;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}

.legal th,
.legal td {
  border: 1px solid var(--warm);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--text-deep);
}

.legal th {
  background: var(--bg-light);
  font-weight: 700;
}


/* ==========================================================================
   TOP 按钮（长页面一键回顶，参考 Century 的圆形 TOP，配色适配本站）
   ========================================================================== */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 180;
  width: 60px;
  height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 2px solid var(--secondary);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--secondary-deep);
  box-shadow: var(--shadow-2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-out-soft), transform 240ms var(--ease-out-soft),
    background-color 240ms var(--ease-out-soft);
}

.to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 599px) {
  .to-top {
    right: 16px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    font-size: 10px;
  }
}
