/* ============================================================
   HADES II 中文维基 — 暗夜紫金主题
   灵感: Supergiant Games《哈迪斯 II》
   冥界深紫 × 银月辉光 × 奥林帕斯金饰
   ============================================================ */

:root {
  --bg-0: #0b0916;
  --bg-1: #110d20;
  --panel: #171228;
  --panel-2: #1d1734;
  --panel-3: #241c42;
  --ink: #e7e2f2;
  --ink-dim: #a89fc6;
  --ink-faint: #7b7199;
  --gold: #d0aa58;
  --gold-hi: #f2d78d;
  --gold-dim: rgba(208, 170, 88, 0.42);
  --gold-faint: rgba(208, 170, 88, 0.16);
  --silver: #c9cde0;
  --moon: #eef1fa;
  --purple: #9d87ec;
  --purple-deep: #6c55c8;
  --blood: #c9556a;
  --line: rgba(201, 205, 224, 0.13);
  --font-display: 'Cinzel', 'Noto Serif SC', 'STZhongsong', 'SimSun', serif;
  --font-body: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --radius: 4px;
  --corners: rgba(208, 170, 88, 0.65);
}

/* ---------------- 基础 ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 星云底色 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(84, 56, 150, 0.38), transparent 62%),
    radial-gradient(900px 560px at 96% 12%, rgba(38, 58, 128, 0.30), transparent 60%),
    radial-gradient(1200px 800px at 50% 118%, rgba(96, 40, 96, 0.24), transparent 62%),
    linear-gradient(180deg, #0d0a1a 0%, #0b0916 40%, #0a0713 100%);
}

/* 幽紫薄雾 */
body::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(108, 85, 200, 0.10), transparent);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  background: #e3e7fb;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

a { color: var(--gold-hi); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

::selection { background: rgba(157, 135, 236, 0.4); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a2f66, #2a2148);
  border: 2px solid var(--bg-1);
  border-radius: 6px;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 26px;
  height: 62px;
  background: rgba(13, 10, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-dim);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--moon);
  white-space: nowrap;
}
.brand .icon { width: 26px; height: 26px; color: var(--gold-hi); filter: drop-shadow(0 0 6px rgba(242, 215, 141, 0.5)); }
.brand b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, #f7e6b0, #d0aa58 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.3em;
  border-left: 1px solid var(--gold-dim);
  padding-left: 10px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  color: var(--silver);
  padding: 6px 13px;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s;
  box-shadow: 0 0 6px rgba(208, 170, 88, 0.8);
}
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after, .nav a.active::after { width: 70%; }
.nav a.active { color: var(--gold-hi); }

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(23, 18, 40, 0.8);
  padding: 5px 12px;
  border-radius: 20px;
  min-width: 190px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.searchbox:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 14px rgba(208, 170, 88, 0.15);
}
.searchbox .icon { width: 15px; height: 15px; color: var(--ink-faint); flex: none; }
.searchbox input {
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}
.searchbox input::placeholder { color: var(--ink-faint); }

#menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold-hi);
  width: 38px; height: 38px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 17px;
}

/* ---------------- 主体布局 ---------------- */
.shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 34px 26px 80px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
}

/* ---------------- 侧栏 ---------------- */
.sidebar { position: sticky; top: 92px; align-self: start; }
.side-group { margin-bottom: 26px; }
.side-title {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gold-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-title::before {
  content: '◆';
  font-size: 8px;
  color: var(--gold-dim);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: var(--ink-dim);
  font-size: 14.5px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.side-link .icon { width: 16px; height: 16px; opacity: 0.75; }
.side-link:hover { color: var(--gold-hi); background: rgba(208, 170, 88, 0.06); border-left-color: var(--gold-dim); }
.side-link.active { color: var(--gold-hi); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(208, 170, 88, 0.12), transparent); }

.side-card {
  margin-top: 30px;
  padding: 18px 16px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  position: relative;
}
.side-card.moon-widget { text-align: center; }
.moon-glyph {
  width: 54px; height: 54px;
  margin: 2px auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #f7f4ff, #b9b3d8 55%, #6d648f 100%);
  box-shadow: 0 0 22px rgba(222, 224, 250, 0.35), inset -8px -6px 14px rgba(20, 14, 40, 0.55);
  position: relative;
}
.side-card .sc-title { font-size: 13px; letter-spacing: 0.26em; color: var(--gold); }
.side-card p { font-size: 12.5px; color: var(--ink-faint); line-height: 1.8; margin-top: 8px; }

.quote-box { font-style: normal; }
.quote-box .q-mark { color: var(--gold-dim); font-size: 20px; font-family: var(--font-display); }
.quote-box p { color: var(--ink-dim); font-size: 13px; margin: 6px 0; }
.quote-box cite { font-size: 12px; color: var(--ink-faint); font-style: normal; letter-spacing: 0.12em; }

/* ---------------- 页头 / 标题 ---------------- */
.kicker {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  background: linear-gradient(180deg, #f8e9bd 8%, #e3bd6d 52%, #a37f36 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(208, 170, 88, 0.22));
}
.page-title .en {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.42em;
  color: var(--ink-faint);
  -webkit-text-fill-color: var(--ink-faint);
  margin-top: 8px;
}
.page-sub { color: var(--ink-dim); margin-top: 14px; max-width: 720px; }

.orn-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 6px;
  color: var(--gold);
}
.orn-divider::before, .orn-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.orn-divider::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.orn-divider .gem {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-shadow: 0 0 10px rgba(208, 170, 88, 0.7);
}

.sec-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--moon);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 46px 0 18px;
  font-weight: 600;
}
.sec-title .icon { width: 22px; height: 22px; color: var(--gold); }
.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.sec-title small { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.3em; font-weight: 400; }

.lead { color: var(--ink-dim); max-width: 860px; }
.lead b, .lead strong { color: var(--gold-hi); font-weight: 600; }

/* 希腊回纹饰带 */
.meander {
  height: 14px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M2 12 V2 H16 V12 H8 V6 H12' fill='none' stroke='%23c9a84e' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------------- 卡片 ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 20px;
  margin: 22px 0;
}

.card {
  --gc: var(--gold);
  position: relative;
  background: linear-gradient(165deg, var(--panel-2) 0%, var(--panel) 62%);
  border: 1px solid var(--line);
  padding: 24px 22px 20px;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gc), transparent);
  opacity: 0.55;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(157, 135, 236, 0.12);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  color: var(--gc);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 16%, transparent), transparent 70%);
  margin-bottom: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon { transform: scale(1.08); box-shadow: 0 0 18px color-mix(in srgb, var(--gc) 35%, transparent); }
.card-icon .icon { width: 22px; height: 22px; }

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--moon);
  letter-spacing: 0.06em;
}
.card-title .en { font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.14em; font-family: var(--font-display); display: block; margin-top: 2px; }
.card-sub { font-size: 13px; color: var(--gc); letter-spacing: 0.1em; margin: 4px 0 8px; }
.card p.desc { font-size: 13.5px; color: var(--ink-dim); line-height: 1.8; }
.card .more { display: inline-block; margin-top: 12px; font-size: 12.5px; letter-spacing: 0.2em; color: var(--gold); }
.card .more::after { content: ' →'; transition: margin 0.2s; }
.card:hover .more::after { margin-left: 4px; }

/* 四角金饰 */
.corners { position: relative; }
.corners::before, .corners::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
}
.corners::before {
  top: 7px; left: 7px;
  border-top: 1px solid var(--corners);
  border-left: 1px solid var(--corners);
}
.corners::after {
  bottom: 7px; right: 7px;
  border-bottom: 1px solid var(--corners);
  border-right: 1px solid var(--corners);
}

/* ---------------- 徽章 / 稀有度 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink-dim);
  background: rgba(23, 18, 40, 0.7);
  white-space: nowrap;
}
.badge.b-gold { color: var(--gold-hi); border-color: var(--gold-dim); }
.badge.b-purple { color: #c0aef5; border-color: rgba(157, 135, 236, 0.45); }
.badge.b-blood { color: #f0a2b1; border-color: rgba(201, 85, 106, 0.5); }
.badge.b-silver { color: var(--moon); border-color: rgba(201, 205, 224, 0.4); }
.badge.b-green { color: #a9e5b4; border-color: rgba(120, 200, 140, 0.4); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

.rarity { font-size: 12px; padding: 2px 10px; border-radius: 3px; letter-spacing: 0.12em; }
.r-common { color: #d5d9ea; background: rgba(213, 217, 234, 0.1); border: 1px solid rgba(213, 217, 234, 0.3); }
.r-rare { color: #8fe6a1; background: rgba(120, 220, 140, 0.08); border: 1px solid rgba(120, 220, 140, 0.35); }
.r-epic { color: #8cc4f8; background: rgba(110, 170, 250, 0.08); border: 1px solid rgba(110, 170, 250, 0.35); }
.r-heroic { color: #cfa6f7; background: rgba(190, 130, 250, 0.08); border: 1px solid rgba(190, 130, 250, 0.4); }
.r-duo { color: #f4d27a; background: rgba(235, 195, 100, 0.08); border: 1px solid rgba(235, 195, 100, 0.45); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 26px;
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0.22em;
  color: var(--gold-hi);
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(208, 170, 88, 0.14), rgba(208, 170, 88, 0.03));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: all 0.25s;
}
.btn:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(208, 170, 88, 0.32), rgba(208, 170, 88, 0.1));
  box-shadow: 0 0 22px rgba(208, 170, 88, 0.28);
}
.btn.ghost { color: var(--silver); border-color: var(--line); background: rgba(23, 18, 40, 0.5); }
.btn.ghost:hover { color: var(--moon); border-color: var(--gold-dim); box-shadow: 0 0 18px rgba(157, 135, 236, 0.2); }
.btn .icon { width: 16px; height: 16px; }

/* ---------------- 首页英雄区 ---------------- */
.hero {
  position: relative;
  padding: 56px 48px 50px;
  margin-top: 6px;
  background:
    radial-gradient(560px 300px at 82% 30%, rgba(157, 135, 236, 0.16), transparent 65%),
    radial-gradient(420px 260px at 12% 88%, rgba(208, 170, 88, 0.08), transparent 60%),
    linear-gradient(170deg, var(--panel-2), var(--panel) 70%);
  border: 1px solid var(--gold-faint);
  outline: 1px solid rgba(201, 205, 224, 0.07);
  outline-offset: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.62em;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fdf3d3 5%, #eccf85 45%, #b3873c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(208, 170, 88, 0.3));
}
.hero-title .zh {
  display: block;
  font-size: 0.3em;
  letter-spacing: 0.5em;
  color: var(--silver);
  -webkit-text-fill-color: var(--silver);
  margin-top: 14px;
  font-weight: 400;
}
.hero-desc { color: var(--ink-dim); max-width: 560px; margin: 22px 0 30px; font-size: 15.5px; }
.hero-desc b { color: var(--gold-hi); font-weight: 600; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-moon { position: relative; display: grid; place-items: center; min-height: 280px; }
.hero-moon .orbit {
  position: absolute;
  width: 300px; height: 300px;
  border: 1px dashed rgba(201, 205, 224, 0.16);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.hero-moon .orbit.o2 { width: 232px; height: 232px; animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-moon .big-moon {
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fdfbff 0%, #cfc9e8 45%, #8f86b8 78%, #565078 100%);
  box-shadow: 0 0 60px rgba(222, 224, 250, 0.35), 0 0 130px rgba(157, 135, 236, 0.25), inset -18px -14px 34px rgba(18, 12, 40, 0.5);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 55px rgba(222, 224, 250, 0.3), 0 0 120px rgba(157, 135, 236, 0.2), inset -18px -14px 34px rgba(18, 12, 40, 0.5); }
  50% { box-shadow: 0 0 80px rgba(222, 224, 250, 0.5), 0 0 160px rgba(157, 135, 236, 0.34), inset -18px -14px 34px rgba(18, 12, 40, 0.5); }
}
.orbit-star {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--gold-hi);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-hi);
  top: -4px; left: 50%;
}

/* 月相带 */
.moon-strip {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 44px);
  padding: 26px 10px 6px;
  flex-wrap: wrap;
}
.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  cursor: default;
  transition: color 0.25s;
}
.phase:hover { color: var(--gold-hi); }
.phase svg { display: block; }
.phase.now { color: var(--gold-hi); }
.phase.now svg { filter: drop-shadow(0 0 8px rgba(238, 241, 250, 0.8)); }

/* ---------------- 神祇卡 ---------------- */
.grid-gods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.gcard { padding: 20px 18px 18px; }
.gcard .sigil {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gc);
  border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent);
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--gc) 20%, transparent), transparent 72%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--gc) 18%, transparent);
  margin-bottom: 13px;
}
.gcard .sigil .icon { width: 27px; height: 27px; }
.gcard .domain { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.14em; margin-bottom: 8px; }
.gcard ul { list-style: none; margin-top: 8px; }
.gcard ul li {
  font-size: 13px;
  color: var(--ink-dim);
  padding: 3px 0 3px 16px;
  position: relative;
}
.gcard ul li::before { content: '✦'; position: absolute; left: 0; color: var(--gc); font-size: 10px; top: 7px; }
.gcard .gname { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.gcard .gname .en { font-family: var(--font-display); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em; }

/* ---------------- 武器 ---------------- */
.weapon-block {
  margin: 40px 0;
  background: linear-gradient(168deg, var(--panel-2), var(--panel) 72%);
  border: 1px solid var(--line);
  padding: 30px 30px 26px;
  position: relative;
}
.weapon-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--wc, var(--gold-dim)), transparent);
}
.wb-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.wb-sigil {
  width: 74px; height: 74px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  color: var(--gold-hi);
  background: radial-gradient(circle at 50% 30%, rgba(208, 170, 88, 0.14), transparent 70%);
  box-shadow: 0 0 24px rgba(208, 170, 88, 0.12);
}
.wb-sigil .icon { width: 34px; height: 34px; }
.wb-name { font-size: 26px; font-weight: 700; color: var(--moon); letter-spacing: 0.08em; }
.wb-name .en { font-family: var(--font-display); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.24em; margin-left: 12px; }
.wb-true-name { font-size: 12.5px; color: var(--gold); letter-spacing: 0.18em; margin: 6px 0 4px; }
.wb-cost { font-size: 12.5px; color: var(--ink-faint); }

.stat-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-dim); margin: 5px 0; }
.stat-row b { width: 64px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0.14em; flex: none; }
.dots { letter-spacing: 5px; color: var(--gold); font-size: 13px; }
.dots i { font-style: normal; color: rgba(201, 205, 224, 0.16); }

.wb-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 22px; }
.wb-desc { font-size: 14.5px; color: var(--ink-dim); }
.wb-desc h4 {
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin: 16px 0 6px;
  font-weight: 600;
}
.wb-desc h4:first-child { margin-top: 0; }
.wb-desc p { font-size: 13.8px; }

.aspect-list { border-left: 1px solid var(--gold-faint); padding-left: 24px; }
.aspect-list h4 { font-size: 13px; letter-spacing: 0.26em; color: var(--gold); margin-bottom: 12px; }
.aspect {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.aspect:last-child { border-bottom: none; }
.aspect .a-name { font-size: 15px; color: var(--moon); font-weight: 600; }
.aspect .a-name .tag {
  font-size: 11px;
  color: var(--purple);
  border: 1px solid rgba(157, 135, 236, 0.4);
  padding: 0 8px;
  border-radius: 12px;
  margin-left: 8px;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}
.aspect p { font-size: 12.8px; color: var(--ink-faint); }

/* ---------------- 选项卡 ---------------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.tabs button {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  padding: 7px 20px;
  background: rgba(23, 18, 40, 0.6);
  color: var(--ink-dim);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.22s;
}
.tabs button:hover { color: var(--gold-hi); border-color: var(--gold-dim); }
.tabs button.active {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(208, 170, 88, 0.18), rgba(208, 170, 88, 0.04));
  box-shadow: 0 0 14px rgba(208, 170, 88, 0.18);
}
.tabpanel { display: none; animation: fadeup 0.35s ease both; }
.tabpanel.show { display: block; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.wiki-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.wiki-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(208, 170, 88, 0.08), transparent);
  white-space: nowrap;
}
.wiki-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}
.wiki-table tr:hover td { background: rgba(157, 135, 236, 0.05); color: var(--ink); }
.wiki-table td b { color: var(--moon); font-weight: 600; }
.wiki-table .num { color: var(--gold-hi); font-family: var(--font-display); }

/* ---------------- 阿卡纳塔罗 ---------------- */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 22px;
  margin: 26px 0;
}
.tcard {
  perspective: 1100px;
  height: 244px;
  cursor: pointer;
}
.tinner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.tcard.flipped .tinner { transform: rotateY(180deg); }
.tface {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--gold-faint);
  background:
    radial-gradient(120px 90px at 50% 34%, rgba(157, 135, 236, 0.18), transparent 70%),
    linear-gradient(170deg, #1e1838, #14101f 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  outline: 1px solid rgba(201, 205, 224, 0.06);
  outline-offset: -6px;
}
.tface.backface { transform: rotateY(180deg); }
.tnum {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-hi);
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(208, 170, 88, 0.4);
  margin-top: 6px;
}
.tmedal {
  width: 74px; height: 74px;
  margin: 16px 0 14px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--moon);
}
.tmedal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201, 205, 224, 0.22);
  border-radius: 50%;
}
.tmedal .icon { width: 32px; height: 32px; opacity: 0.9; }
.tname { font-size: 15.5px; font-weight: 700; color: var(--moon); letter-spacing: 0.08em; text-align: center; }
.tname-en { font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-faint); margin-top: 4px; text-align: center; text-transform: uppercase; }
.tcard:hover .tinner:not(.flipped) { box-shadow: none; }
.tcard:hover { filter: drop-shadow(0 8px 22px rgba(157, 135, 236, 0.25)); }
.tface .hint {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.tface .effect {
  font-size: 12.6px;
  color: var(--ink-dim);
  line-height: 1.85;
  overflow-y: auto;
  text-align: justify;
  margin-top: 12px;
  scrollbar-width: thin;
}
.tface .effect b { color: var(--gold-hi); }
.tface .who { margin-top: auto; font-size: 11px; color: var(--purple); letter-spacing: 0.16em; padding-top: 8px; }

/* ---------------- 角色 ---------------- */
.char-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; margin-top: 24px; }
.char-list {
  border: 1px solid var(--line);
  background: var(--panel);
  max-height: 660px;
  overflow-y: auto;
  align-self: start;
}
.char-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.char-item .ci-glyph {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  color: var(--gold);
  background: rgba(208, 170, 88, 0.05);
  transition: all 0.2s;
}
.char-item .ci-role { font-size: 11px; color: var(--ink-faint); display: block; letter-spacing: 0.1em; }
.char-item:hover { color: var(--gold-hi); background: rgba(208, 170, 88, 0.05); }
.char-item.active {
  color: var(--moon);
  background: linear-gradient(90deg, rgba(157, 135, 236, 0.14), transparent);
  border-left: 2px solid var(--gold);
}
.char-item.active .ci-glyph { border-color: var(--gold-dim); color: var(--gold-hi); box-shadow: 0 0 12px rgba(208, 170, 88, 0.25); }

.char-detail {
  border: 1px solid var(--gold-faint);
  background: linear-gradient(168deg, var(--panel-2), var(--panel) 72%);
  padding: 32px 34px;
  animation: fadeup 0.35s ease both;
}
.cd-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cd-portrait {
  width: 92px; height: 92px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 700;
  color: var(--moon);
  border: 1px solid var(--gold-dim);
  background:
    radial-gradient(circle at 50% 26%, rgba(157, 135, 236, 0.3), transparent 68%),
    linear-gradient(170deg, #241c42, #16112a);
  box-shadow: 0 0 26px rgba(157, 135, 236, 0.2), inset 0 0 22px rgba(10, 7, 20, 0.7);
}
.cd-name { font-size: 27px; font-weight: 700; color: var(--moon); letter-spacing: 0.06em; }
.cd-name .en { font-family: var(--font-display); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.26em; margin-left: 10px; }
.cd-title { color: var(--gold); font-size: 14px; letter-spacing: 0.2em; margin-top: 6px; }
.cd-rows { margin: 22px 0; border-top: 1px solid var(--gold-faint); }
.cd-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cd-row b { color: var(--gold); font-weight: 400; letter-spacing: 0.18em; font-size: 13px; }
.cd-row span { color: var(--ink); }
.cd-bio { font-size: 14.5px; color: var(--ink-dim); }
.cd-bio h4 { font-size: 13px; letter-spacing: 0.24em; color: var(--gold); margin: 18px 0 8px; }

/* ---------------- 路线 / 地点 ---------------- */
.route {
  position: relative;
  padding-left: 34px;
  margin: 26px 0;
}
.route::before {
  content: '';
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-dim), rgba(157, 135, 236, 0.4), var(--gold-dim));
  box-shadow: 0 0 8px rgba(157, 135, 236, 0.3);
}
.route-item { position: relative; padding: 0 0 30px 14px; }
.route-item:last-child { padding-bottom: 0; }
.route-item::before {
  content: '';
  position: absolute;
  left: -31px; top: 9px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--bg-1);
  border: 1px solid var(--gold);
  box-shadow: 0 0 10px rgba(208, 170, 88, 0.5);
}
.loc-name { font-size: 19px; font-weight: 700; color: var(--moon); letter-spacing: 0.06em; }
.loc-name .en { font-family: var(--font-display); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.22em; margin-left: 10px; }
.loc-name .stage {
  font-size: 11px;
  color: var(--purple);
  border: 1px solid rgba(157, 135, 236, 0.4);
  border-radius: 12px;
  padding: 1px 10px;
  margin-left: 10px;
  vertical-align: 3px;
  letter-spacing: 0.14em;
}
.loc-desc { font-size: 13.8px; color: var(--ink-dim); margin: 8px 0 10px; max-width: 820px; }
.boss-line { font-size: 13.5px; }
.boss-line b { color: var(--blood); font-weight: 600; letter-spacing: 0.08em; }

/* ---------------- 新闻列表 ---------------- */
.news-list { margin: 18px 0; }
.news-item {
  display: flex;
  gap: 20px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.news-date {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.1em;
  flex: none;
  width: 108px;
}
.news-item h4 { font-size: 15.5px; color: var(--moon); font-weight: 600; margin-bottom: 3px; }
.news-item p { font-size: 13px; color: var(--ink-faint); }

/* ---------------- 提示框 ---------------- */
.note {
  border: 1px solid var(--gold-faint);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(208, 170, 88, 0.07), transparent 55%);
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--ink-dim);
  margin: 22px 0;
}
.note b { color: var(--gold-hi); }
.note.purple { border-left-color: var(--purple); border-color: rgba(157, 135, 236, 0.25); background: linear-gradient(90deg, rgba(157, 135, 236, 0.08), transparent 55%); }

.search-hint {
  display: none;
  margin: 12px 0;
  padding: 10px 18px;
  border: 1px dashed var(--gold-dim);
  color: var(--ink-dim);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}
.search-hint.show { display: block; }
.search-hint b { color: var(--gold-hi); }

/* ---------------- 页脚 ---------------- */
footer { border-top: 1px solid var(--gold-faint); margin-top: 30px; }
.foot-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 34px 26px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand b {
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  color: var(--gold-hi);
  font-size: 15px;
}
.foot-brand p { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; max-width: 460px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; }
.foot-links a { color: var(--ink-dim); }
.foot-links a:hover { color: var(--gold-hi); }
.foot-copy { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; }

/* ---------------- 返回顶部 ---------------- */
#backtop {
  position: fixed;
  right: 26px; bottom: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(19, 14, 34, 0.85);
  color: var(--gold-hi);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 90;
  font-size: 15px;
}
#backtop.show { opacity: 1; pointer-events: auto; }
#backtop:hover { box-shadow: 0 0 18px rgba(208, 170, 88, 0.4); transform: translateY(-3px); }

/* ---------------- 图标通用 ---------------- */
.icon { width: 1.15em; height: 1.15em; vertical-align: -0.22em; }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .side-group { display: none; }
  .sidebar.open .side-group { display: block; }
  .hero { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero-moon { min-height: 220px; }
  .wb-body { grid-template-columns: 1fr; }
  .char-wrap { grid-template-columns: 1fr; }
  .char-list { max-height: 300px; }
}

@media (max-width: 760px) {
  #menu-btn { display: block; margin-left: auto; order: 5; }
  .nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 10, 26, 0.97);
    border-bottom: 1px solid var(--gold-dim);
    padding: 12px 20px 18px;
  }
  .nav.open { display: flex; }
  .brand span { display: none; }
  .searchbox { min-width: 130px; }
  .topbar { gap: 12px; padding: 0 16px; overflow-x: auto; }
  .shell { padding: 22px 16px 60px; }
  .wb-head { gap: 14px; }
  .news-item { flex-direction: column; gap: 4px; }
  .news-date { width: auto; }
  .tcard { height: 226px; }
}

/* ---------- 游戏原版图标接入 ---------- */
.sigil { overflow: hidden; border-radius: 50%; }
.sigil img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 14px color-mix(in srgb, var(--gc, #d0aa58) 45%, transparent); }.wb-sigil { overflow: hidden; }
.wb-sigil img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
/* ---------- 阿卡纳游戏原画 ---------- */
.tmedal { overflow: hidden; }
.tmedal img, .tart { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 16px rgba(208,170,88,.35); }
/* ---------- 神祇恩赐表 ---------- */
.ghead { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ghead .sigil { width: 64px; height: 64px; flex: none; }
.grid-gods { display: grid; grid-template-columns: 1fr; gap: 18px; }
.boon-table { font-size: 13px; }
.boon-table td { padding: 7px 10px; vertical-align: middle; }
.boon-table .boon-ic { width: 44px; padding: 4px 6px; }
.boon-table .boon-ic img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(208,170,88,.35)); display: block; margin: 0 auto; }
.boon-table .boon-en { display: block; font-family: var(--font-display); font-size: 10px; color: var(--ink-faint); letter-spacing: .08em; margin-top: 2px; }
.boon-table .boon-slot { white-space: nowrap; font-size: 11.5px; color: var(--ink-faint); }
.boon-table tbody tr:hover { background: rgba(208,170,88,.06); }
.duo-line { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); }
.duo-line b { color: var(--gold-hi); }
@media (max-width: 720px) {
  .boon-table .boon-en { display: none; }
  .boon-table .boon-slot { display: none; }
}