/* ============================================================================
   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;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--ice), var(--ice-dim) 55%, var(--gold-dim));
  display: grid; place-items: center;
  color: #06121a; font-weight: 800; font-size: 20px;
  box-shadow: 0 0 18px rgba(95, 208, 232, .35);
}
.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; }
.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: 54px 0 44px;
  background:
    radial-gradient(900px 380px at 22% 20%, rgba(43, 139, 163, .26), transparent 68%),
    radial-gradient(760px 340px at 84% 84%, rgba(138, 101, 36, .18), transparent 70%),
    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: 38px; letter-spacing: 1px; margin-bottom: 12px; }
.hero h1 .hl { color: var(--ice); }
.hero .lede { font-size: 16px; color: var(--tx-1); max-width: 640px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* 服务器状态卡 */
.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-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; }
}
