/* =========================================================
   星域发行 · 统一视觉样式
   浅色商务简洁风 / 可离线部署 / 无外部依赖
   ========================================================= */

:root {
  --bg: #f6f8fc;
  --bg-soft: #eef3fb;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e7ecf5;
  --line-strong: #d8e0ee;
  --brand: #3b5bfd;
  --brand-2: #6d5efc;
  --brand-soft: #eef2ff;
  --ok: #0f9f6e;
  --ok-soft: #e8f8f1;
  --warn: #d97706;
  --warn-soft: #fef4e2;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #e9f0ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .04);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, .04), 0 16px 40px rgba(16, 24, 40, .08);
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.muted { color: var(--muted); }
.sm { font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12.5px; letter-spacing: -.2px; }
.hl { color: var(--brand); }
.strong { font-weight: 600; }
.pad { padding: 18px; }
.mb { margin-bottom: 14px; }
.hide { visibility: hidden; }
.danger { color: var(--danger) !important; }
.ta-r { text-align: right; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-sm .ico { width: 15px; height: 15px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(59, 91, 253, .24);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(59, 91, 253, .32); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c3cde0; background: #fbfcff; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e3e9ff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; position: relative; transition: .18s;
}
.icon-btn:hover { color: var(--brand); border-color: #cfd9ee; }

/* ---------------- 徽标 / 标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.7;
  background: #f1f4fa; color: var(--muted); white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #f1f4fa; color: var(--muted); }
.badge.big { padding: 7px 14px; font-size: 13px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 6px;
  background: #f3f6fb; color: var(--muted); font-size: 12px; white-space: nowrap;
}
.tag-hot { background: var(--warn-soft); color: var(--warn); }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 11px 20px; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  font-size: 14px; animation: toastIn .3s ease;
}
.toast-success { border-left: 3px solid var(--ok); color: #0b6b4b; }
.toast-error { border-left: 3px solid var(--danger); color: #a32025; }
.toast-info { border-left: 3px solid var(--info); color: #1d4ed8; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   前台门户
   ========================================================= */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.site-body { background: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 236, 245, .8);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(59, 91, 253, .28);
}
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.site-nav { display: flex; gap: 28px; margin-left: 12px; }
.site-nav a { color: var(--ink-2); font-size: 14.5px; padding: 6px 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transition: right .2s; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--brand); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f7ff 0%, #f8faff 58%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 460px; height: 460px; right: -120px; top: -140px; background: radial-gradient(circle, #c7d4ff, transparent 70%); }
.orb-2 { width: 380px; height: 380px; left: -140px; bottom: -180px; background: radial-gradient(circle, #d9ccff, transparent 70%); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59, 91, 253, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 91, 253, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 76px 0 90px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e9fb; color: #4353a8;
  font-size: 12.5px; font-weight: 500; box-shadow: 0 4px 12px rgba(59, 91, 253, .06);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 159, 110, .14); }
.hero-copy h1 { font-size: 52px; line-height: 1.16; margin: 20px 0 18px; letter-spacing: -.02em; }
.grad { background: linear-gradient(120deg, #3b5bfd 10%, #7c5cfc 55%, #06b6d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 38px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.hero-visual { position: relative; height: 520px; }
.visual-card { position: absolute; width: 240px; box-shadow: var(--shadow-md); border-radius: 16px; }
.visual-card .game-card { box-shadow: none; background: #fff; }
.vc-main { left: 50%; top: 50%; transform: translate(-50%, -52%) rotate(-2deg); width: 260px; z-index: 3; }
.vc-small { z-index: 2; width: 210px; opacity: .96; }
.vc-top { right: -6px; top: 6px; transform: rotate(6deg); }
.vc-bottom { left: -10px; bottom: 6px; transform: rotate(-7deg); }
.float-stat {
  position: absolute; z-index: 5; left: 50%; bottom: -8px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-md);
}
.float-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.float-stat em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.float-stat strong { font-size: 17px; letter-spacing: -.01em; }
.float-badge {
  position: absolute; z-index: 5; right: 2px; bottom: 74px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(17, 24, 39, .88); color: #fff;
  font-size: 12px; border-radius: 999px; padding: 7px 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .2);
}
.float-badge .ico { width: 14px; height: 14px; }

/* Sections */
.section { padding: 78px 0; }
.section-tight { padding: 40px 0 64px; }
.section-soft { background: linear-gradient(180deg, #f7f9fd, #f3f6fc); border-top: 1px solid #eef2f9; border-bottom: 1px solid #eef2f9; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 20px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: 30px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.link-more .ico { width: 15px; height: 15px; transition: transform .2s; }
.link-more:hover .ico { transform: translateX(3px); }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; transition: .18s;
}
.chip span { font-size: 11px; color: var(--muted-2); }
.chip:hover, .chip.active { border-color: #c9d5ff; background: var(--brand-soft); color: var(--brand); }
.chip.active span { color: var(--brand); }

/* Game cards */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: all .22s ease; box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9e2f5; }
.game-cover {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #4f6df5), var(--c2, #8b5cf6));
  display: flex; align-items: center; justify-content: center;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
}
.cover-shine { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 65%); top: -40px; right: -30px; filter: blur(6px); }
.cover-char { position: relative; font-size: 62px; font-weight: 800; color: rgba(255, 255, 255, .95); text-shadow: 0 8px 24px rgba(0, 0, 0, .18); letter-spacing: -.03em; }
.cover-sub { position: absolute; left: 12px; bottom: 10px; color: rgba(255, 255, 255, .9); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.cover-badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .94); color: #b45309; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.cover-sys { position: absolute; top: 10px; right: 10px; background: rgba(17, 24, 39, .38); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.game-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-body h3 { font-size: 16px; }
.game-body p { color: var(--muted); font-size: 12.5px; line-height: 1.7; min-height: 38px; }
.game-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.meta-right { color: var(--muted-2); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.meta-right .ico { width: 13px; height: 13px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; transition: .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #e7edff); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon .ico { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; }
.panel-head h3 .ico { width: 17px; height: 17px; color: var(--brand); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.side-stack { display: flex; flex-direction: column; gap: 20px; }

/* Server & news lists */
.server-list li { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #f1f4fa; }
.server-list li:last-child { border-bottom: 0; }
.server-game { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mini-cover {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--c1, #4f6df5), var(--c2, #8b5cf6));
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 4px 10px rgba(16, 24, 40, .08);
}
.mini-cover.lg { width: 46px; height: 46px; border-radius: 12px; font-size: 18px; }
.mini-cover.xl { width: 76px; height: 76px; border-radius: 18px; font-size: 30px; }
.server-game strong { display: block; font-size: 14px; }
.server-game em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.server-time { color: var(--muted); font-size: 12.5px; }
.news-list li { border-bottom: 1px solid #f1f4fa; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; transition: background .15s; }
.news-list a:hover { background: #fafbff; }
.news-tag { font-size: 11.5px; color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 5px; flex: 0 0 auto; }
.news-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.news-time { color: var(--muted-2); font-size: 12px; flex: 0 0 auto; }
.news-list.compact a { padding: 10px 18px; }

.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2f4cf0 0%, #5b53f5 55%, #7c5cfc 100%);
  border-radius: 22px; padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: #fff; box-shadow: 0 24px 60px rgba(59, 91, 253, .28);
}
.cta-banner::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 70%); right: -80px; top: -160px; }
.cta-banner h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; gap: 12px; position: relative; z-index: 1; }

/* Footer */
.site-footer { background: #f7f9fd; border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 14px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13.5px; margin-bottom: 4px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.footer-col a:hover { color: var(--brand); }
.footer-col .ico { width: 14px; height: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; color: var(--muted-2); font-size: 12.5px; padding-top: 30px; margin-top: 36px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Page hero */
.page-hero { padding: 64px 0 52px; background: linear-gradient(180deg, #f2f6ff, #fbfcff); border-bottom: 1px solid #eef2f9; }
.page-hero-sm { padding: 46px 0 38px; }
.page-hero h1 { font-size: 38px; letter-spacing: -.02em; margin-top: 14px; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 620px; }
.page-hero-desc { font-size: 15px; line-height: 1.9; }

/* Filter */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.field-inline { display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 38px; background: #f8fafd; border: 1px solid var(--line); border-radius: 9px; }
.field-inline .ico { width: 16px; height: 16px; color: var(--muted-2); }
.field-inline input { border: 0; background: transparent; outline: none; height: 100%; min-width: 180px; }
.search-inline { flex: 1; min-width: 200px; }
.select, .input {
  height: 38px; padding: 0 32px 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none; outline: none; font-size: 13.5px; color: var(--ink-2);
}
.select:focus, .input:focus, .field input:focus, .field textarea:focus { border-color: #b9c8ff; box-shadow: 0 0 0 3px rgba(59, 91, 253, .1); }
.input.date, input.date { padding-right: 10px; background-image: none; width: 148px; }
.select.sm { height: 32px; font-size: 12.5px; padding-left: 10px; }
.date-sep { color: var(--muted-2); font-size: 12px; }

/* Empty / pager */
.empty-state { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 12px 0 4px; font-size: 16px; color: var(--ink-2); }
.empty-ico { width: 42px; height: 42px; color: #c6d2e8; }
.pager { display: flex; align-items: center; gap: 6px; padding: 18px 20px; flex-wrap: wrap; }
.pager-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.pager-btn:hover { border-color: #c9d5ff; color: var(--brand); }
.pager-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-info { margin-left: auto; color: var(--muted-2); font-size: 12px; }

/* Game detail */
.game-detail-hero { position: relative; overflow: hidden; background: #0f172a; color: #fff; padding: 50px 0 46px; }
.detail-bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--c1), var(--c2)); opacity: .92; }
.detail-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .22), transparent 45%), linear-gradient(180deg, rgba(15, 23, 42, .1), rgba(15, 23, 42, .55)); }
.detail-head { position: relative; display: flex; gap: 30px; align-items: center; }
.detail-cover { width: 176px; height: 176px; border-radius: 24px; overflow: hidden; flex: 0 0 auto; background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 46px rgba(0, 0, 0, .25); position: relative; }
.detail-cover .cover-char { font-size: 78px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-tags .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.detail-tags .badge { background: rgba(255, 255, 255, .92); }
.detail-info h1 { font-size: 40px; color: #fff; letter-spacing: -.02em; }
.detail-summary { color: rgba(255, 255, 255, .82); margin-top: 8px; }
.detail-meta { display: flex; gap: 40px; margin: 22px 0; flex-wrap: wrap; }
.detail-meta em { display: block; font-style: normal; color: rgba(255, 255, 255, .6); font-size: 12px; }
.detail-meta strong { font-size: 19px; }
.detail-meta .hl { color: #fff; background: linear-gradient(120deg, #fff, #d8e4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.detail-actions .btn-primary { background: #fff; color: #26306b; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.detail-note { color: rgba(255, 255, 255, .6); font-size: 12.5px; margin-top: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.detail-main { min-width: 0; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 12px 18px; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; }
.prose p { margin: 0 0 14px; }
.prose h3 { margin: 22px 0 10px; font-size: 17px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; list-style: disc; }
.prose a { color: var(--brand); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.info-grid em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.info-grid span { font-weight: 500; }

.download-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f4fa; }
.download-list li:last-child { border-bottom: 0; }
.file-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.download-list div { flex: 1; }
.download-list strong { display: block; font-size: 14px; }
.download-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.download-list.compact li { padding: 9px 0; }
.download-list.compact .file-ico { width: 34px; height: 34px; }

.steps { display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 13px; }
.steps strong { display: block; font-size: 14px; }
.steps p { color: var(--muted); font-size: 13px; }

.kv-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 20px; border-bottom: 1px solid #f3f5fa; font-size: 13.5px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list em { font-style: normal; color: var(--muted); flex: 0 0 auto; }
.kv-list span { text-align: right; }
.related-list li a { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid #f3f5fa; }
.related-list li:last-child a { border-bottom: 0; }
.related-list strong { display: block; font-size: 13.5px; }
.related-list em { font-style: normal; color: var(--muted); font-size: 12px; }

/* Article */
.narrow { max-width: 860px; }
.article-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-item { display: flex; gap: 22px; padding: 24px 26px; border-bottom: 1px solid #f1f4fa; align-items: flex-start; transition: background .15s; }
.article-item:last-child { border-bottom: 0; }
.article-item:hover { background: #fafbff; }
.article-date { flex: 0 0 62px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.article-date strong { display: block; font-size: 26px; letter-spacing: -.02em; }
.article-date span { font-size: 11.5px; color: var(--muted-2); }
.article-body { flex: 1; min-width: 0; }
.article-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.article-body h3 { font-size: 16.5px; margin-bottom: 4px; }
.article-body p { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-arrow { color: #c3cee3; align-self: center; }
.article-hero { padding: 46px 0 30px; background: linear-gradient(180deg, #f4f7ff, #fff); border-bottom: 1px solid #eef2f9; }
.back-link { color: var(--muted); font-size: 13px; display: inline-block; margin-bottom: 16px; }
.back-link:hover { color: var(--brand); }
.article-hero h1 { font-size: 34px; line-height: 1.35; margin: 12px 0; }
.article-lead { color: var(--muted); font-size: 15px; }
.meta-muted { color: var(--muted-2); font-size: 12.5px; }
.article-prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; font-size: 15px; }
.article-prose p { margin-bottom: 18px; }
.inline-game { display: flex; align-items: center; gap: 14px; background: #f8faff; border: 1px solid #e6ecfa; border-radius: 14px; padding: 16px 18px; margin: 22px 0; }
.inline-game div { flex: 1; }
.inline-game strong { display: block; }
.inline-game em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.article-nav a { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; max-width: 48%; }
.article-nav a.next { text-align: right; margin-left: auto; }
.article-nav em { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; }
.article-nav span { font-size: 13px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.about-copy h2 { font-size: 30px; margin-bottom: 16px; }
.about-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.95; margin-bottom: 14px; }
.about-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.about-stats strong { font-size: 28px; display: block; letter-spacing: -.02em; }
.about-stats span { color: var(--muted); font-size: 12.5px; }
.about-visual { display: flex; flex-direction: column; gap: 18px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.about-card.accent { background: linear-gradient(135deg, #f3f6ff, #eef1ff); border-color: #e0e7fb; }
.about-card h3 { margin-bottom: 6px; }
.about-card p { color: var(--muted); font-size: 13.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.contact-card h3 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { font-size: 14.5px; font-weight: 500; }
.contact-card em { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* Auth */
.auth-page { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: linear-gradient(140deg, #2537c9 0%, #4a45ee 48%, #7b5bf7 100%); color: #fff; padding: 54px 64px; display: flex; align-items: center; }
.auth-brand::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 66%); right: -180px; top: -180px; }
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); }
.auth-brand-inner { position: relative; z-index: 1; max-width: 460px; }
.brand-light .brand-mark { background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.brand-light .brand-text { color: #fff; }
.auth-brand h2 { font-size: 40px; line-height: 1.3; color: #fff; margin: 48px 0 18px; letter-spacing: -.02em; }
.auth-brand > p, .auth-brand-inner > p { color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.9; }
.auth-points { margin: 30px 0 40px; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.auth-points .ico { width: 17px; height: 17px; color: #9ff5d0; }
.auth-quote { border-left: 2px solid rgba(255, 255, 255, .3); padding-left: 18px; }
.auth-quote p { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.9; font-style: italic; }
.auth-quote span { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; margin-top: 6px; }
.auth-form-side { background: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.auth-form-side > .back-link { position: absolute; top: 28px; left: 40px; }
.auth-card { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-card h1 { font-size: 28px; }
.auth-sub { color: var(--muted); margin: 6px 0 26px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: #f4f7fc; border-radius: 10px; margin-bottom: 24px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 13px; color: var(--muted); transition: .18s; }
.auth-tabs a.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong);
  border-radius: 9px; outline: none; background: #fbfcfe; transition: .18s;
}
.field input { height: 42px; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #aab4c6; }
.field select { height: 42px; }
.form-hint { font-style: normal; color: var(--muted-2); font-size: 12px; }
.req { color: var(--danger); font-style: normal; }
.auth-foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 20px; }
.auth-foot a { color: var(--brand); }
.demo-box { margin-top: 24px; padding: 14px 16px; border-radius: 10px; background: #f8fafd; border: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 3px; }
.demo-box strong { font-size: 12px; color: var(--muted); }
.demo-box span { font-size: 12px; color: var(--ink-2); font-family: Consolas, monospace; }

/* Apply */
.apply-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; align-items: start; }
.apply-form-panel { padding: 30px 32px; }
.apply-form-panel h2 { font-size: 22px; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; padding-top: 6px; flex-wrap: wrap; }
.apply-side { display: flex; flex-direction: column; gap: 20px; }
.apply-side .panel { padding: 22px 24px; }
.apply-side h3 { font-size: 15px; margin-bottom: 14px; }
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.check-list .ico { width: 16px; height: 16px; color: var(--ok); }
.panel-tip { background: #f8faff; }
.flow-list { display: flex; flex-direction: column; gap: 12px; }
.flow-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.flow-list span { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #d9e2f5; color: var(--brand); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

/* Error */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: 110px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(120deg, #3b5bfd, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 22px; margin: 18px 0 8px; }
.error-page p { color: var(--muted); }
.error-actions { display: flex; gap: 12px; margin-top: 24px; }

/* =========================================================
   控制台
   ========================================================= */
.console-body { background: var(--bg); }
.console { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: 0 0 236px; background: #fff;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0; z-index: 60;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.sidebar-brand strong { display: block; font-size: 15px; line-height: 1.4; }
.sidebar-brand em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); letter-spacing: .06em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #e2e8f2; border-radius: 4px; }
.nav-group { margin-bottom: 16px; }
.nav-group-title { padding: 6px 12px; font-size: 10.5px; color: var(--muted-2); letter-spacing: .12em; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 2px; transition: .16s; }
.nav-item .ico { width: 17px; height: 17px; color: var(--muted-2); transition: .16s; }
.nav-item:hover { background: #f6f8fd; color: var(--ink); }
.nav-item:hover .ico { color: var(--brand); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item.active .ico { color: var(--brand); }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 12px; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12.5px; }
.sidebar-foot:hover { color: var(--brand); border-color: #c5d2ff; }
.console-main { flex: 1; min-width: 0; margin-left: 236px; display: flex; flex-direction: column; }
.topbar { height: 70px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left h1 { font-size: 18px; }
.topbar-left p { color: var(--muted); font-size: 12px; margin-top: 1px; }
.topbar-left .nav-toggle { display: none; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-date { color: var(--muted-2); font-size: 12.5px; }
.dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); border: 1.5px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #dfe6ff, #c9d3ff); color: #3142a0; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.user-meta strong { display: block; font-size: 13px; line-height: 1.3; }
.user-meta em { display: block; font-style: normal; color: var(--muted-2); font-size: 11px; }
.logout-link { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted-2); }
.logout-link:hover { background: var(--danger-soft); color: var(--danger); }
.console-content { padding: 24px 28px 48px; flex: 1; }
.console-toast { top: 84px; right: 28px; left: auto; transform: none; }
.sidebar-mask { display: none; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-card > div { min-width: 0; }
.stat-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.stat-icon .ico { width: 19px; height: 19px; }
.stat-icon.blue { background: #eef3ff; color: #3b5bfd; }
.stat-icon.green { background: #e8f8f1; color: #0f9f6e; }
.stat-icon.violet { background: #f1edff; color: #7c3aed; }
.stat-icon.amber { background: #fff5e5; color: #d97706; }
.stat-card em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { color: var(--muted-2); font-size: 11.5px; display: block; }
.stat-accent { background: linear-gradient(135deg, #f6f8ff, #fff); border-color: #dfe6fd; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; align-items: start; }

/* Chart */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 22px 20px 6px; }
.chart-wide { height: 230px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.chart-col .bar { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #6d8bff, #3b5bfd); opacity: .9; transition: opacity .15s; min-height: 2px; }
.chart-col:hover .bar { opacity: 1; box-shadow: 0 0 0 3px rgba(59, 91, 253, .12); }
.chart-col em { font-style: normal; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.dot-blue { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Quick */
.quick-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.quick-list a { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; transition: background .15s; }
.quick-list a:hover { background: #f8faff; }
.quick-ico { width: 34px; height: 34px; border-radius: 9px; background: #f2f5fc; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.quick-ico .ico { width: 16px; height: 16px; }
.quick-list strong { display: block; font-size: 13px; }
.quick-list em { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; }
.quick-list .arrow { margin-left: auto; width: 15px; height: 15px; color: #c6d2e8; }
.rate-box { margin: 10px 14px 16px; padding: 14px 16px; border-radius: 11px; background: linear-gradient(135deg, #f2f5ff, #fbfcff); border: 1px solid #e5eafb; }
.rate-box div { display: flex; align-items: baseline; justify-content: space-between; }
.rate-box em { font-style: normal; color: var(--muted); font-size: 12px; }
.rate-box strong { font-size: 20px; color: var(--brand); }
.rate-box p { color: var(--muted-2); font-size: 11.5px; line-height: 1.7; margin-top: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { font-size: 13px; }
.table th { text-align: left; padding: 11px 16px; background: #fafbfe; color: var(--muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f2f5fa; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafbff; }
.table .cell-sub { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.table .ellip { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); }
.table-game td { vertical-align: middle; }
.game-cell { display: flex; align-items: center; gap: 11px; }
.game-cell strong { display: block; font-size: 13.5px; }
.game-cell em { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline-block; margin-left: 4px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.seg-tabs { display: inline-flex; gap: 2px; background: #eef2f9; padding: 3px; border-radius: 10px; }
.seg-tabs a { padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg-tabs a.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.filter-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-inline .search-inline { min-width: 220px; }

/* Rank */
.rank-list { padding: 8px 20px 16px; }
.rank-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.rank-num { width: 22px; height: 22px; border-radius: 7px; background: #f1f4fa; color: var(--muted); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rank-num.top { background: linear-gradient(135deg, #3b5bfd, #7c5cfc); color: #fff; }
.rank-main { flex: 1; min-width: 0; }
.rank-title { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.rank-title strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title span { color: var(--muted); flex: 0 0 auto; }
.rank-bar { height: 4px; background: #f0f3fa; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7d95ff, #3b5bfd); }
.rank-bar.green i { background: linear-gradient(90deg, #5fd3a8, #0f9f6e); }

/* Todo */
.todo-list { padding: 8px; }
.todo-list a { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; }
.todo-list a:hover { background: #f8faff; }
.todo-ico { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.todo-ico.warn { background: var(--warn-soft); color: var(--warn); }
.todo-ico.info { background: var(--info-soft); color: var(--info); }
.todo-ico.ok { background: var(--ok-soft); color: var(--ok); }
.todo-list strong { display: block; font-size: 13px; }
.todo-list em { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; }
.todo-list b { margin-left: auto; font-size: 17px; }
.mini-stats { display: flex; gap: 12px; padding: 4px 18px 18px; }
.mini-stats div { flex: 1; background: #f8fafd; border-radius: 10px; padding: 10px 12px; }
.mini-stats em { display: block; font-style: normal; color: var(--muted-2); font-size: 11px; }
.mini-stats strong { font-size: 15px; }

/* Game head */
.game-head-panel { padding: 22px 24px; margin-bottom: 20px; }
.game-head { display: flex; gap: 20px; align-items: flex-start; }
.game-head-main { flex: 1; min-width: 0; }
.game-head-main h2 { font-size: 23px; margin: 4px 0 3px; }
.game-head-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.head-metrics { display: flex; gap: 34px; margin-top: 16px; flex-wrap: wrap; }
.head-metrics em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.head-metrics strong { font-size: 17px; }
.key-box { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; padding: 14px 18px; background: #f8fafd; border: 1px dashed var(--line-strong); border-radius: 11px; align-items: center; }
.key-box em { display: block; font-style: normal; color: var(--muted-2); font-size: 11px; }
.key-box span { font-size: 12.5px; }
.detail-top { margin-bottom: 14px; }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.res-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.res-top { display: flex; gap: 10px; align-items: center; }
.res-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.res-top strong { display: block; font-size: 13.5px; }
.res-top em { display: block; font-style: normal; color: var(--muted-2); font-size: 11.5px; }
.res-cond { color: var(--muted); font-size: 12.5px; line-height: 1.7; flex: 1; }
.res-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 11.5px; }

/* Timeline */
.timeline { padding: 14px 20px; }
.timeline li { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e7; margin-top: 5px; flex: 0 0 auto; position: relative; z-index: 1; }
.tl-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.tl-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.tl-dot.danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.tl-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tl-top strong { font-size: 13px; }
.tl-body p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tl-body em { font-style: normal; color: var(--muted-2); font-size: 11px; }

/* Materials */
.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.material-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.material-ico { width: 42px; height: 42px; border-radius: 10px; background: #f2f5fc; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.material-main { flex: 1; min-width: 0; }
.material-main strong { display: block; font-size: 13.5px; }
.material-main em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; }
.material-main span { display: block; }

/* Share */
.share-note { padding: 20px; }
.share-formula { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: #f8fafd; border-radius: 10px; font-size: 12px; color: var(--ink-2); }
.share-formula span { padding: 3px 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.share-formula span.hl { border-color: #c9d5ff; background: var(--brand-soft); }
.share-formula i { font-style: normal; color: var(--muted-2); }
.share-note p { color: var(--muted); font-size: 12.5px; line-height: 1.8; margin: 12px 0; }
.share-note .kv-list { padding: 0; }
.share-note .kv-list li { padding-left: 0; padding-right: 0; }

/* Forms */
.game-form .panel { margin-bottom: 20px; }
.game-form .panel > .form-grid { padding: 22px 24px; }
.game-form .panel > .stack-form { padding: 20px 22px; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 0 10px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }
.link-mini { color: var(--brand); font-size: 11.5px; margin-left: 6px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(17, 24, 39, .42); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 440px; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(17, 24, 39, .25); animation: modalIn .22s ease; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 460px; transform: scale(.92); transform-origin: center; }
}
@media (max-width: 1024px) {
  .hero-copy h1 { font-size: 42px; }
  .hero-grid { gap: 10px; }
  .visual-card { width: 200px; }
  .vc-main { width: 220px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { min-height: 100vh; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  .sidebar.open { transform: none; }
  .console-main { margin-left: 0; }
  .topbar-left .nav-toggle { display: inline-flex; }
  .sidebar-mask.open { display: block; position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 55; }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 60px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 28px; }
  .two-col, .footer-grid, .contact-grid, .apply-grid, .about-stats { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 38px 32px; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 24px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid #f2f5fa; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-cover { width: 130px; height: 130px; border-radius: 20px; }
  .detail-info h1 { font-size: 30px; }
  .detail-side { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .res-grid, .material-grid { grid-template-columns: 1fr; }
  .article-prose { padding: 24px 22px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .hero-copy h1 { font-size: 34px; }
  .hero-desc { font-size: 14.5px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .game-grid, .game-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .game-body h3 { font-size: 14.5px; }
  .game-body p { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .two-col, .footer-grid, .contact-grid, .apply-grid, .form-grid, .form-grid.form-grid-3, .stat-grid, .stat-grid-3, .stat-grid-4, .detail-side { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .detail-info h1 { font-size: 26px; }
  .detail-meta { gap: 22px; }
  .article-hero h1 { font-size: 24px; }
  .article-item { padding: 18px; gap: 14px; }
  .article-date { flex-basis: 48px; }
  .article-date strong { font-size: 20px; }
  .article-body p { display: none; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .auth-form-side { padding: 70px 24px 40px; }
  .auth-form-side > .back-link { left: 24px; top: 22px; }
  .topbar { padding: 0 16px; height: 62px; }
  .topbar-date, .user-meta { display: none; }
  .console-content { padding: 16px 14px 40px; }
  .stat-card strong { font-size: 19px; }
  .chart-bars { gap: 3px; padding: 16px 12px 4px; height: 170px; }
  .chart-col em { font-size: 8px; }
  .filter-bar { padding: 12px; }
  .field-inline input { min-width: 120px; }
  .search-inline { min-width: 100%; }
  .select, .input { flex: 1; min-width: 0; }
  .input.date { width: 100%; }
  .panel-head { padding: 13px 15px; }
  .games-head, .game-head { flex-direction: column; }
  .game-head-actions { align-items: flex-start; }
  .key-box { gap: 14px; }
  .pager { justify-content: center; }
  .pager-info { width: 100%; text-align: center; margin: 4px 0 0; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}
