/*!
 * lonely网络信息临时工作室 · 前端站点
 * 文件：assets/css/main.css
 * 版权所有 (c) 2026 lonely网络信息临时工作室。保留所有权利。
 */

:root {
  --bg: #060e1c;
  --bg-2: #0a182e;
  --panel: rgba(13, 30, 54, 0.82);
  --panel-solid: #0d1f39;
  --line: rgba(90, 160, 240, 0.22);
  --line-strong: rgba(110, 180, 255, 0.45);
  --text: #e8f1ff;
  --text-dim: #9db4d0;
  --accent: #4fa8ff;
  --accent-2: #7fd3ff;
  --ok: #38d39f;
  --warn: #ffb340;
  --danger: #ff5d6c;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(45, 110, 200, 0.28), transparent 62%),
    radial-gradient(900px 500px at 90% 10%, rgba(30, 80, 160, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

::selection { background: rgba(79, 168, 255, 0.35); }

/* ---------------- 布局 ---------------- */
.wrap { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 14, 28, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); }
.brand-name { font-weight: 700; letter-spacing: 0.4px; font-size: 16px; }
.brand-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 2px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--text-dim);
  font-size: 14px; text-decoration: none; transition: 0.18s;
  border: 1px solid transparent;
}
.nav a:hover { color: #fff; background: rgba(79, 168, 255, 0.1); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(79, 168, 255, 0.16); border-color: var(--line-strong); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--accent-2);
  background: rgba(79, 168, 255, 0.1); white-space: nowrap;
}
.mode-pill.real { color: var(--warn); border-color: rgba(255, 179, 64, 0.5); background: rgba(255, 179, 64, 0.1); }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.card-desc { color: var(--text-dim); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(79,168,255,0.22), rgba(79,168,255,0.1));
  color: #eaf4ff; font-size: 14px; font-family: inherit;
  transition: 0.16s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); background: rgba(79,168,255,0.3); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: #fff; border-color: var(--line-strong); }
.btn.danger { background: rgba(255, 93, 108, 0.16); border-color: rgba(255,93,108,0.5); color: #ffc4ca; }
.btn.ok { background: rgba(56, 211, 159, 0.16); border-color: rgba(56,211,159,0.5); color: #b8f3dd; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(4, 12, 24, 0.72);
  border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: 0.16s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 168, 255, 0.16);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--accent-2);
  background: rgba(79, 168, 255, 0.1); white-space: nowrap;
}
.tag.warn { color: var(--warn); border-color: rgba(255,179,64,0.45); background: rgba(255,179,64,0.1); }
.tag.ok { color: var(--ok); border-color: rgba(56,211,159,0.45); background: rgba(56,211,159,0.1); }
.tag.danger { color: var(--danger); border-color: rgba(255,93,108,0.45); background: rgba(255,93,108,0.1); }
.tag.sub-admin { color: #ffd79a; border-color: rgba(255,179,64,0.45); background: rgba(255,179,64,0.12); }
.tag.main-admin { color: #b6e0ff; border-color: var(--line-strong); background: rgba(79,168,255,0.14); }

.empty { color: var(--text-dim); text-align: center; padding: 28px 10px; font-size: 14px; }

/* ---------------- 首页三栏广告位 ---------------- */
.ad-stage {
  display: grid;
  grid-template-columns: 1fr 2.1fr 1fr;
  gap: 16px;
  margin: 22px 0 8px;
  align-items: stretch;
  min-height: 340px;
}
.ad-slot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0c1c33, #08131f);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.ad-slot.mid { border-color: var(--line-strong); box-shadow: 0 24px 64px rgba(20, 90, 180, 0.32); }
.ad-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-link { position: absolute; inset: 0; z-index: 2; }
.ad-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 26px 14px 12px; font-size: 12px; color: #dfeaff;
  background: linear-gradient(transparent, rgba(3, 9, 18, 0.9));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.ad-dots { display: flex; gap: 5px; }
.ad-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3);
  display: block;
}
.ad-dots i.on { background: var(--accent-2); }
.ad-empty { color: var(--text-dim); font-size: 13px; text-align: center; padding: 20px; }
.ad-name {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  color: #e8f1ff; background: rgba(3, 9, 18, 0.72);
  border: 1px solid var(--line); max-width: calc(100% - 20px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none;
}

/* ---------------- 首页顶部信息条（公告 + 更新日志） ---------------- */
.top-news {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 16px; padding: 16px 18px;
}
.top-news-col { min-width: 0; }
.top-news-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--accent-2);
}
.top-news-head a { color: var(--text-dim); text-decoration: none; }
.top-news-head a:hover { color: var(--accent-2); }
.top-news-title {
  font-size: 15px; font-weight: 600; margin: 2px 0 0;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  overflow: hidden; text-overflow: ellipsis;
}
.top-news-body {
  font-size: 13px; color: var(--text-dim); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- 首页顶部四个广告位 ---------------- */
.ad-row-4 {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 4px;
}
.ad-row-4 .ad-slot { min-height: 190px; }
.ad-row-4 .ad-slot .ad-caption { padding: 20px 10px 10px; font-size: 11.5px; }

/* ---------------- 公告 ---------------- */
.notice-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-title { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-body { color: #cfe0f4; font-size: 14px; margin-top: 6px; white-space: pre-wrap; }
.notice-meta { font-size: 12px; color: var(--text-dim); margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.notice-gallery img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in;
}
.sub-tag {
  display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 6px;
  color: #ffd79a; background: rgba(255, 179, 64, 0.12);
  border: 1px dashed rgba(255, 179, 64, 0.5); line-height: 1.5;
}

/* ---------------- 评论 ---------------- */
.comment { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.comment:last-child { border-bottom: none; }
.comment.pinned { background: rgba(79, 168, 255, 0.06); border-radius: 10px; padding: 14px; margin-bottom: 8px; }
.comment-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(140deg, #1d4f8c, #0e2b52);
  border: 1px solid var(--line-strong); color: #d7ebff;
}
.comment-name { font-weight: 600; font-size: 14px; }
.comment-body { margin: 8px 0 0 44px; color: #d8e7f7; white-space: pre-wrap; }
.comment-reply {
  margin: 10px 0 0 44px; padding: 11px 13px; border-radius: 10px;
  background: rgba(79, 168, 255, 0.08); border-left: 3px solid var(--accent);
  font-size: 13px; color: #cfe0f4;
}
.comment-reply .who { font-size: 12px; color: var(--accent-2); margin-bottom: 4px; }
.comment-actions { margin: 8px 0 0 44px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 游戏 / 规则 ---------------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.game-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  background: linear-gradient(160deg, rgba(19, 44, 78, 0.7), rgba(8, 19, 33, 0.7));
  cursor: pointer; transition: 0.18s;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card h4 { margin: 0 0 6px; font-size: 15px; }
.game-card p { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.rule-block { margin-bottom: 16px; }
.rule-block h4 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.rule-block p { margin: 0; font-size: 13.5px; color: #cfe0f4; white-space: pre-wrap; }
.rule-block ul { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; color: #cfe0f4; }
.room-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.room-row:last-child { border-bottom: none; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
table.tbl th, table.tbl td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl th { background: rgba(79, 168, 255, 0.08); color: #cfe3ff; font-weight: 600; white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 8, 16, 0.78); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
/* 关键修复：HTML hidden 属性必须能真正隐藏遮罩，否则弹窗默认常显 */
.modal-mask[hidden] { display: none !important; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 10px; font-size: 17px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal.wide { width: min(880px, 100%); }

/* ---------------- 提示条 ---------------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 15px; border-radius: 10px; font-size: 13.5px; max-width: 360px;
  background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); animation: toastIn 0.2s ease-out;
}
.toast.ok { border-color: rgba(56,211,159,0.6); }
.toast.err { border-color: rgba(255,93,108,0.6); }
.toast em { color: var(--accent-2); font-style: normal; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 人机滑块验证 ---------------- */
.captcha { display: flex; align-items: center; gap: 10px; }
.captcha-track { position: relative; flex: 1 1 auto; min-width: 0; }
.captcha-gap {
  position: absolute; top: 50%; width: 34px; height: 34px;
  margin-left: -17px; transform: translateY(-50%);
  border: 2px dashed rgba(233, 242, 255, 0.92);
  border-radius: 9px;
  background: rgba(2, 8, 18, 0.45);
  box-shadow: 0 0 12px rgba(79, 168, 255, 0.55), inset 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none; z-index: 3;
}
.captcha.is-pass .captcha-gap {
  border-color: var(--ok); border-style: solid;
  box-shadow: 0 0 14px rgba(53, 208, 127, 0.75);
  background: rgba(53, 208, 127, 0.16);
}
.captcha input[data-locked="1"] { cursor: default; opacity: 0.9; }
.captcha input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 42px; border-radius: 10px; cursor: grab;
  background: linear-gradient(90deg, rgba(79,168,255,0.28) var(--p, 0%), rgba(4,12,24,0.8) var(--p, 0%));
  border: 1px solid var(--line); outline: none;
}
.captcha input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 42px; height: 38px; border-radius: 9px;
  background: linear-gradient(180deg, #2f7fd4, #1a4f8c);
  border: 1px solid var(--accent); cursor: grab;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.captcha input[type="range"]::-moz-range-thumb {
  width: 42px; height: 38px; border-radius: 9px;
  background: linear-gradient(180deg, #2f7fd4, #1a4f8c);
  border: 1px solid var(--accent); cursor: grab;
}
.captcha-state { font-size: 12.5px; color: var(--text-dim); min-width: 76px; text-align: right; }
.captcha-state.pass { color: var(--ok); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: 44px; padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.site-footer .foot-hint { color: rgba(157, 180, 208, 0.6); }

/* ---------------- 评分条 / 进度 ---------------- */
.bar { height: 7px; border-radius: 999px; background: rgba(4,12,24,0.8); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: linear-gradient(160deg, rgba(19,44,78,0.6), rgba(8,19,33,0.6));
}
.stat b { display: block; font-size: 22px; color: #fff; line-height: 1.3; }
.stat span { font-size: 12px; color: var(--text-dim); }

/* ---------------- 后台布局 ---------------- */
.admin-shell { display: grid; grid-template-columns: 226px 1fr; min-height: 100vh; }
.admin-side {
  border-right: 1px solid var(--line); padding: 20px 14px;
  background: rgba(6, 14, 28, 0.9);
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.admin-side .brand { margin-bottom: 16px; }
.admin-side .side-label { font-size: 11px; color: var(--text-dim); letter-spacing: 2px; margin: 14px 8px 4px; }
.admin-side a.side-item {
  padding: 9px 12px; border-radius: 9px; color: var(--text-dim);
  font-size: 13.5px; text-decoration: none; border: 1px solid transparent;
}
.admin-side a.side-item:hover { color: #fff; background: rgba(79,168,255,0.1); text-decoration: none; }
.admin-side a.side-item.active { color: #fff; background: rgba(79,168,255,0.16); border-color: var(--line-strong); }
.admin-main { padding: 24px 26px 60px; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.admin-topbar h1 { margin: 0; font-size: 19px; }
.admin-topbar .spacer { margin-left: auto; }
.perm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); background: rgba(79,168,255,0.06);
  cursor: pointer; user-select: none;
}
.perm-chip.on { color: #fff; border-color: var(--accent); background: rgba(79,168,255,0.24); }
.perm-chip.locked { opacity: 0.5; cursor: not-allowed; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .ad-stage { grid-template-columns: 1fr 1.6fr; }
  .ad-slot.right { display: none; }
  .ad-row-4 { grid-template-columns: 1fr 1fr; }
  .top-news { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .brand { width: 100%; margin-bottom: 8px; }
  .admin-side .side-label { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; font-size: 13px; }
  .header-right { margin-left: auto; }
  .ad-stage { grid-template-columns: 1fr; min-height: 0; }
  .ad-slot { min-height: 200px; }
  .ad-slot.right { display: flex; }
  .ad-row-4 { grid-template-columns: 1fr; }
  .ad-row-4 .ad-slot { min-height: 170px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .comment-body, .comment-reply, .comment-actions { margin-left: 0; }
  .admin-main { padding: 16px 12px 50px; }
}

/* ---------------- 登录/注册 通道切换 ---------------- */
.ch-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 999px;
  background: rgba(12,26,48,.6);
  color: var(--muted, #9fb3c8);
  font-size: 13px;
  cursor: pointer;
  transition: .18s;
  user-select: none;
}
.ch-pill input { display: none; }
.ch-pill:hover { border-color: rgba(96,165,250,.65); }
.ch-pill:has(input:checked) {
  border-color: #60a5fa;
  background: rgba(37,99,235,.28);
  color: #e8f1ff;
  box-shadow: 0 0 0 1px rgba(96,165,250,.35);
}
.ch-pill:has(input:disabled) { opacity: .45; cursor: not-allowed; }
[data-ch-pane][hidden] { display: none !important; }

/* ---------------- 支付方式条 ---------------- */
.pay-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
}

/* ---------------- 订单交付信息 ---------------- */
.deliver-row td { background: rgba(79,168,255,0.05); }
.deliver-box {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: rgba(3,9,18,0.35);
}
.deliver-head {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 8px; font-size: 14px;
}
.deliver-item { margin-top: 8px; }
.deliver-k {
  display: block; font-size: 12px; color: var(--accent-2); margin-bottom: 4px;
}
.deliver-v {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; color: #dbe9fb;
}
.deliver-v code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: rgba(79,168,255,0.1); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; word-break: break-all;
}
.deliver-text { display: block; color: #cfe0f4; line-height: 1.75; white-space: pre-wrap; }

/* ---------------- 帮助中心 ---------------- */
.help-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.help-hero-main { flex: 1 1 360px; min-width: 0; }
.help-hero-main h1 { margin: 8px 0 0; font-size: 24px; }
.help-hero-side { flex: 0 1 320px; }
.help-chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--line-strong); color: var(--accent-2);
  background: rgba(79, 168, 255, 0.1);
}
.help-chip.ok { color: var(--ok); border-color: rgba(56,211,159,0.5); background: rgba(56,211,159,0.08); }
.help-chip.warn { color: var(--warn); border-color: rgba(255,179,64,0.5); background: rgba(255,179,64,0.08); }
.help-layout { margin-top: 18px; }
.help-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.help-tab-hint { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.help-chat {
  height: 420px; overflow-y: auto; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}
.help-empty { color: var(--text-dim); text-align: center; padding: 120px 12px; font-size: 14px; }
.help-msg { margin-bottom: 12px; max-width: 86%; }
.help-msg-who { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.help-msg-body {
  display: inline-block; padding: 9px 12px; border-radius: 12px;
  background: rgba(79, 168, 255, 0.12); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.help-msg.user { margin-left: auto; text-align: right; }
.help-msg.user .help-msg-body { background: rgba(56, 211, 159, 0.14); border-color: rgba(56,211,159,0.35); text-align: left; }
.help-msg.system { max-width: 100%; }
.help-msg.system .help-msg-body { background: rgba(255, 179, 64, 0.08); border-color: rgba(255,179,64,0.3); color: #ffe2b8; font-size: 13px; }
.help-form { margin-top: 12px; }
.help-input-row { display: flex; gap: 8px; }
.help-input-row .input { flex: 1; }
.help-switch {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 179, 64, 0.5); background: rgba(255, 179, 64, 0.08);
  font-size: 13px;
}
.help-switch-actions { display: flex; gap: 8px; margin-top: 10px; }
.help-note { margin-top: 12px; font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.help-faq { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.help-faq:last-child { border-bottom: none; }
.help-faq summary { cursor: pointer; color: #dcecff; }
.help-faq p { color: var(--text-dim); font-size: 13px; line-height: 1.8; margin: 8px 0 0; }
.help-schedule { font-size: 12.5px; line-height: 1.8; color: var(--text-dim); word-break: break-word; }

/* ---------------- 控制中心（lonely总部） ---------------- */
.hq-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hq-hero h1 { margin: 8px 0 0; font-size: 24px; }
.hq-hero .hq-hero-side { flex: 0 1 360px; }
.hq-table-wrap { overflow-x: auto; }
.hq-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hq-table th, .hq-table td {
  padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left; vertical-align: top; white-space: nowrap;
}
.hq-table th { color: var(--accent-2); font-weight: 600; background: rgba(255,255,255,0.03); }
.hq-table td.wrap-cell { white-space: normal; min-width: 180px; }
.hq-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--line-strong); }
.hq-status.ok { color: var(--ok); border-color: rgba(56,211,159,0.5); background: rgba(56,211,159,0.08); }
.hq-status.warn { color: var(--warn); border-color: rgba(255,179,64,0.5); background: rgba(255,179,64,0.08); }
.hq-status.danger { color: var(--danger); border-color: rgba(255,93,108,0.5); background: rgba(255,93,108,0.08); }
.hq-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hq-site-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,0.02); }
.hq-site-card h3 { margin: 0 0 6px; font-size: 15px; }
.hq-site-card .hint { margin: 0 0 10px; }
.hq-site-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hq-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }

/* ---------------- 后台客服工作台 ---------------- */
.support-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.support-list { max-height: 620px; overflow-y: auto; }
.support-item {
  display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; color: var(--text); background: rgba(255,255,255,0.02);
}
.support-item:hover { border-color: var(--line-strong); text-decoration: none; }
.support-item.active { border-color: var(--accent); background: rgba(79,168,255,0.12); }
.support-item .meta { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.support-thread { max-height: 480px; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.16); }
.support-thread .help-msg { max-width: 92%; }
@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
}
.btn.warn { background: rgba(255, 179, 64, 0.16); border-color: rgba(255,179,64,0.5); color: #ffe2b8; }
