/* 永恒流光官网样式 —— 白金流光主题（冷调银白 + 铂金流光），无外部字体依赖 */
:root {
  --bg: #eef1f8;
  --bg-alt: #e4e9f3;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #232838;
  --ink-soft: #4d5468;
  --muted: #79819a;
  --line: #dde2ee;
  --line-strong: #c4ccdd;
  --brand: #5b6aa6;          /* 铂金靛：冷调主强调色 */
  --brand-dark: #44527f;
  --brand-light: #eef1f9;
  --gold: #b29a5e;           /* 香槟金：仅作白金点缀 / 置顶高亮 */
  --gold-light: #f6efdc;
  --blue: #4f74b8;
  --blue-light: #e9f0fb;
  --orange: #b9762f;
  --orange-light: #fbf1e4;
  --red: #b95050;
  --stone: #8a90a6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(60, 72, 120, .06), 0 8px 24px rgba(60, 72, 120, .08);
  --shadow-lg: 0 12px 40px rgba(50, 64, 120, .16);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* —— 白金流光专用变量 —— */
  --platinum-flow: linear-gradient(120deg, #eef1f8 0%, #dbe1f0 26%, #efeaf8 50%, #dde4f2 74%, #f3eefb 100%);
  --platinum-accent: linear-gradient(120deg, #6a76b0 0%, #8f7fc4 48%, #5f7bb0 100%);
  --platinum-line: rgba(150, 162, 200, .55);
  --platinum-text: linear-gradient(120deg, #6d77ad 0%, #9d8fd6 55%, #5f7bb0 100%);
}

* { box-sizing: border-box; }
/* 必须显式声明：作者样式里的 display:grid/flex 会盖掉浏览器默认的 [hidden]{display:none}，
   否则空的弹窗层会以全屏 fixed 罩住页面，导致所有按钮和链接都点不动。 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* 白金流光：全站柔光极光底，营造流动的冷调光感 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(180, 194, 235, .34), transparent 70%),
    radial-gradient(820px 380px at 96% 0%, rgba(214, 198, 242, .30), transparent 72%),
    radial-gradient(760px 420px at 50% 118%, rgba(188, 210, 240, .24), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(91, 106, 166, .5); outline-offset: 2px; }
::selection { background: #d8def2; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
.noscript { padding: 14px; margin: 20px; background: var(--gold-light); border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- 应用外壳：左侧菜单 + 顶栏 */
/* 版式参照游戏服控制台：左侧固定菜单栏，右侧为「顶栏 + 内容」的纵向工作区。
   首页再在内容区内部切成「中间服务器信息 / 右侧 3D 排行榜」两栏。 */
.app-shell {
  --rail: 336px;
  --shell-gap: 18px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: var(--shell-gap);
  width: min(1560px, 100%);
  margin-inline: auto;
  padding: 16px 18px 16px 16px;
  align-items: start;
}

/* —— 侧栏 —— */
.sidebar {
  position: sticky; top: 16px;
  display: flex; flex-direction: column; gap: 18px;
  height: calc(100dvh - 32px);
  padding: 16px 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  border: 1px solid var(--platinum-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(60, 72, 120, .05), 0 18px 40px rgba(60, 72, 120, .09);
  z-index: 70;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.side-brand { padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.side-nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1 1 auto; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.side-nav a:hover { background: var(--surface-2); color: var(--brand-dark); border-color: var(--line); }
.side-nav a.active {
  color: var(--brand-dark); font-weight: 650;
  background: linear-gradient(120deg, rgba(106, 118, 176, .16), rgba(157, 143, 214, .14));
  border-color: rgba(150, 162, 200, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 16px rgba(96, 110, 170, .12);
}
.side-nav a.active .side-ico { color: var(--brand-dark); background: rgba(255, 255, 255, .8); }
.side-ico {
  width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 9px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
  transition: color .18s, background .18s;
}
.side-ico svg { width: 17px; height: 17px; }
.side-nav a:hover .side-ico { color: var(--brand); }
.side-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav a.nav-admin .side-ico { color: var(--gold); }
.side-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-help {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 10px; font-size: 12.5px; color: var(--muted);
}
.side-help:hover { background: var(--surface-2); color: var(--brand-dark); }
.side-help span {
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); font: 700 11px var(--mono);
}

/* —— 工作区 —— */
.shell-main { display: flex; flex-direction: column; gap: var(--shell-gap); min-width: 0; }
.topbar {
  position: sticky; top: 16px; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: var(--shell-gap);
  align-items: center;
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* —— 顶栏滚动公告（自动轮播，内容由后台维护）—— */
.top-ticker {
  position: relative; display: flex; align-items: center; gap: 12px;
  flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 12px 0 9px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px);
  border: 1px solid var(--platinum-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(60, 72, 120, .05), 0 10px 24px rgba(60, 72, 120, .07);
}
.ticker-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 7px; border-radius: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand-dark);
  background: var(--platinum-flow); border: 1px solid var(--platinum-line);
}
.ticker-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(91, 106, 166, .5); animation: ticker-pulse 2.4s ease-out infinite;
}
@keyframes ticker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 106, 166, .45); }
  70% { box-shadow: 0 0 0 7px rgba(91, 106, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 106, 166, 0); }
}
.ticker-window {
  position: relative; flex: 1 1 auto; min-width: 0; height: 22px; overflow: hidden;
  /* 右侧淡出，长文案不会硬切 */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}
.ticker-slide {
  position: absolute; inset: 0; display: flex; align-items: center; width: 100%;
  margin: 0; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; cursor: pointer; color: var(--ink-soft);
  opacity: 0; transform: translateY(9px); pointer-events: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
}
.ticker-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ticker-slide:hover .ticker-text { color: var(--brand-dark); }
.ticker-text {
  display: block; min-width: 0; font-size: 13.5px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .18s;
}
.ticker-dots { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.ticker-dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--line-strong);
  transition: width .25s ease, background .25s ease;
}
.ticker-dot.is-on { width: 13px; background: var(--brand); }
.ticker-all {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--brand-dark);
  padding-left: 2px; white-space: nowrap;
}
.ticker-all:hover { text-decoration: underline; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; justify-content: flex-end; min-width: 0; }
.side-toggle {
  display: none; width: 46px; height: 46px; flex: 0 0 auto;
  border: 1px solid var(--platinum-line); border-radius: 14px; background: rgba(255, 255, 255, .86);
  color: var(--ink-soft); place-items: center;
}
.side-toggle svg { width: 20px; height: 20px; }
.shell-backdrop {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(32, 38, 58, .38); backdrop-filter: blur(2px);
}
/* Logo 放在冷调铂金流光徽章里，呼应整站白金主题 */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #e9edf6 0%, #cfd6e8 58%, #efe9f8 100%);
  border: 1px solid rgba(150, 162, 200, .7);
  box-shadow: 0 2px 10px rgba(80, 92, 150, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: .06em; }
.brand-text small { font: 10px/1.4 var(--mono); letter-spacing: .16em; color: var(--muted); }
.mode-badge {
  font: 11px/1 var(--mono); letter-spacing: .04em; padding: 6px 8px; align-self: flex-start;
  color: #7a5b18; background: var(--gold-light); border: 1px solid #ecd9a8; border-radius: 6px;
}
/* 右上角个人信息：头像 + 角色徽标 + 昵称 + 下拉箭头 */
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
  border: 1px solid var(--platinum-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(60, 72, 120, .05), 0 10px 24px rgba(60, 72, 120, .07);
  font-size: 13px; font-weight: 600; transition: border-color .18s, box-shadow .18s;
}
.user-chip:hover { border-color: rgba(106, 118, 176, .75); box-shadow: 0 6px 20px rgba(80, 92, 150, .16); }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta strong { font-size: 13px; }
.user-meta small { font-size: 10.5px; font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.user-chip::after { content: "▾"; font-size: 10px; color: var(--muted); margin-left: 2px; }
.icon-btn {
  border: 1px solid var(--platinum-line); background: rgba(255, 255, 255, .9); width: 40px; height: 40px;
  border-radius: 12px; display: grid; place-items: center; color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--red); border-color: #e7c2c2; }
.icon-btn svg { width: 18px; height: 18px; }
/* 顶栏搜索按钮：中性悬停色，不跟着通知按钮变红 */
#search-btn:hover { color: var(--brand-dark); border-color: rgba(106, 118, 176, .55); }

/* ---------------------------------------------------------------- 通用组件 */
.workspace { min-width: 0; min-height: calc(100dvh - 250px); padding-bottom: 8px; }
.page { animation: fade-up .28s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: 26px; }
.eyebrow { font: 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.page-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; margin: 0 0 8px; letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin: 0; max-width: 720px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 20px 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)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--platinum-accent); color: #fff; box-shadow: 0 3px 0 var(--brand-dark), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 3px 0 var(--brand-dark), 0 10px 22px rgba(91, 106, 166, .35), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--red); border-color: #eccccc; }
.btn-danger:hover { background: #fdf1f1; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card-body { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { margin: 0; font-size: 16px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--line); white-space: nowrap;
}
.tag-grass { background: var(--brand-light); color: var(--brand-dark); border-color: #c9e2c6; }
.tag-gold { background: var(--gold-light); color: #8a6a18; border-color: #ecdcb4; }
.tag-blue { background: var(--blue-light); color: #2f6699; border-color: #cfe0f1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.loading-cube { width: 18px; height: 18px; background: var(--brand); border-radius: 3px; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.avatar { display: block; border-radius: 7px; flex: 0 0 auto; image-rendering: pixelated; background: var(--bg-alt); }
.avatar-lg { width: 64px; height: 64px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 5px; }

/* ---------------------------------------------------------------- 首页仪表盘 */
/* 中间栏：服务器信息 → 广告位 → 活动 → 公告；右栏：比分排行 + 3D 模型排行榜 */
.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: var(--shell-gap); align-items: start;
}
.dash-main { display: flex; flex-direction: column; gap: var(--shell-gap); min-width: 0; }
.dash-rail { display: flex; flex-direction: column; gap: var(--shell-gap); position: sticky; top: 80px; min-width: 0; }

/* —— 服务器信息大卡 —— */
.dash-hero {
  position: relative; overflow: hidden; padding: 32px 34px 30px;
  border: 1px solid var(--platinum-line); border-radius: 22px;
  background:
    radial-gradient(680px 280px at 84% -16%, rgba(180, 176, 232, .40), transparent 66%),
    radial-gradient(420px 260px at 6% 112%, rgba(176, 200, 236, .28), transparent 70%),
    linear-gradient(135deg, #fbfcff 0%, #ffffff 48%, #f5f3fc 100%);
  box-shadow: 0 1px 2px rgba(60, 72, 120, .05), 0 22px 50px rgba(60, 72, 120, .10);
}
.dash-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(120, 134, 188, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 134, 188, .10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 8% 0%, #000, transparent 70%);
  mask-image: radial-gradient(120% 100% at 8% 0%, #000, transparent 70%);
}
.dash-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 24px; align-items: center; }
.dash-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.16; margin: 8px 0 12px; letter-spacing: -.03em; }
.dash-title em {
  font-style: normal; background: var(--platinum-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.dash-lead { margin: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; max-width: 460px; }
.dash-ip {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 15px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--platinum-line);
  box-shadow: 0 8px 22px rgba(70, 84, 140, .10);
}
.dash-ip-dot { width: 9px; height: 9px; border-radius: 50%; background: #49ad57; box-shadow: 0 0 0 4px rgba(73, 173, 87, .16); flex: 0 0 auto; }
.dash-ip-body { display: flex; flex-direction: column; line-height: 1.3; }
.dash-ip-label { font: 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dash-ip-value { font: 700 15px/1.3 var(--mono); letter-spacing: .01em; }
.dash-ip-sep { width: 1px; align-self: stretch; min-height: 30px; background: var(--line); }
.dash-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* 流光徽章：呼应 Logo 的立体玻璃球 */
.dash-hero-art { position: relative; display: grid; place-items: center; min-height: 186px; }
.hero-orb {
  position: relative; width: 162px; height: 162px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 26%, #ffffff 0%, #e6ebf8 56%, #d3dcef 100%);
  border: 1px solid rgba(150, 162, 200, .6);
  box-shadow: 0 26px 50px rgba(70, 84, 140, .20), inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -16px 34px rgba(150, 162, 205, .30);
  animation: orb-float 6.5s ease-in-out infinite;
}
.hero-orb img { width: 100px; height: 100px; object-fit: contain; display: block; filter: drop-shadow(0 10px 16px rgba(70, 84, 140, .26)); }
.hero-orb::before {
  content: ""; position: absolute; inset: -15px; border-radius: 50%;
  border: 1px dashed rgba(150, 162, 200, .6);
  animation: orb-spin 28s linear infinite;
}
.hero-orb::after {
  content: ""; position: absolute; inset: 50% -36% auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 162, 200, .55), transparent);
  transform: rotate(-18deg);
}
@keyframes orb-float { 50% { transform: translateY(-9px); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }

/* —— 数据条 —— */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-stat {
  position: relative; overflow: hidden; padding: 15px 17px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dash-stat::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 162, 220, .24), transparent 70%);
}
.dash-stat-num { font: 700 23px/1.15 var(--mono); color: var(--brand-dark); }
.dash-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* —— 服务器广告位 —— */
.dash-ad {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 186px; gap: 18px; align-items: center;
  overflow: hidden; padding: 26px 30px; border-radius: 20px; color: #fff;
  background: linear-gradient(118deg, #46527f 0%, #5b6aa6 42%, #8574bd 100%);
  box-shadow: 0 18px 40px rgba(70, 82, 140, .30);
}
.dash-ad::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 88% 8%, rgba(255, 255, 255, .22), transparent 70%);
}
.dash-ad::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 42%;
  transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  animation: ad-sheen 6.5s ease-in-out infinite;
}
@keyframes ad-sheen { 0%, 52% { left: -60%; } 100% { left: 132%; } }
.dash-ad-copy { position: relative; z-index: 1; }
.dash-ad-tag {
  display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .34);
}
.dash-ad h2 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.dash-ad p { margin: 0 0 16px; max-width: 470px; color: rgba(255, 255, 255, .84); font-size: 13.5px; }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 18px rgba(20, 26, 50, .22); }
.btn-light:hover { background: #f6f8ff; }
.dash-ad-art { position: relative; height: 110px; z-index: 1; }
.ad-block {
  position: absolute; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .42);
  background: linear-gradient(160deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 28px rgba(24, 30, 58, .22);
}
.ad-block-1 { width: 64px; height: 64px; right: 78px; top: 4px; transform: rotate(-10deg); animation: ad-float 7s ease-in-out infinite; }
.ad-block-2 { width: 46px; height: 46px; right: 22px; top: 44px; transform: rotate(12deg); animation: ad-float 7s ease-in-out infinite .8s; }
.ad-block-3 { width: 34px; height: 34px; right: 104px; top: 66px; transform: rotate(6deg); opacity: .82; animation: ad-float 7s ease-in-out infinite .4s; }
@keyframes ad-float { 50% { transform: translateY(-7px) rotate(4deg); } }

/* —— 区块标题 —— */
.dash-section { display: flex; flex-direction: column; gap: 14px; }
.dash-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-sec-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.dash-sec-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.dash-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--brand-dark);
  background: rgba(255, 255, 255, .88); border: 1px solid var(--platinum-line);
  transition: border-color .18s, box-shadow .18s;
}
.dash-more:hover { border-color: rgba(106, 118, 176, .7); box-shadow: 0 6px 16px rgba(80, 92, 150, .14); }

/* —— 服务器活动卡 —— */
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.event-grid > .empty { grid-column: 1 / -1; }
.event-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-align: left;
  border-radius: 17px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.event-banner {
  position: relative; height: 74px;
  background: linear-gradient(120deg, #dbe2f3, #eae4f8 55%, #d8e4f2);
}
.event-banner::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 16px 16px;
}
.event-card:nth-child(3n+2) .event-banner { background: linear-gradient(120deg, #e6e0f6, #f3e7f1 60%, #e1e7f8); }
.event-card:nth-child(3n) .event-banner { background: linear-gradient(120deg, #dbecef, #e3e9f8 60%, #f0e7f7); }
.event-date {
  position: absolute; left: 14px; bottom: -17px; width: 46px; padding: 6px 0 5px; text-align: center;
  border-radius: 11px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(60, 72, 120, .16); z-index: 1;
}
.event-date strong { display: block; font: 700 17px/1 var(--mono); }
.event-date span { display: block; font: 600 9.5px/1.7 var(--mono); letter-spacing: .1em; color: var(--muted); }
.event-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 24px 16px 15px; }
.event-tag {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; background: var(--brand-light); color: var(--brand-dark);
}
.event-body h3 { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; }
.event-body p {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 11.5px; color: var(--muted);
}

/* —— 最新公告列表 —— */
.news-card { overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow); }
.news-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 14px; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .16s;
}
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: var(--surface-2); }
.news-row-date { font: 11px/1.6 var(--mono); color: var(--muted); }
.news-row h3 { margin: 3px 0 2px; font-size: 14.5px; letter-spacing: -.005em; }
.news-row p { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row-go { color: var(--line-strong); font-size: 15px; text-align: center; }

/* —— 右栏卡片 —— */
.rail-card {
  position: relative; overflow: hidden; padding: 16px 16px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--platinum-line);
  box-shadow: 0 1px 2px rgba(60, 72, 120, .05), 0 16px 36px rgba(60, 72, 120, .09);
}
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rail-head h3 { margin: 0; font-size: 13.5px; letter-spacing: .01em; }
.rail-head a { font-size: 11.5px; font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.rail-head a:hover { text-decoration: underline; }
.rail-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--platinum-flow); border: 1px solid var(--platinum-line);
}
.rail-cta strong { display: block; font-size: 12.5px; }
.rail-cta small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-soft); }

/* 3D 排行榜：立体台座 + 悬浮头像 */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 18px 2px 6px; }
.pod { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0 4px; perspective: 420px; }
.pod-figure { position: relative; margin-bottom: 13px; animation: pod-float 4.2s ease-in-out infinite; }
.pod-figure .avatar {
  width: 42px; height: 42px; border-radius: 10px;
  border: 2px solid #fff; box-shadow: 0 10px 20px rgba(60, 72, 120, .22);
}
.pod-1 .pod-figure .avatar { width: 54px; height: 54px; border-radius: 12px; }
.pod-figure::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 34px; height: 8px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 84, 140, .30), transparent);
}
.pod-rank {
  position: absolute; right: -6px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font: 700 9.5px/1 var(--mono); color: #fff;
  background: var(--platinum-accent); border: 2px solid #fff;
}
@keyframes pod-float { 50% { transform: translateY(-5px); } }
.pod-2 .pod-figure { animation-delay: .5s; }
.pod-3 .pod-figure { animation-delay: 1s; }

/* 立体台座：正面 / 顶面 / 侧面三块面拼合，绕 Y 轴转出体积感 */
.pod-box {
  position: relative; width: 100%; height: var(--h, 56px);
  transform-style: preserve-3d; transform: rotateX(20deg) rotateY(-26deg);
  transition: transform .28s ease;
}
.pod:hover .pod-box { transform: rotateX(16deg) rotateY(-14deg); }
.pod-face { position: absolute; }
.pod-front {
  inset: 0; display: grid; place-items: center; border-radius: 8px 8px 4px 4px; overflow: hidden;
  background: linear-gradient(180deg, #fdfdff 0%, #e7ecf8 56%, #d3dcee 100%);
  border: 1px solid rgba(150, 162, 200, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -12px 20px rgba(150, 162, 205, .22);
}
.pod-1 .pod-front { background: linear-gradient(180deg, #fff 0%, #e4ebff 50%, #ccd8f2 100%); border-color: rgba(118, 134, 190, .9); }
.pod-front::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 55%;
  transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: pod-sheen 5.5s ease-in-out infinite;
}
@keyframes pod-sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.pod-top {
  left: 0; right: 0; top: 0; height: 20px; transform-origin: top center; transform: rotateX(90deg);
  background: linear-gradient(135deg, #ffffff, #e4ebf9); border: 1px solid rgba(150, 162, 200, .6);
}
.pod-side {
  top: 0; right: 0; width: 20px; height: 100%; transform-origin: right center; transform: rotateY(90deg);
  background: linear-gradient(90deg, #c3cee4, #a9b5d1); border: 1px solid rgba(140, 152, 190, .55);
}
.pod-label {
  font: 700 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--brand-dark);
  transform: translateZ(.4px);
}
.pod-name { margin-top: 10px; font-size: 12px; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-sub { margin-top: 2px; font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-1 .pod-name { color: var(--brand-dark); }

/* 活跃公会小列表 */
.rail-guild { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rail-guild:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-guild-emblem {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center;
  font: 700 10px/1 var(--mono); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rail-guild b { display: block; font-size: 12px; font-weight: 600; }
.rail-guild small { display: block; font-size: 10px; color: var(--muted); }
.rail-guild .rail-guild-count { margin-left: auto; font: 600 10.5px var(--mono); color: var(--muted); }

/* 快捷入口 */
.rail-link { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rail-link:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-link:hover b { color: var(--brand-dark); }
.rail-link-ico {
  width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 9px; background: var(--brand-light); color: var(--brand-dark);
  border: 1px solid var(--line); font: 700 12px var(--mono);
}
.rail-link b { display: block; font-size: 12px; font-weight: 600; }
.rail-link small { display: block; font-size: 10px; color: var(--muted); }
.rail-link-go { margin-left: auto; color: var(--line-strong); font-size: 14px; }

/* 旧首页类保留兼容（其它页面仍可能引用） */
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #49ad57; margin-right: 5px; box-shadow: 0 0 0 3px rgba(73, 173, 87, .16); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 38px 0 16px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); font: 700 18px var(--mono); margin-bottom: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.feature-grid .card-body h3 { margin: 0 0 6px; font-size: 16px; }
.feature-grid .card-body p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.link-more { font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.link-more:hover { text-decoration: underline; }
.section-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 公告 */
.announcement-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-item { padding: 20px 22px; cursor: pointer; }
.announcement-item:hover { border-color: var(--line-strong); }
.announcement-item h3 { margin: 8px 0 6px; font-size: 18px; }
.announcement-item p { margin: 0; color: var(--muted); font-size: 14px; }
.ann-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ann-content { white-space: pre-wrap; line-height: 1.85; font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 更新日志 · 白金流光 */
.changelog-page { position: relative; }
/* 流光扫光：在铂金渐变表面来回掠过的高光，营造“流光”质感 */
.cl-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.cl-sheen::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 55%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .75) 50%, transparent 100%);
  transform: skewX(-18deg); animation: cl-sheen 3.8s ease-in-out infinite;
}
@keyframes cl-sheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }

.cl-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.cl-ver-badge {
  font: 800 14px/1 var(--mono); letter-spacing: .03em; color: #5b6488;
  background: linear-gradient(120deg, #eef0f8, #dfe3f1); border: 1px solid rgba(170, 180, 212, .8);
  padding: 6px 12px; border-radius: 9px;
}
.cl-pin {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8a6a18;
  background: linear-gradient(120deg, #f3e6c4, #e7d3a0); border: 1px solid #e3cf9c;
  padding: 4px 10px; border-radius: 999px;
}
.cl-pin-sm {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #8a6a18;
  background: var(--gold-light); border: 1px solid #e3cf9c; padding: 2px 7px; border-radius: 999px;
}
.cl-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; border: 1px solid transparent;
}
.cl-tag.t-feat { background: rgba(91, 106, 166, .14); color: #4a578e; border-color: rgba(91, 106, 166, .35); }
.cl-tag.t-opt  { background: rgba(72, 150, 142, .16); color: #2f7d72; border-color: rgba(72, 150, 142, .36); }
.cl-tag.t-fix  { background: rgba(194, 138, 56, .16); color: #986a23; border-color: rgba(194, 138, 56, .38); }
.cl-tag.t-sec  { background: rgba(190, 96, 122, .16); color: #9c425c; border-color: rgba(190, 96, 122, .38); }
.cl-tag.t-ann  { background: rgba(126, 132, 158, .16); color: #565a72; border-color: rgba(126, 132, 158, .36); }

/* 最新版本大卡 */
.cl-hero {
  position: relative; overflow: hidden; cursor: pointer; margin-bottom: 32px;
  border: 1px solid rgba(150, 162, 200, .7); border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f5fb 58%, #f7f3fc 100%);
  box-shadow: 0 14px 50px rgba(96, 108, 150, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
  padding: 34px 36px;
}
.cl-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(173, 160, 224, .34), transparent 70%); pointer-events: none;
}
.cl-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 28px; align-items: center; }
.cl-hero-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.02em; color: #232838; }
.cl-hero-summary { color: #5b6276; font-size: 15px; line-height: 1.7; margin: 0 0 18px; max-width: 620px; }
.cl-hero-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #7a8198; margin-bottom: 20px; flex-wrap: wrap; }
.cl-hero-emblem {
  width: 168px; height: 168px; border-radius: 30px; display: grid; place-items: center; justify-self: end;
  background: var(--platinum-flow); border: 1px solid rgba(150, 162, 200, .8);
  box-shadow: 0 10px 30px rgba(120, 130, 170, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  position: relative; overflow: hidden;
}
.cl-hero-emblem span {
  font: 800 44px/1 var(--mono); letter-spacing: -.02em;
  background: var(--platinum-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.cl-section-head h2 { margin: 0; font-size: 21px; color: #232838; }
.cl-hint { font-size: 13px; color: var(--muted); }

/* 版本卡片网格 */
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cl-card {
  position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.cl-card-banner {
  position: relative; min-height: 92px; padding: 16px 18px; overflow: hidden;
  background: var(--platinum-flow); border-bottom: 1px solid rgba(150, 162, 200, .5);
  display: flex; align-items: center;
}
.cl-card-ver {
  font: 800 22px/1.1 var(--mono); letter-spacing: -.01em; color: #4a578e;
  background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .85);
  padding: 6px 12px; border-radius: 10px; box-shadow: 0 4px 14px rgba(96, 108, 150, .14);
}
.cl-date-badge {
  position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: center;
  min-width: 42px; padding: 5px 8px; border-radius: 11px; background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(96, 108, 150, .16);
}
.cl-date-badge b { font: 800 18px/1 var(--mono); color: #454f7d; }
.cl-date-badge i { font: 700 9px/1.4 var(--mono); letter-spacing: .12em; color: #8a90a6; font-style: normal; }
.cl-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cl-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-card-title { margin: 0; font-size: 17px; line-height: 1.4; color: #232838; }
.cl-card-summary { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; flex: 1; }
.cl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #7a8198; padding-top: 10px; border-top: 1px dashed var(--line); }

/* 更新日志详情弹窗的铂金横幅 */
.cl-modal-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  margin: -22px -22px 18px; padding: 18px 22px; background: var(--platinum-flow);
  border-bottom: 1px solid rgba(150, 162, 200, .5);
}
.cl-modal-banner .cl-card-ver { font-size: 18px; }

/* ---------------------------------------------------------------- 工单 */
.ticket-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-soft); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-item { padding: 16px 18px; cursor: pointer; }
.ticket-item:hover { border-color: var(--brand); }
.ticket-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-code { font: 12px var(--mono); color: var(--muted); }
.ticket-item h3 { margin: 6px 0; font-size: 16px; }
.ticket-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--blue-light); color: #2f6699; }
.status-pending { background: var(--orange-light); color: #a5611d; }
.status-resolved { background: var(--brand-light); color: var(--brand-dark); }
.status-closed { background: #f0f1ee; color: #767e75; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.type-card { text-align: left; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.type-card:hover { border-color: var(--brand); background: var(--brand-light); }
.type-card.selected { border-color: var(--brand); background: var(--brand-light); box-shadow: inset 0 0 0 1px var(--brand); }
.type-card strong { display: block; margin: 8px 0 3px; font-size: 15px; }
.type-card span { font-size: 12px; color: var(--muted); }
.type-icon { font: 700 17px var(--mono); color: var(--brand-dark); }
.ticket-detail-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.thread { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; max-height: 460px; overflow-y: auto; }
.bubble { display: flex; gap: 10px; }
.bubble-body { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-width: 82%; }
.bubble-staff .bubble-body { background: var(--brand-light); border-color: #e6d9b5; }
.bubble-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bubble-meta strong { color: var(--ink); }
.bubble-text { white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.composer { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: vertical; min-height: 44px; }
.ticket-aside h3 { font-size: 15px; margin: 0 0 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }

/* ---------------------------------------------------------------- 公会频道 */
.guild-layout { display: grid; grid-template-columns: 220px 210px minmax(0, 1fr); gap: 14px; align-items: stretch; min-height: 560px; }
.rail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rail-title { font: 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 8px; }
.rail-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; width: 100%; text-align: left; font-size: 14px; }
.rail-item:hover { background: var(--surface-2); }
.rail-item.active { background: var(--brand-light); border-color: #cee6ca; font-weight: 600; color: var(--brand-dark); }
.rail-item .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.rail-item .rail-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item .rail-sub { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.rail-item.channel::before { content: "#"; color: var(--muted); font: 700 14px var(--mono); }
.rail-item.channel.locked::before { content: "\1F512"; font-size: 11px; }
.chat-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 560px; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head h3 { margin: 0; font-size: 16px; }
.chat-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; max-height: 520px; }
.msg { display: flex; gap: 10px; }
.msg-body { min-width: 0; }
.msg-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.msg-meta strong { font-size: 13px; }
.msg-text { margin-top: 3px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.pinned-note { font-size: 11px; color: var(--gold); background: var(--gold-light); border-radius: 4px; padding: 1px 6px; }
.chat-composer { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 10px; align-items: center; }
.chat-composer input { flex: 1; }
.locked-note { font-size: 13px; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--line); }
.guild-card-head { display: flex; align-items: center; gap: 12px; }
.guild-emblem { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 15px var(--mono); flex: 0 0 auto; }

/* ---------------------------------------------------------------- 名人堂 */
.hall-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hall-card { padding: 20px; position: relative; overflow: hidden; }
.hall-card.featured { grid-column: span 2; background: linear-gradient(135deg, #f7f9fd, #eef2f9); border-color: #cdd6ea; }
.hall-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 18px; background: currentColor; opacity: .05; transform: rotate(18deg); }
.hall-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.hall-name { font-size: 17px; font-weight: 700; margin: 0; }
.hall-title { font-size: 13px; color: var(--brand-dark); margin: 2px 0 0; }
.hall-story { font-size: 13px; color: var(--ink-soft); line-height: 1.75; margin: 0 0 16px; }
.hall-stats { display: flex; gap: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hall-stats div span { display: block; font: 700 16px var(--mono); color: var(--brand-dark); }
.hall-stats div small { color: var(--muted); font-size: 11px; }

/* ---------------------------------------------------------------- 表单 / 弹窗 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select, .composer textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus, .composer textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 106, 166, .15);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-error { color: var(--red); font-size: 13px; min-height: 20px; }
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 34, 24, .45); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: min(86dvh, 820px); overflow-y: auto;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: modal-in .2s ease both;
}
.modal-card.wide { width: min(720px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.modal-close { border: 0; background: var(--bg-alt); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; }
.modal-close:hover { background: #e7ebe3; color: var(--ink); }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.demo-accounts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.demo-account { border: 1px dashed var(--line-strong); background: var(--surface-2); border-radius: 7px; padding: 5px 9px; font: 12px var(--mono); }
.demo-account:hover { border-color: var(--brand); color: var(--brand-dark); }
.info-box { background: var(--brand-light); border: 1px solid #cfe6cb; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 150; max-width: min(90vw, 480px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f3b3b; }

/* ---------------------------------------------------------------- 个人中心 */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; }
.profile-head h2 { margin: 0 0 4px; font-size: 22px; }
.badge-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------- Wiki 百科 */
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wiki-perm-banner {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 11px 16px; border: 1px solid var(--line); border-left: 4px solid var(--stone);
  border-radius: 9px; background: var(--surface-2); font-size: 13px; color: var(--ink-soft);
}
.wiki-perm-banner.grass { border-left-color: var(--brand); background: var(--brand-light); border-color: #cfe6cb; }
.wiki-perm-banner.gold { border-left-color: var(--gold); background: var(--gold-light); border-color: #ecdcb4; }
.wiki-toolbar-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.wiki-search { flex: 1 1 280px; }
.wiki-search input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--surface); outline: none;
}
.wiki-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 106, 166, .15); }
.wiki-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wiki-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-height: 172px; }
.wiki-card h3 { margin: 6px 0 0; font-size: 17px; }
.wiki-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; flex: 1; }
.wiki-card .ann-meta { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.wiki-meta-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--muted); padding-bottom: 14px;
  margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.wiki-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.wiki-rail { position: sticky; top: 88px; }
.wiki-toc { display: flex; flex-direction: column; gap: 2px; }
.wiki-toc-link { text-align: left; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-soft); }
.wiki-toc-link:hover { background: var(--bg-alt); color: var(--brand-dark); }
.wiki-toc-link.lvl-h3 { padding-left: 20px; font-size: 12px; color: var(--muted); }
.wiki-action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wiki-content { font-size: 15px; line-height: 1.85; color: var(--ink-soft); word-break: break-word; }
.wiki-content > :first-child { margin-top: 0; }
.wiki-content h2 { font-size: 22px; color: var(--ink); margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.wiki-content h3 { font-size: 17px; color: var(--ink); margin: 22px 0 10px; scroll-margin-top: 88px; }
.wiki-content h4 { font-size: 15px; color: var(--ink); margin: 18px 0 8px; }
.wiki-content p { margin: 0 0 14px; }
.wiki-content ul, .wiki-content ol { margin: 0 0 16px; padding-left: 24px; }
.wiki-content li { margin: 4px 0; }
.wiki-content blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--brand); background: var(--brand-light); border-radius: 0 8px 8px 0; }
.wiki-content blockquote p { margin: 0; }
.wiki-content pre { background: #1f2b22; color: #e8f2e6; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font: 13px/1.7 var(--mono); white-space: pre-wrap; }
.wiki-content code { font: 13px/1.5 var(--mono); background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.wiki-content pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.wiki-content a { color: var(--brand-dark); text-decoration: underline; }
.wiki-content img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.wiki-content hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 24px 0; }
.wiki-content strong { color: var(--ink); }
.wiki-foot-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.wiki-editor-meta { margin-bottom: 14px; }
.wiki-editor-card { overflow: hidden; }
.wiki-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.wiki-tool { min-width: 34px; padding: 5px 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.wiki-tool:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); }
.wiki-insert-panel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--brand-light); }
.wiki-insert-panel input { flex: 1 1 240px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.wiki-editable { min-height: 380px; padding: 22px 26px; outline: none; }
.wiki-editable:empty::before { content: attr(data-placeholder); color: var(--muted); }
.wiki-editable:focus { box-shadow: inset 0 0 0 2px rgba(91, 106, 166, .22); }
.wiki-preview { padding: 22px 26px; min-height: 380px; background: var(--surface-2); border-top: 1px solid var(--line); }
.wiki-editor-foot { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.wiki-history { display: flex; flex-direction: column; gap: 10px; }
.wiki-revision { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.wiki-revision .muted { font-size: 12px; }
.perm-group { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; }
.perm-members { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.perm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 5px 3px 10px; border-radius: 999px; background: var(--brand-light); border: 1px solid #cfe6cb; font-size: 13px; }
.perm-chip button { border: 0; background: transparent; color: var(--red); font-size: 16px; line-height: 1; }
.perm-form { margin-top: 18px; padding-top: 6px; border-top: 1px dashed var(--line); }
.perm-form .field { margin-bottom: 10px; }

/* Wiki 本地图片：上传区与图片库 */
.upload-drop {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; border: 1px dashed var(--line-strong);
  border-radius: 10px; background: var(--surface-2);
}
.upload-drop input[type="file"] { flex: 1 1 260px; font-size: 13px; color: var(--ink-soft); }
.upload-drop input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 7px 12px; border: 1px solid var(--line-strong);
  border-radius: 7px; background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
}
.upload-drop input[type="file"]::file-selector-button:hover { border-color: var(--brand); color: var(--brand-dark); }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.upload-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface); }
.upload-thumb {
  display: flex; align-items: center; justify-content: center; height: 108px;
  overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt);
}
.upload-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload-info { display: flex; flex-direction: column; gap: 2px; margin: 9px 0; min-width: 0; }
.upload-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-actions { display: flex; gap: 6px; }
.upload-actions .btn { flex: 1; }
.wiki-content img { display: block; height: auto; margin: 12px 0; }

/* ---------------------------------------------------------------- 管理后台 */
.nav-admin { color: var(--brand-dark); font-weight: 600; }
.nav-admin.active { background: var(--brand); color: #fff; }
.nav-admin:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-admin.active:hover { background: var(--brand-dark); color: #fff; }

.admin-head { margin-bottom: 22px; }
.admin-head .page-title { margin-bottom: 4px; }
.admin-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-sidebar { padding: 12px; position: sticky; top: 74px; }
.admin-side-title { font: 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 10px; }
.admin-side-item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; }
.admin-side-item + .admin-side-item { margin-top: 2px; }
.admin-side-item:hover { background: var(--surface-2); }
.admin-side-item.active { background: var(--brand-light); border-color: #cfe6cb; }
.admin-side-item strong { display: block; font-size: 14px; font-weight: 600; }
.admin-side-item.active strong { color: var(--brand-dark); }
.admin-side-item small { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; }
.admin-side-icon { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; font: 700 14px var(--mono); color: var(--brand-dark); background: var(--bg-alt); border-radius: 6px; }
.admin-side-item.active .admin-side-icon { background: #d8eed4; }
.admin-side-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px 10px 4px; border-top: 1px dashed var(--line); }
.admin-main { min-width: 0; }
.admin-gate { max-width: 620px; margin: 40px auto; text-align: center; }
.admin-gate .feature-icon { margin: 0 auto 12px; }
.admin-gate h2 { margin: 0 0 8px; font-size: 22px; }

.admin-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.admin-panel-head h2 { margin: 0; font-size: 20px; }
.admin-panel-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); max-width: 680px; }
.admin-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-subtab { border: 1px solid transparent; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.admin-subtab:hover { background: var(--bg-alt); }
.admin-subtab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 3px solid var(--brand); }
.admin-kpi.warn { border-top-color: var(--orange); }
.admin-kpi.ok { border-top-color: var(--blue); }
.admin-kpi-label { font-size: 12px; color: var(--muted); }
.admin-kpi-num { font: 700 28px/1.25 var(--mono); color: var(--ink); margin: 4px 0 2px; }
.admin-kpi-sub { font-size: 11px; color: var(--muted); }
.admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 16px 0; padding: 16px 20px; border-radius: var(--radius); border: 1px solid #cfe6cb; border-left: 4px solid var(--brand); background: var(--brand-light); }
.admin-banner.warn { border-color: #f0dcbc; border-left-color: var(--orange); background: var(--orange-light); }
.admin-banner p { margin: 2px 0 0; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.admin-feed { padding: 8px 18px 16px; }
.admin-feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.admin-feed-item:last-child { border-bottom: 0; }
.admin-feed-item > div { flex: 1; min-width: 0; }
.admin-feed-item > span:last-child { white-space: nowrap; }
.admin-feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: 0 0 auto; }
.admin-sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 16px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.admin-code { font: 12px var(--mono); color: var(--muted); }
.admin-user-cell { display: flex; gap: 10px; align-items: center; min-width: 150px; }
.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* 五个操作挤在一列时强制单行，避免按钮折成两排 */
.admin-row-actions-nowrap { flex-wrap: nowrap; gap: 4px; }
.admin-row-actions-nowrap .btn { padding: 4px 8px; }
.admin-clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-hint { margin-top: 12px; font-size: 12px; color: var(--muted); }
.admin-note { margin-bottom: 14px; }
.admin-filters { margin-bottom: 14px; }
.admin-search { display: flex; gap: 6px; align-items: center; }
.admin-search input { width: 220px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 13px; }
.admin-search input:focus { outline: 2px solid rgba(91, 106, 166, .25); border-color: var(--brand); }
.admin-search select { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 13px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.admin-check-grid { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.admin-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.admin-check input { width: auto; }
.admin-load-error { text-align: center; padding: 40px 20px; }
.admin-thread { max-height: 260px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 16px; }
.admin-reply textarea { min-height: 60px; }
.admin-check-grid .muted { font-size: 12px; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px);
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #e9edf6 0%, #cfd6e8 58%, #efe9f8 100%);
  border: 1px solid rgba(150, 162, 200, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.footer-mark img { width: 28px; height: 28px; object-fit: contain; display: block; }
.footer-inner p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--brand-dark); }

/* ---------------------------------------------------------------- 响应式 */
/* 应用外壳：先收窄侧栏文字，再折叠为图标栏，最后变抽屉 */
@media (max-width: 1380px) {
  .app-shell { --rail: 300px; grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 14px 10px; }
  .side-brand { justify-content: center; padding: 2px 0 12px; }
  .side-brand .brand-text { display: none; }
  .side-nav a { justify-content: center; padding: 9px 0; gap: 0; }
  .side-label { display: none; }
  .side-foot { align-items: center; }
  .side-help { justify-content: center; font-size: 0; gap: 0; padding: 6px; }
  .side-help span { font-size: 11px; }
  .mode-badge, .live-indicator { display: none !important; }
}
/* 进入管理后台时外层侧栏自动收成图标栏，把宽度让给控制台（宽屏生效） */
@media (min-width: 901px) {
  .app-shell.shell-compact { grid-template-columns: 76px minmax(0, 1fr); }
  .app-shell.shell-compact .sidebar { padding: 14px 10px; }
  .app-shell.shell-compact .side-brand { justify-content: center; padding: 2px 0 12px; }
  .app-shell.shell-compact .side-brand .brand-text { display: none; }
  .app-shell.shell-compact .side-nav a { justify-content: center; padding: 9px 0; gap: 0; }
  .app-shell.shell-compact .side-label { display: none; }
  .app-shell.shell-compact .side-foot { align-items: center; }
  .app-shell.shell-compact .side-help { justify-content: center; font-size: 0; gap: 0; padding: 6px; }
  .app-shell.shell-compact .side-help span { font-size: 11px; }
}
@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-rail { position: static; }
  .dash-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
/* 视口偏矮时右栏不再吸顶，避免卡片被裁切 */
@media (max-height: 820px) {
  .dash-rail { position: static; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .sidebar {
    position: fixed; left: 12px; top: 12px; bottom: 12px; width: 244px; height: auto;
    padding: 16px 12px; transform: translateX(-124%);
    transition: transform .26s ease; box-shadow: 0 24px 60px rgba(30, 38, 70, .28);
  }
  .app-shell.side-open .sidebar { transform: none; }
  .side-brand { justify-content: flex-start; }
  .side-brand .brand-text { display: flex; }
  .side-nav a { justify-content: flex-start; padding: 10px 12px; gap: 11px; }
  .side-label { display: inline; }
  .side-help { justify-content: flex-start; font-size: 12.5px; gap: 8px; padding: 8px 10px; }
  .mode-badge, .live-indicator { display: inline-flex !important; }
  .side-toggle { display: grid; }
  .topbar { position: sticky; top: 12px; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
  .ticker-dots, .ticker-all { display: none; }
  .dash-hero { padding: 26px 22px; }
  .dash-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dash-hero-art { min-height: 150px; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-ad { grid-template-columns: minmax(0, 1fr); }
  .dash-ad-art { display: none; }
  .dash-rail { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1000px) {
  .guild-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .guild-layout .channel-rail { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .guild-layout .channel-rail .rail-title { width: 100%; }
  .ticket-layout { grid-template-columns: minmax(0, 1fr); }
  .ticket-aside { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .admin-side-title { width: 100%; }
  .admin-side-item { flex: 1 1 150px; }
  .admin-side-item + .admin-side-item { margin-top: 0; }
  .admin-side-foot { width: 100%; flex-direction: row; align-items: center; }
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr; }
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .feature-grid { grid-template-columns: 1fr; }
  .hall-card.featured { grid-column: auto; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-rail { position: static; }
  .wiki-toolbar-row { flex-direction: column; }
  .wiki-search { width: 100%; }
  .container { width: min(100% - 28px, 1180px); }
}
@media (max-width: 600px) {
  .guild-layout { grid-template-columns: 1fr; }
  .guild-layout .rail { flex-direction: row; flex-wrap: wrap; }
  .chat-panel { min-height: 420px; }
  .wiki-index-grid { grid-template-columns: 1fr; }
  .wiki-editable, .wiki-preview { padding: 16px; min-height: 300px; }
  .wiki-editor-foot .form-actions { width: 100%; justify-content: flex-end; }
  .upload-grid { grid-template-columns: 1fr; }
  .upload-drop { flex-direction: column; align-items: stretch; }
  .admin-form-grid, .admin-sys-grid { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .admin-search { width: 100%; }
  .admin-search input { flex: 1; width: auto; min-width: 0; }
  .admin-head .row { width: 100%; }
  .modal-body { padding: 18px; }
  .page-title { font-size: 26px; }
  .cl-grid { grid-template-columns: 1fr; }
  .cl-hero { padding: 26px 22px; }
  .cl-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .cl-hero-emblem { justify-self: start; }
  .cl-modal-banner { margin: -18px -18px 18px; padding: 16px 18px; }
  /* 仪表盘：窄屏单列 + 精简顶栏 */
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .ticker-badge { padding: 3px 7px; font-size: 11px; }
  .ticker-text { font-size: 13px; }
  .dash-title { font-size: 26px; }
  .dash-sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .news-row { grid-template-columns: 58px minmax(0, 1fr); }
  .news-row-go { display: none; }
  .user-chip::after { display: none; }
  .user-meta small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* 入场动画用 fill:both 停在首帧（opacity:0）时会让整页看不见，减弱动画时直接关掉 */
  .page, .dash-grid { animation: none !important; }
}

/* ---------------------------------------------------------- 实时聊天 */
.live-indicator {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); flex: 0 0 auto; }
.live-online { color: var(--brand-dark); border-color: var(--line-strong); }
.live-online .live-dot { background: #49ad57; box-shadow: 0 0 0 3px rgba(73, 173, 87, .16); }
.live-demo .live-dot { background: #7b93c9; }
.live-connecting .live-dot, .live-error .live-dot { background: #d9a12b; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.notify-btn { position: relative; }
.unread-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font: 10px/17px var(--mono); text-align: center;
}
.typing-line { font-size: 12px; color: var(--brand-dark); padding: 4px 18px 8px; min-height: 22px; }
.typing-line[hidden] { display: none !important; }
.bubble.pending, .msg.pending { opacity: .6; }
.sending-note { font-size: 11px; color: var(--muted); }
.notice-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.notice-item {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.notice-item:hover { border-color: var(--brand); background: var(--brand-light); }
.notice-item strong { font-size: 14px; color: var(--ink); }
.notice-item span { font-size: 13px; color: var(--ink-soft); word-break: break-word; }
.notice-item small { font-size: 11px; color: var(--muted); }
.notice-list + .form-actions { margin-top: 14px; }
@media (max-width: 760px) {
  .live-indicator { display: none; }
  .chat-head .row { gap: 6px; }
}

/* ---------------------------------------------------------- 轮回返利计算器 */
/* 沿用白金流光 token：浅色底 + 深色文字，主色仅用于强调与图表，正文对比度 >= 4.5:1 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rb-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.rb-main, .rb-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rb-card { overflow: hidden; }
.rb-card-body { padding: 20px; }
.rb-rail-title { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.rb-result-card { border-color: var(--platinum-line); box-shadow: var(--shadow), 0 12px 32px rgba(96, 110, 170, .12); }
.rb-result-card .card-head { background: var(--platinum-flow); border-bottom-color: var(--platinum-line); }

.rb-field { margin-bottom: 18px; }
.rb-amount-wrap { position: relative; display: flex; align-items: center; }
.rb-currency {
  position: absolute; left: 16px; font-size: 20px; font-weight: 650;
  color: var(--brand-dark); pointer-events: none;
}
.rb-amount-wrap input {
  width: 100%; padding: 14px 16px 14px 42px; font-size: 22px; font-weight: 650;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  outline: none; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  transition: transform .2s ease;
}
.rb-amount-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 106, 166, .28); }
.rb-amount-wrap input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.rb-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.rb-error { margin: 6px 0 0; min-height: 18px; font-size: 13px; font-weight: 600; color: #a63b3b; }
.rb-preset-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink-soft); font-size: 13px;
  transition: transform .2s ease;
}
.rb-chip:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); }
.rb-chip:active { transform: scale(.95); }

.rb-result { padding: 22px; }
.rb-empty-state {
  text-align: center; padding: 30px 14px; color: var(--ink-soft);
  border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2);
}
.rb-empty-state strong { display: block; color: var(--ink); margin: 6px 0 4px; font-size: 15px; }
.rb-empty-state p { margin: 0; font-size: 13px; }
.rb-empty-state.is-invalid { border-color: #e3bcbc; background: #fffafa; }
.rb-empty-ico { font-size: 26px; color: var(--brand); }
.rb-result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rb-result-primary { min-width: 0; }
.rb-result-label { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.rb-result-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rb-result-num strong {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: var(--brand-dark);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.rb-result-num span { font-size: 14px; color: var(--ink-soft); }
.rb-result-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.rb-rate-badge {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 12px 16px; border-radius: 12px; background: var(--gold-light);
  border: 1px solid #ecdcb4; color: #6a5210;
}
.rb-rate-badge span { font-size: 12px; }
.rb-rate-badge strong { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rb-rate-badge small { font-size: 11px; }

.rb-bar { display: flex; gap: 2px; height: 10px; margin: 22px 0 10px; border-radius: 999px; overflow: hidden; background: var(--bg-alt); }
.rb-bar > span { display: block; min-width: 2px; }
.rb-bar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-size: 12px; color: var(--ink-soft); }
.rb-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rb-bar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.rb-formula {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px;
  padding: 12px 14px; margin-bottom: 18px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.rb-formula > span { flex: 0 0 auto; padding-top: 2px; font-size: 12px; color: var(--muted); }
.rb-formula code { font: 13px/1.6 var(--mono); color: var(--ink); word-break: break-word; }

.rb-table-wrap { overflow-x: auto; padding: 0 20px 4px; }
.rb-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.rb-breakdown { min-width: 440px; }
.rb-table caption { text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 8px; }
.rb-table th, .rb-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rb-table thead th { font-size: 12px; color: var(--ink-soft); background: var(--surface-2); white-space: nowrap; }
.rb-table tbody th { font-weight: 600; color: var(--ink); }
.rb-table tfoot th, .rb-table tfoot td { border-bottom: 0; background: var(--brand-light); }
.rb-table td strong { color: var(--brand-dark); }
.rb-tier-no {
  display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 6px;
  font: 11px/1.6 var(--mono); color: var(--brand-dark); background: var(--brand-light);
}
.rb-rate-text { font-size: 15px; }
.rb-rule-note { color: var(--ink-soft); }
.rb-note { margin: 12px 20px 18px; font-size: 12px; color: var(--muted); }
.rb-card-body .rb-note { margin: 0; }
.rb-scroll-tip { display: none; margin: 6px 20px 16px; font-size: 12px; color: var(--muted); }

.rb-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-soft); }
.rb-steps strong { color: var(--ink); }
.rb-examples { display: flex; flex-direction: column; gap: 10px; }
.rb-example {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); transition: transform .2s ease;
}
.rb-example:hover { transform: translateY(-2px); border-color: var(--brand); }
.rb-example:active { transform: scale(.98); }
.rb-example-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rb-example code { font: 12px/1.5 var(--mono); color: var(--ink-soft); word-break: break-word; }
.rb-example-foot { font-size: 12px; color: var(--brand-dark); }
.rb-notice { background: linear-gradient(120deg, #fff, #faf7ee); border-color: #ecdcb4; }
.rb-notice p { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 1080px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr); }
  .rb-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 600px) {
  .rb-card-body, .rb-result { padding: 16px; }
  .rb-result-top { flex-direction: column; }
  .rb-rate-badge { align-items: flex-start; width: 100%; }
  .rb-amount-wrap input { font-size: 19px; }
  .rb-formula { flex-direction: column; gap: 4px; }
  .rb-table-wrap { padding: 0 16px 4px; }
  .rb-note, .rb-scroll-tip { margin-left: 16px; margin-right: 16px; }
  .rb-scroll-tip { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-chip, .rb-example, .rb-amount-wrap input { transition: none; }
}
