/* ============================================================================
   Ageless 门户网站 · 设计系统
   ----------------------------------------------------------------------------
   设计取向：Warmane 式的暗色奇幻风 —— 深夜蓝底 + 霜蓝高光 + 鎏金点缀。
   零外部依赖：不引任何 CDN、字体、图标库，全部用系统字体 + CSS 绘制，
   保证离线（file://）双击也能完整显示。

   主题色阶集中在 :root，改品牌色只需要改这一段。
   ========================================================================== */

:root {
  /* 底色：由深到浅 */
  --bg-0: #070a0f;
  --bg-1: #0b1017;
  --bg-2: #111823;
  --bg-3: #172030;
  --line: #243044;
  --line-soft: #1b2434;

  /* 文字 */
  --tx-0: #e8eef6;
  --tx-1: #aab8cc;
  --tx-2: #6f7f96;

  /* 品牌 */
  --ice: #5fd0e8;
  --ice-dim: #2b8ba3;
  --gold: #d9a441;
  --gold-dim: #8a6524;

  /* 功能色 */
  --ok: #48c774;
  --warn: #f0a020;
  --err: #e05561;
  --info: #4a90d9;

  /* 阵营 */
  --alliance: #2a6bd4;
  --horde: #c0392b;

  /* 尺寸 */
  --wrap: 1240px;
  --r: 10px;
  --r-sm: 6px;

  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);

  /* WoW 职业色（3.3.5 官方） */
  --c-warrior: #c79c6e;
  --c-paladin: #f58cba;
  --c-hunter: #abd473;
  --c-rogue: #fff569;
  --c-priest: #ffffff;
  --c-dk: #c41f3b;
  --c-shaman: #0070de;
  --c-mage: #69ccf0;
  --c-warlock: #9482c9;
  --c-druid: #ff7d0a;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--tx-0);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
               "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 顶部那层极淡的霜色光晕，纯装饰 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 380px at 18% -10%, rgba(95, 208, 232, .14), transparent 70%),
    radial-gradient(700px 320px at 88% -6%, rgba(217, 164, 65, .09), transparent 72%);
}

a { color: var(--ice); text-decoration: none; }
a:hover { color: #8ee4f5; }

img { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

code, .mono {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: .92em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

.muted { color: var(--tx-2); }
.dim { color: var(--tx-1); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.mt0 { margin-top: 0; }
.mt1 { margin-top: 8px; }
.mt2 { margin-top: 16px; }
.mt3 { margin-top: 28px; }
.mb0 { margin-bottom: 0; }
.mb2 { margin-bottom: 16px; }
.mb3 { margin-bottom: 28px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gap1 { gap: 8px; }
.gap2 { gap: 16px; }
.wrapflex { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- 顶栏（服务器状态条） ---------- */
.statusbar {
  background: linear-gradient(90deg, #0a0f16, #101a26 50%, #0a0f16);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--tx-1);
}
.statusbar .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 36px; flex-wrap: wrap;
}
.statusbar .sb-item { display: inline-flex; align-items: center; gap: 7px; }
.statusbar .sb-item b { color: var(--tx-0); font-weight: 600; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex: none;
  background: var(--ok);
  box-shadow: 0 0 8px currentColor;
  color: var(--ok);
}
.dot.warn { background: var(--warn); color: var(--warn); }
.dot.err  { background: var(--err);  color: var(--err); }
.dot.idle { background: var(--tx-2); color: var(--tx-2); box-shadow: none; }

/* ---------- 页头 / 导航 ---------- */
.masthead {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 16, 23, .2), rgba(7, 10, 15, .96)),
    radial-gradient(1200px 300px at 50% 0%, rgba(43, 139, 163, .22), transparent 70%),
    #0b1017;
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 26px; min-height: 74px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: block;
}
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text { line-height: 1.15; }
.brand-text b { display: block; font-size: 17px; letter-spacing: .5px; }
.brand-text span { font-size: 11px; color: var(--tx-2); letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  color: var(--tx-1); font-size: 14px;
}
.nav a:hover { background: rgba(95, 208, 232, .09); color: var(--tx-0); }
.nav a.on { background: rgba(95, 208, 232, .16); color: var(--ice); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--tx-0);
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ice-dim); background: #1c2739; color: #fff; }
/* 危险操作按钮（如「退出全部设备」，2026-10-17） */
.btn-danger { border-color: #5a2530; color: #ff9c8c; background: #23141a; }
.btn-danger:hover { border-color: #8b1e2d; background: #2c1720; color: #ffc4b8; }
.btn-primary {
  background: linear-gradient(180deg, #3fb4d0, #24788f);
  border-color: #3fb4d0; color: #04151c;
}
.btn-primary:hover { background: linear-gradient(180deg, #57cae6, #2b8ba3); color: #04151c; }
.btn-gold {
  background: linear-gradient(180deg, #e0b155, #a97b25);
  border-color: #e0b155; color: #241703;
}
.btn-gold:hover { background: linear-gradient(180deg, #f0c268, #bd8b2c); color: #241703; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .45; cursor: not-allowed; filter: grayscale(.5);
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(23, 32, 48, .5);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head .sub { font-size: 12px; color: var(--tx-2); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-accent { border-top: 2px solid var(--ice); }
.card-gold { border-top: 2px solid var(--gold); }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-3 { grid-template-columns: 1fr 3fr; }
.gauto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gauto-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------- 徽标 / 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-3); color: var(--tx-1);
}
.tag-ice { border-color: var(--ice-dim); background: rgba(95, 208, 232, .12); color: var(--ice); }
.tag-gold { border-color: var(--gold-dim); background: rgba(217, 164, 65, .12); color: var(--gold); }
.tag-ok { border-color: #2b6b41; background: rgba(72, 199, 116, .12); color: var(--ok); }
.tag-warn { border-color: #7a5410; background: rgba(240, 160, 32, .12); color: var(--warn); }
.tag-err { border-color: #7a2830; background: rgba(224, 85, 97, .12); color: var(--err); }
.tag-alliance { border-color: #23538f; background: rgba(42, 107, 212, .16); color: #7fb0ff; }
.tag-horde { border-color: #8a2c22; background: rgba(192, 57, 43, .16); color: #ff8b7d; }

/* 待填内容样式（域名 / 链接等） */
.placeholder {
  display: inline-block;
  padding: 1px 7px; border-radius: 4px;
  background: rgba(240, 160, 32, .13);
  border: 1px dashed var(--warn);
  color: var(--warn);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
}

/* ---------- 表格 ---------- */
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tb th, table.tb td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.tb th {
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--tx-2); font-weight: 600; background: rgba(23, 32, 48, .45);
  white-space: nowrap;
}
table.tb tbody tr:hover { background: rgba(95, 208, 232, .05); }
table.tb td.num, table.tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tb tbody tr:last-child td { border-bottom: 0; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--tx-1);
}
.field .hint { margin-top: 5px; font-size: 12px; color: var(--tx-2); }
.input, select.input, textarea.input {
  width: 100%;
  padding: 10px 13px;
  background: #080d14;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--tx-0);
  font-size: 14px;
  font-family: inherit;
  transition: .16s;
}
.input:focus {
  outline: none;
  border-color: var(--ice-dim);
  box-shadow: 0 0 0 3px rgba(95, 208, 232, .13);
}
.input::placeholder { color: #47566b; }
textarea.input { resize: vertical; min-height: 110px; }
.input.with-btn { display: flex; gap: 8px; }
.input.with-btn .input { flex: 1; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--tx-1); cursor: pointer; }
.check input { margin: 4px 0 0; flex: none; width: 15px; height: 15px; accent-color: var(--ice-dim); }

.form-msg { padding: 10px 13px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; }
.form-msg.err { background: rgba(224, 85, 97, .11); border: 1px solid #7a2830; color: #ff9aa3; }
.form-msg.ok { background: rgba(72, 199, 116, .11); border: 1px solid #2b6b41; color: #8be3ab; }
.form-msg.info { background: rgba(74, 144, 217, .1); border: 1px solid #2b5280; color: #9fc6f0; }

/* 密码强度条 */
.pwbar { display: flex; gap: 4px; margin-top: 7px; }
.pwbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 38px 0 28px;
  background:
    linear-gradient(90deg, rgba(8,12,18,.68) 0%, rgba(8,12,18,.38) 45%, rgba(8,12,18,.12) 100%),
    linear-gradient(180deg, rgba(8,12,18,.25) 0%, rgba(4,7,11,.72) 100%),
    url('../img/hero-northrend.jpg') center / cover no-repeat,
    radial-gradient(900px 380px at 22% 20%, rgba(43, 139, 163, .26), transparent 68%),
    linear-gradient(180deg, #0d1620, #080c12);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  /* 斜向的霜纹，纯 CSS，无图片 */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    112deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.hero h1 { font-size: 33px; letter-spacing: 1px; margin-bottom: 9px; text-shadow: 0 2px 14px rgba(4,8,12,.85), 0 1px 3px rgba(4,8,12,.9); }
.hero h1 .hl { color: var(--ice); }
.hero .lede { font-size: 16px; color: var(--tx-1); max-width: 640px; text-shadow: 0 1px 8px rgba(4,8,12,.9); }

/* ===== 首屏主副标题 + 缘起 + 底部说明（2026-10-17 重排） ===== */
.hero .hero-sub {
  font-size: 16px; line-height: 1.65; color: var(--gold);
  letter-spacing: .6px; margin: 0 0 10px; max-width: 640px;
  text-shadow: 0 1px 10px rgba(4,8,12,.95), 0 1px 3px rgba(4,8,12,.9);
}
.hero .hero-lore { max-width: 620px; margin: 0 0 8px; }
.hero .hero-lore p {
  font-size: 13px; line-height: 1.75; color: var(--tx-1);
  margin: 0 0 6px; text-shadow: 0 1px 8px rgba(4,8,12,.9);
}
.hero .hero-lore p:last-child { margin-bottom: 0; }
.hero .hero-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: var(--tx-0); margin: 0; text-shadow: 0 1px 8px rgba(4,8,12,.9);
}
.hero .hero-kicker b { color: var(--gold); }
/* 横幅底部的「事实性」说明：小一号、加粗、低对比，不抢标题 */
.hero .hero-meta {
  margin: 16px 0 0; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; font-weight: 600; line-height: 1.8;
  color: var(--tx-2); max-width: 820px;
  text-shadow: 0 1px 8px rgba(4,8,12,.9);
}
.hero .hero-meta b { color: var(--tx-1); }
@media (max-width: 880px) {
  .hero { padding: 28px 0 22px; }
  .hero .hero-sub { font-size: 14px; }
  .hero .hero-lore p { font-size: 12px; line-height: 1.7; }
  .hero .hero-kicker { font-size: 12px; }
  .hero .hero-meta { font-size: 11px; margin-top: 12px; padding-top: 8px; }
}
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ===== 团本进程（2026-10-17 新增；同日缩幅 16/7 短横幅 + 官方简介改图片下方排版） ===== */
.raids { padding: 34px 0 4px; }
.raid-lead { margin: 0 0 14px; font-size: 12px; color: var(--tx-2); }
.raid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.raid-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card, #0c141c);
  transition: transform .18s ease, border-color .18s ease;
}
.raid-card:hover { transform: translateY(-3px); border-color: rgba(95, 208, 232, .45); }
.raid-thumb { position: relative; }
.raid-thumb img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block;
  filter: saturate(.55) brightness(.72);
}
.raid-card.open .raid-thumb img { filter: none; }
.raid-thumb .tag {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  font-size: 10px; background: rgba(6, 11, 17, .8);
}
.raid-body { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; }
.raid-body b { font-size: 13.5px; color: var(--tx-1); }
.raid-body small { font-size: 11px; color: var(--tx-2); font-weight: 400; }
.raid-desc {
  margin: 4px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--tx-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.raid-note { margin: 11px 0 0; font-size: 11px; color: var(--tx-2); opacity: .85; }
/* 2026-10-17：团本卡改为可点击（跳「版本进度」对应阶段） */
a.raid-card { color: inherit; text-decoration: none; }
.raid-more {
  margin-top: 7px; font-size: 11px; color: var(--gold);
  opacity: .8; transition: opacity .18s ease;
}
a.raid-card:hover .raid-more { opacity: 1; }
@media (max-width: 880px) { .raid-grid { grid-template-columns: repeat(2, 1fr); } }

/* 服务器状态卡 */
.realm-card {
  background: linear-gradient(160deg, rgba(23, 32, 48, .92), rgba(11, 16, 23, .95));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}
.realm-name { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.realm-sub { font-size: 12px; color: var(--tx-2); margin-bottom: 15px; }
.realm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.realm-stat {
  background: rgba(8, 13, 20, .6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.realm-stat .k { font-size: 11px; color: var(--tx-2); letter-spacing: .5px; }
.realm-stat .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.realm-stat .v small { font-size: 12px; font-weight: 500; color: var(--tx-2); }

/* 阵营比例条 */
.faction-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.faction-bar .a { background: var(--alliance); }
.faction-bar .h { background: var(--horde); }

/* ---------- 条目列表（公告/新闻） ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.list-plain li:last-child { border-bottom: 0; }
.list-plain .date { flex: none; width: 88px; font-size: 12px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.list-plain .title { flex: 1; }
.list-plain .title a { color: var(--tx-0); }
.list-plain .title a:hover { color: var(--ice); }

/* ---------- 功能入口卡 ---------- */
.entry {
  display: block;
  padding: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  color: var(--tx-0);
  transition: .18s;
  height: 100%;
}
.entry:hover {
  border-color: var(--ice-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  color: var(--tx-0);
}
.entry .ico {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(95, 208, 232, .12);
  border: 1px solid rgba(95, 208, 232, .3);
  font-size: 18px;
}
.entry h3 { margin-bottom: 5px; font-size: 15px; }
.entry p { margin: 0; font-size: 13px; color: var(--tx-2); line-height: 1.6; }

/* ---------- 商城 / 物品 ---------- */
.shop-item {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: .18s;
}
.shop-item:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.shop-thumb {
  height: 130px;
  display: grid; place-items: center;
  font-size: 40px;
  background:
    radial-gradient(180px 90px at 50% 115%, rgba(217, 164, 65, .22), transparent 70%),
    linear-gradient(160deg, #16202e, #0c1219);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.shop-thumb .cat {
  position: absolute; top: 9px; left: 9px;
}
.shop-info { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.shop-info .nm { font-weight: 600; margin-bottom: 3px; }
.shop-info .ds { font-size: 12px; color: var(--tx-2); flex: 1; }
.shop-price {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 13px;
}
.price { color: var(--gold); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.price small { font-size: 11px; font-weight: 500; color: var(--tx-2); }

.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-filter button {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--tx-1); font-size: 13px; font-family: inherit; cursor: pointer;
  transition: .16s;
}
.cat-filter button:hover { border-color: var(--ice-dim); color: var(--tx-0); }
.cat-filter button.on {
  background: rgba(95, 208, 232, .16);
  border-color: var(--ice-dim);
  color: var(--ice); font-weight: 600;
}

/* ---------- 角色查询 ---------- */
.char-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px;
  background:
    radial-gradient(520px 200px at 8% 0%, rgba(43, 139, 163, .22), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.char-avatar {
  width: 86px; height: 86px; flex: none;
  border-radius: var(--r);
  display: grid; place-items: center;
  font-size: 34px;
  background: linear-gradient(160deg, #1b2739, #0d131b);
  border: 2px solid var(--line);
}
.char-meta h2 { margin-bottom: 4px; }
.char-attrs { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.char-attr .k { font-size: 11px; color: var(--tx-2); letter-spacing: .5px; }
.char-attr .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 装备栏：左 3 / 中 1 / 右 3 */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gear-slot {
  min-height: 54px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(8, 13, 20, .55);
  padding: 8px 10px;
  display: flex; flex-direction: column; justify-content: center;
  font-size: 12px;
}
.gear-slot .slotname { color: var(--tx-2); font-size: 10px; letter-spacing: .5px; }
.gear-slot .itemname { font-weight: 600; }
.gear-slot.empty { color: #3b4759; font-style: italic; align-items: center; }
.gear-col { display: flex; flex-direction: column; gap: 8px; }
.gear-core {
  display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: radial-gradient(200px 120px at 50% 0%, rgba(217, 164, 65, .13), transparent 70%), rgba(8, 13, 20, .5);
  padding: 14px 10px;
}

.q0 { color: #9d9d9d; }  .q1 { color: #fff; }
.q2 { color: #1eff00; } .q3 { color: #0070dd; }
.q4 { color: #a335ee; } .q5 { color: #ff8000; }
.q6 { color: #e6cc80; } .q7 { color: #00ccff; }

/* ---------- 留言板 ---------- */
.post {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; gap: 14px;
}
.post:last-child { border-bottom: 0; }
.post-ava {
  width: 44px; height: 44px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: linear-gradient(160deg, #1d2a3d, #0e141d);
  border: 1px solid var(--line);
}
.post-body { flex: 1; min-width: 0; }
.post-top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.post-who { font-weight: 600; }
.post-time { font-size: 12px; color: var(--tx-2); }
.post-text { color: var(--tx-1); margin-bottom: 9px; word-break: break-word; }
.post-acts { display: flex; gap: 16px; font-size: 13px; color: var(--tx-2); }
.post-acts a { color: var(--tx-2); }
.post-acts a:hover { color: var(--ice); }

/* 头像（按名字首字生成的色块） */
.ava-a { background: linear-gradient(160deg, #1d3a4d, #0e1c26); color: #6fd3e8; }
.ava-b { background: linear-gradient(160deg, #3d2c14, #1d1608); color: #e0b155; }
.ava-c { background: linear-gradient(160deg, #2b1d3d, #150e1f); color: #b48fed; }
.ava-d { background: linear-gradient(160deg, #3d1d22, #1f0e11); color: #ef8686; }
.ava-e { background: linear-gradient(160deg, #1d3d2a, #0e1f15); color: #74d69b; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--tx-1); font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--ice-dim); color: var(--tx-0); }
.pager .on { background: rgba(95, 208, 232, .16); border-color: var(--ice-dim); color: var(--ice); font-weight: 700; }
.pager .off { opacity: .35; }

/* ---------- 进度条 / 计量 ---------- */
.meter { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice-dim), var(--ice)); }
.meter.gold > i { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.meter.err > i { background: linear-gradient(90deg, #8a3038, var(--err)); }

/* ---------- 提示条 ---------- */
.notice {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--ice);
  background: rgba(95, 208, 232, .07);
  font-size: 13px; color: var(--tx-1);
}
.notice.warn { border-color: var(--warn); background: rgba(240, 160, 32, .07); }
.notice.err { border-color: var(--err); background: rgba(224, 85, 97, .07); }
.notice.gold { border-color: var(--gold); background: rgba(217, 164, 65, .07); }
.notice b { color: var(--tx-0); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 20px 42px; counter-increment: s; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(95, 208, 232, .13);
  border: 1px solid var(--ice-dim);
  color: var(--ice); font-size: 13px; font-weight: 700;
}
.steps li::after {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px;
  width: 1px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; margin-bottom: 2px; }
.steps p { margin: 0; font-size: 13px; color: var(--tx-2); }

/* ---------- 时间线（版本进度） ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.tl li { position: relative; padding: 0 0 24px; }
.tl li::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--ice-dim);
}
.tl li.done::before { background: var(--ok); border-color: var(--ok); }
.tl li.todo::before { border-color: var(--line); }
.tl .ver { font-weight: 700; color: var(--ice); }
.tl .when { font-size: 12px; color: var(--tx-2); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 52px;
  padding: 34px 0 26px;
  border-top: 1px solid var(--line);
  background: #060a0f;
  font-size: 13px;
  color: var(--tx-2);
}
.footer h4 { font-size: 13px; color: var(--tx-1); letter-spacing: .5px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--tx-2); }
.footer a:hover { color: var(--ice); }
.footer-bottom {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; line-height: 1.8;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
#toast .t {
  padding: 10px 20px; border-radius: 999px;
  background: rgba(23, 32, 48, .97);
  border: 1px solid var(--ice-dim);
  color: var(--tx-0); font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn .22s ease-out;
}
#toast .t.warn { border-color: var(--warn); }
#toast .t.err { border-color: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 页头（内页） ---------- */
.pagehead {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(17, 24, 35, .7), transparent);
  margin-bottom: 26px;
}
.pagehead h1 { margin-bottom: 5px; }
.pagehead .sub { color: var(--tx-2); font-size: 13px; }
.crumb { font-size: 12px; color: var(--tx-2); margin-bottom: 9px; }
.crumb a { color: var(--tx-2); }
.crumb a:hover { color: var(--ice); }

/* ---------- 认证页（登录/注册） ---------- */
.auth {
  min-height: calc(100vh - 400px);
  display: grid; place-items: center;
  padding: 44px 0;
}
.auth-box {
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 30px;
}
.auth-box h1 { font-size: 23px; margin-bottom: 5px; }
.auth-box .sub { color: var(--tx-2); font-size: 13px; margin-bottom: 24px; }
.auth-box h1 em { font-style: normal; color: var(--gold); }
.auth-verse {
  margin: 13px 0 18px;
  padding: 2px 0 2px 13px;
  border-left: 2px solid rgba(217, 164, 65, .38);
  font-size: 13px; line-height: 1.95; color: var(--tx-1);
}
.auth-verse b { color: var(--gold); font-weight: 600; }
.auth-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; text-align: center; color: var(--tx-2); }

/* ---------- 页面右下角水印层（默认关闭）---------- */
/* 需要临时水印时，给 <body> 加上 class="demo" 即可 */
body.demo::after {
  content: "预览版 · 数据尚未接入";
  position: fixed; right: 0; bottom: 0;
  padding: 5px 13px;
  background: rgba(240, 160, 32, .9);
  color: #1a1200;
  font-size: 12px; font-weight: 700;
  border-radius: 8px 0 0 0;
  z-index: 900;
  pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .g-2-1, .g-1-3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .masthead .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; }
  .hero h1 { font-size: 28px; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .realm-stats { grid-template-columns: 1fr; }
  .statusbar .wrap { gap: 14px; }
  .auth-box { padding: 22px; }
}

/* ---------- 打印 ---------- */
@media print {
  body::before, body.demo::after, .masthead, .footer, .statusbar { display: none; }
  body { background: #fff; color: #000; }
}

/* ===== 角色查询 · 角色面板（2026-10-17 大改版） ===== */
.charpane{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;
  background:radial-gradient(1200px 500px at 50% 0%, rgba(139,30,45,.10), transparent 60%);
  padding:16px;border:1px solid var(--line);border-radius:10px}
.pane-col{display:flex;flex-direction:column;gap:8px}
.pane-mid{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0 12px}
.slot-cell{position:relative;width:52px;height:52px;border-radius:6px;background:#1b1b20;
  border:1px solid #3a3a42;display:flex;align-items:center;justify-content:center}
.slot-cell.core{width:64px;height:64px}
.slot-cell img{width:100%;height:100%;object-fit:cover;border-radius:5px;display:block}
.slot-cell.empty .slot-label{font-size:11px;color:#6b6b76}
.slot-cell .ilvl-badge{position:absolute;right:2px;bottom:2px;font-size:10px;line-height:1.4;
  background:rgba(0,0,0,.78);color:#fff;padding:0 3px;border-radius:3px}
.slot-cell:hover{border-color:#8b1e2d !important}
.slot-cell .slot-tip{display:none;position:absolute;left:115%;top:0;width:260px;z-index:60;
  background:#111116;border:1px solid #4a4a55;border-radius:8px;padding:10px 12px;
  font-size:12px;line-height:1.7;box-shadow:0 10px 30px rgba(0,0,0,.5);pointer-events:none;text-align:left}
.pane-col:last-child .slot-cell .slot-tip{left:auto;right:115%}
.pane-mid .slot-cell .slot-tip{left:auto;right:118%;top:0}
.slot-cell:hover .slot-tip{display:block}
.tip-name{font-weight:700;font-size:13px;margin-bottom:4px}
.tip-line{color:#d7d7df}
.tip-stat{color:#8bc34a}
.char-avatar2{width:118px;height:118px;border-radius:50%;
  background:radial-gradient(circle at 50% 35%,#2a2a33,#15151a);
  border:2px solid #3a3a42;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.lvl-num{font-size:36px;font-weight:800;line-height:1}
.lvl-cap{font-size:11px;color:#9a9aa5}
.mid-name{text-align:center}
.ilvl-big{font-size:13px;font-weight:700;margin-top:2px}
/* 2026-10-17 合并页二次改版：空槽降噪 + 武器行沉底 + 左右列对齐 */
.pane-left{align-items:flex-start}
.pane-right{align-items:flex-end}
.slot-cell.empty{background:#141419;border-color:#23232b}
.slot-cell.empty:hover{border-color:#2c2c35 !important}
.slot-cell.empty .slot-label{font-size:10px;color:#55555f}
.slot-cell:not(.empty):hover{border-color:#8b1e2d !important}
.pane-weapons{display:flex;gap:8px;margin-top:auto}
@media (max-width:880px){
  .charpane{grid-template-columns:1fr 1fr}
  .pane-mid{grid-column:1 / -1;order:-1}
  .pane-weapons{justify-content:center;margin-top:12px}
}

/* ---------- 在线趋势图（合并页 2026-10-17） ---------- */
.trend-legend{display:flex;gap:14px;align-items:center;font-size:12px;color:var(--tx-1);
  flex-wrap:wrap;margin-bottom:8px}
.trend-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.trend-svg{width:100%;height:auto;display:block}

/* ---------- 职业/种族分布条（合并页 2026-10-17） ---------- */
.dist-sets .dist-set{display:none}
.dist-sets .dist-set.on{display:block}
.dist-row{display:grid;grid-template-columns:76px 1fr auto;gap:10px;align-items:center;
  padding:5px 0;font-size:13px}
.dist-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.dist-num{font-size:12px;color:var(--tx-2);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------------- MFA（Authenticator 动态验证） ---------------- */
.mfa-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-top:12px}
.mfa-codes code{display:block;padding:9px 10px;border:1px solid var(--line);border-radius:8px;
  background:rgba(255,255,255,.03);font-size:15px;letter-spacing:.08em;text-align:center;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#e7e7ef}
.mfa-setup{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:start}
.mfa-qrwrap{display:flex;flex-direction:column;align-items:center}
.mfa-qr{width:200px;height:200px;padding:10px;background:#fff;border-radius:10px;
  display:flex;align-items:center;justify-content:center}
.mfa-qr svg{width:100%;height:100%;display:block}
.mfa-steps{min-width:0}
.mfa-ol{margin:0 0 14px;padding-left:20px;font-size:13.5px;line-height:1.9;color:var(--tx-1)}
.mfa-ol li{margin-bottom:6px}
.mfa-key{margin-top:4px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;
  background:rgba(255,255,255,.025)}
.mfa-key code{display:inline-block;margin:2px 0;font-size:15px;letter-spacing:.14em;
  word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#ffd479}
.mfa-faq h4{margin:14px 0 4px;font-size:13.5px;color:var(--tx-1)}
.mfa-faq h4:first-child{margin-top:0}
.mfa-faq p{margin:0;font-size:13px;line-height:1.8;color:var(--tx-2)}
@media (max-width:760px){
  .mfa-setup{grid-template-columns:1fr}
  .mfa-qr{width:170px;height:170px}
  .mfa-qrwrap{margin:0 auto 8px}
}

/* ---------------- MFA 恢复码操作条 ---------------- */
.mfa-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.mfa-actions .btn{flex:0 0 auto}
.mfa-tip{font-size:12.5px;color:var(--tx-2);min-height:1.2em}
.mfa-tip.ok{color:#6ee7a8}
.mfa-tip.err{color:#ff9b9b}

/* ============================================================================
   社区论坛（2026-10-17 从留言墙升级为四分区论坛）
   版块索引 .brd-* · 主题列表 .trow* · 帖子楼层 .msg-* · 管理员标识 .nick-gm/.gm-*
   ========================================================================== */

/* ---------------- 版块索引 ---------------- */
.brd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:760px){.brd-grid{grid-template-columns:1fr}}
.brd{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,0));
  transition:border-color .15s,transform .15s}
.brd:hover{border-color:var(--ice-dim);transform:translateY(-1px)}
.brd-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.brd-name{font-size:15px;font-weight:500;color:var(--tx-0)}
.brd-desc{font-size:12.5px;line-height:1.75;color:var(--tx-2);min-height:2.6em}
.brd-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin-top:12px;padding-top:10px;border-top:1px solid var(--line-soft);
  font-size:12px;color:var(--tx-2)}
.brd-last{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.9}

/* ---------------- 主题列表 ---------------- */
.tlist{display:block}
.trow{display:flex;align-items:center;gap:12px;padding:12px 18px;
  border-bottom:1px solid var(--line-soft);transition:background .12s}
.trow:last-child{border-bottom:0}
.trow:hover{background:rgba(95,208,232,.045)}
.trow .post-ava{flex:0 0 auto}
.trow-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.trow-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  font-size:14px;color:var(--tx-0);font-weight:500;line-height:1.5}
.trow-meta{font-size:12px;color:var(--tx-2)}
.trow-board{flex:0 0 auto;font-size:11.5px;padding:2px 8px;border-radius:20px;
  border:1px solid var(--line);color:var(--tx-2)}
.trow-stats{flex:0 0 auto;display:grid;grid-template-columns:auto auto;gap:0 8px;
  align-items:baseline;text-align:right;font-size:12px;color:var(--tx-2);min-width:86px}
.trow-stats b{font-size:13px;color:var(--tx-1);font-weight:500}

/* ---------------- 帖子楼层 ---------------- */
.msg{display:grid;grid-template-columns:132px minmax(0,1fr);border-bottom:1px solid var(--line-soft)}
.msg:last-child{border-bottom:0}
.msg-side{padding:16px 12px;text-align:center;border-right:1px solid var(--line-soft);
  background:rgba(255,255,255,.014)}
.msg-side .post-ava{margin:0 auto 8px}
.msg-nick{font-size:13.5px;font-weight:500;color:var(--tx-0);word-break:break-word}
.msg-sub{margin-top:4px;font-size:11.5px;color:var(--tx-2)}
.msg-main{padding:16px 18px;min-width:0}
.msg-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.floor{margin-left:auto;font-size:12px;color:var(--tx-2)}
.msg-text{font-size:13.5px;line-height:1.85;color:var(--tx-1);word-break:break-word}
.msg-gm{background:linear-gradient(90deg,rgba(217,164,65,.06),rgba(217,164,65,0) 55%)}
.msg-gm .msg-side{border-right-color:rgba(217,164,65,.35)}

/* ---------------- 管理员标识 ---------------- */
.nick-gm{color:var(--gold);
  background:linear-gradient(180deg,#f6d99a,#d9a441);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 14px rgba(217,164,65,.28)}
.gm-badge{display:inline-block;margin-top:5px;padding:1px 7px;border-radius:20px;
  font-size:10.5px;letter-spacing:.06em;
  border:1px solid rgba(217,164,65,.55);background:rgba(217,164,65,.13);color:#f0c268}
.gm-dot{display:inline-block;margin-left:5px;padding:0 5px;border-radius:4px;
  font-size:10px;letter-spacing:.06em;vertical-align:1px;
  border:1px solid rgba(217,164,65,.5);color:#e8b95c}

/* ---------------- 举报表单的字段表格 ---------------- */
.kv{border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden;margin-bottom:12px}
.kv-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:0;
  border-bottom:1px solid var(--line-soft)}
.kv-row:last-child{border-bottom:0}
.kv-k{padding:9px 12px;font-size:12.5px;color:var(--tx-2);background:rgba(255,255,255,.02);
  border-right:1px solid var(--line-soft)}
.kv-v{padding:9px 12px;font-size:13.5px;color:var(--tx-1);line-height:1.8;word-break:break-word}

/* ---------------- 管理员操作条 ---------------- */
.admin-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;
  padding-top:12px;border-top:1px dashed rgba(217,164,65,.3)}

@media (max-width:760px){
  .msg{grid-template-columns:1fr}
  .msg-side{display:flex;align-items:center;gap:9px;text-align:left;
    border-right:0;border-bottom:1px solid var(--line-soft);padding:10px 14px}
  .msg-side .post-ava{margin:0;width:30px;height:30px;font-size:13px}
  .gm-badge{margin-top:0}
  .kv-row{grid-template-columns:1fr}
  .kv-k{border-right:0;border-bottom:1px solid var(--line-soft)}
}
