/* ==========================================================================
   桃林墨香 · 基础样式（设计令牌、排版、通用组件、页头页脚）
   页面专属样式放在 assets/css/pages/<page>.css
   配色取自「十里桃林」设定板：桃花粉 / 淡粉白 / 树干褐黑 / 土石灰棕 / 碧水青绿 / 远山雾灰
   ========================================================================== */

:root {
  /* 色彩 */
  --c-bg: #0d0a0b;
  --c-bg-2: #130f10;
  --c-surface: #1a1415;
  --c-surface-2: #231b1c;
  --c-surface-3: #2e2425;
  --c-line: rgba(240, 214, 220, 0.12);
  --c-line-strong: rgba(240, 214, 220, 0.24);
  --c-text: #f3ebe8;
  --c-text-2: #cdbfbb;
  --c-muted: #948683;

  --c-peach: #e8879f;        /* 桃花粉 */
  --c-peach-2: #f5b9c7;
  --c-peach-deep: #b8496a;
  --c-blush: #f7e4e8;        /* 淡粉白 */
  --c-bark: #2b211e;         /* 树干褐黑 */
  --c-stone: #8c7b6b;        /* 土石灰棕 */
  --c-jade: #63b3a3;         /* 碧水青绿 */
  --c-mist: #9ba5b1;         /* 远山雾灰 */
  --c-gold: #d9bf86;
  --c-gold-2: #f1ddae;
  --c-cinnabar: #c23b32;     /* 印章朱砂 */

  --grad-peach: linear-gradient(135deg, #f5b9c7 0%, #e8879f 42%, #b8496a 100%);
  --grad-gold: linear-gradient(135deg, #f6e6bd 0%, #d9bf86 45%, #9c7c45 100%);
  --grad-fade-b: linear-gradient(180deg, rgba(13, 10, 11, 0) 0%, rgba(13, 10, 11, 0.65) 55%, #0d0a0b 100%);

  /* 字体 */
  --f-brush: "Ma Shan Zheng", "STXingkai", "STKaiti", "KaiTi", "楷体", "Noto Serif SC", serif;
  --f-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-en: "Cinzel", "Noto Serif SC", "Times New Roman", serif;
  --f-num: "Noto Serif SC", "Source Han Serif SC", Georgia, serif; /* 数字（Cinzel 的 1/0 像 I/O） */

  /* 尺寸 */
  --container: 1240px;
  --container-wide: 1600px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 10px;

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;

  /* 层级 */
  --z-header: 100;
  --z-mobile-nav: 110;
  --z-lightbox: 200;
  --z-veil: 300;
  --z-preloader: 400;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow-peach: 0 0 30px rgba(232, 135, 159, 0.35);
}

@media (max-width: 1100px) {
  :root { --header-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-color: #4a3a3c var(--c-bg);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: var(--cur-pointer); background: none; border: 0; padding: 0; }

/* ---------- 游戏鼠标指针 ----------
   --cur-default（默认，Default.cur）/ --cur-pointer（可点击，Attack.cur）。
   图片地址由 includes/layout.php 在桌面鼠标设备上注入；触屏 / 未注入时回退为系统指针。
   页面样式里请用 cursor: var(--cur-pointer) / var(--cur-default)，不要直接写 pointer / default。 */
:root { --cur-default: default; --cur-pointer: pointer; }
html { cursor: var(--cur-default); }
a[href], button, summary, select, label[for], [role="button"], [role="tab"], [role="option"], [role="slider"], [role="switch"], [role="checkbox"], [role="radio"],
input[type="checkbox"], input[type="radio"], input[type="range"], input[type="submit"], input[type="button"], input[type="reset"], input[type="file"],
[data-lightbox], [data-copy], [data-tilt][tabindex], [tabindex]:not([tabindex="-1"]):not(main):not(section):not(article) { cursor: var(--cur-pointer); }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="number"], textarea, [contenteditable="true"] { cursor: text; }
button:disabled, [aria-disabled="true"], .is-disabled { cursor: var(--cur-default); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.25; font-family: var(--f-serif); }
p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
p, li, dd, blockquote { text-wrap: pretty; }
h1, h2, h3, h4, .title-brush { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--c-peach); color: #1a0f12; }
:focus-visible { outline: 2px solid var(--c-peach-2); outline-offset: 3px; }
main:focus { outline: none; }
main { overflow-x: clip; } /* 防止横向位移动画或超出的装饰撑宽手机视口（clip 不影响 sticky） */

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 排版 ---------- */
.title-brush { font-family: var(--f-brush); font-weight: 400; letter-spacing: 0.04em; }
html[lang="en"] .title-brush { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.04em; }
.font-serif { font-family: var(--f-serif); }
.font-en { font-family: var(--f-en); letter-spacing: 0.08em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--f-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.55; }
.section-head--left .kicker::before { display: none; }

.text-gradient { background: var(--grad-peach); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--c-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--c-bg-2); }
.section--paper {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 135, 159, 0.08), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(99, 179, 163, 0.06), transparent 50%),
    var(--c-bg-2);
}
.section--paper::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid { display: grid; gap: clamp(16px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { align-items: center; text-align: center; }
.section-head--left { align-items: flex-start; text-align: left; }
.section-head__title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; color: var(--c-text); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
html[lang="en"] .section-head__title { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.section-head__desc { max-width: 640px; color: var(--c-text-2); font-size: 1.02rem; }

.ornament { display: inline-flex; align-items: center; gap: 10px; color: var(--c-gold); }
.ornament i { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); transform-origin: right; }
.ornament i:last-child { background: linear-gradient(90deg, currentColor, transparent); transform-origin: left; }
.ornament b { display: block; width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75em 1.9em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s, color 0.35s, background-color 0.35s;
}
html[lang="en"] .btn { font-family: var(--f-en); letter-spacing: 0.1em; font-size: 0.92rem; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--c-peach-deep); --btn-fg: #fff; --btn-bd: transparent; background-image: var(--grad-peach); box-shadow: 0 8px 28px rgba(184, 73, 106, 0.35); }
.btn--primary:hover { box-shadow: 0 12px 36px rgba(232, 135, 159, 0.5); }
.btn--gold { --btn-fg: #2a1c0c; --btn-bd: transparent; background-image: var(--grad-gold); box-shadow: 0 8px 28px rgba(217, 191, 134, 0.25); }
.btn--ghost { --btn-bg: rgba(13, 10, 11, 0.35); --btn-bd: rgba(241, 221, 174, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bd: var(--c-gold); color: var(--c-gold-2); }
.btn--sm { min-height: 38px; padding: 0.5em 1.2em; font-size: 0.9rem; letter-spacing: 0.08em; }
.btn--lg { min-height: 58px; padding: 0.9em 2.4em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(0.4); }
.btn[disabled]::after, .btn.is-disabled::after { display: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; color: var(--c-peach-2); font-weight: 600; letter-spacing: 0.06em; }
.link-arrow .icon { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.18em 0.6em;
  border-radius: var(--radius-sm);
  font-family: var(--f-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
.badge--new { background: var(--grad-peach); color: #fff; box-shadow: 0 0 14px rgba(232, 135, 159, 0.45); }
.badge--hot { background: var(--c-cinnabar); color: #fff; }
.badge--gold { background: var(--grad-gold); color: #2a1c0c; }
.badge--soon { background: rgba(155, 165, 177, 0.18); color: var(--c-mist); border: 1px solid rgba(155, 165, 177, 0.35); }
html[lang="zh-CN"] .badge--soon { font-family: var(--f-serif); letter-spacing: 0.08em; }
.badge--jade { background: rgba(99, 179, 163, 0.16); color: var(--c-jade); border: 1px solid rgba(99, 179, 163, 0.4); }

.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--c-text-2);
  transition: all 0.3s var(--ease-out);
}
.chip:hover, .chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-checked="true"] { border-color: var(--c-peach); color: #fff; background: rgba(232, 135, 159, 0.16); }

/* ---------- 装饰边框（四角金线） ---------- */
.frame { position: relative; }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--c-gold);
  opacity: 0.75;
  pointer-events: none;
  transition: all 0.45s var(--ease-out);
  z-index: 2;
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.frame:hover::before, .frame:hover::after { width: 40px; height: 40px; opacity: 1; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s var(--ease-out);
}
.card:hover { transform: translateY(-6px); border-color: rgba(232, 135, 159, 0.4); box-shadow: var(--shadow-2), 0 0 0 1px rgba(232, 135, 159, 0.15); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-bark); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.card__title { font-size: 1.15rem; line-height: 1.45; }
.card__text { color: var(--c-text-2); font-size: 0.95rem; }

/* ---------- 表格 ---------- */
.data-table { width: 100%; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.data-table th { font-family: var(--f-serif); font-weight: 600; color: var(--c-gold); background: rgba(217, 191, 134, 0.06); white-space: nowrap; }
.data-table tbody tr { transition: background-color 0.25s; }
.data-table tbody tr:hover { background: rgba(232, 135, 159, 0.06); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--radius); }

/* ---------- 标签页 ---------- */
.tabs__list { position: relative; display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--c-line); }
.tabs__btn {
  position: relative;
  padding: 12px 20px;
  color: var(--c-muted);
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
.tabs__btn:hover { color: var(--c-text); }
.tabs__btn[aria-selected="true"] { color: var(--c-peach-2); }
.tabs__indicator {
  position: absolute; bottom: -1px; left: 0;
  height: 2px;
  background: var(--grad-peach);
  box-shadow: var(--glow-peach);
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
}
.tabs__panel { animation: tl-fade-up 0.6s var(--ease-out) both; }
.tabs__panel[hidden] { display: none; }

/* ---------- 倒计时 ---------- */
.countdown { display: inline-flex; align-items: flex-start; gap: clamp(6px, 1.2vw, 14px); font-variant-numeric: tabular-nums; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: clamp(54px, 8vw, 78px); }
.countdown__unit b {
  display: block;
  width: 100%;
  padding: 0.18em 0.2em;
  border: 1px solid rgba(241, 221, 174, 0.3);
  background: linear-gradient(180deg, rgba(43, 33, 30, 0.75), rgba(13, 10, 11, 0.75));
  font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--c-gold-2);
  text-shadow: 0 0 18px rgba(217, 191, 134, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.countdown__unit b.is-tick { animation: tl-tick 0.5s var(--ease-out); }
.countdown__unit small { font-size: 0.72rem; color: var(--c-text-2); letter-spacing: 0.2em; text-transform: uppercase; }
.countdown__sep { padding-top: 0.25em; font-family: var(--f-en); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--c-gold); opacity: 0.6; }
.countdown.is-done { display: none; }

/* 上线阶段显示切换：data-show-phase="pre download" */
body[data-phase="pre"] [data-show-phase]:not([data-show-phase~="pre"]),
body[data-phase="download"] [data-show-phase]:not([data-show-phase~="download"]),
body[data-phase="live"] [data-show-phase]:not([data-show-phase~="live"]) { display: none !important; }

/* ---------- 页头 ---------- */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 18px; background: var(--c-peach); color: #1a0f12; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color 0.45s, transform 0.45s var(--ease-out), box-shadow 0.45s, backdrop-filter 0.45s;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0 0 -40px;
  background: linear-gradient(180deg, rgba(13, 10, 11, 0.8), rgba(13, 10, 11, 0));
  pointer-events: none;
  transition: opacity 0.45s;
}
.header-solid .site-header, .site-header.is-scrolled {
  background: rgba(13, 10, 11, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--c-line), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.header-solid .site-header::before, .site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__brand { flex: none; }
.site-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.site-header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; pointer-events: none; }
.site-header__progress span { display: block; height: 100%; width: 100%; background: var(--grad-peach); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow-peach); }

/* Logo */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand__logo { display: block; width: auto; height: 62px; max-width: none; transform-origin: left top; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55)); transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
a:hover > .brand .brand__logo, a:focus-visible > .brand .brand__logo { transform: scale(1.04) rotate(-1deg); filter: drop-shadow(0 4px 18px rgba(232, 135, 159, 0.45)); }
.brand--lg .brand__logo { height: clamp(110px, 12vw, 150px); }
.brand--xl .brand__logo { height: auto; width: min(720px, 90vw); }
/* 页头 Logo：在大图横幅上放大（略微探出导航栏），滚动后收回导航栏内；无横幅的页面保持小尺寸 */
.site-header__brand { align-self: flex-start; margin-top: 6px; }
.site-header__brand .brand__logo { height: 98px; transition: height 0.45s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
.site-header.is-scrolled .site-header__brand .brand__logo, .header-solid .site-header__brand .brand__logo, .nav-open .site-header__brand .brand__logo { height: 64px; }
/* 首页：首屏已有大 Logo，页头 Logo 在页面顶部时隐藏，向下滚动后淡入（占位保留，导航不跳动） */
.page-home .site-header__brand { transition: opacity 0.45s var(--ease-out), translate 0.45s var(--ease-out), visibility 0s linear 0s; }
.page-home .site-header:not(.is-scrolled) .site-header__brand { opacity: 0; translate: 0 -10px; visibility: hidden; pointer-events: none; transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out), visibility 0s linear 0.35s; }
.page-home.nav-open .site-header .site-header__brand { opacity: 1; translate: none; visibility: visible; pointer-events: auto; }

/* 主导航 */
.main-nav { margin-left: clamp(8px, 2vw, 40px); }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: static; }
.main-nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--header-h);
  padding: 0 16px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-text-2);
  transition: color 0.3s;
}
html[lang="en"] .main-nav__link { font-family: var(--f-en); font-size: 0.86rem; letter-spacing: 0.08em; }
.main-nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: 18px;
  width: 0; height: 1px;
  background: var(--c-peach-2);
  box-shadow: var(--glow-peach);
  transition: width 0.4s var(--ease-out), left 0.4s var(--ease-out);
}
.main-nav__link:hover, .main-nav__item.is-active > .main-nav__link, .main-nav__item.is-open > .main-nav__link { color: #fff; }
.main-nav__link:hover::after, .main-nav__item.is-active > .main-nav__link::after, .main-nav__item.is-open > .main-nav__link::after { left: 16px; width: calc(100% - 32px); }
.main-nav__badge { position: relative; top: -9px; margin-left: -2px; padding: 1px 5px; border-radius: 2px; background: var(--c-cinnabar); color: #fff; font-family: var(--f-en); font-style: normal; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; animation: tl-glow-pulse 2.4s ease-in-out infinite; }
.main-nav__chevron { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }
.main-nav__item.is-open .main-nav__chevron { transform: rotate(180deg); }

/* 下拉大菜单 */
.mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding-top: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.main-nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px 30px;
  background: rgba(19, 15, 16, 0.96);
  border: 1px solid var(--c-line);
  border-top: 1px solid rgba(232, 135, 159, 0.4);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mega__title { margin-bottom: 16px; font-family: var(--f-en); font-size: 0.72rem; letter-spacing: 0.3em; color: var(--c-gold); text-transform: uppercase; }
.mega__grid { display: grid; gap: 18px; }
.mega__grid--2 { grid-template-columns: repeat(2, 1fr); }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega-card { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line); background: var(--c-surface); overflow: hidden; transition: border-color 0.35s, transform 0.35s var(--ease-out); }
.mega-card:hover, .mega-card.is-active { border-color: rgba(232, 135, 159, 0.5); transform: translateY(-3px); }
.mega-card__media { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--c-bark); }
.mega-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mega-card:hover .mega-card__media img { transform: scale(1.08); }
.mega-card--veiled .mega-card__media img { filter: blur(6px) saturate(1.2) brightness(0.85); transform: scale(1.1); }
.mega-card--veiled:hover .mega-card__media img { filter: blur(2px) saturate(1.2); }
.mega-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 44px 16px 16px; }
.mega-card__label { font-family: var(--f-serif); font-weight: 700; font-size: 1.02rem; color: var(--c-text); }
.mega-card__desc { font-size: 0.84rem; color: var(--c-muted); line-height: 1.5; }
.mega-card__arrow { position: absolute; right: 16px; bottom: 18px; color: var(--c-peach-2); transition: transform 0.35s var(--ease-out); }
.mega-card:hover .mega-card__arrow { transform: translateX(4px); }

/* 语言切换 */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--c-muted); }
.lang-switch .icon { width: 16px; height: 16px; }
.lang-switch a { padding: 2px 4px; transition: color 0.25s; }
.lang-switch a:hover { color: var(--c-text); }
.lang-switch a[aria-current="true"] { color: var(--c-peach-2); font-weight: 700; }

/* 汉堡按钮 */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--c-text); transition: transform 0.4s var(--ease-out), opacity 0.3s, top 0.4s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* 移动端菜单 */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-mobile-nav);
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(232, 135, 159, 0.16), transparent 50%),
    rgba(13, 10, 11, 0.98);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav__inner { display: flex; flex-direction: column; gap: 28px; padding: 24px var(--gutter) 48px; }
.mobile-nav__list > li { border-bottom: 1px solid var(--c-line); }
.mobile-nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; font-family: var(--f-serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.08em; text-align: left; }
.mobile-nav__link.is-active { color: var(--c-peach-2); }
.mobile-nav__link .icon { transition: transform 0.35s var(--ease-out); }
.mobile-nav__link[aria-expanded="true"] .icon { transform: rotate(45deg); }
.mobile-nav__sub { padding: 0 0 14px 16px; }
.mobile-nav__sub a { display: flex; align-items: center; gap: 8px; padding: 10px 4px; color: var(--c-text-2); }
.mobile-nav__sub a.is-active { color: var(--c-peach-2); }
.mobile-nav__lang { display: flex; gap: 12px; justify-content: center; }
.mobile-nav__lang a { padding: 8px 18px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: 0.9rem; }
.mobile-nav__lang a[aria-current="true"] { border-color: var(--c-peach); color: var(--c-peach-2); }
body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .main-nav, .site-header__actions .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .site-header__brand { margin-top: 4px; }
  .site-header__brand .brand__logo { height: 74px; }
  .site-header.is-scrolled .site-header__brand .brand__logo, .header-solid .site-header__brand .brand__logo, .nav-open .site-header__brand .brand__logo { height: 54px; }
}
@media (max-width: 480px) {
  .site-header__cta span { display: none; }
  .site-header__cta { padding-inline: 12px; }
}
@media (min-width: 1101px) { .mobile-nav { display: none !important; } }

/* ---------- 内页横幅 ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 640px);
  padding: calc(var(--header-h) + 40px) 0 clamp(88px, 9vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: -8% 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: tl-kenburns 24s var(--ease-in-out) infinite alternate; }
.page-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 10, 11, 0.8) 0%, rgba(13, 10, 11, 0.35) 55%, rgba(13, 10, 11, 0.15) 100%),
    var(--grad-fade-b);
}
.page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.05; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
html[lang="en"] .page-hero__title { font-size: clamp(2rem, 5.5vw, 3.8rem); }
.page-hero__desc { max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--c-text-2); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(241, 221, 174, 0.5); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--c-gold-2); animation: tl-scroll-cue 2s var(--ease-in-out) infinite; }

/* ---------- 花瓣画布 ---------- */
.petals-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- 前后对比滑块 [data-compare] ---------- */
.compare { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; cursor: var(--cur-pointer); --pos: 50%; background: var(--c-bark); }
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--c-gold-2); box-shadow: 0 0 16px rgba(241, 221, 174, 0.8); }
.compare__handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid var(--c-gold-2);
  border-radius: 50%;
  background: rgba(13, 10, 11, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1ddae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  backdrop-filter: blur(4px);
}
.compare__label { position: absolute; top: 14px; padding: 4px 10px; font-size: 0.76rem; letter-spacing: 0.12em; background: rgba(13, 10, 11, 0.6); border: 1px solid var(--c-line-strong); pointer-events: none; }
.compare__label--before { left: 14px; }
.compare__label--after { right: 14px; }

/* ---------- 横向滑动轨道 [data-carousel] ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: none; scroll-snap-align: start; }
.carousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: var(--cur-pointer); }
.carousel__track.is-dragging * { pointer-events: none; }
.carousel__nav { display: flex; align-items: center; gap: 10px; }
.carousel__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-text);
  transition: all 0.3s var(--ease-out);
}
.carousel__btn:hover:not(:disabled) { border-color: var(--c-peach); color: var(--c-peach-2); background: rgba(232, 135, 159, 0.1); }
.carousel__btn:disabled { opacity: 0.3; cursor: var(--cur-default); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { position: relative; width: 22px; height: 3px; background: var(--c-line-strong); transition: all 0.35s var(--ease-out); }
.carousel__dots button::before { content: ""; position: absolute; inset: -20px -4px; } /* 扩大点击区域到 ≥44px */
.carousel__dots button[aria-current="true"] { width: 40px; background: var(--c-peach); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(8, 6, 7, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.lightbox.is-open { opacity: 1; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lightbox__count { font-family: var(--f-en); letter-spacing: 0.2em; font-size: 0.85rem; color: var(--c-muted); }
.lightbox__tools { display: flex; gap: 8px; }
.lightbox__tool { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%; color: var(--c-text); transition: all 0.3s; }
.lightbox__tool:hover { border-color: var(--c-peach); color: var(--c-peach-2); }
.lightbox__stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 clamp(8px, 6vw, 96px); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); transition: transform 0.45s var(--ease-out), opacity 0.35s; cursor: var(--cur-pointer); touch-action: pan-y pinch-zoom; }
.lightbox__img.is-zoomed { transform: scale(1.8); cursor: var(--cur-pointer); }
.lightbox__img.is-loading { opacity: 0.2; }
.lightbox__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: rgba(13, 10, 11, 0.5); transition: all 0.3s; }
.lightbox__nav:hover { border-color: var(--c-peach); color: var(--c-peach-2); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }
.lightbox__caption { padding: 14px var(--gutter) 22px; text-align: center; font-family: var(--f-serif); color: var(--c-text-2); }
@media (max-width: 640px) { .lightbox__nav { width: 42px; height: 42px; } }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 32px);
  bottom: clamp(14px, 2.5vw, 32px);
  z-index: 90;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(19, 15, 16, 0.85);
  color: var(--c-gold-2);
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* 压到正文（data-to-top-avoid）时收到屏幕右缘，只露出约 18px；悬停 / 聚焦时完整弹出（见 core.js） */
.to-top.is-visible.is-tucked { opacity: 0.72; transform: translateX(calc(100% - 18px + clamp(14px, 2.5vw, 32px))); }
.to-top.is-visible.is-tucked:hover, .to-top.is-visible.is-tucked:focus-visible { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .to-top { width: 44px; height: 44px; right: 12px; bottom: 12px; }
  .to-top.is-visible.is-tucked { transform: translateX(calc(100% - 16px + 12px)); }
}
.to-top:hover { color: var(--c-peach-2); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--c-line-strong); stroke-width: 1.5; }
.to-top__ring .to-top__progress { stroke: var(--c-peach); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; stroke-linecap: round; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  z-index: 500;
  padding: 12px 22px;
  background: rgba(35, 27, 28, 0.96);
  border: 1px solid rgba(232, 135, 159, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: 0.92rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 预加载 ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #1d1516 0%, var(--c-bg) 70%);
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.tl-visited .preloader, .no-js .preloader, .preloader.is-done { opacity: 0; visibility: hidden; }
.tl-visited .preloader { display: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__logo { width: min(360px, 72vw); height: auto; filter: drop-shadow(0 10px 40px rgba(232, 135, 159, 0.28)); animation: tl-logo-breathe 2.4s var(--ease-in-out) infinite alternate; }
@keyframes tl-logo-breathe { from { transform: scale(0.97); opacity: 0.86; } to { transform: scale(1.02); opacity: 1; } }
.preloader__bar { width: 160px; height: 1px; background: var(--c-line-strong); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--grad-peach); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease-out); }

/* ---------- 页面切换墨染 ---------- */
.page-veil { position: fixed; inset: 0; z-index: var(--z-veil); pointer-events: none; }
.page-veil__ink {
  position: absolute; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-bg) 60%, rgba(13, 10, 11, 0.9) 70%, rgba(13, 10, 11, 0) 72%);
  transform: scale(0);
  transition: transform 0.55s var(--ease-in-out);
}
body.is-leaving .page-veil { pointer-events: all; }
body.is-leaving .page-veil__ink { transform: scale(1); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(64px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 135, 159, 0.08), transparent 60%),
    #0a0809;
  border-top: 1px solid var(--c-line);
  font-size: 0.92rem;
  color: var(--c-text-2);
}
.site-footer__ornament { position: absolute; top: -1px; left: 50%; width: min(420px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--c-gold), transparent); }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer__slogan { max-width: 340px; color: var(--c-muted); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer__heading { margin-bottom: 14px; font-family: var(--f-serif); font-weight: 700; color: var(--c-gold); letter-spacing: 0.12em; }
.site-footer__cols li + li { margin-top: 8px; }
.site-footer__cols a { transition: color 0.25s; }
.site-footer__cols a:hover { color: var(--c-peach-2); }
/* 页脚底部：左侧法律信息，右侧游戏标识 */
.site-footer__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding-block: 28px max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); font-size: 0.82rem; color: var(--c-muted); }
.site-footer__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.site-footer__marks { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: stretch; gap: 10px; }
/* 自制标识：方形徽章（上：图形，下：文字条），与分级图标同高 */
.site-mark { --mk1: #e45a4f; --mk2: #8e2420; display: flex; flex-direction: column; width: 64px; height: 76px; overflow: hidden; border-radius: 8px; background: linear-gradient(160deg, var(--mk1), var(--mk2)); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45); color: #fff; transition: transform 0.35s var(--ease-out), box-shadow 0.35s; }
.site-mark:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.4), 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 18px color-mix(in srgb, var(--mk1) 45%, transparent); }
.site-mark--free { --mk1: #5fc2a6; --mk2: #1f6b5a; }
.site-mark--notopup { --mk1: #e8c983; --mk2: #8a6224; }
.site-mark__face { position: relative; display: grid; flex: 1; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.28), transparent 65%); }
.site-mark__face::after { content: ""; position: absolute; inset: 5px 5px 2px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 5px 5px 2px 2px; pointer-events: none; }
.site-mark__face .icon { width: 26px; height: 26px; stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.site-mark__band { display: grid; place-items: center; height: 22px; padding-inline: 2px; background: rgba(0, 0, 0, 0.32); font-family: var(--f-serif); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
html[lang="en"] .site-mark__band { font-family: var(--f-en); font-size: 8.5px; letter-spacing: 0.04em; }
/* 分级图标（用户提供的图片）：等高显示 */
.site-mark--rating { width: auto; padding: 0; background: none; box-shadow: none; }
.site-mark--rating:hover { box-shadow: none; }
.site-mark--rating img { width: auto; height: 76px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.site-footer__legal { display: flex; gap: 10px; }
.site-footer__legal a:hover { color: var(--c-peach-2); }
/* 备案号（站点设置 → 备案信息）：新窗口打开；点击区域至少 24px 高（WCAG 2.5.8） */
.site-footer__beian { flex-wrap: wrap; }
.site-footer__beian a { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding-block: 2px; }
.site-footer__beian img { flex: none; width: 20px; height: 20px; }
.site-footer__advice { max-width: 640px; font-size: 0.76rem; opacity: 0.8; }
@media (max-width: 900px) {
  .site-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__info { align-items: center; }
  .site-footer__marks { justify-content: center; }
}
@media (min-width: 901px) and (max-width: 1400px) { .site-footer__marks { margin-right: 64px; } } /* 让开右下角的返回顶部按钮 */
@media (max-width: 480px) { .site-footer__marks { gap: 7px; flex-wrap: nowrap; } .site-mark { width: 54px; height: 66px; } .site-mark--rating img { height: 66px; } .site-mark__face .icon { width: 22px; height: 22px; } .site-mark__band { height: 19px; font-size: 10px; } html[lang="en"] .site-mark__band { font-size: 7.5px; } }
/* 手机：页脚底部留出返回顶部按钮的位置（按钮固定在右下角，约 52px + 边距） */
@media (max-width: 768px) { .site-footer__bottom { padding-bottom: calc(52px + clamp(14px, 2.5vw, 32px) + 20px); } }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 正文排版（文章 / 法律文本） ---------- */
.prose { max-width: 780px; color: var(--c-text-2); font-size: 1.02rem; line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; color: var(--c-text); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--c-text); }
.prose strong { color: var(--c-peach-2); font-weight: 700; }
.prose a { color: var(--c-peach-2); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.1em; top: 0.85em; width: 6px; height: 6px; background: var(--c-peach); transform: rotate(45deg); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding: 16px 20px; border-left: 2px solid var(--c-peach); background: rgba(232, 135, 159, 0.06); color: var(--c-text); }
.prose img { border: 1px solid var(--c-line); }
.prose table { width: 100%; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--c-line); }
.prose th { color: var(--c-gold); background: rgba(217, 191, 134, 0.06); }

/* ---------- 商店下载按钮 store_badges() ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.store-badge { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; transition: transform 0.35s var(--ease-out), filter 0.35s; }
.store-badge img { width: 168px; height: auto; border-radius: 8px; }
.store-badges--sm .store-badge img { width: 132px; }
.store-badges--lg .store-badge img { width: 200px; }
a.store-badge:hover { transform: translateY(-3px); filter: drop-shadow(0 8px 18px rgba(232, 135, 159, 0.35)); }
.store-badge.is-soon { cursor: var(--cur-default); }
.store-badge.is-soon img { opacity: 0.55; filter: grayscale(0.35); }
.store-badge__soon { font-size: 0.74rem; letter-spacing: 0.14em; color: var(--c-mist); }

/* ---------- 角色持械 .figure（includes/figure.php + assets/js/figure.js） ----------
   页面决定 .figure 的宽高；角色舞台高度占 88%，底部对齐、水平居中，武器可超出舞台。
   --fig-glow：武器光晕颜色（如职业主题色） */
.figure { --fig-glow: rgba(241, 221, 174, 0.55); --fig-height: 88%; position: relative; width: 100%; height: 100%; min-height: 240px; pointer-events: none; }
.figure__stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: var(--fig-height);
  aspect-ratio: var(--fig-ar, 2 / 5);
  transform: translateX(-50%);
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out), filter 0.26s;
}
.figure__body { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.figure__layer { position: absolute; max-width: none; }
.figure__layer--weapon img { display: block; width: 100%; height: 100%; max-width: none; will-change: rotate; filter: drop-shadow(0 0 10px var(--fig-glow)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); animation: tl-fig-sway 5.5s var(--ease-in-out) infinite; }
.figure__layer--b img { animation-delay: -2.4s; }
.figure--over .figure__layer--weapon img { animation: none; filter: drop-shadow(0 0 8px var(--fig-glow)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.figure--back .figure__layer--weapon img { animation: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.figure__layer--hand { pointer-events: none; }
.figure.is-leaving .figure__stage { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.98); filter: blur(4px); }
.figure.is-entering .figure__body { animation: tl-fig-body-in 0.7s var(--ease-out) both; }
.figure.is-entering .figure__layer--weapon { animation: tl-fig-draw 0.9s var(--ease-out) both; animation-delay: calc(0.18s + var(--fig-delay, 0s)); }
.figure.is-entering .figure__layer--hand { animation: tl-fig-body-in 0.5s var(--ease-out) both 0.35s; }
@keyframes tl-fig-sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.6deg; } } /* 独立 rotate 属性：合成层动画，不每帧重绘 */
@keyframes tl-fig-body-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tl-fig-draw {
  0% { opacity: 0; filter: brightness(2.2) blur(3px); translate: 0 -18px; }
  55% { opacity: 1; filter: brightness(1.6); }
  100% { opacity: 1; filter: none; translate: 0 0; }
}

/* ---------- 滚动出现动画 [data-reveal] ---------- */
/* 使用独立的 translate / scale 属性（不占用 transform），元素自身的 transform 与 hover 位移不受影响 */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out), scale 0.9s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0) * 0.12s); }
.js [data-reveal="left"] { translate: -40px 0; }
.js [data-reveal="right"] { translate: 40px 0; }
.js [data-reveal="zoom"] { translate: none; scale: 0.92; }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="ink"] { translate: none; clip-path: inset(0 100% 0 0); transition: opacity 0.9s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0) * 0.12s); }
.js [data-reveal="draw"] { translate: none; }
.js [data-reveal="draw"] i { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0) * 0.12s + 0.2s); }
[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }
[data-reveal-delay="4"] { --reveal-delay: 4; }
[data-reveal-delay="5"] { --reveal-delay: 5; }
[data-reveal-delay="6"] { --reveal-delay: 6; }
[data-reveal-delay="7"] { --reveal-delay: 7; }
[data-reveal-delay="8"] { --reveal-delay: 8; }
.js [data-reveal].is-revealed { opacity: 1; translate: none; scale: none; }
.js [data-reveal="ink"].is-revealed { clip-path: inset(0 0 0 0); }
.js [data-reveal="draw"].is-revealed i { transform: none; }

/* ---------- 动画 ---------- */
@keyframes tl-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tl-kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes tl-scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes tl-tick { 0% { transform: translateY(-6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
@keyframes tl-seal { from { transform: rotate(-6deg) scale(0.96); } to { transform: rotate(4deg) scale(1.04); } }
@keyframes tl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes tl-glow-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@keyframes tl-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

@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; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; clip-path: none; }
}
