/* ============================================================
   酆都地府管理系统 · 视觉设计系统
   墨色 / 金线 / 幽火
   ============================================================ */
:root {
  --bg: #06090b;
  --panel: rgba(16, 21, 25, .74);
  --panel-solid: #10161a;
  --gold: #c9a227;
  --gold-soft: #e5cd8f;
  --gold-line: rgba(201, 162, 39, .18);
  --gold-line-2: rgba(201, 162, 39, .38);
  --ink: #e9e3d5;
  --ink-2: #b9b3a6;
  --muted: #868d8b;
  --jade: #5cc9a7;
  --red: #d9584f;
  --blue: #5b9fd6;
  --purple: #a98bd0;
  --sidebar-w: 246px;
  --radius: 16px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: bodyIn .7s ease forwards;
}
@keyframes bodyIn { to { opacity: 1; } }

::selection { background: rgba(201, 162, 39, .3); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .24); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, .45); }

a { color: var(--gold-soft); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .03em; }

/* ---------------- 背景层 ---------------- */
.bg-layer {
  position: fixed;
  inset: -2%;
  z-index: -3;
  background-size: cover;
  background-position: center 42%;
  filter: brightness(.52) saturate(.85) contrast(1.04);
  transform: scale(1.03);
  animation: bgBreathe 42s ease-in-out infinite alternate;
}
@keyframes bgBreathe {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.4%, -1%, 0); }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 42% 28%, rgba(4, 7, 9, 0) 0%, rgba(4, 7, 9, .34) 58%, rgba(3, 5, 6, .9) 100%),
    linear-gradient(180deg, rgba(4, 6, 8, .56) 0%, rgba(4, 6, 8, .24) 32%, rgba(3, 5, 6, .88) 100%);
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.fog-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}

/* ---------------- 骨架 ---------------- */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  background: linear-gradient(180deg, rgba(8, 11, 13, .95) 0%, rgba(7, 10, 12, .9) 100%);
  border-right: 1px solid rgba(201, 162, 39, .14);
  backdrop-filter: blur(18px);
  box-shadow: 14px 0 50px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: -1px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, .5), transparent);
  opacity: .5;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; border-bottom: 1px dashed rgba(201, 162, 39, .16); }
.brand-seal {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 24px; color: #120d06;
  background: linear-gradient(145deg, #e5cd8f, #b98f1f 60%, #8f6c12);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .28), 0 6px 18px rgba(201, 162, 39, .28);
  animation: sealGlow 6s ease-in-out infinite;
}
@keyframes sealGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 240, 200, .28), 0 6px 18px rgba(201, 162, 39, .26); }
  50% { box-shadow: 0 0 0 1px rgba(255, 240, 200, .45), 0 6px 26px rgba(201, 162, 39, .48); }
}
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .14em; color: var(--gold-soft); }
.brand-sub { font-size: 10px; letter-spacing: .28em; color: var(--muted); margin-top: 2px; }

.nav-scroll { flex: 1; overflow-y: auto; padding: 12px 2px 8px; margin-right: -6px; }
.nav-group { margin-bottom: 14px; }
.nav-group-title {
  font-size: 10px; letter-spacing: .3em; color: rgba(201, 162, 39, .5);
  padding: 6px 12px; font-family: var(--serif);
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin: 2px 0;
  border-radius: 9px; color: #a4aaa6; font-size: 13px;
  position: relative; overflow: hidden;
  transition: color .25s, background .25s, transform .25s;
}
.nav-item .sigil {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 12px;
  color: rgba(201, 162, 39, .62);
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 6px;
  transition: all .25s;
}
.nav-item .nav-label { flex: 1; letter-spacing: .04em; }
.nav-item .nav-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, .035); transform: translateX(2px); }
.nav-item:hover .sigil { color: var(--gold-soft); border-color: var(--gold-line-2); }
.nav-item.active {
  color: var(--gold-soft);
  background: linear-gradient(90deg, rgba(201, 162, 39, .18), rgba(201, 162, 39, .015));
  box-shadow: inset 2px 0 0 var(--gold);
}
.nav-item.active .sigil { color: #14100a; background: linear-gradient(145deg, #e5cd8f, #c9a227); border-color: transparent; box-shadow: 0 0 14px rgba(201, 162, 39, .4); }
.nav-item.active .nav-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 50% { opacity: .35; } }

.sidebar-foot { border-top: 1px dashed rgba(201, 162, 39, .16); padding: 12px 8px 2px; }
.balance-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.balance-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); margin: 7px 0 10px; overflow: hidden; }
.balance-bar i { display: block; height: 100%; width: 61.8%; background: linear-gradient(90deg, var(--red), #c9a227 50%, var(--jade)); border-radius: 4px; box-shadow: 0 0 10px rgba(201, 162, 39, .5); }
.sys-state { display: flex; gap: 10px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.sys-state span { display: flex; align-items: center; gap: 4px; }
.sys-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 6px var(--jade); animation: pulseDot 2.4s infinite; }

.main-col {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(6, 9, 11, .62);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  backdrop-filter: blur(16px);
}
.icon-btn {
  width: 34px; height: 34px; display: none; place-items: center;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px;
  background: transparent; color: var(--ink-2); cursor: pointer; font-size: 15px;
}
a.icon-btn { text-decoration: none; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.crumb b { color: var(--ink-2); font-weight: 500; }
.crumb .sep { color: rgba(201, 162, 39, .4); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.clock-box { text-align: right; line-height: 1.25; }
.clock-box .t1 { font-family: var(--serif); font-size: 15px; color: var(--gold-soft); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.clock-box .t2 { font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.top-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .09); }

.chip-live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 99px; font-size: 11px;
  color: var(--jade); border: 1px solid rgba(92, 201, 167, .24);
  background: rgba(92, 201, 167, .07); letter-spacing: .08em;
}
.chip-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); animation: pulseDot 1.8s infinite; }

.user-chip {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 4px 10px 4px 4px; border-radius: 99px;
  border: 1px solid rgba(201, 162, 39, .16); background: rgba(255, 255, 255, .03);
  cursor: default;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; color: #14100a;
  background: linear-gradient(145deg, #e5cd8f, #b98f1f);
}
.user-meta { line-height: 1.2; }
.user-meta b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .08em; }
.user-meta span { font-size: 10px; color: var(--muted); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 176px; padding: 8px;
  background: rgba(14, 18, 21, .97);
  border: 1px solid var(--gold-line); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s; z-index: 5;
}
.user-chip:hover .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu a, .user-menu span {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--ink-2);
}
.user-menu a:hover { background: rgba(201, 162, 39, .1); color: var(--gold-soft); }
.user-menu .divider { height: 1px; background: rgba(255, 255, 255, .07); margin: 6px 4px; }

/* ---------------- 页面横幅 ---------------- */
.hero {
  position: relative;
  margin: 20px 24px 0;
  min-height: 186px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .16);
  background-image: var(--hero);
  background-size: cover;
  background-position: center 45%;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 9, .95) 0%, rgba(4, 7, 9, .78) 42%, rgba(4, 7, 9, .18) 78%, rgba(4, 7, 9, .42) 100%),
    linear-gradient(180deg, rgba(4, 7, 9, .3), rgba(4, 7, 9, .82));
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 32%, rgba(201, 162, 39, .14), transparent 46%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 24px 32px; display: flex; align-items: flex-end; gap: 24px; min-height: 186px; }
.hero-text { flex: 1; min-width: 0; }
.hero-crumbs { font-size: 11px; letter-spacing: .18em; color: rgba(201, 162, 39, .62); margin-bottom: 10px; }
.hero h1 {
  font-size: clamp(24px, 2.1vw, 34px);
  letter-spacing: .12em;
  color: #f2e9d4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .8);
  margin-bottom: 8px;
}
.hero p { margin: 0; color: #a9a89f; font-size: 12.5px; letter-spacing: .06em; max-width: 640px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-stat {
  display: flex; align-items: baseline; gap: 6px;
  padding: 4px 11px; border-radius: 99px;
  border: 1px solid rgba(201, 162, 39, .18);
  background: rgba(9, 13, 15, .55);
  font-size: 11px; color: var(--muted);
  backdrop-filter: blur(4px);
}
.hero-stat b { font-family: var(--serif); font-size: 14px; color: var(--gold-soft); letter-spacing: .04em; }
.hero-stamp {
  flex: 0 0 auto;
  align-self: center;
  width: 74px; height: 74px;
  display: grid; place-items: center;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 20px; letter-spacing: .22em;
  color: rgba(220, 178, 74, .92);
  border: 2px solid rgba(201, 162, 39, .55);
  border-radius: 8px;
  transform: rotate(-4deg);
  text-shadow: 0 0 18px rgba(201, 162, 39, .4);
  box-shadow: inset 0 0 22px rgba(201, 162, 39, .12), 0 0 30px rgba(201, 162, 39, .08);
  position: relative;
  animation: stampIn .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero-stamp::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(201, 162, 39, .28);
  border-radius: 4px;
}
@keyframes stampIn {
  from { opacity: 0; transform: rotate(-14deg) scale(1.5); }
  to { opacity: .95; transform: rotate(-4deg) scale(1); }
}

/* ---------------- 内容区（单屏 SPA，只有这里能滚） ---------------- */
.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px 48px;
  max-width: 1780px;
  width: 100%;
  margin: 0 auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .28); border-radius: 6px; }
.content::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, .5); }
.content > * { animation: fadeUp .55s cubic-bezier(.2, .8, .3, 1) both; }
.content > *:nth-child(1) { animation-delay: .02s; }
.content > *:nth-child(2) { animation-delay: .07s; }
.content > *:nth-child(3) { animation-delay: .12s; }
.content > *:nth-child(4) { animation-delay: .17s; }
.content > *:nth-child(5) { animation-delay: .22s; }
.content > *:nth-child(6) { animation-delay: .27s; }

/* SPA 顶部进度条 */
.app-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateY(-100%);
  transition: transform .25s ease, opacity .3s ease;
  pointer-events: none;
}
.app-progress.active {
  transform: translateY(0);
  opacity: 1;
  animation: progressPulse 1.4s ease-in-out infinite;
}
@keyframes progressPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

/* SPA 切换过渡：内容区淡入 */
.content.fade-in {
  animation: contentFade .35s ease-out;
}
@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 批量操作条 */
.batch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 10px 0 8px;
  background: rgba(201, 162, 39, .08);
  border: 1px solid rgba(201, 162, 39, .2);
  border-radius: 6px;
  font-size: 12.5px;
}
.batch-bar label.select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--gold);
  user-select: none;
}
.batch-bar input[type=checkbox] { accent-color: var(--gold); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.gold { color: var(--gold-soft); }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; font-family: var(--serif); }

/* ---------------- 卡片 ---------------- */
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(19, 25, 29, .82) 0%, rgba(11, 15, 18, .9) 100%);
  border: 1px solid rgba(201, 162, 39, .13);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(201, 162, 39, .35);
  border-style: solid;
  pointer-events: none;
}
.card::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; border-radius: 4px 0 0 0; }
.card::after { bottom: 7px; right: 7px; border-width: 0 1px 1px 0; border-radius: 0 0 4px 0; }
.card.pad-0 { padding: 0; }
.card.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(0, 0, 0, .38); }

.card-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-hd .t { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--ink); }
.card-hd .t small { font-family: var(--sans); font-size: 10px; color: var(--muted); letter-spacing: .14em; margin-left: 8px; }
.card-hd .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 162, 39, .22), transparent); }
.card-hd .more { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.card-hd .more:hover { color: var(--gold-soft); }

.card-seal {
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: var(--gold);
  border: 1px solid rgba(201, 162, 39, .3); border-radius: 6px;
  background: rgba(201, 162, 39, .06);
  flex: 0 0 26px;
}

/* ---------------- KPI ---------------- */
.kpi {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 26, 30, .86), rgba(10, 14, 17, .92));
  border: 1px solid rgba(201, 162, 39, .13);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.kpi::after {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .5), transparent);
  opacity: .5;
}
.kpi:hover { transform: translateY(-3px); border-color: rgba(201, 162, 39, .3); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.kpi-icon {
  position: absolute; right: 12px; top: 8px;
  font-family: var(--serif); font-size: 46px; line-height: 1;
  color: rgba(201, 162, 39, .09);
  pointer-events: none;
}
.kpi-label { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.kpi-value {
  font-family: var(--serif); font-size: 30px; line-height: 1.15;
  color: #f0e6ce; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(201, 162, 39, .16);
}
.kpi-value small { font-size: 12px; color: var(--muted); margin-left: 4px; letter-spacing: .05em; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--jade); }
.trend.down { color: var(--red); }
.trend.flat { color: var(--muted); }

/* ---------------- 徽章 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px;
  font-size: 11px; letter-spacing: .04em; white-space: nowrap;
  border: 1px solid transparent;
}
.badge i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge-gold { color: #dcb24a; background: rgba(201, 162, 39, .1); border-color: rgba(201, 162, 39, .26); }
.badge-jade { color: var(--jade); background: rgba(92, 201, 167, .09); border-color: rgba(92, 201, 167, .24); }
.badge-red  { color: #e57a72; background: rgba(217, 88, 79, .1); border-color: rgba(217, 88, 79, .26); }
.badge-blue { color: #7fb6e0; background: rgba(91, 159, 214, .1); border-color: rgba(91, 159, 214, .26); }
.badge-amber{ color: #e2b56a; background: rgba(226, 181, 106, .09); border-color: rgba(226, 181, 106, .24); }
.badge-gray { color: #9aa19d; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }
.badge-purple { color: var(--purple); background: rgba(169, 139, 208, .1); border-color: rgba(169, 139, 208, .24); }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 5px;
  font-size: 10px; letter-spacing: .08em;
  border: 1px solid rgba(201, 162, 39, .24); color: var(--gold-soft);
  background: rgba(201, 162, 39, .06);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-2); font-size: 12px; letter-spacing: .08em;
  font-family: var(--sans); cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.btn-gold {
  border: 1px solid rgba(229, 205, 143, .5);
  background: linear-gradient(145deg, #e5cd8f, #c9a227 62%, #9d7a15);
  color: #171005; font-weight: 600;
  box-shadow: 0 8px 22px rgba(201, 162, 39, .24);
}
.btn-gold:hover { background: linear-gradient(145deg, #f0dcae, #d8b13a 62%, #ab8618); color: #171005; box-shadow: 0 10px 30px rgba(201, 162, 39, .4); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(201, 162, 39, .32); color: var(--gold-soft); background: rgba(201, 162, 39, .06); }
.btn-ghost:hover { background: rgba(201, 162, 39, .14); color: #f4e6c4; border-color: rgba(201, 162, 39, .5); }
.btn-danger { border-color: rgba(217, 88, 79, .35); color: #e88a83; background: rgba(217, 88, 79, .08); }
.btn-danger:hover { background: rgba(217, 88, 79, .18); color: #ffb4ad; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 11px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 10px; color: #6d7472; margin-top: 4px; letter-spacing: .04em; }
input[type="text"], input[type="password"], input[type="date"], input[type="datetime-local"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(5, 8, 10, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  font-family: var(--sans); font-size: 12.5px;
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f6664; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(201, 162, 39, .55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .1);
  background: rgba(8, 11, 13, .85);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(201, 162, 39, .7) 50%), linear-gradient(135deg, rgba(201, 162, 39, .7) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: #10161a; color: var(--ink); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filter-bar .grow { flex: 1; min-width: 180px; }
.search-box { position: relative; }
.search-box input { padding-left: 32px; }
.search-box::before {
  content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%);
  color: rgba(201, 162, 39, .55); font-size: 15px; pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px; border-radius: 99px; cursor: pointer;
  font-size: 11px; letter-spacing: .06em; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .025);
  transition: all .22s;
}
.chip:hover { color: var(--ink); border-color: rgba(201, 162, 39, .3); }
.chip.active { color: #171005; background: linear-gradient(145deg, #e5cd8f, #c9a227); border-color: transparent; font-weight: 600; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 720px; }
table.data thead th {
  text-align: left; padding: 10px 12px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em;
  color: rgba(201, 162, 39, .62);
  border-bottom: 1px solid rgba(201, 162, 39, .16);
  white-space: nowrap;
  background: rgba(255, 255, 255, .015);
}
table.data tbody td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .045); color: var(--ink-2); vertical-align: middle; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: rgba(201, 162, 39, .055); }
table.data tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .strong { color: var(--ink); font-weight: 500; }
table.data .no { font-family: var(--serif); color: rgba(201, 162, 39, .8); font-size: 11.5px; letter-spacing: .04em; }
table.data .ops { display: flex; gap: 6px; flex-wrap: wrap; }
table.data td.num { font-variant-numeric: tabular-nums; font-family: var(--serif); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 11px; color: var(--muted); }
.pager .pages { display: flex; gap: 5px; flex-wrap: wrap; }
.pager a, .pager span.cur {
  min-width: 28px; height: 28px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, .09);
  color: var(--muted); font-size: 11px;
}
.pager a:hover { border-color: rgba(201, 162, 39, .4); color: var(--gold-soft); }
.pager span.cur { background: rgba(201, 162, 39, .16); color: var(--gold-soft); border-color: rgba(201, 162, 39, .4); }

.empty { padding: 44px 20px; text-align: center; color: #6f7674; font-size: 12px; }
.empty .big { font-family: var(--serif); font-size: 30px; opacity: .3; display: block; margin-bottom: 8px; letter-spacing: .2em; }

/* ---------------- 进度 / 条形 ---------------- */
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #9a7a18, var(--gold)); transition: width 1s cubic-bezier(.2, .8, .3, 1); }
.bar.jade i { background: linear-gradient(90deg, #2f8a71, var(--jade)); }
.bar.red i { background: linear-gradient(90deg, #8d2f2a, var(--red)); }
.bar.blue i { background: linear-gradient(90deg, #2f5e8a, var(--blue)); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-row .lbl { width: 118px; font-size: 11.5px; color: var(--ink-2); flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; }
.bar-row .val { width: 58px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* ---------------- 列表 ---------------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed rgba(255, 255, 255, .055); align-items: flex-start; }
.list-item:last-child { border-bottom: none; }
.list-item .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex: 0 0 6px; background: var(--gold); box-shadow: 0 0 8px rgba(201, 162, 39, .6); }
.list-item .dot.red { background: var(--red); box-shadow: 0 0 8px rgba(217, 88, 79, .6); }
.list-item .dot.jade { background: var(--jade); box-shadow: 0 0 8px rgba(92, 201, 167, .6); }
.list-item .dot.blue { background: var(--blue); box-shadow: 0 0 8px rgba(91, 159, 214, .6); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .t { font-size: 12.5px; color: var(--ink); }
.list-item .d { font-size: 11px; color: var(--muted); margin-top: 2px; }
.list-item .time { font-size: 10.5px; color: #6a716f; white-space: nowrap; }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); margin-bottom: 16px; overflow-x: auto; }
.tab {
  padding: 9px 16px; font-size: 12px; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all .22s; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--sans); letter-spacing: .08em;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold-soft); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s both; }

/* ---------------- 时间轴 ---------------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(201, 162, 39, .45), rgba(201, 162, 39, .06)); }
.tl-item { position: relative; padding: 0 0 18px 6px; }
.tl-item::before {
  content: ""; position: absolute; left: -21px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #0b0f12; border: 1px solid rgba(201, 162, 39, .6);
  box-shadow: 0 0 10px rgba(201, 162, 39, .35);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-era { font-family: var(--serif); font-size: 11px; color: rgba(201, 162, 39, .8); letter-spacing: .1em; }
.tl-title { font-size: 13px; color: var(--ink); margin: 2px 0 3px; }
.tl-desc { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------------- 图表 ---------------- */
.chart { width: 100%; height: 280px; }
.chart.sm { height: 210px; }
.chart.lg { height: 340px; }

/* ---------------- 六道轮盘装饰 ---------------- */
.wheel-wrap { position: relative; display: grid; place-items: center; height: 260px; }
.wheel {
  position: relative; width: 224px; height: 224px; border-radius: 50%;
  background: conic-gradient(#e8c46a 0 60deg, #7fc8a9 60deg 120deg, #c96f6f 120deg 180deg, #9aa7b8 180deg 240deg, #b083c4 240deg 300deg, #d25c5c 300deg 360deg);
  mask: radial-gradient(circle, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
  animation: spinSlow 86s linear infinite;
  filter: saturate(.85) brightness(.85);
  box-shadow: 0 0 60px rgba(201, 162, 39, .12);
}
.wheel-ring {
  position: absolute; width: 178px; height: 178px; border-radius: 50%;
  border: 1px dashed rgba(201, 162, 39, .35);
  animation: spinSlow 60s linear infinite reverse;
}
.wheel-ring::before, .wheel-ring::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold); top: -4px; left: 50%;
}
.wheel-ring::after { top: auto; bottom: -4px; }
.wheel-hole {
  position: absolute; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .18), rgba(6, 9, 11, .96) 70%);
  border: 1px solid rgba(201, 162, 39, .3);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--gold-soft); letter-spacing: .1em;
  box-shadow: 0 0 40px rgba(201, 162, 39, .18) inset;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.wheel-legend { position: absolute; inset: 0; pointer-events: none; }
.wheel-legend span {
  position: absolute; font-size: 10.5px; color: var(--ink-2); letter-spacing: .1em;
  padding: 2px 6px; border-radius: 4px; background: rgba(6, 9, 11, .7);
  border: 1px solid rgba(255, 255, 255, .07);
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(3, 5, 6, .72);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: all .28s;
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  width: min(620px, 100%); max-height: 86vh; overflow: auto;
  background: linear-gradient(165deg, #141a1e 0%, #0b0f12 100%);
  border: 1px solid rgba(201, 162, 39, .26);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  transform: translateY(16px) scale(.97); opacity: 0;
  transition: all .32s cubic-bezier(.2, .9, .3, 1);
  position: relative;
}
.modal.wide { width: min(880px, 100%); }
.modal-mask.show .modal { transform: none; opacity: 1; }
.modal-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-hd .t { font-family: var(--serif); font-size: 18px; color: var(--gold-soft); letter-spacing: .12em; }
.modal-hd .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.modal-hd .x:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .08); }

/* ---------------- 提示条 ---------------- */
.toast-stack { position: fixed; top: 76px; right: 22px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px;
  padding: 12px 16px; border-radius: 11px;
  background: rgba(16, 21, 25, .97);
  border: 1px solid rgba(201, 162, 39, .3);
  border-left: 3px solid var(--gold);
  color: var(--ink-2); font-size: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  animation: toastIn .4s cubic-bezier(.2, 1.2, .4, 1) both;
  display: flex; gap: 8px; align-items: flex-start;
}
.toast.success { border-left-color: var(--jade); }
.toast.error { border-left-color: var(--red); }
.toast .ic { font-family: var(--serif); color: var(--gold); }
.toast.success .ic { color: var(--jade); }
.toast.error .ic { color: var(--red); }
.toast.hide { animation: toastOut .35s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------------- 滚动播报 ---------------- */
.ticker { overflow: hidden; border-top: 1px dashed rgba(201, 162, 39, .18); margin-top: 16px; padding-top: 10px; }
.ticker-inner { display: flex; gap: 40px; white-space: nowrap; animation: tickerScroll 46s linear infinite; font-size: 11px; color: var(--muted); }
.ticker-inner span { display: inline-flex; align-items: center; gap: 6px; }
.ticker-inner i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.ticker-inner b { color: var(--gold-soft); font-weight: 500; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 详情定义列表 ---------------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.dl .item { display: flex; gap: 8px; font-size: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .05); padding-bottom: 8px; }
.dl .item .k { color: var(--muted); flex: 0 0 72px; letter-spacing: .06em; }
.dl .item .v { color: var(--ink); flex: 1; min-width: 0; word-break: break-all; }
.dl.full { grid-template-columns: 1fr; }

/* ---------------- 卡片统计 ---------------- */
.mini-stat { display: flex; flex-direction: column; gap: 3px; }
.mini-stat .v { font-family: var(--serif); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-stat .k { font-size: 10.5px; color: var(--muted); letter-spacing: .12em; }

/* ---------------- 特殊面板 ---------------- */
.hero-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--jade); letter-spacing: .16em; margin-left: 12px; }
.hero-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); animation: pulseDot 1.6s infinite; }

/* ---------------- 登录页 ---------------- */
.login-body { overflow: hidden; }
.login-bg { position: fixed; inset: 0; background: url("../img/bg/login_1.jpg") center/cover no-repeat; filter: brightness(.56) saturate(.9); transform: scale(1.02); animation: bgBreathe 50s ease-in-out infinite alternate; }
.login-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 42%, transparent 0%, rgba(3, 6, 8, .5) 55%, rgba(2, 4, 5, .95) 100%); }
.login-scene { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.login-brand { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6vw; min-width: 0; }
.login-brand .seal-line { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.login-brand .seal { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: #140e05; background: linear-gradient(145deg, #e5cd8f, #b98f1f 60%, #8f6c12); box-shadow: 0 0 0 1px rgba(255, 240, 200, .3), 0 10px 34px rgba(201, 162, 39, .35); animation: sealGlow 6s ease-in-out infinite; }
.login-brand .seal-txt small { display: block; font-size: 10px; letter-spacing: .4em; color: rgba(201, 162, 39, .7); }
.login-brand .seal-txt b { font-family: var(--serif); font-size: 17px; letter-spacing: .3em; color: var(--gold-soft); font-weight: 500; }
.login-brand h1 { font-size: clamp(38px, 5.2vw, 74px); letter-spacing: .16em; line-height: 1.15; color: #f2ead8; margin: 0; text-shadow: 0 8px 60px rgba(0, 0, 0, .9); }
.login-brand h1 span { color: var(--gold); }
.login-brand .slogan { margin-top: 18px; color: #a7a79e; font-size: 13px; letter-spacing: .32em; }
.login-brand .verse { margin-top: 38px; padding-left: 18px; border-left: 1px solid rgba(201, 162, 39, .4); color: #8f918a; font-family: var(--serif); font-size: 12.5px; line-height: 2.2; letter-spacing: .12em; }
.login-brand .verse b { color: var(--gold-soft); font-weight: 500; }
.login-metrics { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.login-metrics .m .v { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }
.login-metrics .m .k { font-size: 10px; letter-spacing: .2em; color: #7b807b; margin-top: 2px; }

.login-panel-wrap { flex: 0 0 44%; max-width: 620px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card {
  width: 100%; max-width: 392px;
  padding: 34px 32px 28px;
  background: linear-gradient(170deg, rgba(18, 23, 27, .92), rgba(8, 11, 13, .96));
  border: 1px solid rgba(201, 162, 39, .2);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
  position: relative;
  animation: cardIn .8s cubic-bezier(.2, .9, .3, 1) both .15s;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.login-card::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .7), transparent); }
.login-card .lc-head { text-align: center; margin-bottom: 24px; }
.login-card .lc-head .k { font-size: 10px; letter-spacing: .4em; color: rgba(201, 162, 39, .62); }
.login-card .lc-head h2 { font-size: 22px; letter-spacing: .24em; color: #f0e7d2; margin: 8px 0 4px; }
.login-card .lc-head p { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.login-card .field label { letter-spacing: .2em; }
.login-card input { height: 40px; background: rgba(4, 7, 8, .7); }
.login-card .btn-gold { height: 42px; font-size: 13.5px; letter-spacing: .32em; margin-top: 6px; }
.login-alt { margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.login-alt .t { font-size: 10px; letter-spacing: .2em; color: #6f7672; margin-bottom: 10px; }
.demo-accounts { display: flex; gap: 8px; }
.demo-account { flex: 1; padding: 8px 6px; text-align: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); cursor: pointer; transition: all .22s; }
.demo-account:hover { border-color: rgba(201, 162, 39, .4); background: rgba(201, 162, 39, .08); transform: translateY(-2px); }
.demo-account b { display: block; font-size: 11.5px; color: var(--ink-2); letter-spacing: .06em; }
.demo-account span { font-size: 9.5px; color: #6d7471; letter-spacing: .06em; }
.login-note { text-align: center; margin-top: 16px; font-size: 10px; color: #5f6663; letter-spacing: .1em; }
.login-error { margin-bottom: 14px; padding: 9px 12px; border-radius: 8px; font-size: 11.5px; color: #e88a83; border: 1px solid rgba(217, 88, 79, .3); background: rgba(217, 88, 79, .1); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------------- 主从布局 ---------------- */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.split.wide-left { grid-template-columns: 360px minmax(0, 1fr); }
.list-card { padding: 8px; }

/* ---------------- 神明卡片 ---------------- */
.god-card {
  position: relative; padding: 18px; border-radius: 14px;
  background: linear-gradient(165deg, rgba(20, 26, 30, .78), rgba(9, 13, 15, .88));
  border: 1px solid rgba(201, 162, 39, .12);
  overflow: hidden; transition: all .35s;
}
.god-card::before {
  content: attr(data-sigil);
  position: absolute; right: -6px; bottom: -26px;
  font-family: var(--serif); font-size: 92px; line-height: 1;
  color: rgba(201, 162, 39, .06);
  pointer-events: none;
}
.god-card:hover { transform: translateY(-4px); border-color: rgba(201, 162, 39, .4); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.god-card .g-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.god-sigil {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--serif); font-size: 18px; color: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .3); background: rgba(201, 162, 39, .07);
  flex: 0 0 38px;
}
.god-card h3 { font-size: 15px; color: var(--ink); letter-spacing: .1em; }
.god-card .region { font-size: 10px; color: rgba(201, 162, 39, .7); letter-spacing: .16em; }
.god-card p { font-size: 11.5px; color: var(--muted); line-height: 1.75; margin: 8px 0 10px; min-height: 40px; }
.god-card .g-foot { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #6b726f; }

/* ---------------- 详情面板 ---------------- */
.detail-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: rgba(201, 162, 39, .045); border: 1px dashed rgba(201, 162, 39, .18); margin-bottom: 16px; }
.detail-avatar { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--gold-soft); border: 1px solid rgba(201, 162, 39, .3); background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, .2), rgba(10, 14, 16, .9)); flex: 0 0 56px; }
.detail-hero .nm { font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: .1em; }
.detail-hero .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------------- 判词 ---------------- */
.verdict-scroll {
  position: relative; padding: 20px 22px;
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(201, 162, 39, .04), transparent 40%), rgba(12, 16, 18, .8);
  font-family: var(--serif); font-size: 13.5px; line-height: 2.1; color: #ddd3bd; letter-spacing: .06em;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
}
.verdict-scroll .sign { display: block; text-align: right; margin-top: 12px; font-size: 11.5px; color: rgba(201, 162, 39, .75); letter-spacing: .14em; }

/* ---------------- 工具类 ---------------- */
.hide { display: none !important; }
.divider { height: 1px; background: rgba(255, 255, 255, .07); margin: 16px 0; }
.badge-dot { display: inline-flex; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); }
.stamp-text {
  display: inline-block; padding: 2px 8px; font-family: var(--serif); font-size: 10px;
  color: rgba(217, 88, 79, .9); border: 1px solid rgba(217, 88, 79, .45);
  border-radius: 3px; transform: rotate(-3deg); letter-spacing: .1em;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1500px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); width: 268px; }
  .sidebar.open { transform: none; }
  .main-col { margin-left: 0; }
  .icon-btn { display: grid; }
  .topbar { padding: 0 14px; gap: 10px; }
  .clock-box, .chip-live, .top-divider { display: none; }
  .hero { margin: 14px 14px 0; }
  .hero-inner { padding: 20px; min-height: 160px; }
  .hero-stamp { display: none; }
  .content { padding: 16px 14px 60px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
  .col-2, .col-3 { grid-column: span 1; }
  .dl { grid-template-columns: 1fr; }
  .login-panel-wrap { flex: 0 0 auto; width: 100%; max-width: none; padding: 24px; }
  .login-brand { display: none; }
}

/* ---------------- 雪景层：常态白灰雪 + 入魂红雪 ---------------- */
.snow-canvas, .snow-blood {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.snow-canvas { opacity: .82; }
.snow-blood {
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity .8s ease;
}
body.snow-blood-active .snow-blood { opacity: .95; }

/* 血雾遮罩：入魂时叠加的一层暗红色薄雾 */
.blood-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(120, 0, 0, 0) 0%, rgba(80, 5, 5, 0) 40%, rgba(120, 10, 10, .28) 100%);
  opacity: 0;
  transition: opacity 1.1s ease;
  filter: saturate(1.2) brightness(.75);
}
body.snow-blood-active .blood-overlay { opacity: 1; animation: bloodFade 8s ease forwards; }
@keyframes bloodFade {
  0%   { opacity: .0; }
  10%  { opacity: .85; }
  60%  { opacity: .7; }
  100% { opacity: .0; }
}

/* 背景层呼吸加强 */
.bg-layer {
  animation: bgBreathe 36s ease-in-out infinite alternate;
}

/* 主容器微浮动（让场景有"活着"的感觉） */
.app-shell {
  animation: shellFloat 28s ease-in-out infinite alternate;
}
@keyframes shellFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -2px, 0); }
}

/* 卡片悬浮细节：hover 时轻微抬升+金边发光 */
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(201, 162, 39, .25),
    0 0 34px rgba(201, 162, 39, .08);
  border-color: rgba(201, 162, 39, .35);
}

/* 入魂提示条 */
.soul-dawn {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 130;
  padding: 8px 22px 8px 14px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .1em;
  color: #ffd8d4;
  background: linear-gradient(90deg, rgba(120, 10, 10, .88), rgba(40, 2, 2, .85));
  border: 1px solid rgba(217, 88, 79, .55);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(217, 88, 79, .28), 0 10px 40px rgba(160, 20, 20, .45);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.3,1);
  animation: soulDawnIn .5s cubic-bezier(.2,.8,.3,1) forwards, soulDawnOut .6s ease 6s forwards;
}
.soul-dawn::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5a4c; box-shadow: 0 0 12px #ff5a4c, 0 0 24px rgba(217, 88, 79, .75);
}
@keyframes soulDawnIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes soulDawnOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* 鬼节/血雪期间顶栏小徽标 */
.blood-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .2em; color: #e6877d;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(120, 10, 10, .35);
  border: 1px solid rgba(217, 88, 79, .5);
  animation: bloodPulse 1.6s ease infinite;
}
.blood-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #ff5a4c; box-shadow: 0 0 8px #ff5a4c;
}
@keyframes bloodPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

/* 鬼节期间把顶栏金色换成暗红色调（可选） */
body.snow-blood-active .sidebar {
  border-right-color: rgba(217, 88, 79, .28);
  background: linear-gradient(180deg, rgba(16, 6, 6, .96) 0%, rgba(12, 5, 5, .9) 100%);
  transition: background .9s ease, border-color .9s ease;
}
body.snow-blood-active .brand-seal {
  background: linear-gradient(145deg, #7b1818, #450a0a 60%, #1e0505);
  box-shadow: 0 0 0 1px rgba(217, 88, 79, .35), 0 6px 20px rgba(120, 10, 10, .38);
  transition: all .9s ease;
}
body.snow-blood-active .nav-group-title { color: rgba(217, 88, 79, .65); }

/* ---------------- 节日 canvas 层 ---------------- */
.festival-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.festival-banner {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 120;
  pointer-events: none;
  font-size: 0;
}
.festival-banner .fd-item {
  font-size: 11px;
  letter-spacing: .22em;
  padding: 6px 14px;
  color: #ffe3b0;
  background: linear-gradient(135deg, rgba(120, 80, 20, .75), rgba(40, 28, 8, .82));
  border: 1px solid rgba(220, 170, 60, .55);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(220, 170, 60, .2), 0 8px 28px rgba(0,0,0,.5);
  animation: fdIn .6s cubic-bezier(.2,.8,.3,1) forwards, fdOut .7s ease 6.5s forwards;
}
@keyframes fdIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fdOut { to { opacity: 0; transform: translateX(10px); } }

/* ---------------- 节日主题配色（body.fz-* 类切换） ---------------- */
body.fz-zhongyuan .sidebar { border-right-color: rgba(160, 30, 30, .28); }
body.fz-zhongyuan .brand-seal {
  background: linear-gradient(145deg, #6f1818, #3a0808);
  box-shadow: 0 0 0 1px rgba(217, 88, 79, .35), 0 6px 20px rgba(120, 10, 10, .4);
}

body.fz-qingming .nav-group-title { color: rgba(140, 190, 120, .7); }
body.fz-qingming .brand-seal {
  background: linear-gradient(145deg, #2d5a35, #173622);
  box-shadow: 0 0 0 1px rgba(130, 190, 110, .35), 0 6px 20px rgba(40, 90, 40, .35);
}

body.fz-chunjie .brand-seal {
  background: linear-gradient(145deg, #c22214, #6a1208);
  box-shadow: 0 0 0 1px rgba(240, 200, 80, .45), 0 6px 22px rgba(180, 30, 20, .45);
}
body.fz-chunjie .nav-group-title { color: rgba(240, 200, 100, .75); }

body.fz-duanwu .brand-seal {
  background: linear-gradient(145deg, #2f7a48, #154a2a);
  box-shadow: 0 0 0 1px rgba(150, 210, 130, .4);
}
body.fz-duanwu .nav-group-title { color: rgba(160, 215, 140, .7); }

body.fz-qixi .brand-seal {
  background: linear-gradient(145deg, #6a2e78, #3a1550);
  box-shadow: 0 0 0 1px rgba(230, 170, 230, .4);
}
body.fz-qixi .nav-group-title { color: rgba(230, 190, 240, .75); }

body.fz-xiayuan .brand-seal {
  background: linear-gradient(145deg, #1e4080, #0e2458);
  box-shadow: 0 0 0 1px rgba(120, 180, 240, .4);
}
body.fz-xiayuan .nav-group-title { color: rgba(140, 190, 240, .75); }

body.fz-hanyi .brand-seal {
  background: linear-gradient(145deg, #3a3530, #1a1512);
  box-shadow: 0 0 0 1px rgba(180, 140, 100, .4);
}
body.fz-hanyi .nav-group-title { color: rgba(180, 140, 100, .7); }

/* 节日期间，背景 vignette 略调（让节日粒子更突出） */
body.fz-zhongyuan .bg-vignette  { background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(60, 8, 8, .55) 70%, rgba(20, 2, 2, .9) 100%); }
body.fz-hanyi   .bg-vignette  { background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(25, 18, 12, .55) 70%, rgba(12, 8, 6, .9) 100%); }
body.fz-qingming .bg-vignette { background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(12, 35, 18, .45) 70%, rgba(5, 18, 8, .85) 100%); }
body.fz-chunjie  .bg-vignette { background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(40, 10, 5, .5) 70%, rgba(20, 4, 2, .88) 100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
