/* ============================================================
   N109 · 秦彻档案站 — 2026.09 「午夜华筵」视觉改版
   Visual language: Shimmering Blend — 深红宝石 / 香槟金 / 奶油白
   Layout: editorial 12-col shell + numbered chapters + deco frames
   ============================================================ */

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  /* —— 基底 —— */
  --bg: #0a0407;
  --bg-deep: #050203;
  --surface: #150a0e;
  --surface-2: #1d0d13;
  --surface-3: #27121b;

  /* —— 红酒色阶 —— */
  --bordeaux: #4c0514;
  --claret: #7a0b20;
  --ruby: #b0112a;
  --ruby-bright: #e42a44;
  --red-glow: rgba(var(--ruby-bright-rgb), 0.12);

  /* —— 香槟金 —— */
  --gold: #c79a54;
  --gold-2: #e8c88c;
  --gold-3: #f8eacb;

  /* —— 奶油白 —— */
  --ink: #f5ede3;
  --ink-2: #cbb9ab;
  --ink-3: #8a7264;
  --on-gold: #12060a;
  /* theme RGB triplets - used as rgba(var(--x-rgb), a) so a theme swap recolours everything */
  --bordeaux-rgb: 76, 5, 20;
  --claret-rgb: 122, 11, 32;
  --ruby-rgb: 176, 17, 42;
  --ruby-bright-rgb: 228, 42, 68;
  --gold-rgb: 199, 154, 84;
  --gold-2-rgb: 232, 200, 140;
  --gold-3-rgb: 248, 234, 203;
  --ink-rgb: 245, 237, 227;
  --ink-2-rgb: 203, 185, 171;
  --deep-rgb: 5, 2, 3;
  --panel-rgb: 12, 5, 8;
  --raised-rgb: 29, 13, 19;
  --base-rgb: 10, 4, 7;
  --deeper-rgb: 20, 4, 10;
  --blend-rgb: 64, 1, 15;

  /* —— 描边 —— */
  --line: rgba(var(--gold-2-rgb), 0.16);
  --line-soft: rgba(var(--ink-rgb), 0.075);

  /* —— 兼容旧变量名（HTML 内联样式引用） —— */
  --primary-red: var(--ruby-bright);
  --light-red: var(--ruby-bright);
  --dark-red: var(--bordeaux);
  --accent-gold: var(--gold);
  --light-gold: var(--gold-2);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --border: var(--line-soft);
  --border-light: var(--line);
  --border-hover: rgba(var(--ruby-bright-rgb), 0.28);
  --surface-light: var(--surface-2);
  --surface-raised: var(--surface-2);
  --accent-purple: #2a0f16;

  /* —— 形状 —— */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --radius-full: 9999px;

  /* —— 版式 —— */
  --shell: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-padding: clamp(84px, 9vw, 148px) var(--gutter);

  /* —— 玻璃 —— */
  --glass-bg: rgba(var(--panel-rgb), 0.42);
  --glass-bg-light: rgba(var(--panel-rgb), 0.32);
  --glass-border: rgba(var(--gold-2-rgb), 0.14);
  --glass-border-glow: rgba(var(--gold-rgb), 0.3);
  --glass-blur: blur(22px);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(var(--gold-2-rgb), 0.16), 0 26px 70px rgba(var(--bordeaux-rgb), 0.55);

  --font-display: "ZCOOL XiaoWei", "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", "LXGW WenKai", serif;
  --font-body: "Noto Sans SC", "Inter", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --font-wide: "Anybody", "Inter", sans-serif;
}

/* 站酷小薇体（ZCOOL XiaoWei）缺「回」字形，会渲染成实心方块；
   给同族补一枚本地衬线字形，只作用于 U+56DE 这一个字。 */
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: local("Noto Serif SC"), local("Source Han Serif SC"), local("Songti SC"), local("SimSun"),
    local("Microsoft YaHei"), local("PingFang SC");
  unicode-range: U+56DE;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  /* 全局柔和红宝石辉光 */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(var(--ruby-rgb), 0.22), transparent 62%),
    radial-gradient(900px 520px at 6% 100%, rgba(var(--bordeaux-rgb), 0.4), transparent 66%);
}

::selection {
  background: rgba(var(--ruby-rgb), 0.5);
  color: var(--gold-3);
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* —— 滚动条 —— */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--bordeaux), var(--claret));
  border: 2px solid var(--bg-deep);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--claret), var(--ruby));
}

/* ===== Motion primitives ===== */
@keyframes feather-fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(112vh) translateX(48px) rotate(24deg);
    opacity: 0;
  }
}
@keyframes feather-sway {
  0%,
  100% {
    transform: translateX(-12px) rotate(-6deg);
  }
  50% {
    transform: translateX(12px) rotate(6deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.6deg);
  }
}
@keyframes glow-pulse {
  0%,
  100% {
    text-shadow: 0 0 42px rgba(var(--ruby-bright-rgb), 0.28), 0 0 110px rgba(var(--bordeaux-rgb), 0.4);
  }
  50% {
    text-shadow: 0 0 66px rgba(var(--ruby-bright-rgb), 0.46), 0 0 150px rgba(var(--claret-rgb), 0.5);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% {
    background-position: -220% center;
  }
  100% {
    background-position: 220% center;
  }
}
@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
@keyframes sheen {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  100% {
    transform: translateX(240%) skewX(-18deg);
  }
}

/* ===== Textures & backdrop layers ===== */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.dragon-scale-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(var(--gold-rgb), 0.045) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-115deg, rgba(var(--ruby-rgb), 0.05) 0 1px, transparent 1px 11px);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 20%, transparent 78%);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.global-bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.global-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 14s linear;
  filter: saturate(0.72) contrast(1.06) brightness(0.5);
}

.global-bg-slide.active {
  opacity: 0.5;
  transform: scale(1);
}

.global-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--base-rgb), 0.45), rgba(var(--base-rgb), 0.9) 62%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(var(--bordeaux-rgb), 0.42), rgba(var(--deep-rgb), 0.86));
}

/* ===== Chapter rail (desktop, editorial index) ===== */
.sec-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--base-rgb), 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sec-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 3px 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sec-rail a i {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.sec-rail a span {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease;
}

.sec-rail a:hover,
.sec-rail a.active {
  color: var(--gold-2);
}

.sec-rail a.active i {
  background: var(--ruby-bright);
  border-color: var(--ruby-bright);
  box-shadow: 0 0 10px rgba(var(--ruby-bright-rgb), 0.7);
}

.sec-rail a:hover span,
.sec-rail a.active span {
  max-width: 120px;
  opacity: 1;
}

@media (min-width: 1460px) {
  .sec-rail {
    display: flex;
  }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-preheat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding: 9px 52px 9px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--gold-3);
  background: linear-gradient(90deg, var(--bordeaux), var(--claret) 42%, var(--ruby) 72%, var(--bordeaux));
  border-bottom: 1px solid rgba(var(--gold-2-rgb), 0.28);
  overflow: hidden;
}

.nav-preheat::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-3-rgb), 0.22), transparent);
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.nav-preheat.hidden {
  display: none;
}

.nav-preheat span {
  position: relative;
  z-index: 1;
}

.nav-preheat > span:not(.pulse-dot) {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-3);
  box-shadow: 0 0 0 0 rgba(var(--gold-3-rgb), 0.6);
  animation: pulse-dot 1.8s infinite;
  flex: none;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--gold-3-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(var(--gold-3-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--gold-3-rgb), 0);
  }
}

.preheat-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--gold-3);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.preheat-close:hover {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  height: 74px;
  padding: 0 var(--gutter);
  position: relative;
  background: linear-gradient(180deg, rgba(var(--base-rgb), 0.94), rgba(var(--base-rgb), 0.62) 72%, rgba(var(--base-rgb), 0));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled .nav-inner {
  height: 64px;
  background: rgba(var(--deep-rgb), 0.9);
  border-bottom-color: var(--line);
}

.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--bordeaux), var(--ruby), var(--gold-2));
  box-shadow: 0 0 14px rgba(var(--ruby-bright-rgb), 0.6);
  z-index: 3;
  transition: width 0.1s linear;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
  padding-right: clamp(6px, 1vw, 18px);
  border-right: 1px solid var(--line-soft);
}

.nav-logo-crown {
  width: 20px;
  height: 20px;
  fill: var(--gold-2);
  filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.5));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.nav-logo:hover .nav-logo-text {
  color: var(--gold-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 8px);
  list-style: none;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.nav-links a {
  display: inline-block;
  position: relative;
  padding: 8px 9px;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.28s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, var(--ruby-bright), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-3);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.is-new::before {
  content: "NEW";
  position: absolute;
  top: -3px;
  right: 2px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--on-gold);
  background: var(--gold-2);
  padding: 1px 4px;
  border-radius: 1px;
}

.nav-raven {
  width: 22px;
  height: 22px;
  fill: var(--ink-3);
  opacity: 0.5;
  flex: none;
  transition: fill 0.3s ease, opacity 0.3s ease;
}

.nav-raven:hover {
  fill: var(--gold-2);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  cursor: pointer;
  flex: none;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 40px;
  gap: 2px;
  background: rgba(var(--deep-rgb), 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 100vh;
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile a {
  padding: 15px 4px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-soft);
}

.nav-mobile a:hover {
  color: var(--gold-2);
  padding-left: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("images/hero_banner_custom.jpg");
  background-size: cover;
  background-position: 50% 26%;
  filter: saturate(0.6) contrast(1.1) brightness(0.42);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 78% 22%, rgba(var(--ruby-rgb), 0.36), transparent 60%),
    linear-gradient(100deg, rgba(var(--deep-rgb), 0.96) 8%, rgba(var(--base-rgb), 0.72) 48%, rgba(var(--raised-rgb), 0.6) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 78% at 50% 46%, transparent 38%, rgba(var(--deep-rgb), 0.85) 100%);
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(to top, var(--bg) 6%, transparent);
  z-index: 2;
  pointer-events: none;
}

.wing-decor {
  position: absolute;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(0.4px);
}

.wing-decor.left {
  transform: translateX(-30%);
}

.wing-decor.right {
  transform: translateX(30%) scaleX(-1);
}

/* — 主视觉网格 — */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 76px);
}

.hero-content {
  position: relative;
  max-width: 640px;
  animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(var(--bordeaux-rgb), 0.35);
  margin-bottom: 26px;
}

.hero-eyebrow b {
  color: var(--ruby-bright);
  font-weight: 500;
}

.hero-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ruby-bright);
  box-shadow: 0 0 10px rgba(var(--ruby-bright-rgb), 0.9);
  transform: rotate(45deg);
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--ink);
  animation: glow-pulse 6.5s ease-in-out infinite;
}

.hero-title .hero-title-latin {
  display: block;
  margin-top: 10px;
  font-family: var(--font-wide);
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 300;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: none;
}

.hero-subtitle {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.hero-quote {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid var(--ruby);
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  max-width: 470px;
}

.hero-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  max-width: 420px;
}

.hero-line-diamond {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-line-bar {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), rgba(var(--gold-rgb), 0.5), var(--line));
}

.hero-raven {
  width: 20px;
  height: 20px;
  flex: none;
  fill: var(--gold-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.btn-primary {
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, var(--gold-2));
  border: 1px solid var(--gold-3);
  box-shadow: 0 12px 34px rgba(var(--gold-rgb), 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(var(--gold-rgb), 0.38);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: sheen 3.6s ease-in-out infinite;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(var(--panel-rgb), 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--ruby-bright);
  color: var(--gold-2);
  background: rgba(var(--bordeaux-rgb), 0.45);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat b {
  font-family: var(--font-wide);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-2);
}

.hero-stat span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* — 主视觉右侧：思念卡扇 — */
.hero-deck {
  position: relative;
  height: clamp(360px, 46vw, 560px);
  perspective: 1400px;
  animation: fade-up 1.2s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-deck-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 21vw, 268px);
  aspect-ratio: 3 / 4;
  transform-origin: center bottom;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 9px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.hero-deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.hero-deck-card figcaption {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  padding: 10px 12px 12px;
  background: linear-gradient(to top, rgba(var(--deep-rgb), 0.94), transparent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.hero-deck-card figcaption em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-top: 2px;
}

.hero-deck-card.c1 {
  transform: translate(-116%, -50%) rotate(-9deg) scale(0.9);
  z-index: 1;
}

.hero-deck-card.c2 {
  transform: translate(-50%, -54%) rotate(0deg) scale(1);
  z-index: 3;
}

.hero-deck-card.c3 {
  transform: translate(16%, -50%) rotate(9deg) scale(0.9);
  z-index: 2;
}

.hero-deck:hover .hero-deck-card.c1 {
  transform: translate(-132%, -52%) rotate(-13deg) scale(0.94);
}

.hero-deck:hover .hero-deck-card.c2 {
  transform: translate(-50%, -58%) rotate(0deg) scale(1.04);
}

.hero-deck:hover .hero-deck-card.c3 {
  transform: translate(32%, -52%) rotate(13deg) scale(0.94);
}

.hero-deck-badge {
  position: absolute;
  right: 2%;
  top: 6%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  background: rgba(var(--deep-rgb), 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-deck-badge b {
  font-family: var(--font-wide);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
}

.hero-deck-badge span {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

/* — 底部速报走马灯 — */
.hero-ticker {
  position: relative;
  z-index: 3;
  margin-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid rgba(var(--gold-rgb), 0.35);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
  background:
    linear-gradient(90deg, rgba(var(--ruby-bright-rgb), 0.14), transparent 58%),
    linear-gradient(90deg, rgba(var(--claret-rgb), 0.62), rgba(var(--bordeaux-rgb), 0.44) 48%, rgba(var(--deep-rgb), 0.66));
  box-shadow: inset 0 0 46px rgba(var(--ruby-rgb), 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-ticker-label {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 8px 0 22px rgba(var(--deep-rgb), 0.55);
}

.hero-ticker-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.hero-ticker:hover .hero-ticker-track {
  animation-play-state: paused;
}

.hero-ticker-track span {
  padding: 12px 26px;
  border-right: 1px solid var(--line-soft);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  white-space: nowrap;
}

.hero-ticker-track span b {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  font-weight: 500;
  color: var(--gold-2);
  background: rgba(var(--gold-rgb), 0.16);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 2px;
}

.hero-ticker-track span:nth-child(2n) b {
  color: var(--ruby-bright);
  background: rgba(var(--ruby-bright-rgb), 0.16);
  border-color: rgba(var(--ruby-bright-rgb), 0.34);
}

/* — 羽毛 — */
.feather-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.feather {
  position: absolute;
  top: -12vh;
  width: 14px;
  opacity: 0;
  animation: feather-fall linear infinite;
}

.feather svg {
  width: 100%;
  height: auto;
  fill: rgba(var(--ink-rgb), 0.16);
}

.feather svg path:last-child {
  stroke: rgba(var(--ink-rgb), 0.24);
}

.feather:nth-child(1) { left: 6%; animation-duration: 19s; animation-delay: 0s; }
.feather:nth-child(2) { left: 18%; animation-duration: 25s; animation-delay: 3s; width: 10px; }
.feather:nth-child(3) { left: 31%; animation-duration: 21s; animation-delay: 7s; }
.feather:nth-child(4) { left: 46%; animation-duration: 28s; animation-delay: 2s; width: 9px; }
.feather:nth-child(5) { left: 62%; animation-duration: 22s; animation-delay: 9s; }
.feather:nth-child(6) { left: 74%; animation-duration: 26s; animation-delay: 5s; width: 11px; }
.feather:nth-child(7) { left: 87%; animation-duration: 20s; animation-delay: 12s; }
.feather:nth-child(8) { left: 94%; animation-duration: 30s; animation-delay: 1s; width: 8px; }

.feather-white svg {
  fill: rgba(var(--gold-rgb), 0.2);
}

.hero-feather-main {
  display: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  animation: float 2.6s ease-in-out infinite;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section frame (editorial chapter system) ===== */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-padding);
}

/* 相邻章节之间收紧留白，避免双倍间距 */
.section + .section {
  padding-top: clamp(56px, 5.5vw, 96px);
}

.event-section {
  padding-top: clamp(56px, 6vw, 104px);
}

.section-header {
  position: relative;
  z-index: 2;
  counter-increment: chapter;
  margin-bottom: clamp(38px, 5vw, 68px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

body {
  counter-reset: chapter;
}

.section-header::before {
  content: "CHAPTER " counter(chapter, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

.section-header::after {
  counter-increment: none;
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: -18px;
  font-family: var(--font-wide);
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--gold-rgb), 0.16);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.14;
  color: var(--ink);
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.5em;
  letter-spacing: 0.2em;
  color: var(--gold);
  vertical-align: middle;
  margin-left: 14px;
}

.section-header > p {
  color: var(--ink-2) !important;
  font-size: 14.5px !important;
  line-height: 2 !important;
  letter-spacing: 0.03em;
  max-width: 720px;
  margin-top: 18px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.section-divider-line {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-divider-line:last-child {
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.section-divider-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: var(--gold);
  opacity: 0.85;
}

.section-accent-left {
  border-left: 1px solid var(--line);
}

.section-gradient {
  background:
    radial-gradient(70% 46% at 88% 8%, rgba(var(--ruby-rgb), 0.14), transparent 62%),
    radial-gradient(60% 44% at 4% 96%, rgba(var(--bordeaux-rgb), 0.3), transparent 66%);
}

/* ===== Generic UI atoms ===== */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 13px 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(var(--panel-rgb), 0.4);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.32s ease;
}

.view-all-btn:hover {
  color: var(--gold-3);
  border-color: var(--gold);
  background: rgba(var(--bordeaux-rgb), 0.4);
}

.view-all-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s ease;
}

.view-all-btn.open svg {
  transform: rotate(180deg);
}

/* ===== Card gallery ===== */
.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.bento-mode {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 224px);
}

/* 杂志式非对称编排：2 张主视觉 + 2 张横条 + 2 张竖版 + 1 张方版 */
.card-grid.bento-mode .card:nth-child(1) { grid-area: 1 / 1 / span 3 / span 2; }
.card-grid.bento-mode .card:nth-child(2) { grid-area: 1 / 3 / span 2 / span 2; }
.card-grid.bento-mode .card:nth-child(3) { grid-area: 3 / 3 / span 1 / span 1; }
.card-grid.bento-mode .card:nth-child(4) { grid-area: 3 / 4 / span 1 / span 1; }
.card-grid.bento-mode .card:nth-child(5) { grid-area: 4 / 3 / span 2 / span 1; }
.card-grid.bento-mode .card:nth-child(6) { grid-area: 4 / 4 / span 2 / span 1; }
.card-grid.bento-mode .card:nth-child(7) { grid-area: 4 / 1 / span 2 / span 2; }
.card-grid.bento-mode .card:nth-child(n + 8) { display: none; }

.card-grid.bento-mode .card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-grid.bento-mode .card::before,
.card-grid.bento-mode .card::after {
  display: none;
}

.card-grid.bento-mode .card-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

.card-grid.bento-mode .card-photo {
  object-position: 50% 18%;
}

.card-grid.bento-mode .card-info {
  height: auto;
  padding: 40px 22px 20px;
  background: linear-gradient(to top, rgba(var(--deep-rgb), 0.95) 0%, rgba(var(--deep-rgb), 0.6) 45%, transparent 100%);
  border-top: none;
  box-shadow: none;
}

.card-grid.bento-mode .card-name {
  font-size: clamp(17px, 1.5vw, 22px);
}

/* Full mode */
.card-grid.full-mode {
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}

.card-grid.full-mode .card {
  grid-column: auto !important;
  grid-row: auto !important;
  display: block !important;
}

/* ===== The card ===== */
.card {
  position: relative;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid var(--line);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(var(--gold-2-rgb), 0.09);
  transition: border-color 0.45s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 46px rgba(var(--ruby-rgb), 0.22);
}

.card:hover::before {
  border-color: rgba(var(--gold-2-rgb), 0.5);
  box-shadow: inset 0 0 42px rgba(var(--ruby-rgb), 0.14);
}

.card:hover::after {
  border-color: rgba(var(--gold-2-rgb), 0.22);
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  z-index: 1;
  display: block;
  filter: saturate(0.94) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.card:hover .card-photo {
  transform: scale(1.07);
  filter: saturate(1.05) contrast(1.06);
}

.card-glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(var(--gold-2-rgb), 0.07) 42%,
    transparent 68%
  );
  mix-blend-mode: overlay;
  transition: opacity 0.35s ease;
}

.card.glare-active .card-glare {
  opacity: 1;
}

.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 34px 22px 18px;
  height: 40%;
  background: linear-gradient(to top, rgba(var(--deep-rgb), 0.95) 8%, rgba(var(--deep-rgb), 0.55) 52%, transparent);
  border-top: none;
}

.card:hover .card-info {
  background: linear-gradient(to top, rgba(var(--deeper-rgb), 0.96) 8%, rgba(var(--deeper-rgb), 0.5) 55%, transparent);
}

.card-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.2;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(var(--ink-2-rgb), 0.85);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  color: var(--gold-2);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--bordeaux-rgb), 0.45);
  transition: all 0.3s ease;
}

.card:hover .card-tag {
  color: var(--on-gold);
  background: var(--gold-2);
  border-color: var(--gold-3);
}

/* ===== Sort bar & view toggle ===== */
.sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sort-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-btn:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

.sort-btn.active {
  color: var(--on-gold);
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.sort-dir {
  font-size: 8px;
  transition: transform 0.3s ease;
}

.sort-dir.flip {
  transform: rotate(180deg);
}

.view-toggle {
  display: flex;
  gap: 0;
  margin: 0 0 26px;
  border: 1px solid var(--line-soft);
  width: fit-content;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn + .view-btn {
  border-left: 1px solid var(--line-soft);
}

.view-btn:hover {
  color: var(--ink);
}

.view-btn.active {
  color: var(--gold-3);
  background: linear-gradient(120deg, rgba(var(--bordeaux-rgb), 0.7), rgba(var(--claret-rgb), 0.5));
}

.view-icon {
  font-size: 13px;
  line-height: 1;
}

/* ===== Stack view (Swiper coverflow) ===== */
.card-grid.stack-view {
  display: block;
  padding: 10px 0 40px;
}

.card-grid.stack-view .swiper {
  width: 100%;
  padding: 26px 0 58px;
  overflow: hidden;
}

.card-grid.stack-view .swiper-slide {
  width: clamp(230px, 26vw, 320px);
  height: auto;
}

.card-grid.stack-view .card {
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-grid.stack-view .swiper-slide-active .card {
  opacity: 1;
  transform: translateY(-10px);
}

.card-grid.stack-view .swiper-pagination {
  position: static;
  margin-top: 26px;
  height: 2px;
  background: var(--line-soft);
}

.card-grid.stack-view .swiper-pagination-progressbar-fill {
  background: linear-gradient(90deg, var(--ruby-bright), var(--gold-2));
}

.card-grid.stack-view .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--ink-3);
  opacity: 0.5;
  transform: rotate(45deg);
}

.card-grid.stack-view .swiper-pagination-bullet-active {
  background: var(--gold-2);
  opacity: 1;
  box-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.7);
}

/* ===== Card detail modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(var(--deep-rgb), 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow: hidden;
  background: linear-gradient(140deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: translateY(26px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--gold-2-rgb), 0.12);
  pointer-events: none;
  z-index: 3;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 88vh;
  object-fit: cover;
  display: block;
  background: var(--surface);
  filter: saturate(0.95) contrast(1.04);
}

.modal-body {
  position: relative;
  padding: clamp(26px, 3.4vw, 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--deep-rgb), 0.7);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--gold-3);
  border-color: var(--gold);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.4;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.modal-meta-value {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.modal-stars {
  display: flex;
  gap: 4px;
}

.modal-star {
  width: 15px;
  height: 15px;
  fill: var(--gold-2);
}

.modal-star.empty {
  fill: rgba(var(--ink-rgb), 0.14);
}

.modal-rerun-no {
  color: var(--ruby-bright);
}

.modal-rerun-yes {
  color: var(--gold-2);
}

.modal-story {
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.modal-story-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.modal-story-text {
  font-size: 14.5px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  text-align: justify;
}

/* ===== Preheat / alert card (hero 下方速报卡) ===== */
.preheat-card-wrapper {
  max-width: var(--shell);
  margin: -34px auto 0;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 4;
}

.preheat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(100deg, rgba(var(--bordeaux-rgb), 0.72), rgba(var(--base-rgb), 0.86));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.35s ease;
}

.preheat-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(var(--ruby-rgb), 0.25);
}

.preheat-card-icon {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid var(--line);
  background: rgba(var(--deep-rgb), 0.6);
}

.pulse-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ruby-bright);
  animation: pulse-ring 2.4s ease-out infinite;
}

.preheat-card-body {
  flex: 1;
  min-width: 0;
}

.preheat-card-line1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preheat-card-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  color: var(--on-gold);
  background: var(--gold-2);
}

.preheat-card-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.07em;
}

.preheat-card-detail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.preheat-card-detail .sep {
  color: var(--gold);
}

.preheat-card-arrow {
  flex: none;
  font-size: 20px;
  color: var(--gold-2);
  transition: transform 0.35s ease;
}

.preheat-card:hover .preheat-card-arrow {
  transform: translateX(6px);
}

/* ============================================================
   ★ 最新活动速报 (2026.09 — 华筵和奏 / 秋绘映眸)
   ============================================================ */
.event-section {
  position: relative;
}

.event-grid {
  display: grid;
  gap: 24px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  background: linear-gradient(140deg, rgba(var(--raised-rgb), 0.92), rgba(var(--base-rgb), 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--gold-2-rgb), 0.1);
  pointer-events: none;
  z-index: 3;
}

.event-card--ruby {
  background: linear-gradient(140deg, rgba(var(--bordeaux-rgb), 0.92), rgba(var(--base-rgb), 0.95) 62%);
}

.event-card--gold {
  background: linear-gradient(140deg, rgba(var(--raised-rgb), 0.72), rgba(var(--panel-rgb), 0.95) 60%);
}

.event-card.reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}

.event-card.reverse .event-card-media {
  order: 2;
}

.event-card-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
}

.event-card.reverse .event-card-media {
  border-right: none;
  border-left: 1px solid var(--line-soft);
}

.event-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-card:hover .event-card-media img {
  transform: scale(1.05);
}

.event-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--deep-rgb), 0.1), rgba(var(--deep-rgb), 0.72));
}

.event-card-ribbon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-3), var(--gold));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-card--ruby .event-card-ribbon {
  color: var(--gold-3);
  background: linear-gradient(120deg, var(--ruby-bright), var(--claret));
}

.event-card-stars {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 5px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  text-shadow: 0 0 16px rgba(var(--gold-2-rgb), 0.7);
}

.event-card-body {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 3.2vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: rgba(var(--deep-rgb), 0.55);
}

.event-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}

.event-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.16;
  color: var(--ink);
}

.event-card-title span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-wide);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-quote {
  position: relative;
  padding: 14px 18px 14px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14.5px, 1.4vw, 17.5px);
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--gold-3);
  background: linear-gradient(90deg, rgba(var(--ruby-rgb), 0.22), transparent 78%);
  border-left: 2px solid var(--ruby-bright);
}

.event-card-desc {
  font-size: 14.5px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
  border: 1px solid var(--line-soft);
  width: fit-content;
  max-width: 100%;
}

.event-tab {
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: transparent;
  border: none;
  border-right: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-tab:last-child {
  border-right: none;
}

.event-tab:hover {
  color: var(--ink);
}

.event-tab.active {
  color: var(--gold-3);
  background: linear-gradient(120deg, rgba(var(--bordeaux-rgb), 0.75), rgba(var(--claret-rgb), 0.55));
}

.event-panels {
  position: relative;
}

.event-panel {
  display: none;
  animation: fade-up 0.5s ease both;
}

.event-panel.active {
  display: block;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.event-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.event-list li b {
  color: var(--gold-2);
  font-weight: 500;
}

.event-list li em {
  font-style: normal;
  color: var(--ink);
}

/* 五选三自选池 */
.event-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 8px;
}

.event-pool li {
  list-style: none;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--deep-rgb), 0.45);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.3s ease;
}

.event-pool li span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.event-pool li.qinche {
  border-color: rgba(var(--gold-2-rgb), 0.5);
  background: linear-gradient(120deg, rgba(var(--ruby-rgb), 0.35), rgba(var(--deep-rgb), 0.5));
  color: var(--gold-3);
}

/* 签到进度轨 */
.signin-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.signin-day {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  background: rgba(var(--deep-rgb), 0.4);
  transition: all 0.35s ease;
}

.signin-day.milestone {
  color: var(--gold-2);
  border-color: rgba(var(--gold-2-rgb), 0.45);
}

.signin-day.final {
  color: var(--gold-3);
  border-color: var(--gold-2);
  background: linear-gradient(120deg, rgba(var(--ruby-rgb), 0.5), rgba(var(--bordeaux-rgb), 0.6));
  box-shadow: 0 0 18px rgba(var(--ruby-rgb), 0.4);
}

.event-card:hover .signin-day {
  border-color: rgba(var(--gold-2-rgb), 0.35);
}

.reward-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  background: rgba(var(--deep-rgb), 0.5);
}

.reward-chip i {
  font-style: normal;
  color: var(--gold-2);
}

.event-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.event-note {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-note b {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-note p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* ============================================================
   ★ 酌光特调 · Shimmering Blend （色系 / 元素参考）
   ============================================================ */
.blend-section {
  position: relative;
  padding-top: clamp(70px, 8vw, 120px);
}

.blend-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 88% 12%, rgba(196, 12, 41, 0.34), transparent 62%),
    linear-gradient(155deg, #40010f 0%, #65061a 34%, #2a0209 78%, #12030a 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.blend-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(var(--gold-3-rgb), 0.24) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 60% at 20% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 60% at 20% 20%, #000, transparent 70%);
}

.blend-menu {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blend-menu-head {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: #fff4e2;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.blend-menu-head span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: 0.16em;
  color: rgba(var(--gold-3-rgb), 0.72);
  text-transform: none;
}

.blend-recipe-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(var(--gold-3-rgb), 0.6);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(var(--gold-3-rgb), 0.2);
}

.blend-recipe {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.blend-recipe li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(var(--gold-3-rgb), 0.16);
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: #fff2df;
}

.blend-recipe li i {
  flex: 1;
  border-bottom: 1px dotted rgba(var(--gold-3-rgb), 0.28);
  transform: translateY(-4px);
}

.blend-recipe li b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--gold-3-rgb), 0.66);
}

.blend-recipe li em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  color: #40010f;
  background: rgba(var(--gold-3-rgb), 0.9);
}

.blend-meters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blend-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 242, 223, 0.9);
}

.blend-meter > span:first-child {
  min-width: 62px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(var(--gold-3-rgb), 0.68);
}

.blend-meter .glyphs {
  letter-spacing: 0.24em;
  font-size: 14px;
  color: rgba(var(--gold-3-rgb), 0.28);
}

.blend-meter .glyphs b {
  font-weight: 400;
  color: #ffe9c6;
  text-shadow: 0 0 14px rgba(255, 233, 198, 0.6);
}

.blend-meter.m-heart .glyphs b {
  color: #ff8fa3;
  text-shadow: 0 0 14px rgba(255, 143, 163, 0.6);
}

.blend-quote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--gold-3-rgb), 0.18);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #fff4e2;
}

.blend-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.blend-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.04) contrast(1.04);
}

.blend-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--blend-rgb), 0.85) 0%, rgba(var(--blend-rgb), 0.1) 34%, transparent 60%);
}

.blend-visual-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 3;
  padding: 10px 16px;
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #40010f;
  background: rgba(var(--gold-3-rgb), 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.blend-visual-badge span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* 恶魔团子（呼应参考图中的红色小恶魔） */
.blend-demon {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff5f72, #d81b3c 52%, #8d0a20);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset -6px -8px 18px rgba(0, 0, 0, 0.35);
  animation: float 5s ease-in-out infinite;
}

.blend-demon::before,
.blend-demon::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 22px;
  background: linear-gradient(180deg, #ff5f72, #b0112a);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.blend-demon::before {
  left: 4px;
  transform: rotate(-16deg);
}

.blend-demon::after {
  right: 4px;
  transform: rotate(16deg);
}

.blend-demon-eye {
  position: absolute;
  top: 30px;
  width: 14px;
  height: 5px;
  border-radius: 4px;
  background: #2b0209;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.blend-demon-eye.l {
  left: 14px;
}

.blend-demon-eye.r {
  right: 14px;
}

.blend-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.blend-strip-card {
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.35s ease;
}

.blend-strip-card:hover {
  border-color: rgba(var(--gold-2-rgb), 0.42);
  transform: translateY(-4px);
}

.blend-strip-card b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--gold-3);
}

.blend-strip-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ===== 角色档案 ===== */
.story-profile {
  position: relative;
}

.profile-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.profile-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.profile-value {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* ===== 故事章节卡 ===== */
.story-section {
  background: radial-gradient(70% 50% at 12% 0%, rgba(var(--bordeaux-rgb), 0.24), transparent 64%);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px 28px;
  background: linear-gradient(160deg, rgba(var(--raised-rgb), 0.85), rgba(var(--base-rgb), 0.9));
  border: 1px solid var(--line-soft);
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--ruby-bright), transparent);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.story-card:hover {
  border-color: rgba(var(--gold-2-rgb), 0.34);
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.story-card:hover::before {
  opacity: 1;
}

.story-card-type {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.story-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.story-card-desc {
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.story-card-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
}

.story-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ===== 生日 ===== */
.bday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.bday-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(var(--raised-rgb), 0.88), rgba(var(--base-rgb), 0.92));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: all 0.45s ease;
}

.bday-card:hover {
  border-color: rgba(var(--gold-2-rgb), 0.36);
  transform: translateY(-5px);
}

.bday-year {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 12px;
  font-family: var(--font-wide);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-gold);
  background: var(--gold-2);
}

.bday-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.bday-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}

.bday-card:hover .bday-image-wrapper img {
  transform: scale(1.05);
}

.bday-content {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bday-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.bday-desc {
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.bday-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.bday-tag {
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  background: rgba(var(--bordeaux-rgb), 0.35);
}

/* ===== 梅菲斯特 ===== */
.mephisto-section {
  background: radial-gradient(60% 44% at 82% 12%, rgba(var(--bordeaux-rgb), 0.32), transparent 66%);
}

.mephisto-banner {
  margin-bottom: 26px;
}

.mephisto-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  padding: clamp(26px, 3vw, 46px);
  background: linear-gradient(140deg, rgba(var(--raised-rgb), 0.9), rgba(var(--base-rgb), 0.92));
  border: 1px solid var(--line);
  position: relative;
}

.mephisto-banner-inner::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(var(--gold-2-rgb), 0.1);
  pointer-events: none;
}

.mephisto-raven-icon {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.mephisto-raven-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.08);
}

.mephisto-raven-glow {
  position: absolute;
  inset: -30%;
  z-index: 2;
  background: radial-gradient(circle at 50% 60%, rgba(var(--ruby-bright-rgb), 0.34), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}

.mephisto-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mephisto-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--ink);
}

.mephisto-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.mephisto-desc {
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

.mephisto-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.mephisto-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--deep-rgb), 0.45);
}

.mephisto-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mephisto-stat-value {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold-2);
}

.mephisto-timeline {
  padding: clamp(24px, 3vw, 40px);
  background: rgba(var(--panel-rgb), 0.5);
  border: 1px solid var(--line-soft);
}

.mephisto-timeline-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.mephisto-timeline-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.mephisto-timeline-item {
  position: relative;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mephisto-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--ruby-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(var(--ruby-bright-rgb), 0.7);
}

.mephisto-timeline-item-date {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.mephisto-timeline-item-scene {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.mephisto-timeline-item-desc {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--ink-2);
}

.mephisto-gallery > div[style] {
  gap: 14px !important;
}

.mephisto-gallery img {
  filter: saturate(0.92) contrast(1.05);
}

/* ===== 双影（薛明 / 薛影） ===== */
.twins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.twin-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(160deg, rgba(var(--raised-rgb), 0.9), rgba(var(--base-rgb), 0.93));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: all 0.45s ease;
}

.twin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.twin-card.ming:hover {
  border-color: rgba(var(--gold-rgb), 0.42);
}

.twin-card.ying:hover {
  border-color: rgba(var(--ruby-bright-rgb), 0.45);
}

.twin-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}

.twin-image-wrapper img {
  transition: transform 0.9s ease;
}

.twin-card:hover .twin-image-wrapper img {
  transform: scale(1.05);
}

.twin-content {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.twin-name-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.twin-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.twin-name-meaning {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-style: italic;
}

.twin-divider {
  height: 1px;
  margin: 6px 0 4px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.twin-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.twin-info-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: baseline;
}

.twin-info-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.twin-info-value {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.twin-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}

.twin-duality-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--line);
  background: rgba(var(--deep-rgb), 0.5);
}

.twin-duality-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ruby-bright);
  box-shadow: 0 0 10px rgba(var(--ruby-bright-rgb), 0.8);
}

.twin-card.ming .twin-duality-dot {
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.8);
}

.twins-gallery > div[style] {
  gap: 14px !important;
}

.twins-gallery img {
  filter: saturate(0.92) contrast(1.05);
}

/* ===== 前线 ===== */
.frontline-section {
  background: radial-gradient(60% 40% at 14% 6%, rgba(var(--bordeaux-rgb), 0.26), transparent 62%);
}

.frontline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.frontline-col {
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(var(--panel-rgb), 0.5);
  border: 1px solid var(--line-soft);
}

.frontline-col-title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.09em;
  color: var(--gold-3);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.frontline-item {
  position: relative;
  padding: 0 0 22px 18px;
  border-left: 1px solid var(--line-soft);
}

.frontline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.frontline-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: all 0.35s ease;
}

.frontline-item:hover::before {
  background: var(--ruby-bright);
  border-color: var(--ruby-bright);
  box-shadow: 0 0 12px rgba(var(--ruby-bright-rgb), 0.8);
}

.frontline-item-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 4px;
}

.frontline-item-title {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.frontline-item-desc {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.frontline-item-tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.frontline-tag-official {
  color: var(--gold-2);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--bordeaux-rgb), 0.4);
}

.frontline-tag-fan {
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
  background: rgba(var(--deep-rgb), 0.5);
}

/* ===== 排期表 ===== */
.schedule-section {
  background: radial-gradient(60% 40% at 88% 4%, rgba(var(--bordeaux-rgb), 0.24), transparent 62%);
}

.schedule-year-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: 0.1em;
  color: var(--gold-3);
}

.schedule-year-header:first-child {
  margin-top: 0;
}

.schedule-year-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(var(--panel-rgb), 0.42);
}

.schedule-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(var(--bordeaux-rgb), 0.34);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.schedule-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.schedule-table tbody tr {
  transition: background 0.3s ease;
}

.schedule-table tbody tr:hover {
  background: rgba(var(--claret-rgb), 0.16);
}

.schedule-table tbody tr:hover td {
  color: var(--ink);
}

.schedule-table .col-no {
  width: 46px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.schedule-table .col-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  white-space: nowrap;
}

.schedule-table .col-type {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.schedule-table .col-name {
  color: var(--ink);
  font-size: 13.5px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.done {
  color: var(--gold-2);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--bordeaux-rgb), 0.35);
}

.status-badge.predicted {
  color: var(--ink-3);
  border: 1px dashed rgba(var(--ink-rgb), 0.2);
}

.status-badge.guess {
  color: var(--gold-2);
  border: 1px dashed rgba(var(--gold-rgb), 0.55);
  background: rgba(var(--gold-rgb), 0.1);
}

.status-badge.live {
  color: #0a0407;
  background: var(--ruby-bright);
  border: 1px solid var(--gold-2);
  box-shadow: 0 0 16px rgba(var(--ruby-bright-rgb), 0.55);
}

.status-badge.upcoming {
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  border: 1px solid var(--gold-3);
  box-shadow: 0 0 16px rgba(var(--gold-2-rgb), 0.45);
}

/* 同期复刻条 */
.event-rerun {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  margin-bottom: clamp(20px, 2.6vw, 30px);
  padding: 14px clamp(14px, 2vw, 20px);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-left: 3px solid var(--gold);
  background: linear-gradient(100deg, rgba(var(--gold-rgb), 0.12), rgba(var(--base-rgb), 0.85) 62%);
}

.event-rerun-tag {
  flex: none;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
}

.event-rerun-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 300px;
  min-width: 0;
}

.event-rerun-body b {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.event-rerun-body em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.event-rerun-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--gold-3);
}

.event-rerun-go {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.event-rerun-go:hover {
  border-color: var(--gold-2);
}

.schedule-note {
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.5);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
}

/* ===== 二创 / AI 作品 ===== */
.fan-section {
  background: radial-gradient(56% 40% at 50% 0%, rgba(var(--bordeaux-rgb), 0.2), transparent 62%);
}

.fanart-placeholder {
  border: 1px solid var(--line-soft) !important;
  position: relative;
}

/* 二创收集 · 分区索引 */
.fanart-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 clamp(22px, 2.6vw, 32px);
}

.fanart-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.fanart-entry:hover {
  border-color: rgba(var(--gold-rgb), 0.45);
  background: rgba(var(--raised-rgb), 0.8);
  transform: translateY(-3px);
}

.fanart-entry-type {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.fanart-entry b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--ink);
}

.fanart-entry em {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

.fanart-entry-go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.fanart-note {
  text-align: center;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.ai-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-3), var(--gold));
}

.ai-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0 0;
}

.ai-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.ai-item {
  flex: none;
  width: clamp(260px, 30vw, 400px);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(var(--raised-rgb), 0.86), rgba(var(--base-rgb), 0.9));
  opacity: 0.45;
  transform: scale(0.94);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.ai-item.ai-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(var(--gold-2-rgb), 0.4);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(var(--ruby-rgb), 0.22);
}

.ai-item.ai-near {
  opacity: 0.66;
}

.ai-item:hover {
  border-color: var(--gold);
}

.ai-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.ai-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}

.ai-item:hover .ai-image-wrapper img {
  transform: scale(1.06);
}

.ai-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.ai-desc {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-2);
}

.ai-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.ai-carousel-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-carousel-arrow:hover {
  color: var(--gold-3);
  border-color: var(--gold);
  background: rgba(var(--bordeaux-rgb), 0.4);
}

.ai-carousel-dots {
  display: flex;
  gap: 8px;
}

.ai-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  background: var(--ink-3);
  opacity: 0.45;
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-carousel-dot.active {
  background: var(--gold-2);
  opacity: 1;
  box-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.7);
}

/* ===== DIY ===== */
.diy-section {
  background: radial-gradient(56% 40% at 16% 4%, rgba(var(--bordeaux-rgb), 0.22), transparent 62%);
}

.diy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.diy-tab {
  padding: 10px 18px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(var(--panel-rgb), 0.5);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

.diy-tab:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

.diy-tab.active {
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-3), var(--gold-2));
  border-color: var(--gold-2);
}

.diy-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.diy-grid.active {
  display: grid;
  animation: fade-up 0.5s ease both;
}

.diy-item {
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.5);
  overflow: hidden;
  transition: all 0.4s ease;
}

.diy-item:hover {
  border-color: rgba(var(--gold-2-rgb), 0.36);
  transform: translateY(-4px);
}

.diy-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(var(--gold-2-rgb), 0.045) 0 8px, transparent 8px 16px),
    var(--surface);
  overflow: hidden;
}

.diy-thumb-placeholder {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.diy-watermark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  opacity: 0.4;
}

.diy-watermark-text {
  font-family: var(--font-wide);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.diy-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
}

.diy-name {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.diy-dl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  white-space: nowrap;
}

.diy-dl.locked {
  color: var(--ink-3);
}

.diy-footer-note {
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--panel-rgb), 0.5);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
  text-align: center;
}

/* ===== 讨论区 ===== */
.discuss-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-soft);
  background: linear-gradient(120deg, rgba(var(--raised-rgb), 0.8), rgba(var(--base-rgb), 0.85));
  transition: all 0.38s ease;
}

.discuss-link:hover {
  border-color: var(--gold);
  transform: translateX(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.discuss-link-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 19px;
  border: 1px solid var(--line);
  background: rgba(var(--deep-rgb), 0.6);
}

.discuss-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discuss-link-title {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.discuss-link-desc {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.discuss-link-arrow {
  flex: none;
  font-size: 18px;
  color: var(--gold-2);
  transition: transform 0.35s ease;
}

.discuss-link:hover .discuss-link-arrow {
  transform: translateX(5px);
}

.discuss-group-note {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px dashed var(--line);
  background: rgba(var(--bordeaux-rgb), 0.22);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-align: center;
}

/* ===== BGM ===== */
.bgm-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 996;
}

.bgm-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--base-rgb), 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--gold-2);
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transition: all 0.35s ease;
}

.bgm-btn:hover {
  color: var(--gold-3);
  border-color: var(--gold);
  transform: scale(1.06);
}

.bgm-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.bgm-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 288px;
  display: none;
  padding: 20px;
  background: rgba(var(--base-rgb), 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.bgm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.bgm-panel-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.bgm-panel-close {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bgm-panel-close:hover {
  color: var(--gold-2);
}

.bgm-track-info {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.bgm-track-artist {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.bgm-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bgm-ctrl-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bgm-ctrl-btn:hover {
  color: var(--gold-2);
  border-color: var(--line);
}

.bgm-ctrl-btn.play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-color: var(--line);
  background: rgba(var(--bordeaux-rgb), 0.5);
  color: var(--gold-3);
}

.bgm-ctrl-btn.play-btn:hover {
  background: rgba(var(--claret-rgb), 0.7);
  box-shadow: 0 0 24px rgba(var(--ruby-rgb), 0.5);
}

.bgm-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bgm-volume svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-3);
  flex: none;
}

.bgm-volume input[type="range"] {
  flex: 1;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  cursor: pointer;
}

.bgm-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(var(--gold-2-rgb), 0.7);
}

/* ===== 吉祥物 ===== */
.mascot {
  position: fixed;
  z-index: 997;
  width: 58px;
  height: 58px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.mascot:hover {
  transform: scale(1.1);
}

.mascot-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(var(--base-rgb), 0.7), 0 14px 34px rgba(0, 0, 0, 0.6);
  display: block;
}

.mascot-arrow {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--on-gold);
  background: var(--gold-2);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mascot:hover .mascot-arrow {
  opacity: 1;
}

.mascot-speech {
  position: absolute;
  right: 70px;
  top: -6px;
  width: max-content;
  max-width: 268px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: rgba(var(--base-rgb), 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mascot-speech.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--base-rgb), 0.4), var(--bg-deep));
}

.footer-content {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--gold-2);
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.footer-text {
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.footer-feather {
  width: 22px;
  height: 22px;
  fill: rgba(var(--gold-rgb), 0.35);
}

.footer-bottom-line {
  max-width: var(--shell);
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.footer-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== Light mode (象牙纸 · 雅致) ===== */
html.theme-ivory body {
  --bg: #f6efe4;
  --bg-deep: #efe4d5;
  --surface: #fffaf3;
  --surface-2: #f3e7d8;
  --surface-3: #ead9c6;
  --ink: #2a1418;
  --ink-2: #5c4038;
  --ink-3: #8d7565;
  --line: rgba(var(--claret-rgb), 0.2);
  --line-soft: rgba(42, 20, 24, 0.1);
  --gold: #a9762c;
  --gold-2: #8f5f1c;
  --gold-3: #6d4611;
  --ruby-bright: #a80d24;
  --glass-bg: rgba(255, 250, 243, 0.7);
  --glass-bg-light: rgba(255, 250, 243, 0.6);
  background: var(--bg);
  color: var(--ink);
}

html.theme-ivory body::before {
  opacity: 0.5;
  background:
    radial-gradient(1100px 620px at 84% -8%, rgba(196, 12, 41, 0.12), transparent 62%),
    radial-gradient(900px 520px at 4% 100%, rgba(169, 118, 44, 0.14), transparent 66%);
}

html.theme-ivory body .global-bg-slide.active {
  opacity: 0.16;
  filter: saturate(0.5) contrast(1.02) brightness(1.35);
}

html.theme-ivory body .global-bg-overlay {
  background: linear-gradient(180deg, rgba(246, 239, 228, 0.86), rgba(239, 228, 213, 0.96));
}

html.theme-ivory body #particleCanvas {
  mix-blend-mode: multiply;
  opacity: 0.4;
}

html.theme-ivory body .dragon-scale-bg {
  opacity: 0.35;
}

html.theme-ivory body .nav-inner {
  background: linear-gradient(180deg, rgba(246, 239, 228, 0.96), rgba(246, 239, 228, 0.6) 72%, rgba(246, 239, 228, 0));
}

html.theme-ivory body .nav.scrolled .nav-inner {
  background: rgba(250, 244, 235, 0.95);
}

html.theme-ivory body .hero-ticker {
  background: linear-gradient(90deg, rgba(var(--claret-rgb), 0.09), rgba(var(--claret-rgb), 0.05));
  border-color: rgba(var(--claret-rgb), 0.16);
}

html.theme-ivory body .hero-ticker-track span {
  color: var(--ink-2);
  border-right-color: rgba(var(--claret-rgb), 0.12);
}

html.theme-ivory body .hero-bottom-fade {
  background: linear-gradient(to top, var(--bg) 6%, transparent);
}
html.theme-ivory body .hero-bg {
  filter: saturate(0.5) contrast(1.02) brightness(1.15);
  opacity: 0.5;
}

html.theme-ivory body .hero-overlay {
  background: linear-gradient(100deg, rgba(246, 239, 228, 0.95) 6%, rgba(246, 239, 228, 0.7) 52%, rgba(234, 217, 198, 0.5) 100%);
}

html.theme-ivory body .hero-vignette {
  background: radial-gradient(120% 78% at 50% 46%, transparent 42%, rgba(246, 239, 228, 0.9) 100%);
}

html.theme-ivory body .hero-title {
  animation: none;
  text-shadow: none;
  color: #2a1418;
}

html.theme-ivory body .hero-bottom-fade {
  background: linear-gradient(to top, var(--bg) 6%, transparent);
}

html.theme-ivory body .feather svg {
  fill: rgba(90, 60, 60, 0.16);
}

html.theme-ivory body .blend-wrap {
  box-shadow: 0 30px 70px rgba(90, 20, 35, 0.2);
}

html.theme-ivory body .event-card,
html.theme-ivory body .card-grid.bento-mode .card,
html.theme-ivory body .story-card,
html.theme-ivory body .twin-card,
html.theme-ivory body .bday-card,
html.theme-ivory body .mephisto-banner-inner,
html.theme-ivory body .ai-item,
html.theme-ivory body .discuss-link,
html.theme-ivory body .diy-item,
html.theme-ivory body .diy-footer-note,
html.theme-ivory body .frontline-col,
html.theme-ivory body .mephisto-timeline,
html.theme-ivory body .schedule-table,
html.theme-ivory body .schedule-note,
html.theme-ivory body .event-note,
html.theme-ivory body .blend-strip-card {
  background: linear-gradient(150deg, #fffbf5, #f1e3d2);
}

/* 影像压暗层在浅色主题下保持不变，故卡片标题保持浅色 */
html.theme-ivory body .card-name {
  color: #f7efe4;
}

html.theme-ivory body .card-date {
  color: rgba(var(--ink-rgb), 0.85);
}

html.theme-ivory body .card-info,
html.theme-ivory body .card:hover .card-info {
  background: linear-gradient(to top, rgba(var(--deep-rgb), 0.95) 8%, rgba(var(--deep-rgb), 0.55) 52%, transparent);
}

html.theme-ivory body .mephisto-stat,
html.theme-ivory body .twin-duality-badge,
html.theme-ivory body .event-pool li,
html.theme-ivory body .event-date,
html.theme-ivory body .event-chip,
html.theme-ivory body .reward-chip,
html.theme-ivory body .signin-day,
html.theme-ivory body .diy-thumb,
html.theme-ivory body .mascot-speech,
html.theme-ivory body .bgm-panel,
html.theme-ivory body .bgm-btn {
  background: rgba(255, 252, 246, 0.8);
}

html.theme-ivory body .mascot-speech,
html.theme-ivory body .bgm-panel {
  box-shadow: 0 20px 50px rgba(90, 60, 40, 0.2);
}

html.theme-ivory body .nav-mobile {
  background: rgba(250, 244, 235, 0.98);
}

html.theme-ivory body .sec-rail {
  background: rgba(255, 251, 245, 0.75);
}

html.theme-ivory body .schedule-table th {
  background: rgba(168, 13, 36, 0.1);
  color: #8f5f1c;
}

html.theme-ivory body .schedule-table tbody tr:hover {
  background: rgba(168, 13, 36, 0.07);
}

html.theme-ivory body .schedule-table tbody tr.is-live {
  background: rgba(168, 13, 36, 0.12);
}

html.theme-ivory body .footer {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.7), var(--bg-deep));
}

html.theme-ivory body .ai-item .ai-desc,
html.theme-ivory body .event-card-desc {
  color: var(--ink-2);
}

/* 深红活动条在两种主题下都保持深色，故文字固定为浅色 */
html.theme-ivory body .nav-preheat,
html.theme-ivory body .nav-preheat .pulse-dot,
html.theme-ivory body .preheat-close {
  color: #fff5e4;
}

html.theme-ivory body .nav-preheat .pulse-dot {
  background: #fff5e4;
}

html.theme-ivory body .frontline-tag-official,
html.theme-ivory body .frontline-tag-fan,
html.theme-ivory body .status-badge.done,
html.theme-ivory body .card-tag,
html.theme-ivory body .story-card-tag,
html.theme-ivory body .bday-tag,
html.theme-ivory body .diy-dl {
  background: rgba(168, 13, 36, 0.07);
  border-color: rgba(143, 95, 28, 0.45);
  color: #7c4d13;
}

html.theme-ivory body .card-photo,
html.theme-ivory body .event-card-media img {
  filter: saturate(0.98) contrast(1.02);
}

html.theme-ivory body .grain-overlay {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

html.theme-ivory body .modal-overlay {
  background: rgba(60, 40, 35, 0.7);
}

html.theme-ivory body .modal-content {
  background: linear-gradient(140deg, #fffaf3, #f2e5d4);
}

/* 浅色主题：深色胶囊 / 按钮统一换成浅底，避免深底深字看不清 */
html.theme-ivory body .btn-ghost,
html.theme-ivory body .view-all-btn,
html.theme-ivory body .sort-btn,
html.theme-ivory body .view-btn,
html.theme-ivory body .diy-tab,
html.theme-ivory body .ai-carousel-arrow,
html.theme-ivory body .event-date,
html.theme-ivory body .event-chip,
html.theme-ivory body .reward-chip,
html.theme-ivory body .signin-day,
html.theme-ivory body .mephisto-stat,
html.theme-ivory body .discuss-link-icon,
html.theme-ivory body .event-pool li,
html.theme-ivory body .twin-duality-badge,
html.theme-ivory body .story-card-tag,
html.theme-ivory body .diy-thumb {
  background: rgba(255, 252, 246, 0.78);
  border-color: rgba(var(--claret-rgb), 0.22);
  color: var(--ink);
}

html.theme-ivory body .btn-ghost:hover,
html.theme-ivory body .view-all-btn:hover,
html.theme-ivory body .sort-btn:hover,
html.theme-ivory body .diy-tab:hover {
  background: rgba(var(--claret-rgb), 0.1);
  border-color: var(--gold);
  color: var(--ink);
}

html.theme-ivory body .hero-eyebrow {
  background: rgba(var(--claret-rgb), 0.08);
}

/* ===== Cyber theme (赛博 · 活动期) ===== */
html.theme-abyss body {
  --bg: #06080f;
  --bg-deep: #020409;
  --surface: #090d17;
  --surface-2: #0c111f;
  --surface-3: #101728;
  --bordeaux: #1a0810;
  --claret: #260b16;
  --ruby: #5a1020;
  --ruby-bright: #6b7dff;
  --gold: #e8394f;
  --gold-2: #ff6b7d;
  --gold-3: #ffd2d8;
  --ink: #f0f2f8;
  --ink-2: #a7afc2;
  --ink-3: #646d80;
  --on-gold: #14030a;
  --line: rgba(255, 107, 125, 0.2);
  --line-soft: rgba(220, 230, 255, 0.07);
  --red-glow: rgba(232, 57, 79, 0.16);
  --glass-bg: rgba(6, 8, 16, 0.46);
  --glass-bg-light: rgba(9, 13, 23, 0.36);
  --glass-border: rgba(255, 107, 125, 0.16);
  --glass-border-glow: rgba(107, 125, 255, 0.32);
  --shadow-glow: 0 0 0 1px rgba(255, 107, 125, 0.18), 0 26px 70px rgba(18, 4, 9, 0.6);
  --primary-red: var(--ruby-bright);
  --light-red: var(--ruby-bright);
  --dark-red: var(--bordeaux);
  --accent-gold: var(--gold);
  --light-gold: var(--gold-2);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --border: var(--line-soft);
  --border-light: var(--line);
  --border-hover: rgba(255, 107, 125, 0.34);
  --surface-light: var(--surface-2);
  --surface-raised: var(--surface-2);
  --accent-purple: #2a1838;
  --bordeaux-rgb: 26, 8, 16;
  --claret-rgb: 38, 11, 22;
  --ruby-rgb: 90, 16, 32;
  --ruby-bright-rgb: 107, 125, 255;
  --gold-rgb: 232, 57, 79;
  --gold-2-rgb: 255, 107, 125;
  --gold-3-rgb: 255, 210, 216;
  --ink-rgb: 240, 242, 248;
  --ink-2-rgb: 167, 175, 194;
  --deep-rgb: 2, 4, 9;
  --panel-rgb: 7, 9, 17;
  --raised-rgb: 13, 16, 28;
  --base-rgb: 6, 8, 15;
  --deeper-rgb: 12, 6, 14;
  --blend-rgb: 22, 8, 20;
  background: var(--bg);
  color: var(--ink);
}

html.theme-abyss body::before {
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(232, 57, 79, 0.18), transparent 62%),
    radial-gradient(900px 580px at 6% 100%, rgba(107, 125, 255, 0.2), transparent 66%);
}

html.theme-abyss body .dragon-scale-bg {
  background-image:
    repeating-linear-gradient(115deg, rgba(232, 57, 79, 0.05) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-115deg, rgba(107, 125, 255, 0.05) 0 1px, transparent 1px 11px);
}

html.theme-abyss body .global-bg-slide.active {
  filter: saturate(0.5) contrast(1.16) brightness(0.4) hue-rotate(-6deg);
}

html.theme-abyss body .global-bg-overlay {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(6, 8, 15, 0.42), rgba(6, 8, 15, 0.9) 62%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(26, 8, 16, 0.52), rgba(2, 4, 9, 0.9));
}

/* 深渊主题：参考「深渊回望之下」主视觉——底部岩浆辉光 + 冷灰岩层 */
html.theme-abyss body .hero-bg {
  background-image:
    radial-gradient(58% 42% at 50% 112%, rgba(255, 118, 44, 0.55), transparent 68%),
    radial-gradient(74% 48% at 66% 118%, rgba(214, 38, 40, 0.4), transparent 72%),
    radial-gradient(90% 60% at 18% -10%, rgba(120, 26, 34, 0.5), transparent 66%),
    url("images/hero_banner_custom.jpg");
  background-size: cover;
  background-position: 50% 26%;
  filter: saturate(0.82) contrast(1.16) brightness(0.44);
  transform: scale(1.06) translateZ(0);
}

html.theme-abyss body .global-bg-slide.active {
  opacity: 0.34;
  filter: saturate(0.72) contrast(1.1) brightness(0.4);
}

html.theme-abyss body .global-bg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(60% 40% at 50% 104%, rgba(255, 112, 42, 0.3), transparent 70%),
    radial-gradient(80% 50% at 20% 100%, rgba(196, 30, 40, 0.22), transparent 72%);
}
html.theme-abyss body .global-bg-overlay {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(6, 8, 15, 0.42), rgba(6, 8, 15, 0.9) 62%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(26, 8, 16, 0.52), rgba(2, 4, 9, 0.9));
}

/* 深渊主题：背景换成「深渊回望之下」主视觉（岩浆 / 火山 / 光束） */
html.theme-abyss body .hero-bg {
  background-image: url("images/bg_abyss.jpg");
  background-position: 50% 42%;
  filter: saturate(0.85) contrast(1.15) brightness(0.42);
  transform: scale(1.06) translateZ(0);
}

html.theme-abyss body .global-bg-slide.active {
  background-image: url("images/bg_abyss.jpg") !important;
  background-position: 50% 45%;
  opacity: 0.42;
  filter: saturate(0.8) contrast(1.12) brightness(0.42) blur(1.5px);
}

html.theme-abyss body .global-bg-overlay {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(6, 8, 15, 0.5), rgba(6, 8, 15, 0.92) 62%, var(--bg-deep) 100%),
    linear-gradient(180deg, rgba(46, 8, 14, 0.55), rgba(2, 4, 9, 0.92));
}

html.theme-abyss body .hero-overlay {
  background:
    radial-gradient(90% 70% at 78% 22%, rgba(232, 57, 79, 0.22), transparent 60%),
    linear-gradient(100deg, rgba(2, 4, 9, 0.96) 8%, rgba(6, 8, 15, 0.7) 48%, rgba(26, 8, 16, 0.7) 100%);
}

html.theme-abyss body .hero-title {
  animation: abyss-pulse 6.5s ease-in-out infinite;
}

@keyframes abyss-pulse {
  0%,
  100% {
    text-shadow: 0 0 42px rgba(232, 57, 79, 0.26), 0 0 110px rgba(107, 125, 255, 0.24);
  }
  50% {
    text-shadow: 0 0 66px rgba(232, 57, 79, 0.42), 0 0 150px rgba(107, 125, 255, 0.34);
  }
}

html.theme-abyss body .hero-bottom-fade {
  background: linear-gradient(to top, var(--bg) 6%, transparent);
}

html.theme-abyss body .nav-preheat {
  background: linear-gradient(90deg, #1a0810, #3b0d1a 42%, #931b2f 72%, #1a0810);
  border-bottom-color: rgba(255, 120, 140, 0.32);
  color: #ffeef0;
}

html.theme-abyss body .feather svg {
  fill: rgba(255, 170, 185, 0.14);
}

/* 酌光特调：换成血色 / 暗夜 */
html.theme-abyss body .blend-wrap {
  background:
    radial-gradient(90% 70% at 88% 12%, rgba(232, 57, 79, 0.24), transparent 62%),
    linear-gradient(155deg, #100612 0%, #33091a 34%, #141033 78%, #06080f 100%);
}

html.theme-abyss body .blend-menu-head,
html.theme-abyss body .blend-quote,
html.theme-abyss body .blend-recipe li {
  color: #ffeef1;
}

html.theme-abyss body .blend-visual-badge {
  color: #1a0409;
  background: rgba(255, 190, 200, 0.92);
}

html.theme-abyss body .blend-visual::after {
  background: linear-gradient(90deg, rgba(16, 6, 18, 0.85) 0%, rgba(16, 6, 18, 0.1) 34%, transparent 60%);
}

html.theme-abyss body .blend-demon {
  background: radial-gradient(circle at 34% 30%, #ff9aa8, #c8253f 52%, #3b1d63);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset -6px -8px 18px rgba(30, 6, 12, 0.45);
}

html.theme-abyss body .blend-demon::before,
html.theme-abyss body .blend-demon::after {
  background: linear-gradient(180deg, #ff9aa8, #4a2a86);
}

html.theme-abyss body .blend-meter.m-heart .glyphs b {
  color: #ff9aa8;
  text-shadow: 0 0 14px rgba(232, 57, 79, 0.7);
}

/* 深渊主题：进行中 = 实心血红，即将开启 = 描边 */
html.theme-abyss body .status-badge.live {
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  border: 1px solid var(--gold-3);
  box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.5);
}

html.theme-abyss body .status-badge.upcoming {
  color: var(--gold-2);
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  box-shadow: none;
}

html.theme-abyss body .schedule-table tbody tr.is-live {
  background: rgba(130, 22, 42, 0.22);
}

html.theme-abyss body .event-card--gold {
  background: linear-gradient(140deg, rgba(38, 11, 22, 0.82), rgba(6, 8, 15, 0.95) 60%);
}

html.theme-abyss body .ai-badge,
html.theme-abyss body .hero-ticker-label,
html.theme-abyss body .btn-primary {
  color: var(--on-gold);
}

html.theme-abyss body ::selection {
  background: rgba(232, 57, 79, 0.35);
  color: #ffeef1;
}

html.theme-abyss body .footer {
  background: linear-gradient(180deg, rgba(6, 8, 15, 0.4), var(--bg-deep));
}

/* ===== Theme switcher（配色切换） ===== */
.theme-switcher {
  position: relative;
  flex: none;
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 176px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(var(--panel-rgb), 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-menu button:hover {
  color: var(--ink);
  background: rgba(var(--ruby-rgb), 0.16);
}

.theme-menu button.active {
  color: var(--gold-2);
  border-color: rgba(var(--gold-rgb), 0.45);
  background: rgba(var(--gold-rgb), 0.1);
}

.theme-menu .sw {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid rgba(var(--ink-rgb), 0.35);
}

.theme-menu .sw-scarlet {
  background: linear-gradient(135deg, #b0112a, #c79a54);
}

.theme-menu .sw-ivory {
  background: linear-gradient(135deg, #fffaf3, #d9c4a8);
}

.theme-menu .sw-abyss {
  background: linear-gradient(135deg, #ff3b57 0%, #7a1a2b 52%, #4d5bff 100%);
}

/* ===== 展览厅（二创投稿展厅） ===== */
.exhibit-banner-wrap {
  position: relative;
  z-index: 4;
  max-width: var(--shell);
  margin: clamp(24px, 3.2vw, 44px) auto 0;
  padding: 0 var(--gutter);
}

/* 展签：倾斜切角的门票条 + 光扫 + 蹦跳的魔魔团 */
.exhibit-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(var(--claret-rgb), 0.78), rgba(var(--base-rgb), 0.94) 58%),
    repeating-linear-gradient(
      -45deg,
      rgba(var(--gold-rgb), 0.07) 0 10px,
      transparent 10px 20px
    );
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-2-rgb), 0.12),
    inset 0 0 70px rgba(var(--gold-rgb), 0.08),
    0 14px 38px rgba(var(--deep-rgb), 0.38);
  overflow: visible;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.exhibit-banner:hover {
  border-color: rgba(var(--gold-rgb), 0.55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-2-rgb), 0.2),
    inset 0 0 70px rgba(var(--gold-rgb), 0.16),
    0 20px 50px rgba(var(--deep-rgb), 0.52),
    0 0 40px rgba(var(--ruby-rgb), 0.16);
}

/* 扫光 */
.exhibit-banner-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.exhibit-banner-sheen::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 34%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(var(--gold-2-rgb), 0.22) 50%,
    transparent 100%
  );
  transform: translateX(-140%) skewX(-14deg);
  animation: banner-sheen 7.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes banner-sheen {
  0%,
  54% {
    transform: translateX(-140%) skewX(-14deg);
  }
  96%,
  100% {
    transform: translateX(420%) skewX(-14deg);
  }
}

.exhibit-banner-label {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 17px clamp(20px, 2.6vw, 32px) 17px clamp(15px, 2.1vw, 24px);
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 70%, var(--gold-2));
  color: var(--on-gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.08);
}

.exhibit-banner-label span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
}

.exhibit-banner-label b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

/* 魔魔团：站在条底，蹦一下 */
.momo-slot {
  position: relative;
  z-index: 3;
  flex: none;
  align-self: stretch;
  width: clamp(62px, 7.2vw, 98px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-left: clamp(-4px, -0.3vw, 0px);
}

.exhibit-momo {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 16px rgba(var(--deep-rgb), 0.55));
  animation: momo-hop 3.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  will-change: transform;
}

@keyframes momo-hop {
  0%,
  50%,
  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  6% {
    transform: translateY(1px) scale(1.05, 0.94) rotate(0deg);
  }
  18% {
    transform: translateY(-26px) scale(0.93, 1.09) rotate(-5deg);
  }
  30% {
    transform: translateY(0) scale(1.07, 0.91) rotate(2deg);
  }
  38% {
    transform: translateY(-9px) scale(0.97, 1.04) rotate(-2deg);
  }
  46% {
    transform: translateY(0) scale(1.02, 0.98) rotate(0deg);
  }
}

.exhibit-banner-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
  text-decoration: none;
}

.exhibit-banner-main b {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.3s ease;
}

.exhibit-banner-main em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.exhibit-banner-main:hover b {
  color: var(--gold-2);
}

.exhibit-banner-go {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: clamp(12px, 1.6vw, 18px);
  padding: 10px clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-2);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.exhibit-banner-go:hover {
  background: rgba(var(--gold-rgb), 0.16);
  border-color: rgba(var(--gold-rgb), 0.8);
  color: var(--gold-3);
  box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.25);
}

.exhibit-banner-go span {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.exhibit-banner-go:hover span {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .exhibit-momo,
  .exhibit-banner-sheen::before {
    animation: none;
  }
}
/* — 展厅本体 — */
.exhibit-section {
  position: relative;
}

.exhibit-piece {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(var(--raised-rgb), 0.9), rgba(var(--base-rgb), 0.95));
  overflow: hidden;
}

.exhibit-piece::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 62%;
  height: 140px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(var(--gold-2-rgb), 0.16), transparent 72%);
  pointer-events: none;
}

.exhibit-frame {
  position: relative;
  display: block;
  padding: 10px;
  border: 1px solid rgba(var(--gold-rgb), 0.38);
  background: rgba(var(--deep-rgb), 0.6);
  box-shadow:
    0 30px 70px rgba(var(--deep-rgb), 0.55),
    0 0 0 1px rgba(var(--gold-rgb), 0.1);
  overflow: hidden;
  text-decoration: none;
}

.exhibit-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.exhibit-frame:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.exhibit-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-3), var(--gold));
}

.exhibit-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exhibit-frame-enter {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.92);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-3), var(--gold));
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}

.exhibit-frame:hover .exhibit-frame-enter {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.exhibit-placard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 48px);
  margin-top: clamp(20px, 2.6vw, 30px);
  padding: 0 2px;
}

.exhibit-placard-head,
.exhibit-placard-body {
  min-width: 0;
}

.exhibit-no {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.exhibit-placard h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.15;
  color: var(--ink);
}

.exhibit-placard h3 span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.48em;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.exhibit-rows {
  display: grid;
  gap: 8px;
  margin: 18px 0 16px;
}

.exhibit-rows > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(var(--ink-rgb), 0.1);
  font-size: 13px;
  color: var(--ink-2);
}

.exhibit-rows span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.exhibit-rows a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.4);
  transition: border-color 0.3s ease;
}

.exhibit-rows a:hover {
  border-color: var(--gold-2);
}

.exhibit-desc {
  font-size: 13.5px;
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.exhibit-quote {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--ruby-bright);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--gold-3);
}

.exhibit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.exhibit-open {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 48px);
  border: 1px dashed rgba(var(--gold-rgb), 0.3);
  background: rgba(var(--base-rgb), 0.5);
  text-align: center;
}

.exhibit-open b {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-3);
}

.exhibit-open p {
  max-width: 620px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-2);
}

.exhibit-open a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.4);
  padding-bottom: 2px;
}

.exhibit-open a:hover {
  border-color: var(--gold-2);
}

.exhibit-open-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.exhibit-open-links .sep {
  color: var(--ink-3);
}

.exhibit-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .hero {
    padding-top: 132px;
  }
  .hero-inner {
    gap: 32px;
  }
  .nav-links a {
    padding: 8px 6px;
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-raven {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-inner {
    gap: 14px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-deck {
    height: clamp(300px, 52vw, 420px);
    order: -1;
  }
  .hero-content {
    max-width: 100%;
  }
  .event-card,
  .event-card.reverse {
    grid-template-columns: 1fr;
  }
  .event-card.reverse .event-card-media {
    order: 0;
  }
  .event-card-media,
  .event-card.reverse .event-card-media {
    min-height: 280px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .blend-wrap {
    grid-template-columns: 1fr;
  }
  .blend-visual {
    min-height: 340px;
    order: -1;
  }
  .blend-visual::after {
    background: linear-gradient(0deg, rgba(var(--blend-rgb), 0.7) 0%, transparent 55%);
  }
  .mephisto-banner-inner {
    grid-template-columns: 1fr;
  }
  .mephisto-raven-icon {
    max-width: 260px;
  }
  .blend-demon {
    display: none;
  }
  .exhibit-placard {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 1080px) and (max-height: 840px) {
  .hero-deck {
    height: clamp(230px, 34vw, 300px);
  }
  .hero-deck-card {
    width: clamp(148px, 19vw, 200px);
  }
  .hero {
    padding-top: 112px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: clamp(18px, 4vw, 34px);
  }
  .card-grid.bento-mode {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(140px, 22vw, 190px);
  }
  .card-grid.bento-mode .card:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
  .card-grid.bento-mode .card:nth-child(2) { grid-area: 1 / 3 / span 2 / span 2; }
  .card-grid.bento-mode .card:nth-child(3) { grid-area: 3 / 1 / span 2 / span 1; }
  .card-grid.bento-mode .card:nth-child(4) { grid-area: 3 / 2 / span 2 / span 1; }
  .card-grid.bento-mode .card:nth-child(5) { grid-area: 3 / 3 / span 2 / span 1; }
  .card-grid.bento-mode .card:nth-child(6) { grid-area: 3 / 4 / span 2 / span 1; }
  .card-grid.bento-mode .card:nth-child(7) { grid-area: 5 / 1 / span 2 / span 4; }
  .section-header::after {
    font-size: clamp(56px, 12vw, 96px);
    top: -10px;
  }
  .frontline-grid,
  .twins-grid,
  .bday-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px;
  }
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-preheat {
    display: block;
    padding: 8px 38px 8px 14px;
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-align: left;
  }
  .nav-preheat .pulse-dot {
    display: none;
  }
  .nav-preheat > span:not(.pulse-dot) {
    display: block;
    text-align: left;
  }
  .exhibit-banner {
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
  }
  .exhibit-banner-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    clip-path: none;
  }
  .momo-slot {
    width: 52px;
    align-self: center;
    margin: 0 0 4px 4px;
  }
  .exhibit-banner-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 0 8px;
  }
  .exhibit-banner-main b {
    font-size: 16px;
  }
  .exhibit-banner-main em {
    font-size: 9.5px;
    line-height: 1.7;
  }
  .exhibit-banner-go {
    width: 100%;
    margin: 0 12px 12px;
    justify-content: center;
  }
  .exhibit-frame-enter {
    display: none;
  }
  .event-rerun-quote {
    display: none;
  }
  .exhibit-rows > div {
    grid-template-columns: 52px 1fr;
  }
  .section {
    padding: 64px var(--gutter);
  }
  .hero {
    padding-top: 112px;
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(44px, 13vw, 72px);
  }
  .hero-deck-card {
    width: clamp(140px, 33vw, 190px);
    padding: 6px;
  }
  .hero-deck-card figcaption em {
    font-size: 13px;
  }
  .hero-ticker-track span {
    padding: 10px 18px;
    font-size: 11.5px;
  }
  .card-grid.bento-mode {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 156px;
    gap: 10px;
  }
  .card-grid.bento-mode .card:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
  .card-grid.bento-mode .card:nth-child(2) { grid-area: 3 / 1 / span 1 / span 1; }
  .card-grid.bento-mode .card:nth-child(3) { grid-area: 3 / 2 / span 1 / span 1; }
  .card-grid.bento-mode .card:nth-child(4) { grid-area: 4 / 1 / span 1 / span 1; }
  .card-grid.bento-mode .card:nth-child(5) { grid-area: 4 / 2 / span 1 / span 1; }
  .card-grid.bento-mode .card:nth-child(6) { grid-area: 5 / 1 / span 1 / span 1; }
  .card-grid.bento-mode .card:nth-child(7) { grid-area: 5 / 2 / span 1 / span 1; }
  .card-grid.bento-mode .card-name {
    font-size: 15px;
  }
  .card-info {
    height: 52%;
    padding: 24px 14px 12px;
  }
  .card-date {
    font-size: 9px;
  }
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-image {
    max-height: 44vh;
    min-height: 0;
  }
  .event-card-body {
    padding: 22px 20px 26px;
  }
  .event-tab {
    padding: 8px 12px;
    font-size: 11.5px;
  }
  .event-pool {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .signin-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .signin-day {
    width: auto;
    height: 34px;
    font-size: 11px;
  }
  .blend-menu {
    padding: 26px 20px;
  }
  .blend-visual {
    min-height: 260px;
  }
  .mascot,
  .mascot-icon {
    width: 48px;
    height: 48px;
  }
  .mascot-speech {
    right: 58px;
    max-width: 200px;
    font-size: 11.5px;
  }
  .bgm-player {
    right: 14px;
    bottom: 76px;
  }
  .ai-item {
    width: min(76vw, 320px);
  }
  .schedule-table {
    min-width: 620px;
  }
  .diy-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-deck-badge {
    display: none;
  }
  .hero-actions {
    gap: 8px;
  }
  .btn-primary,
  .btn-ghost {
    padding: 12px 18px;
    font-size: 10.5px;
  }
  .section-header::after {
    display: none;
  }
  .signin-day {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Variant atoms ===== */
.story-card-tag.side {
  color: var(--ink-2);
  border-color: var(--line-soft);
}

.schedule-table tbody tr.is-live {
  background: rgba(var(--ruby-rgb), 0.2);
  box-shadow: inset 2px 0 0 var(--gold-2);
}

.schedule-table tbody tr.is-live td {
  color: var(--ink);
}

.schedule-table tbody tr.is-live .col-date {
  color: var(--gold-3);
}

/* 卡片 / 表格里的强调文本 */
.gold-text {
  color: var(--gold-2);
}

/* ===== 光手章节（深渊主题专用背景） ===== */
.interlude {
  position: relative;
  min-height: min(66vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(88% 78% at 50% 54%, #0a0510 0%, #040308 72%);
}

.interlude-hands {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  pointer-events: none;
}

html.theme-abyss body .interlude-hands {
  display: block;
}

.interlude-hands img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1150px, 94%);
  height: auto;
  transform: translate(-50%, -50%) scale(var(--hs, 1.02));
  mix-blend-mode: screen;
  opacity: 0;
  filter: blur(5px) saturate(1.05);
  will-change: opacity, transform;
  user-select: none;
  -webkit-user-drag: none;
}

html.theme-abyss body .interlude-hands::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 50% 50%, transparent 34%, rgba(4, 3, 8, 0.72) 92%),
    linear-gradient(180deg, rgba(4, 3, 8, 0.72) 0%, transparent 26%, transparent 70%, rgba(4, 3, 8, 0.9) 100%);
  pointer-events: none;
}

.interlude-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 22px;
}

.interlude-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 148, 164, 0.85);
}

.interlude-quote {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #fbf7fa;
  text-shadow: 0 0 70px rgba(255, 226, 234, 0.35), 0 2px 24px rgba(4, 3, 8, 0.9);
}

.interlude-src {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  .interlude {
    min-height: 62vh;
  }
  .interlude-hands img {
    width: 172%;
    filter: blur(4px) saturate(1.05);
  }
  .interlude-quote {
    font-size: 22px;
  }
}
/* ===== 前线 · 官方动态折叠 ===== */
.frontline-item.is-extra {
  display: none;
}

.frontline-col--official.is-open .frontline-item.is-extra {
  display: block;
  animation: fl-fade 0.4s ease both;
}

@keyframes fl-fade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.frontline-more {
  width: 100%;
  margin-top: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--panel-rgb), 0.42);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.frontline-more:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold-3);
}

.frontline-more .fm-count {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink-3);
}

.frontline-more::after {
  content: "↓";
  font-size: 12px;
  line-height: 1;
}

.frontline-col--official.is-open .frontline-more::after {
  content: "↑";
}
/* ===== 排期表 · 往年年份折叠 ===== */
tr.sched-extra {
  display: none;
}

.schedule-fold.is-open tr.sched-extra {
  display: table-row;
}

.schedule-fold.is-open tr.sched-extra td {
  animation: fl-fade 0.4s ease both;
}

.schedule-more {
  width: 100%;
  margin: 10px 0 26px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(var(--gold-rgb), 0.32);
  background: rgba(var(--panel-rgb), 0.38);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.schedule-more:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold-3);
}

.schedule-more .sm-count {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink-3);
}

.schedule-more::after {
  content: "↓";
  font-size: 12px;
  line-height: 1;
}

.schedule-more[aria-expanded="true"]::after {
  content: "↑";
}