/* ============================================================
   玩家社区 · 全站样式（纯静态，零依赖，离线可用）
   颜色/圆角/阴影严格取自 CONTRACT §6.1 设计令牌（与启动器 v2.1 同一套）
   背景 #FBFAF9  卡片 #FFFFFF  主文字 #1A1A2E  次要 #6B6B76  占位 #9A9AA5
   紫 #8865D6  浅紫 #E9E9FF  侧栏 #F6F5F4  边框 #ECEAE8  进度槽 #EFEDF8
   状态：灰 #9A9AA5  橙 #E8A33D  绿 #2FA36B  红 #D9534F
   圆角：卡片 20px / 输入按钮 14px   控件高 40px   间距 14px   页边距 24px
   阴影：0 8px 30px rgba(26,26,46,.06) + 1px #ECEAE8 边框
   ============================================================ */
:root {
  --bg: #FBFAF9;
  --card: #FFFFFF;
  --ink: #1A1A2E;
  --sub: #6B6B76;
  --faint: #9A9AA5;
  --brand: #8865D6;
  --brand-soft: #E9E9FF;
  --side: #F6F5F4;
  --line: #ECEAE8;
  --track: #EFEDF8;
  --ok: #2FA36B;
  --warn: #E8A33D;
  --bad: #D9534F;
  /* 尺寸令牌 */
  --r-card: 20px;
  --r-ctl: 14px;
  --ctl: 40px;
  --gap: 14px;
  --pad: 24px;
  --shadow: 0 8px 30px rgba(26, 26, 46, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* 保证 .alert/.mask 等 flex 布局也能被 hidden 关掉 */
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.7 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
code, .mono {
  font-family: Consolas, "Courier New", monospace;
}
h1, h2, h3 { margin: 0; }
a { color: var(--brand); }
noscript div { padding: 40px; text-align: center; color: var(--bad); }

/* 内容在登录态确认前先藏住，避免闪一下空页面 */
.app { visibility: hidden; }
body.ready .app { visibility: visible; }

/* ================= 外壳：侧栏 + 主区 ================= */
.app { display: flex; min-height: 100vh; }
.side {
  width: 208px;
  flex: 0 0 208px;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand-mark {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--brand);
  color: #FFFFFF;
  font: 800 14px/1 Consolas, "Courier New", monospace;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 19px; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.side-cap {
  font-size: 12px; color: var(--faint);
  padding: 12px 12px 6px; font-weight: 600; letter-spacing: 1px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px;
  border-radius: var(--r-ctl);
  color: var(--sub); font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--card); color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); }
.nav-ic {
  width: 16px; height: 16px; flex: 0 0 auto;
  border: 1.6px solid currentColor; border-radius: 5px;
  position: relative;
}
.nav-ic::after {
  content: ""; position: absolute;
  left: 3px; top: 3px; width: 7px; height: 7px;
  border-radius: 2.5px; background: currentColor; opacity: .35;
}
/* MC 资源站：四宫格图标 */
.nav-ic.res::after {
  left: 3px; top: 3px; width: 3.4px; height: 3.4px;
  border-radius: 1px; opacity: .55;
  box-shadow: 4.6px 0 0 currentColor, 0 4.6px 0 currentColor, 4.6px 4.6px 0 currentColor;
}.nav-ic.rooms::after {
  left: 3px; right: 3px; width: auto; height: 1.6px;
  top: 6.5px; border-radius: 1px; opacity: .55;
}
.nav-ic.qq { border-radius: 8px 8px 8px 3px; }
.nav-ic.qq::after {
  left: 3.4px; top: 4.6px; width: 6.4px; height: 1.6px;
  border-radius: 1px; opacity: .55;
  box-shadow: 0 3.2px 0 currentColor;
}
.side-foot {
  margin-top: auto; padding: 12px 12px 2px;
  font-size: 11.5px; color: var(--faint); line-height: 1.8;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--pad); }

/* ================= 顶栏 ================= */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); flex-wrap: wrap; padding: 2px 0 18px;
}
.title h1 { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.title p { margin: 4px 0 0; color: var(--sub); font-size: 13px; }
.userbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.userchip {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 6px 5px 14px;
  box-shadow: var(--shadow);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 13px; font-weight: 600; max-width: 160px; overflow-wrap: anywhere; }
.role-tag {
  font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}
.role-tag.plain { background: var(--side); color: var(--sub); border: 1px solid var(--line); }

/* ================= 按钮（控件高 40px，圆角 14px）================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--ctl); padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--card); color: var(--ink);
  font: 600 13.5px/1.2 inherit; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .12s, background .12s, border-color .12s;
}
.btn:hover { border-color: rgba(26, 26, 46, .16); }
.btn:active { background: var(--side); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(136, 101, 214, .18); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.btn.primary:hover { filter: brightness(.94); }
.btn.tint { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn.tint:hover { border-color: rgba(136, 101, 214, .28); }
.btn.danger { border-color: rgba(217, 83, 79, .4); color: var(--bad); }
.btn.danger:hover { background: rgba(217, 83, 79, .07); border-color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ================= 提示条 ================= */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--r-ctl); padding: 12px 14px;
  font-size: 13px; margin: 0 0 var(--gap);
  overflow-wrap: anywhere;
}
.alert.bad { background: rgba(217, 83, 79, .08); border: 1px solid rgba(217, 83, 79, .3); color: var(--bad); }
.alert.ok { background: rgba(47, 163, 107, .09); border: 1px solid rgba(47, 163, 107, .3); color: var(--ok); }
.alert.info { background: var(--brand-soft); border: 1px solid rgba(136, 101, 214, .26); color: var(--brand); }
/* 管理员「普通用户视角」提示条（user.html?as=user）：提示 + 右侧返回按钮一行放下 */
.asuser { align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.asuser .btn { flex: none; }
/* ================= 卡片与统计 ================= */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--pad);
}
.card + .card { margin-top: var(--gap); }
.card h2 { font-size: 15px; font-weight: 700; }
.card .cap { font-size: 12.5px; color: var(--sub); margin: 2px 0 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 20px; min-width: 0;
}
.stat i { display: block; font-style: normal; font-size: 12px; color: var(--sub); margin-bottom: 7px; }
.stat b { font-size: 24px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat b small { font-size: 13px; font-weight: 600; color: var(--sub); margin-left: 3px; }
.stat b.zero { color: var(--faint); }
.stat.accent b { color: var(--brand); }
.stat .foot { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.bar { height: 6px; border-radius: 999px; background: var(--track); margin-top: 12px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* ================= 区块标题行 ================= */
.sect {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 24px 0 12px;
}
.sect h2 { font-size: 15px; font-weight: 700; margin-right: auto; }
.sect .cnt { font-size: 12.5px; color: var(--faint); font-weight: 400; }

/* ================= 表格（窄屏横向滚动，中文不截断）================= */
.table-wrap {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  overflow-x: auto;
}
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 880px; }
thead th {
  background: var(--side); color: var(--sub);
  font-size: 12px; font-weight: 600; text-align: left;
  padding: 12px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
td .cell-clip { overflow-wrap: anywhere; min-width: 0; }
td.mono, .cell-code { font-family: Consolas, "Courier New", monospace; font-weight: 700; letter-spacing: .4px; }
.cell-code { color: var(--brand); white-space: nowrap; }
.cell-num { font-variant-numeric: tabular-nums; }
.cell-ops { display: flex; gap: 8px; flex-wrap: wrap; }
td.empty { text-align: center; color: var(--faint); padding: 36px 14px; }

/* ================= 状态徽章 ================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: rgba(47, 163, 107, .1); }
.badge.warn { color: var(--warn); background: rgba(232, 163, 61, .13); }
.badge.bad { color: var(--bad); background: rgba(217, 83, 79, .09); }
.badge.off { color: var(--sub); background: var(--side); }

/* ================= 表单 ================= */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); align-items: end; }
.field { min-width: 0; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: var(--ctl);
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--card); color: var(--ink);
  padding: 0 12px; font: 400 13.5px/1.4 inherit; font-family: inherit;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(136, 101, 214, .16);
}
.field input:disabled, .field select:disabled { background: var(--side); color: var(--faint); }
.chk {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink); font-weight: 600;
  cursor: pointer; user-select: none; height: var(--ctl);
}
.chk label { display: inline; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.form-foot { display: flex; align-items: center; gap: var(--gap); flex-wrap: wrap; margin-top: var(--gap); }
.form-foot.tight { margin-top: 0; }
.form-foot .hint { font-size: 12px; color: var(--faint); margin: 0; }
.hint { font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.hint.ok { color: var(--ok); }
.gate { font-size: 12px; color: var(--bad); margin: 10px 0 0; }

/* ================= 模块卡片（主界面）================= */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.mod {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--pad);
  transition: border-color .15s, transform .15s;
}
.mod:hover { border-color: rgba(136, 101, 214, .45); }
.mod-top { display: flex; align-items: center; gap: 14px; }
.mod-ic {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mod-ic .nav-ic { width: 20px; height: 20px; border-width: 2px; border-radius: 6px; }
.mod-ic .nav-ic::after { left: 4px; top: 4px; width: 9px; height: 9px; border-radius: 3px; }
.mod-ic /* MC 资源站：四宫格图标 */
.nav-ic.res::after {
  left: 3px; top: 3px; width: 3.4px; height: 3.4px;
  border-radius: 1px; opacity: .55;
  box-shadow: 4.6px 0 0 currentColor, 0 4.6px 0 currentColor, 4.6px 4.6px 0 currentColor;
}.nav-ic.rooms::after { left: 4px; right: 4px; width: auto; height: 2px; top: 8.5px; }
.mod-ic .nav-ic.qq { border-radius: 10px 10px 10px 4px; }
.mod-ic .nav-ic.qq::after { left: 4.4px; top: 6px; width: 8px; height: 2px; box-shadow: 0 4px 0 currentColor; }
.mod-top h3 { font-size: 15.5px; font-weight: 700; }
.mod-top p { margin: 3px 0 0; color: var(--sub); font-size: 12.5px; }
.mod-status {
  display: flex; align-items: center; gap: 9px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--sub); overflow-wrap: anywhere;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--bad); }
.status-dot.off { background: var(--faint); }
.mod-status.offline { color: var(--bad); }
.mod-status .grow { flex: 1; min-width: 0; }
.mod-status .go { color: var(--brand); font-weight: 600; font-size: 12.5px; white-space: nowrap; }

/* ================= 降级 / 无权限面板（类名加 panel- 前缀，避免与胶囊修饰类相撞）================= */
.panel-down, .noperm {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  text-align: center; padding: 52px var(--pad);
}
.down-ic, .noperm-ic {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 18px; background: var(--side);
  display: flex; align-items: center; justify-content: center;
}
.down-ic::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.4px solid var(--faint);
}
.noperm-ic::before {
  content: ""; width: 18px; height: 18px; border-radius: 5px;
  border: 2.4px solid var(--faint);
  background: linear-gradient(to top right, transparent 44%, var(--faint) 44%, var(--faint) 56%, transparent 56%);
}
.panel-down h2, .noperm h2 { font-size: 17px; font-weight: 700; }
.panel-down p, .noperm p { color: var(--sub); font-size: 13px; max-width: 460px; margin: 10px auto 0; }
.panel-down .btn, .noperm .btn { margin-top: 20px; }

/* ================= QQ 日志 ================= */
.log {
  font: 12px/1.75 Consolas, "Courier New", monospace;
  background: var(--side); border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 14px 16px; margin: 0;
  max-height: 420px; overflow: auto;
  white-space: pre-wrap; word-break: break-all; word-wrap: break-word;
  color: var(--sub);
}
.log .ln { display: block; }
.log .ln.warn { color: var(--warn); }
.log .ln.err { color: var(--bad); }

/* 状态卡小网格 */
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px var(--gap); margin-top: 18px; }
.meta-grid > div { min-width: 0; }
.meta-grid i { display: block; font-style: normal; font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.meta-grid b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ================= 弹窗（二次确认 / 续时）================= */
.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26, 26, 46, .45);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.modal {
  width: 100%; max-width: 430px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: var(--pad);
}
.modal h3 { font-size: 16px; font-weight: 700; }
.modal .modal-text { color: var(--sub); font-size: 13px; margin: 10px 0 0; overflow-wrap: anywhere; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ================= 登录页 ================= */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.login-card {
  width: 420px; max-width: 100%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 32px 30px 26px;
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .brand-mark { margin: 0 auto 12px; }
.login-brand h1 { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.login-brand p { margin: 6px 0 0; color: var(--sub); font-size: 12.5px; }
.login-card .field { margin-bottom: 16px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.code-row .btn { flex: 0 0 auto; }
.login-foot {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line);
  text-align: center; color: var(--faint); font-size: 12px;
}
.login-card .btn.wide { margin-top: 6px; }

/* ---- 登录方式切换（分段控件）---- */
.tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  background: var(--side); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.tab {
  flex: 1 1 0; min-height: 34px; padding: 0 10px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--sub);
  background: transparent; border: 1px solid transparent; border-radius: 11px;
  cursor: pointer; transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--card); color: var(--brand); border-color: var(--line); box-shadow: var(--shadow); }
.tab:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(136, 101, 214, .18); }
.link {
  font: inherit; font-size: 12.5px; color: var(--brand); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { filter: brightness(.92); }
.hint.center { text-align: center; }

/* ---- 首次设置密码引导条 ---- */
.pwprompt {
  margin-top: 18px; padding: 18px 18px 16px;
  background: var(--brand-soft); border: 1px solid rgba(136, 101, 214, .26);
  border-radius: var(--r-ctl);
}
.pwprompt h2 { font-size: 15px; font-weight: 700; color: var(--ink); }
.pwprompt-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); }
.pwprompt-ops { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pwprompt form { margin-top: 4px; }
.pwprompt .field { margin-top: 14px; }
.pwprompt .hint { margin-top: 10px; }

/* ================= 移动端：侧栏变顶栏、卡片单列 ================= */
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .side {
    width: auto; flex: none; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 4px;
    padding: 12px 16px; overflow-x: auto; overflow-y: hidden;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0 10px 0 0; }
  .brand-name { white-space: nowrap; }
  .side-cap, .side-foot { display: none; }
  .side-nav { flex-direction: row; }
  .nav-item { flex: 0 0 auto; }
  .mods { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .login-card { padding: 26px 20px 22px; }
  .code-row { flex-direction: column; }
  .code-row .btn { width: 100%; }
  .avatar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 用户资料（补注 15）：可点开的胶囊 + 头像图片 + 选择九宫格 ================= */
button.userchip {
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
button.userchip:hover { border-color: rgba(136, 101, 214, .5); }
button.userchip:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(136, 101, 214, .18);
}
img.avatar { object-fit: cover; }
.chip-more {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  white-space: nowrap;
}
.grid-label { display: block; font-size: 12px; font-weight: 600; color: var(--sub); margin: 16px 0 0; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.avatar-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px 7px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  cursor: pointer; font-size: 11.5px; color: var(--sub);
}
.avatar-pick img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.avatar-pick:hover { border-color: rgba(136, 101, 214, .45); color: var(--ink); }
.avatar-pick:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(136, 101, 214, .18); }
.avatar-pick.sel {
  border-color: var(--brand); background: var(--brand-soft);
  color: var(--brand); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(136, 101, 214, .14);
}

/* ================= 房间批量操作（补注 16） ================= */
.batchbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0 0;
}
.batchbar .batch-grow { flex: 1 1 auto; }
.cell-ck { width: 38px; text-align: center; padding-left: 10px; padding-right: 4px; }
.cell-ck input, .row-ck { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }

/* ================= 模型清单（C 补记 2：discover 下拉） ================= */
.model-field { position: relative; }
.model-row { display: flex; gap: 8px; align-items: stretch; }
.model-row input { flex: 1 1 auto; min-width: 0; }
.model-row .btn { flex: 0 0 auto; }
.model-panel {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-ctl); box-shadow: var(--shadow);
  padding: 4px 0 6px;
}
.model-panel .model-group {
  font-size: 11.5px; color: var(--faint); font-weight: 700;
  padding: 6px 12px 4px; position: sticky; top: 0; background: var(--card);
}
.model-panel .model-grp + .model-grp { margin-top: 6px; }
.model-panel .model-sub { font-size: 12px; color: var(--sub); padding: 4px 12px; }
.model-panel summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--sub);
  padding: 6px 12px; list-style: none;
}
.model-panel summary::-webkit-details-marker { display: none; }
.model-panel summary:hover { color: var(--brand); }
.model-panel .model-opt {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 7px 12px; background: none; border: none;
  font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left;
}
.model-panel .model-opt:hover, .model-panel .model-opt:focus-visible { background: var(--brand-soft); color: var(--brand); outline: none; }
.model-panel .model-opt .mono { font-size: 12.5px; overflow-wrap: anywhere; }
.model-panel .model-foot {
  font-size: 11px; color: var(--faint); padding: 6px 12px 2px;
  border-top: 1px solid var(--line); margin-top: 4px;
}

/* ================= 公开下载页（download.html，task-59）================= */
.dl-wrap { max-width: 880px; margin: 0 auto; padding: 40px var(--pad) 56px; }
.dl-head { text-align: center; margin-bottom: 22px; }
.dl-head .brand-mark { margin: 0 auto 12px; }
.dl-head h1 { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.dl-head p { margin: 8px 0 0; color: var(--sub); font-size: 13px; }
.dl-verline { color: var(--faint); font-size: 12.5px; }
.dl-verline span + span::before { content: " · "; }
.dl-loading { text-align: center; color: var(--sub); font-size: 13px; }
.dl-fallback { text-align: center; }
.dl-fallback h2 { font-size: 16px; font-weight: 700; }
.dl-fallback .cap { margin-bottom: 0; }
.dl-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }
.dl-products .card + .card { margin-top: 0; }
.dl-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-card-top h2 { margin-right: auto; }
.dl-meta { margin: 10px 0 0; font-size: 12.5px; color: var(--sub); overflow-wrap: anywhere; }
.dl-ops { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dl-ops .btn { flex: 1 1 auto; }
.dl-note { color: var(--sub); }
.dl-help { margin-top: var(--gap); }
.dl-pre {
  margin: 12px 0 0; padding: 14px;
  background: var(--side); border: 1px solid var(--line); border-radius: var(--r-ctl);
  font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere;
}
.dl-notes { margin: 12px 0 0; padding-left: 20px; color: var(--sub); font-size: 13px; }
.dl-notes li + li { margin-top: 6px; }
.dl-foot { margin: 24px 0 0; text-align: center; color: var(--faint); font-size: 11.5px; }


/* ============================================================
   v2.5.4 普通用户面板（user.html）—— 只加本页专用的小样式，
   其余全部复用上面的卡片/按钮/令牌，保证与管理员面板、启动器同套观感
   ============================================================ */
.u-steps { margin: 12px 0 0; padding-left: 22px; color: var(--ink); font-size: 13.5px; }
.u-steps li + li { margin-top: 8px; }
.u-steps b { color: var(--brand); }
.u-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.u-kv > div {
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 10px 12px;
}
.u-kv i { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-bottom: 4px; }
.u-kv b { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.u-foot { margin: 18px 0 0; text-align: center; color: var(--faint); font-size: 12px; }
.avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }

/* ============================================================
   2026-10-22 统一界面：#dlhome（我的主页 · 下载区）、#myrooms（普通用户只读我的房间）
   —— 只补版式，卡片/按钮/表格全部复用上面的令牌，保证与启动器同套观感
   ============================================================ */
.dlhome { display: grid; gap: var(--gap); }
.dlhome > .cap { font-size: 12.5px; color: var(--sub); margin: 0; }
.dlhome > .dl-card-top { margin: 0; }
.dlhome .card { margin: 0; }
.dlhome .alert { margin: 0; }

#myrooms { display: grid; gap: var(--gap); }
#myrooms .table-wrap + .hint { margin-top: 10px; }

/* 整合包创作图标：两个小方块 + 连线（与 res/rooms 的纯 CSS 图标同一套画法） */
.nav-ic.pack::after {
  left: 2.5px; top: 3px; width: 4px; height: 4px; border-radius: 1.4px;
  box-shadow: 7px 6.4px 0 currentColor;
}
.nav-ic.pack::before {
  content: ''; position: absolute;
  left: 3.6px; top: 6.6px; width: 6.4px; height: 1.4px; border-radius: 1px;
  transform: rotate(32deg); background: currentColor; opacity: .5;
}

/* ============================================================
   2026-10-24 · 视觉增强覆盖层（cache-bust v=20261024c）
   —— 只在本文件末尾追加：不改上面的令牌与结构，颜色仍然只用 §6.1 令牌
   —— 与 assets/visual.css 配合：极光背景/通用动效在那边，这里负责门户版式的质感
      （玻璃卡、悬浮抬升、发光胶囊、渐变标题、首屏装饰、移动端降级）
   ============================================================ */

/* ---------- 1. 外壳：玻璃侧栏 + 当前项发光胶囊 + 头像环 ---------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(90vmax 60vmax at 82% -10%, rgba(233, 233, 255, .55), transparent 60%),
    radial-gradient(70vmax 50vmax at -10% 100%, rgba(233, 233, 255, .42), transparent 62%);
  background-attachment: fixed;
}
.side {
  background: rgba(246, 245, 244, .72);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
  backdrop-filter: saturate(1.25) blur(16px);
  border-right: 1px solid rgba(255, 255, 255, .66);
  box-shadow: 1px 0 0 rgba(26, 26, 46, .035), 24px 0 60px -48px rgba(26, 26, 46, .28);
}
.brand { position: relative; }
.brand-mark {
  background: linear-gradient(145deg, #8865D6, rgba(136, 101, 214, .74));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .38) inset,
    0 10px 22px -12px rgba(136, 101, 214, .9);
  color: #FFFFFF;
}
.brand-mark.lg {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .38) inset,
    0 16px 32px -16px rgba(136, 101, 214, .95);
}
.brand-name { background: linear-gradient(120deg, #1A1A2E 10%, #8865D6 60%, #1A1A2E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.side-nav { gap: 6px; }
.nav-item {
  position: relative;
  border-radius: 13px;
  transition: background .26s cubic-bezier(.22, .61, .36, 1), color .26s cubic-bezier(.22, .61, .36, 1),
              transform .26s cubic-bezier(.22, .61, .36, 1), box-shadow .26s cubic-bezier(.22, .61, .36, 1);
}
.nav-item:hover {
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 20px -18px rgba(26, 26, 46, .5);
  transform: translateX(2px);
}
.nav-item.active {
  background: linear-gradient(115deg, rgba(136, 101, 214, .2), rgba(136, 101, 214, .06) 70%);
  color: var(--brand);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    inset 0 0 0 1px rgba(136, 101, 214, .26),
    0 10px 24px -16px rgba(136, 101, 214, .85);
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #8865D6, rgba(136, 101, 214, .35));
}
.nav-item.active .nav-ic { filter: drop-shadow(0 0 6px rgba(136, 101, 214, .55)); }

/* 头像环：右上角胶囊 + 侧栏底部身份区 */
.avatar {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .95),
    0 0 0 4px rgba(136, 101, 214, .26);
}
.userchip {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-color: rgba(255, 255, 255, .74);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 12px 28px -20px rgba(26, 26, 46, .5);
  transition: border-color .28s, box-shadow .28s, transform .28s;
}
button.userchip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 16px 34px -20px rgba(136, 101, 214, .6);
}
.chip-more {
  background: linear-gradient(135deg, rgba(136, 101, 214, .18), rgba(136, 101, 214, .06));
  box-shadow: inset 0 0 0 1px rgba(136, 101, 214, .18);
}

/* ---------- 2. 顶栏 hero：渐变标题 + 光斑 + 网格（纯 CSS，无图片） ---------- */
.main { position: relative; }
.content { position: relative; }
.topbar {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(233, 233, 255, .5) 58%, rgba(255, 255, 255, .68));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 26px 56px -38px rgba(26, 26, 46, .5),
    0 8px 30px rgba(26, 26, 46, .05);
}
.topbar::before {
  content: "";
  position: absolute; right: -70px; top: -110px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 101, 214, .26), rgba(136, 101, 214, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
}
.topbar::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(136, 101, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 101, 214, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #FFFFFF 0%, transparent 62%);
  mask-image: radial-gradient(120% 120% at 100% 0%, #FFFFFF 0%, transparent 62%);
  opacity: .8;
}
.topbar > * { position: relative; z-index: 1; }
.title h1 { font-size: 24px; letter-spacing: .2px; }
.title p { color: rgba(107, 107, 118, .95); }

/* 快捷入口胶囊（首页首屏） */
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--gap); }
.qlink {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -20px rgba(26, 26, 46, .5);
  transition: transform .26s, border-color .26s, box-shadow .26s, color .26s;
}
.qlink .nav-ic { width: 15px; height: 15px; color: var(--brand); }
.qlink:hover {
  color: var(--brand);
  border-color: rgba(136, 101, 214, .4);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 16px 30px -20px rgba(136, 101, 214, .8);
}

/* ---------- 3. 卡片统一玻璃化 + 轻抬升 ---------- */
.card, .stat, .table-wrap, .panel-down, .noperm {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(1.22) blur(14px);
  backdrop-filter: saturate(1.22) blur(14px);
  border: 1px solid rgba(255, 255, 255, .74);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 22px 48px -34px rgba(26, 26, 46, .34),
    0 8px 30px rgba(26, 26, 46, .045);
}
.stat {
  position: relative;
  overflow: hidden;
  transition: transform .32s, box-shadow .32s, border-color .32s;
}
.stat::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(136, 101, 214, .55), rgba(136, 101, 214, .08));
}
.stat:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 26px 52px -34px rgba(136, 101, 214, .5),
    0 8px 30px rgba(26, 26, 46, .05);
}
.stat.accent b { color: var(--brand); }
.table-wrap { overflow: hidden; overflow-x: auto; }
thead th { background: rgba(246, 245, 244, .78); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(136, 101, 214, .05); }
.panel-down, .noperm { padding: 56px var(--pad); }

/* 区块标题：左小渐变竖条 */
.sect h2 { position: relative; padding-left: 12px; }
.sect h2::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8865D6, rgba(136, 101, 214, .25));
}

/* ---------- 4. 按钮：主按钮渐变 + 光晕，次要按钮玻璃 ---------- */
.btn {
  transition: transform .22s, background .22s, border-color .22s, box-shadow .22s, filter .22s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, #8865D6, rgba(136, 101, 214, .78));
  border-color: rgba(136, 101, 214, .9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .28) inset,
    0 12px 26px -16px rgba(136, 101, 214, .95);
}
.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .28) inset,
    0 18px 34px -16px rgba(136, 101, 214, .8);
}
.btn.tint {
  background: linear-gradient(135deg, rgba(136, 101, 214, .16), rgba(136, 101, 214, .06));
  border-color: rgba(136, 101, 214, .18);
}
.btn.ghost {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .8);
}

/* ---------- 5. 表单控件更精致（玻璃底 + 聚焦光晕） ---------- */
.field input, .field select {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(236, 234, 232, .95);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:hover, .field select:hover { border-color: rgba(136, 101, 214, .3); }
.field input:focus, .field select:focus {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px rgba(136, 101, 214, .16),
    0 10px 24px -20px rgba(136, 101, 214, .9);
}
.tabs {
  background: rgba(246, 245, 244, .8);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(233, 233, 255, .9));
  border-color: rgba(136, 101, 214, .26);
  box-shadow: 0 8px 20px -16px rgba(136, 101, 214, .9);
}

/* 模型清单下拉：玻璃浮层 */
.model-panel {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  backdrop-filter: saturate(1.2) blur(16px);
  border-color: rgba(255, 255, 255, .8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 24px 60px -32px rgba(26, 26, 46, .5);
}

/* ---------- 6. 提示条 / 弹窗 / 日志 ---------- */
.alert {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
}
.mask { background: rgba(26, 26, 46, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(20px);
  backdrop-filter: saturate(1.2) blur(20px);
  border-color: rgba(255, 255, 255, .85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 40px 90px -40px rgba(26, 26, 46, .6);
}
.log {
  background: rgba(246, 245, 244, .62);
  border-color: rgba(255, 255, 255, .74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.pwprompt {
  background: linear-gradient(150deg, rgba(233, 233, 255, .85), rgba(255, 255, 255, .7));
  border-color: rgba(136, 101, 214, .24);
  box-shadow: 0 16px 36px -30px rgba(136, 101, 214, .9);
}

/* ---------- 7. 模块卡（首页）：玻璃 + 悬浮抬升 + 顶部光晕 ---------- */
.mod {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.22) blur(14px);
  backdrop-filter: saturate(1.22) blur(14px);
  border-color: rgba(255, 255, 255, .74);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 22px 48px -34px rgba(26, 26, 46, .34);
  transition: transform .32s, box-shadow .32s, border-color .32s;
}
.mod::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at 100% 0%, rgba(136, 101, 214, .16), rgba(136, 101, 214, 0) 62%);
  opacity: 0;
  transition: opacity .35s;
}
.mod:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 101, 214, .42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 30px 56px -32px rgba(136, 101, 214, .55),
    0 8px 30px rgba(26, 26, 46, .05);
}
.mod:hover::after { opacity: 1; }
.mod > * { position: relative; z-index: 1; }
.mod-ic {
  background: linear-gradient(145deg, rgba(136, 101, 214, .18), rgba(136, 101, 214, .06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 20px -14px rgba(136, 101, 214, .8);
  transition: transform .32s, box-shadow .32s;
}
.mod:hover .mod-ic {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 26px -14px rgba(136, 101, 214, .95);
}

/* ---------- 8. 首页下载区：三张产品卡并排（悬浮发光） ---------- */
.dlhome {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--gap);
}
.dlhome > .dl-card-top,
.dlhome > .cap,
.dlhome > .alert,
.dlhome > .hint { flex: 1 1 100%; }
.dlhome > .card {
  flex: 1 1 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  transition: transform .32s, box-shadow .32s, border-color .32s;
}
.dlhome > .card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(136, 101, 214, .6), rgba(136, 101, 214, .06));
}
.dlhome > .card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 101, 214, .4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 30px 56px -32px rgba(136, 101, 214, .55),
    0 8px 30px rgba(26, 26, 46, .05);
}
.dlhome > .card .dl-meta { margin-top: 12px; }
.dlhome > .card .dl-ops { margin-top: auto; padding-top: 14px; flex-direction: column; min-width: 0; }
/* 三栏并排时按钮变窄：允许文件名折行，按钮不许撑出卡片（视觉验收抓到过的溢出） */
.dlhome > .card .dl-ops .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: var(--ctl);
  padding: 8px 10px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: center;
}
.dlhome > .card .dl-ops .btn + .btn { margin-top: 8px; }
.dlhome > .card .dl-card-top h2 {
  background: linear-gradient(120deg, #1A1A2E 12%, #8865D6 68%, #1A1A2E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 9. 登录页：左品牌视觉 + 右玻璃登录卡 ---------- */
.login-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 440px);
  gap: 46px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 30px;
  min-height: 100vh;
}
.login-aside { position: relative; min-width: 0; }
.login-aside .v-orb { top: -40px; left: -60px; }
.la-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(136, 101, 214, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.la-kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #8865D6, rgba(136, 101, 214, .4));
  box-shadow: 0 0 0 4px rgba(136, 101, 214, .12);
}
.la-title {
  margin: 20px 0 0;
  font-size: 42px; line-height: 1.26; font-weight: 800; letter-spacing: -.5px;
  color: var(--ink);
}
.la-title em {
  font-style: normal;
  background: linear-gradient(120deg, #8865D6 10%, rgba(136, 101, 214, .7) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.la-sub { margin: 14px 0 0; max-width: 400px; color: var(--sub); font-size: 14px; }
.la-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.la-list li { display: flex; align-items: center; gap: 11px; color: var(--sub); font-size: 13px; }
.la-list li::before {
  content: "";
  width: 7px; height: 7px; flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #8865D6, rgba(136, 101, 214, .45));
  box-shadow: 0 0 0 4px rgba(136, 101, 214, .1);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 30px 30px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(1.25) blur(20px);
  backdrop-filter: saturate(1.25) blur(20px);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 40px 80px -40px rgba(26, 26, 46, .45),
    0 8px 30px rgba(26, 26, 46, .05);
}
.login-card::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(136, 101, 214, .55), transparent);
}
.login-brand { margin-bottom: 20px; }
.login-brand h1 { font-size: 20px; }
.login-card .login-foot { border-top-style: solid; border-top-color: rgba(236, 234, 232, .8); }

/* ---------- 10. 公开下载页：渐变头图 + 产品卡玻璃化 + 手机版突出 ---------- */
.dl-wrap { position: relative; max-width: 940px; padding: 46px var(--pad) 64px; }
.dl-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 34px 26px 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .76);
  background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(233, 233, 255, .55) 60%, rgba(255, 255, 255, .7));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 64px -40px rgba(26, 26, 46, .45);
}
.dl-head::before {
  content: "";
  position: absolute; right: -80px; top: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 101, 214, .26), rgba(136, 101, 214, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
}
.dl-head::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(136, 101, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 101, 214, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #FFFFFF 0%, transparent 60%);
  mask-image: radial-gradient(120% 120% at 100% 0%, #FFFFFF 0%, transparent 60%);
  opacity: .8;
}
.dl-head > * { position: relative; z-index: 1; }
.dl-head h1 { font-size: 30px; }
.dl-products { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dl-products > .card {
  position: relative;
  overflow: hidden;
  transition: transform .32s, box-shadow .32s, border-color .32s;
}
.dl-products > .card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(136, 101, 214, .6), rgba(136, 101, 214, .06));
}
.dl-products > .card:hover {
  transform: translateY(-3px);
  border-color: rgba(136, 101, 214, .38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 28px 54px -34px rgba(136, 101, 214, .55),
    0 8px 30px rgba(26, 26, 46, .05);
}
.dl-mobile {
  position: relative;
  overflow: hidden;
  margin-top: var(--gap);
  border-color: rgba(136, 101, 214, .3);
  background: linear-gradient(155deg, rgba(255, 255, 255, .88), rgba(233, 233, 255, .62) 68%, rgba(255, 255, 255, .78));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -36px rgba(136, 101, 214, .6),
    0 8px 30px rgba(26, 26, 46, .05);
}
.dl-mobile::before {
  content: "";
  position: absolute; right: -40px; bottom: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 101, 214, .22), rgba(136, 101, 214, 0) 66%);
  filter: blur(6px);
  pointer-events: none;
}
.dl-mobile > * { position: relative; z-index: 1; }
.dl-help { margin-top: var(--gap); }
.dl-pre { background: rgba(246, 245, 244, .7); }
.dl-foot { color: var(--faint); }

/* ---------- 11. 房间 / QQ 面板：表单卡与表格的细节 ---------- */
.batchbar { padding-top: 12px; }
.batchbar #sel-cnt { font-size: 12.5px; color: var(--sub); }
.meta-grid > div {
  background: rgba(246, 245, 244, .6);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--r-ctl);
  padding: 10px 12px;
}
#qq-status .badge { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; }

/* ---------- 12. 减弱动效偏好：本层的位移/动画全部停掉 ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav-item:hover,
  .btn:hover,
  .qlink:hover,
  .stat:hover,
  .mod:hover,
  .dlhome > .card:hover,
  .dl-products > .card:hover,
  button.userchip:hover { transform: none; }
  .nav-item, .btn, .stat, .mod, .qlink,
  .dlhome > .card, .dl-products > .card, .userchip, .mod-ic { transition: none; }
  .mod:hover .mod-ic { transform: none; }
}

/* ---------- 13. 移动端（≤900 / ≤560）：单列、省模糊、绝不横向溢出 ---------- */
@media (max-width: 900px) {
  .side {
    background: rgba(246, 245, 244, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px -26px rgba(26, 26, 46, .4);
  }
  .nav-item.active::before { display: none; }
  .topbar { padding: 18px 16px; border-radius: 20px; }
  .title h1 { font-size: 21px; }
  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 520px;
    padding: 28px 18px 40px;
    min-height: auto;
    align-content: start;
  }
  .la-title { font-size: 30px; }
  .la-list { display: none; }
  .la-sub { margin-top: 10px; font-size: 13px; }
  .dl-wrap { padding: 28px 16px 48px; }
  .dl-head { padding: 26px 18px 22px; }
  .dl-head h1 { font-size: 24px; }
  .dlhome > .card { flex-basis: 100%; padding: 18px 16px; }
}
@media (max-width: 560px) {
  .quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qlink { justify-content: center; padding: 0 10px; font-size: 12.5px; min-width: 0; }
  .qlink .nav-ic { width: 14px; height: 14px; }
  .login-aside { padding: 4px 2px 0; }
  .la-title { font-size: 26px; }
  .la-kicker { letter-spacing: 1.2px; }
  .login-card { padding: 26px 18px 22px; border-radius: 20px; }
  .content { padding: 16px; }
  .topbar { padding: 16px 14px; }
  .title h1 { font-size: 19px; }
  .dl-head h1 { font-size: 21px; }
  .dl-products { grid-template-columns: 1fr; }
}
