/* ============ SCUM 服务器站 - 军事暗色主题 ============ */
:root {
  --bg: #0b0d09;
  --bg2: #10130d;
  --panel: #161a11;
  --panel2: #1c2115;
  --border: #2b331f;
  --border2: #3a4529;
  --text: #e8e6dd;
  --text-dim: #9aa18a;
  --text-faint: #6b7260;
  --accent: #e8622c;
  --accent-h: #f97a45;
  --lime: #a3c94a;
  --gold: #d9a53c;
  --red: #d8453c;
  --green: #6fbf4e;
  --blue: #5b9bd5;
  --pink: #d95ba8;
  --radius: 10px;
  --mono: 'Consolas', 'Courier New', monospace;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 15px; line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232,98,44,.07), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.006) 3px, rgba(255,255,255,.006) 4px);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color:#fff; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top:0; z-index:100;
  background: rgba(11,13,9,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:18px; height:60px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; letter-spacing:1px; cursor:pointer; flex-shrink:0; }
.brand .logo {
  width:34px; height:34px; border-radius:7px; display:grid; place-items:center;
  background: linear-gradient(135deg, #e8622c, #b34417); color:#fff; font-size:16px; font-weight:900;
  box-shadow: 0 0 18px rgba(232,98,44,.35);
}
.brand .sub { font-size:10px; font-weight:600; color: var(--text-faint); letter-spacing:2px; display:block; }
.nav-links { display:flex; gap:2px; flex:1; overflow-x:auto; scrollbar-width:none; }
.nav-links::-webkit-scrollbar { display:none; }
.nav-links a {
  padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--text-dim);
  white-space: nowrap; transition: .15s; border:1px solid transparent; cursor:pointer;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--accent-h); background: rgba(232,98,44,.1); border-color: rgba(232,98,44,.25); }
/* 移动端汉堡菜单 */
.nav-toggle {
  display:none; background:none; border:none; color:var(--text-dim);
  font-size:26px; cursor:pointer; min-width:46px; min-height:46px;
  padding:6px 12px; line-height:1; -webkit-tap-highlight-color: transparent;
  position:relative; z-index:110; touch-action: manipulation;
}
@media (max-width: 860px) {
  .nav-toggle { display:block; padding:10px 14px; min-width:48px; min-height:48px; }
  .nav-links {
    position:absolute; top:60px; left:0; right:0;
    background: rgba(11,13,9,.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 8px 16px; gap:4px;
    display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 10px 14px; border-radius: 6px; }
}
.topbar-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.lang-btn {
  padding: 5px 10px; font-size:12px; font-weight:700; border-radius:6px; cursor:pointer;
  border:1px solid var(--border2); background: var(--panel); color: var(--text-dim); letter-spacing:1px;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }
.lang-wrap { position: relative; display: inline-block; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px; z-index: 1000;
  background: var(--panel); border: 1px solid var(--border2); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; padding: 4px;
}
.lang-menu a {
  display: block; padding: 8px 12px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; border-radius: 6px; white-space: nowrap;
}
.lang-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-menu a.active { color: var(--accent); font-weight: 700; }
.lang-menu.hidden { display: none; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding: 8px 16px; border-radius: 7px; font-size:14px; font-weight:600; cursor:pointer;
  border:1px solid transparent; transition:.15s; font-family:inherit;
}
.btn-primary { background: linear-gradient(135deg,#e8622c,#c94e1a); color:#fff; box-shadow: 0 2px 12px rgba(232,98,44,.3); }
.btn-primary:hover { background: linear-gradient(135deg,#f97a45,#e8622c); transform: translateY(-1px); }
.btn-primary:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.btn-outline { background:transparent; border-color: var(--border2); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost { background: var(--panel); border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-sm { padding:5px 12px; font-size:13px; }
.btn-lg { padding: 12px 28px; font-size:16px; }
.username-chip {
  display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:7px;
  background: var(--panel); border:1px solid var(--border); color: var(--lime); font-weight:600; font-size:13px; cursor:pointer;
}
.username-chip .dot { width:7px; height:7px; border-radius:50%; background: var(--green); }
.admin-badge { background: rgba(217,165,60,.15); color: var(--gold); border:1px solid rgba(217,165,60,.4); padding:1px 7px; border-radius:4px; font-size:11px; font-weight:700; }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding: 36px 0 60px; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(10px);} to { opacity:1; transform:none; } }
.page-head { margin-bottom: 28px; }
.eyebrow { font-size:12px; font-weight:700; letter-spacing:3px; color: var(--accent); text-transform:uppercase; display:flex; align-items:center; gap:10px; }
.eyebrow::before { content:''; width:26px; height:2px; background: var(--accent); }
.page-title { font-size:30px; font-weight:800; margin:8px 0 6px; letter-spacing:.5px; }
.page-desc { color: var(--text-dim); font-size:14.5px; max-width:640px; }
.grid { display:grid; gap:16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3,.g4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size:16px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.panel h3 .ic { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position:relative; padding: 90px 0 80px; text-align:center; overflow:hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 30%, rgba(163,201,74,.06), transparent),
    linear-gradient(180deg, rgba(232,98,44,.08), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 13px; }
  .hero .tagline { font-size: 14px; }
  .page { padding: 20px 0 40px; }
  .page-title { font-size: 22px; }
  .container { padding: 0 14px; }
}
.hero::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(232,98,44,.05) 119px 120px),
              repeating-linear-gradient(0deg, transparent 0 119px, rgba(232,98,44,.05) 119px 120px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-status {
  display:inline-flex; align-items:center; gap:8px; padding:6px 16px; border-radius:99px;
  background: rgba(111,191,78,.08); border:1px solid rgba(111,191,78,.3); color: var(--green);
  font-size:13px; font-weight:600; letter-spacing:1px; margin-bottom:22px;
}
.hero-status .dot { width:8px; height:8px; border-radius:50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(111,191,78,.5);} 50%{ box-shadow:0 0 0 6px rgba(111,191,78,0);} }
.hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight:900; letter-spacing:2px; line-height:1.2; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { color: var(--text-dim); font-size:15px; margin-top:12px; letter-spacing:1px; font-family: var(--mono); }
.hero .tagline { margin-top:14px; font-size:16px; color: var(--lime); font-weight:600; }
.hero-cta { margin-top:34px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* PVE 横幅 */
.pve-banner {
  max-width:1200px; margin: 24px auto 0; padding: 18px 24px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(91,155,213,.12), rgba(91,155,213,.03));
  border:1px solid rgba(91,155,213,.3); display:flex; align-items:center; gap:18px; flex-wrap:wrap; position:relative; z-index:1;
}
.pve-tag { background: var(--blue); color:#fff; font-size:12px; font-weight:700; padding:3px 10px; border-radius:5px; letter-spacing:1px; }
.pve-info { flex:1; min-width:220px; }
.pve-name { font-weight:800; font-size:16px; }
.pve-desc { color: var(--text-dim); font-size:13px; }
.pve-feat { font-size:12px; color: var(--blue); font-family: var(--mono); }

/* 信息卡 */
.info-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-top:26px; }
@media (max-width:900px){ .info-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .info-grid{grid-template-columns:1fr;} }
.info-card { background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); padding:16px 18px; }
.info-card .k { font-size:12px; color: var(--text-faint); letter-spacing:1px; margin-bottom:4px; }
.info-card .v { font-size:15px; font-weight:700; color: var(--lime); font-family: var(--mono); }
.quick-card {
  display:flex; align-items:center; gap:14px;
  background: var(--panel); border:1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  cursor:pointer; transition:.15s; min-height: 64px;
}
.quick-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(232,98,44,.12); }
.quick-card .ic { width:48px; height:48px; border-radius: 12px; display:grid; place-items:center; font-size:24px; flex-shrink:0; }
.qt { font-weight:700; font-size:16px; color: var(--text); } .qs { font-size:13px; color: var(--text-dim); font-family:var(--mono); margin-top:2px; }

/* 地图图例 */
.zone-item { display:flex; gap:14px; padding:14px; border-radius:8px; background: var(--panel); border:1px solid var(--border); }
.zone-swatch { width:46px; height:46px; border-radius:8px; flex-shrink:0; display:grid; place-items:center; font-weight:900; font-size:14px; color:rgba(0,0,0,.65); }
.z-orange{background:#e8892c;} .z-green{background:#6fbf4e;} .z-red{background:#d8453c; color:rgba(255,255,255,.85);} .z-pink{background:#d95ba8; color:rgba(255,255,255,.85);} .z-blue{background:#5b9bd5;}
.danger-tip { margin-top:18px; padding:16px 18px; border-radius:8px; background: rgba(216,69,60,.08); border:1px solid rgba(216,69,60,.35); display:flex; gap:12px; align-items:flex-start; }

/* 规则 */
.rule-cat { background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); padding:20px 22px; }
.rule-cat h3 { font-size:15px; font-weight:700; margin-bottom:12px; color: var(--accent-h); display:flex; align-items:center; gap:8px; }
.rule-cat h3 .n { background: rgba(232,98,44,.15); border:1px solid rgba(232,98,44,.35); width:26px; height:26px; border-radius:6px; display:grid; place-items:center; font-size:13px; color: var(--accent); }
.rule-cat ol { padding-left:20px; }
.rule-cat li { margin: 8px 0; color: var(--text-dim); font-size:14px; }
.rule-cat li::marker { color: var(--accent); font-weight:700; }

/* 表格 */
.tbl-wrap { overflow-x:auto; border:1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table.tbl { width:100%; border-collapse:collapse; font-size:14px; min-width: 560px; }
.tbl th { text-align:left; padding:12px 14px; background: var(--panel2); color: var(--text-faint); font-size:12.5px; letter-spacing:1px; border-bottom:1px solid var(--border); white-space:nowrap; }
.tbl td { padding:11px 14px; border-bottom:1px solid rgba(43,51,31,.5); color: var(--text-dim); }
.tbl tr:last-child td { border-bottom:none; }
.tbl tr:hover td { background: rgba(232,98,44,.03); }
.tbl .price-c { color: var(--gold); font-weight:700; font-family:var(--mono); }
.tbl .price-u { color: var(--text-faint); font-family:var(--mono); }

/* 表单 */
.type-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2); color: var(--text-dim);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .15s;
  font-family: inherit;
}
.type-chip:hover {
  border-color: var(--accent); color: var(--text);
  background: var(--panel);
}
.type-chip.active {
  background: linear-gradient(135deg, rgba(232,98,44,.18), rgba(232,98,44,.08));
  border-color: var(--accent); color: var(--accent-h);
  box-shadow: 0 0 0 3px rgba(232,98,44,.12);
}
.type-chip.active::before {
  content: '✓'; font-size: 12px; font-weight: 700;
}
.form { display:grid; gap:16px; }
.f-row { display:grid; gap:16px; grid-template-columns: 1fr 1fr; }
@media (max-width:640px){ .f-row{grid-template-columns:1fr;} }
.field label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color: var(--text-dim); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width:100%; padding:10px 14px; border-radius:8px; border:1px solid var(--border2);
  background: var(--bg2); color: var(--text); font-size:14px; font-family:inherit; transition:.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,98,44,.12); }
.field textarea { min-height:120px; resize:vertical; }
.field .hint { font-size:12px; color: var(--text-faint); margin-top:4px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); }
.f-err { font-size:12.5px; color: var(--red); margin-top:4px; }

/* 上传 */
.dropzone {
  border:2px dashed var(--border2); border-radius:10px; padding:26px; text-align:center;
  color: var(--text-faint); cursor:pointer; transition:.15s; font-size:14px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(232,98,44,.04); color: var(--text-dim); }
.dropzone .ic { font-size:28px; margin-bottom:6px; }
.f-meta { font-size:12px; color: var(--text-faint); margin-top:8px; }
.file-chip { display:flex; align-items:center; gap:8px; background:var(--panel2); border:1px solid var(--border); border-radius:7px; padding:8px 12px; margin-top:8px; font-size:13px; font-family:var(--mono); }
.file-chip .x { cursor:pointer; color:var(--red); font-weight:700; margin-left:auto; }

/* 转盘 */
.wheel-layout { display:grid; grid-template-columns: 420px 1fr; gap:26px; align-items:start; }
@media (max-width:960px){ .wheel-layout{grid-template-columns:1fr;} }
.wheel-box { position:relative; display:grid; place-items:center; padding: 16px; background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); }
.wheel-svg { width:100%; max-width:380px; height:auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.wheel-pointer { position:absolute; top:6px; left:50%; transform:translateX(-50%); font-size:26px; z-index:2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.wheel-hub { position:absolute; width:74px; height:74px; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:15px; color:#fff; background: radial-gradient(circle at 35% 30%, #f97a45, #b34417); border:4px solid #0b0d09; cursor:pointer; z-index:2; box-shadow: 0 4px 18px rgba(232,98,44,.4); transition:.2s; user-select:none; }
.wheel-hub:hover { transform: scale(1.05); }
.wheel-hub.spinning { pointer-events:none; }
.chip { display:inline-block; padding:6px 14px; border-radius:99px; background:var(--panel2); border:1px solid var(--border2); font-size:13.5px; color:var(--text-dim); }
.chip b { color: var(--lime); }
.record-list { max-height: 560px; overflow-y:auto; }
.record-row { display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid rgba(43,51,31,.5); font-size:14px; }
.record-row .u { color: var(--lime); font-weight:600; min-width:90px; }
.record-row .p { color: var(--gold); flex:1; }
.record-row .t { color: var(--text-faint); font-size:12px; font-family:var(--mono); }

/* 论坛 */
.board-card { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:18px; cursor:pointer; transition:.15s; display:flex; gap:14px; align-items:flex-start; }
.board-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.board-icon { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; font-size:21px; flex-shrink:0; }
.post-row { display:flex; gap:14px; padding:14px; border-radius:8px; border:1px solid var(--border); background:var(--panel); margin-bottom:10px; transition:.15s; cursor:pointer; }
.post-row:hover { border-color: var(--border2); background: var(--panel2); }
.post-row.pinned { border-left: 3px solid var(--gold); }
.avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:800; color:#fff; flex-shrink:0; font-size:16px; }
.post-main { flex:1; min-width:0; }
.post-title { font-weight:700; font-size:15px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.post-title .pin-tag { font-size:11px; background:rgba(217,165,60,.15); color:var(--gold); border:1px solid rgba(217,165,60,.35); padding:1px 8px; border-radius:4px; }
.status-tag { font-size:11px; padding:1px 8px; border-radius:4px; font-weight:700; }
.status-tag.open { background:rgba(230,162,60,.15); color:#e6a23c; border:1px solid rgba(230,162,60,.4); }
.status-tag.resolved { background:rgba(103,194,58,.15); color:#67c23a; border:1px solid rgba(103,194,58,.4); }
.post-meta { font-size:12.5px; color: var(--text-faint); margin-top:4px; display:flex; gap:14px; flex-wrap:wrap; }
.post-preview { font-size:13.5px; color: var(--text-dim); margin-top:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reply-item { display:flex; gap:12px; padding:14px; border-top:1px solid rgba(43,51,31,.5); }
.reply-bubble { background: var(--panel2); border-radius: 0 10px 10px 10px; padding: 10px 14px; flex:1; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(5,6,4,.75); backdrop-filter:blur(4px); display:grid; place-items:center; z-index:200; animation: fadeUp .2s; padding:20px; }
.modal { background: var(--panel); border:1px solid var(--border2); border-radius:14px; padding:30px; max-width:460px; width:100%; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal h3 { font-size:20px; margin-bottom:8px; }
.modal .sub { color: var(--text-dim); font-size:14px; margin-bottom:18px; }
.prize-big { text-align:center; padding: 18px 0 8px; }
.prize-big .pr { font-size:28px; font-weight:900; color: var(--gold); }
.prize-big .emo { font-size:52px; margin-bottom:6px; }

/* Toast */
.toast-wrap { position:fixed; top:74px; right:20px; z-index:300; display:flex; flex-direction:column; gap:10px; }
.toast { padding:12px 18px; border-radius:9px; font-size:14px; font-weight:600; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.4); animation: slideIn .25s; max-width: 340px; }
.toast.ok { background: linear-gradient(135deg, #4e8f3a, #3a6f2a); }
.toast.err { background: linear-gradient(135deg, #c1443c, #93332d); }
.toast.info { background: linear-gradient(135deg, #3d5a75, #2c4356); }
@keyframes slideIn { from{ transform: translateX(30px); opacity:0;} to{ transform:none; opacity:1;} }

/* 页脚 */
.footer { border-top:1px solid var(--border); background: var(--bg2); padding: 40px 0 26px; margin-top:40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:30px; }
@media (max-width:760px){ .footer-grid{grid-template-columns:1fr;} }
.footer h4 { font-size:14px; margin-bottom:12px; color: var(--text); }
.footer .fl { display:flex; flex-direction:column; gap:6px; }
.footer .fl a { color: var(--text-dim); font-size:13.5px; cursor:pointer; }
.footer .fl a:hover { color: var(--accent-h); }
.footer-bottom { border-top:1px solid var(--border); margin-top:26px; padding-top:18px; display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:12.5px; color: var(--text-faint); }

/* 空状态 */
.empty { text-align:center; padding: 40px 20px; color: var(--text-faint); }
.empty .ic { font-size:38px; margin-bottom:10px; opacity:.5; }

/* 举报成功卡 */
.report-ok { border:1px solid rgba(111,191,78,.4); background: rgba(111,191,78,.07); border-radius: var(--radius); padding:22px; }
.report-text-pre { background: var(--bg2); border:1px solid var(--border); border-radius:8px; padding:16px; font-family: var(--mono); font-size:13.5px; white-space:pre-wrap; color: var(--text-dim); margin: 12px 0; }
.status-badge { padding:2px 10px; border-radius:99px; font-size:12px; font-weight:700; }
.st-pending { background:rgba(217,165,60,.15); color:var(--gold); }
.st-reviewing { background:rgba(91,155,213,.15); color:var(--blue); }
.st-approved, .st-banned { background:rgba(111,191,78,.15); color:var(--green); }
.st-rejected { background:rgba(216,69,60,.15); color:var(--red); }

/* 认证卡片 */
.auth-card { max-width:420px; margin:0 auto; }
.tabs { display:flex; gap:4px; background: var(--bg2); border-radius:8px; padding:4px; margin-bottom:18px; }
.tabs button { flex:1; padding:9px; border:none; background:transparent; color:var(--text-dim); border-radius:6px; cursor:pointer; font-size:14px; font-weight:600; font-family:inherit; }
.tabs button.active { background: var(--panel2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* 滚动条 */
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius:5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 悬浮在线聊天小窗 ---------- */
.chat-fab {
  position: fixed; right:22px; bottom:22px; z-index:200;
  width:54px; height:54px; border-radius:50%;
  background: linear-gradient(135deg, #e8622c, #b34417); color:#fff;
  display:grid; place-items:center; font-size:23px; cursor:pointer;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 26px rgba(232,98,44,.45);
  transition: transform .18s, box-shadow .18s; user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(232,98,44,.6); }
.chat-fab .badge {
  position:absolute; top:-5px; right:-5px; min-width:21px; height:21px; border-radius:11px;
  background: var(--red); color:#fff; font-size:11px; font-weight:700;
  display:none; align-items:center; justify-content:center; padding:0 5px;
  border:2px solid var(--bg);
}
.chat-fab .badge.on { display:flex; }
.chat-panel {
  position: fixed; right:22px; bottom:88px; z-index:201;
  width:340px; max-width: calc(100vw - 44px);
  height:460px; max-height: calc(100vh - 130px);
  background: rgba(16,19,13,.98); border:1px solid var(--border2); border-radius:14px;
  display:none; flex-direction:column; overflow:hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.65); backdrop-filter: blur(12px);
}
.chat-panel.open { display:flex; animation: chatPop .18s ease-out; }
@keyframes chatPop { from { opacity:0; transform: translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
.chat-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid var(--border); background: rgba(28,33,21,.65);
}
.chat-title { display:flex; align-items:center; gap:8px; font-weight:800; font-size:14px; letter-spacing:.5px; }
.chat-title .dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); }
.chat-close { cursor:pointer; color:var(--text-dim); font-size:15px; padding:3px 7px; border-radius:6px; line-height:1; }
.chat-close:hover { color:var(--text); background:var(--panel); }
.chat-body { flex:1; overflow-y:auto; padding:12px; scroll-behavior:smooth; }
.chat-empty { text-align:center; color:var(--text-faint); font-size:13px; padding:30px 10px; }
.chat-msg { display:flex; flex-direction:column; align-items:flex-start; margin-bottom:11px; }
.chat-msg.mine { align-items:flex-end; }
.chat-msg-meta { display:flex; gap:6px; align-items:center; font-size:11px; color:var(--text-faint); margin-bottom:3px; }
.chat-msg-name { font-weight:700; color:var(--text-dim); }
.chat-msg-name.admin { color:var(--gold); }
.chat-admin-badge { font-size:10px; background:rgba(217,165,60,.14); color:var(--gold); border:1px solid rgba(217,165,60,.4); border-radius:4px; padding:0 4px; line-height:1.5; }
.chat-msg-time { font-family:var(--mono); }
.chat-msg-bubble {
  max-width:82%; background:var(--panel2); border:1px solid var(--border);
  border-radius:10px 10px 10px 3px; padding:7px 11px; font-size:13.5px; line-height:1.5;
  word-break:break-word; white-space:pre-wrap;
}
.chat-msg.mine .chat-msg-bubble { background:rgba(232,98,44,.13); border-color:rgba(232,98,44,.35); border-radius:10px 10px 3px 10px; }
.chat-foot { display:flex; gap:8px; padding:10px; border-top:1px solid var(--border); background:rgba(28,33,21,.65); }
.chat-foot input {
  flex:1; min-width:0; background:var(--bg2); border:1px solid var(--border); border-radius:8px;
  padding:8px 10px; color:var(--text); font-size:13px; outline:none; font-family:inherit;
}
.chat-foot input:focus { border-color:var(--accent); }
.chat-login-tip { flex:1; font-size:12.5px; color:var(--text-dim); padding:5px 0; }
@media (max-width: 480px) {
  .chat-fab { right:14px; bottom:14px; }
  .chat-panel { right:10px; left:10px; width:auto; max-width:none; bottom:80px; height:60vh; }
}
