/* ============================================================
   饺子 · JiaoZi   —   Apple 风格
   大圆角 / 柔和阴影 / 毛玻璃导航 / 分段控件 / 系统字体
   默认亮色（Apple 的经典观感），暗色为 Dark Mode
   ============================================================ */

:root {
  --bg:          #f5f5f7;
  --surface:     #ffffff;
  --surface-2:   #f5f5f7;
  --surface-3:   #e8e8ed;
  --border:      #e3e3e6;
  --border-2:    #d2d2d7;
  --text:        #1d1d1f;
  --muted:       #6e6e73;
  --dim:         #86868b;

  --accent:      #0071e3;
  --accent-hi:   #0077ed;
  --accent-fg:   #ffffff;
  --accent-soft: #eaf3ff;

  --ok:          #1a8f4c;  --ok-soft:   #e6f5ec;
  --warn:        #a8590a;  --warn-soft: #fdf1e3;
  --err:         #d70015;  --err-soft:  #fdecee;
  --info:        #0071e3;  --info-soft: #eaf3ff;

  --flow-line: #7b7fd4;
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  --glass:     rgba(255, 255, 255, .72);
  --glass-bd:  rgba(0, 0, 0, .09);
  --mask:      rgba(0, 0, 0, .38);

  --sh-1: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .05);
  --sh-2: 0 4px 16px rgba(0, 0, 0, .07), 0 12px 36px rgba(0, 0, 0, .09);
  --sh-pill: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04);

  --r:    18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --pill: 980px;
  --maxw: 1120px;
}

[data-theme="dark"] {
  --bg:          #000000;
  --surface:     #1c1c1e;
  --surface-2:   #2c2c2e;
  --surface-3:   #3a3a3c;
  --border:      #333336;
  --border-2:    #48484a;
  --text:        #f5f5f7;
  --muted:       #a1a1a6;
  --dim:         #86868b;

  --accent:      #0a84ff;
  --accent-hi:   #409cff;
  --accent-fg:   #ffffff;
  --accent-soft: #0b2b4a;

  --ok:          #30d158;  --ok-soft:   #102c1a;
  --warn:        #ffd60a;  --warn-soft: #33280a;
  --err:         #ff453a;  --err-soft:  #3a1512;
  --info:        #64d2ff;  --info-soft: #0c2b38;

  --flow-line: #9aa0ff;
  --hero-grad: linear-gradient(180deg, #1f1f22 0%, #161618 100%);
  --glass:     rgba(22, 22, 24, .72);
  --glass-bd:  rgba(255, 255, 255, .1);
  --mask:      rgba(0, 0, 0, .62);

  --sh-1: 0 1px 3px rgba(0, 0, 0, .5);
  --sh-2: 0 8px 32px rgba(0, 0, 0, .6);
  --sh-pill: 0 1px 4px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* ---------------- 顶栏（毛玻璃）---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-bd);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); font-weight: 600; font-size: 16px;
  letter-spacing: -.015em; flex: none;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg); font-size: 14px;
}
.brand small {
  font-weight: 500; font-size: 11px; color: var(--dim);
  letter-spacing: .6px;
}

/* 分段控件（宽度贴合内容，居中） */
.tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  flex: 0 1 auto; min-width: 0; margin: 0 auto;
  background: var(--surface-3);
  border-radius: var(--pill);
  padding: 3px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--pill);
  font-size: 13px; font-weight: 500; letter-spacing: -.005em;
  color: var(--muted); background: transparent; border: none; cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tab i { font-size: 12px; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active {
  color: var(--text); background: var(--surface);
  box-shadow: var(--sh-pill); font-weight: 600;
}
.tab.admin:not(.active) { color: var(--accent); }

.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); border: none; color: var(--muted);
  cursor: pointer; font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--border-2); color: var(--text); }

/* ---------------- 布局 ---------------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 96px; min-height: 70vh; }
.view { animation: rise .32s cubic-bezier(.32, .72, 0, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { margin: 0 0 26px; }
.page-head h1 {
  margin: 0; font-size: 34px; font-weight: 700;
  letter-spacing: -.028em; line-height: 1.12;
}
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -.01em; }

section.block { margin: 40px 0; }
section.block > h2 {
  font-size: 21px; font-weight: 600; letter-spacing: -.022em;
  color: var(--text); margin: 0 0 16px;
  display: flex; align-items: center; gap: 9px;
}
section.block > h2 i { font-size: 15px; color: var(--accent); }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--hero-grad);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 54px 46px;
  box-shadow: var(--sh-1);
}
.hero-inner { max-width: 660px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.08;
}
.hero p {
  margin: 0 0 26px; color: var(--muted);
  font-size: 17px; line-height: 1.5; letter-spacing: -.012em; max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; font-family: inherit; letter-spacing: -.01em;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--dim); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-fg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn.sm { padding: 6px 14px; font-size: 12.5px; }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn i { font-size: 12px; }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 16px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  box-shadow: var(--sh-1);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card.hoverable:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--border-2); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.018em; line-height: 1.35; }
.card .desc { color: var(--muted); font-size: 14px; margin: 0; letter-spacing: -.008em; }

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1);
}
.stat .k { color: var(--muted); font-size: 13px; letter-spacing: -.005em; }
.stat .v {
  font-size: 30px; font-weight: 700; margin-top: 6px;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat .u { float: right; font-size: 16px; color: var(--accent); }

.hl {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; box-shadow: var(--sh-1);
}
.hl .ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 17px; margin-bottom: 15px;
}
.hl h4 { margin: 0 0 7px; font-size: 16px; font-weight: 600; letter-spacing: -.016em; }
.hl p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: -.008em; }

/* ---------------- 徽章 / 标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: -.005em;
  padding: 3px 10px; border-radius: var(--pill);
  background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.badge.ok   { background: var(--ok-soft);   color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err  { background: var(--err-soft);  color: var(--err); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.acc  { background: var(--accent-soft); color: var(--accent); }
.tag {
  font-size: 12px; color: var(--muted); background: var(--surface-2);
  border-radius: var(--r-xs); padding: 3px 10px; letter-spacing: -.005em;
}

/* ---------------- 进度条 ---------------- */
.progress {
  height: 6px; background: var(--surface-3); border-radius: var(--pill);
  overflow: hidden; margin-top: 14px;
}
.progress > i {
  display: block; height: 100%; border-radius: var(--pill);
  background: var(--accent); transition: width .5s cubic-bezier(.32, .72, 0, 1);
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; color: var(--muted);
  margin-bottom: 6px; font-weight: 500; letter-spacing: -.005em;
}
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 11px;
  padding: 10px 13px; font-size: 14px; font-family: inherit; letter-spacing: -.008em;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input[type=checkbox] { accent-color: var(--accent); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* ---------------- 登录 ---------------- */
.login-wrap { min-height: 60vh; display: grid; place-items: center; padding: 20px 0; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 36px 32px;
  box-shadow: var(--sh-2);
}
.login-card .logo-lg {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 21px; margin: 0 auto 18px;
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 6px 18px rgba(0, 113, 227, .28);
}
.login-card h2 { margin: 0 0 4px; text-align: center; font-size: 21px; font-weight: 600; letter-spacing: -.022em; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 24px; letter-spacing: -.005em; }

/* ---------------- 表格 ---------------- */
.table-wrap {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 13.5px; vertical-align: middle; letter-spacing: -.005em;
}
th { color: var(--muted); font-weight: 600; background: var(--surface-2); font-size: 12.5px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ellip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
code {
  background: var(--surface-2); border-radius: 6px; padding: 2px 7px;
  font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: var(--mask);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 600px; background: var(--surface);
  border-radius: 22px; padding: 28px; box-shadow: var(--sh-2);
  animation: pop .3s cubic-bezier(.32, .72, 0, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h3 {
  margin: 0 0 20px; font-size: 20px; font-weight: 600; letter-spacing: -.022em;
  display: flex; align-items: center; gap: 9px;
}
.modal h3 i { color: var(--accent); font-size: 16px; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}

/* ---------------- 提示 ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-bd);
  padding: 11px 20px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  max-width: 90vw; box-shadow: var(--sh-2);
  animation: toastIn .3s cubic-bezier(.32, .72, 0, 1);
}
.toast.ok  { color: var(--ok); }
.toast.err { color: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.empty { text-align: center; color: var(--dim); padding: 48px 20px; font-size: 14px; }
.empty .ico { display: block; font-size: 30px; margin-bottom: 12px; color: var(--border-2); }
.loading { text-align: center; color: var(--dim); padding: 48px; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--border-2); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 12px; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 页脚 ---------------- */
footer {
  border-top: 1px solid var(--border); color: var(--dim); font-size: 12.5px;
  padding: 26px 22px; text-align: center; letter-spacing: -.005em;
}
footer a { color: var(--muted); }

/* ---------------- Markdown ---------------- */
.md { font-size: 14px; line-height: 1.6; letter-spacing: -.008em; word-break: break-word; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 10px; color: var(--muted); }
.md h3, .md h4, .md h5, .md h6 { margin: 18px 0 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.md li { margin: 4px 0; }
.md li::marker { color: var(--accent); }
.md code { background: var(--surface-2); border-radius: 6px; padding: 2px 6px; font-size: 12.5px; color: var(--text); }
.md a { color: var(--accent); }
.md blockquote {
  margin: 10px 0; padding: 10px 16px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted);
}
.md hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.md-compact { font-size: 13.5px; }
.md-compact p { margin-bottom: 6px; }

/* ---------------- 其他 ---------------- */
[hidden] { display: none !important; }
.crumbs a { cursor: pointer; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .topbar-inner { padding: 9px 14px; gap: 12px; }
  .brand { font-size: 15px; }
  .brand small { display: none; }
  .brand .logo { width: 28px; height: 28px; font-size: 13px; }
  .tab { padding: 6px 10px; font-size: 12.5px; gap: 5px; }
  main { padding: 24px 15px 76px; }
  .hero { padding: 34px 24px; border-radius: 22px; }
  .hero p { font-size: 15.5px; }
  .page-head h1 { font-size: 26px; }
  section.block > h2 { font-size: 18px; }
  .stat .v { font-size: 25px; }
  .grid { gap: 12px; }
  .card { padding: 18px; }
  .hl { padding: 20px; }
  .modal { padding: 22px; border-radius: 20px; }
  .login-card { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .tab { padding: 6px 9px; }
  .hero-actions .btn { flex: 1; }
  th, td { padding: 10px 12px; font-size: 12.5px; }
  .ellip { max-width: 190px; }
  .page-head h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==================== 流量监控 · 实时带宽 / 图表 ==================== */

/* 通用分段控件（页内切换用，与顶栏 .tabs 同源但可内联） */
.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-3); border-radius: var(--pill);
}
.segmented button {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: var(--pill);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button.selected {
  background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: var(--sh-pill);
}
.segmented.sm button { padding: 4px 12px; font-size: 12.5px; }

/* 实时带宽条 */
.live-band {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 20px; box-shadow: var(--sh-1);
  margin-bottom: 16px;
}
.band-title { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.015em; }
.band-title > i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 14px;
}
.band-title span { display: flex; flex-direction: column; line-height: 1.25; }
.band-title small { color: var(--dim); font-weight: 500; font-size: 11.5px; letter-spacing: 0; }
.band-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.band-stat { display: flex; flex-direction: column; gap: 2px; }
.band-stat span { font-size: 11.5px; color: var(--muted); }
.band-stat strong { font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.band-sep { width: 1px; height: 30px; background: var(--border); }
.band-spark { flex: 1 1 160px; min-width: 120px; height: 44px; }
.spark-svg { width: 100%; height: 44px; display: block; }

/* 一行紧凑指标 */
.inline-metrics {
  display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 0;
  font-size: 13px; color: var(--muted);
}
.inline-metrics strong { color: var(--text); font-weight: 650; margin-left: 7px; font-variant-numeric: tabular-nums; }

/* 图表 */
.chart-card { padding: 18px 18px 10px; }
.chart-legend { display: flex; gap: 20px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lg-bar { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.lg-line { width: 14px; height: 2px; border-radius: 2px; background: var(--flow-line); }
.flow-chart { position: relative; }
.fc-svg { display: block; overflow: visible; }
.fc-ylab, .fc-xlab { font-size: 10px; fill: var(--dim); }
.fc-bar { fill: var(--accent); opacity: .72; transition: opacity .15s ease; }
.fc-bar.on { opacity: 1; }
.fc-hit { cursor: pointer; }
.fc-tip {
  position: absolute; top: 0; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 9px 13px; box-shadow: var(--sh-2);
  font-size: 12.5px; line-height: 1.65; pointer-events: none; z-index: 5; white-space: nowrap;
}
.fc-tip b { display: block; margin-bottom: 4px; letter-spacing: -.01em; }
.fc-tip span { display: block; color: var(--muted); }
.fc-tip em { font-style: normal; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-tip em.err { color: var(--err); }
.fc-tip i { display: block; margin-top: 5px; font-style: normal; color: var(--accent); font-size: 11.5px; }

/* 表格内进度条 */
.bar-track { display: block; height: 6px; background: var(--surface-3); border-radius: var(--pill); overflow: hidden; }
.bar-track > i { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }

/* 筛选胶囊 */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: none; border-radius: var(--pill); padding: 6px 14px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip i { font-size: 11px; opacity: .8; }

@media (max-width: 900px) {
  .live-band { gap: 16px; padding: 14px 16px; position: relative; }
  .live-band > .icon-btn { position: absolute; top: 14px; right: 16px; }
  .band-stats { gap: 18px; row-gap: 10px; }
  .band-sep { display: none; }
  .band-spark { order: 9; flex-basis: 100%; }
  .band-stat strong { font-size: 15px; }
  .chart-card { padding: 14px 10px 6px; }
  .fc-ylab, .fc-xlab { font-size: 9px; }
  .inline-metrics { gap: 16px; }
}

/* 图表工具条 */
.chart-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chart-toolbar .chart-legend { margin-bottom: 0; }
.band-stat strong { white-space: nowrap; }
@media (max-width: 900px) {
  .chart-toolbar { gap: 8px; }
  .chart-toolbar .segmented { flex: 1 1 100%; justify-content: space-between; }
  .chart-toolbar .chart-legend { order: 9; flex-basis: 100%; }
}

/* ---------------- 下载中心 ---------------- */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-field {
  flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--pill); padding: 0 15px; height: 38px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.search-field > i { color: var(--dim); font-size: 13px; }
.search-field input { border: none; background: transparent; padding: 0; height: 100%; font-size: 14px; }
.search-field input:focus { box-shadow: none; border: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; font-size: 13px; }

/* 关于页链接卡 */
.a-link { display: flex; align-items: center; gap: 12px; }
.a-link:hover { text-decoration: none; }
.a-link-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); font-size: 15px;
}
.a-link-t { flex: 1; font-weight: 600; letter-spacing: -.015em; }
.a-link > i:last-child { color: var(--dim); font-size: 12px; }

@media (max-width: 900px) {
  .search-field { max-width: none; flex-basis: 100%; }
}

/* ---------------- 开发面板 · 看板 ---------------- */
.kanban {
  display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px; align-items: start;
}
.kb-col {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px; min-width: 0;
}
.kb-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 2px 4px 12px;
}
.kb-head i { color: var(--accent); font-size: 12px; }
.kb-head b {
  margin-left: auto; background: var(--surface-3); border-radius: var(--pill);
  padding: 1px 9px; font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.kb-list {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 96px; border-radius: 12px; transition: background .15s ease, outline-color .15s ease;
  outline: 2px dashed transparent; outline-offset: 3px;
}
.kb-list.over { background: var(--accent-soft); outline-color: var(--accent); }
.kb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.kb-card[draggable="true"] { cursor: grab; }
.kb-card[draggable="true"]:active { cursor: grabbing; }
.kb-card.dragging { opacity: .4; }
.kb-card:hover { border-color: var(--border-2); box-shadow: var(--sh-1); }
.kb-card h4 { margin: 0; flex: 1; font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.kb-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; }
.kb-empty { text-align: center; color: var(--dim); font-size: 12.5px; padding: 22px 8px; }

/* ---------------- 更新日志 · 左侧目录 ---------------- */
.chg-layout { display: grid; grid-template-columns: 208px 1fr; gap: 26px; align-items: start; }
.chg-toc { position: sticky; top: 76px; }
.chg-toc-title {
  font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 0 11px 9px;
}
.chg-toc nav { display: flex; flex-direction: column; gap: 2px; max-height: 72vh; overflow-y: auto; }
.chg-item {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 11px;
  border-radius: 10px; border-left: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chg-item:hover { background: var(--surface-2); text-decoration: none; }
.chg-item.active { background: var(--accent-soft); border-left-color: var(--accent); }
.chg-item b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.chg-item small { font-size: 11.5px; color: var(--dim); }
.chg-item.active b { color: var(--accent); }
.chg-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chg-card { scroll-margin-top: 94px; }
.chg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chg-head strong { font-size: 17px; font-weight: 650; letter-spacing: -.018em; }

/* ---------------- 提案 / Bug 卡 ---------------- */
.pp-card { display: flex; flex-direction: column; gap: 10px; }
.pp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.pp-card h3 { margin: 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .kanban { grid-template-columns: repeat(4, minmax(215px, 1fr)); gap: 11px; }
}
@media (max-width: 900px) {
  .kanban {
    grid-template-columns: repeat(4, 76vw);
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; margin: 0 -15px; padding-left: 15px; padding-right: 15px;
  }
  .kb-col { scroll-snap-align: start; }
  .chg-layout { grid-template-columns: 1fr; gap: 14px; }
  .chg-toc { position: static; }
  .chg-toc nav {
    flex-direction: row; overflow-x: auto; gap: 8px;
    max-height: none; padding-bottom: 6px; scrollbar-width: none;
  }
  .chg-toc nav::-webkit-scrollbar { display: none; }
  .chg-item {
    flex: none; border-left: none; border-bottom: 2px solid transparent;
    border-radius: 10px 10px 0 0; padding: 7px 12px;
  }
  .chg-item.active { border-left: none; border-bottom-color: var(--accent); }
  .chg-item small { display: none; }
  .chg-item.active small { display: block; }
}

/* ==================================================================
   底层彩色网格 + 新增组件样式
   ================================================================== */
:root {
  --grid-line:   rgba(0, 113, 227, .075);
  --grid-glow-1: rgba(0, 113, 227, .10);
  --grid-glow-2: rgba(175, 82, 222, .09);
  --grid-glow-3: rgba(48, 209, 88, .07);
}
[data-theme="dark"] {
  --grid-line:   rgba(120, 180, 255, .07);
  --grid-glow-1: rgba(10, 132, 255, .13);
  --grid-glow-2: rgba(191, 90, 242, .11);
  --grid-glow-3: rgba(48, 209, 88, .08);
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 10% -8%, var(--grid-glow-1), transparent 62%),
    radial-gradient(950px 560px at 94% 4%, var(--grid-glow-2), transparent 64%),
    radial-gradient(820px 520px at 46% 106%, var(--grid-glow-3), transparent 62%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  background-attachment: fixed;
}
body.modal-open { overflow: hidden; }

/* ---------------- Markdown 编辑器工具栏 ---------------- */
.md-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.md-editor { border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.md-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.md-tools { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px 6px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.md-tool {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  width: 30px; height: 28px; border-radius: 7px; font-size: 12.5px;
  display: grid; place-items: center; transition: background .15s ease, color .15s ease;
}
.md-tool:hover { background: var(--surface-3); color: var(--accent); }
.md-editor textarea {
  border: none; border-radius: 0; background: transparent; width: 100%;
  padding: 11px 13px; font-size: 14px; line-height: 1.6; resize: vertical; min-height: 90px;
}
.md-editor textarea:focus { box-shadow: none; }

/* ---------------- 评论 ---------------- */
.cm-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.cm-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 14px; letter-spacing: -.015em; }
.cm-title i { color: var(--accent); font-size: 14px; }
.cm-title b { background: var(--surface-3); border-radius: var(--pill); padding: 1px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cm-item { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.cm-item.pending { background: var(--warn-soft); }
.cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12.5px; }
.cm-head b { font-size: 13px; font-weight: 600; }
.cm-empty { color: var(--dim); font-size: 13px; padding: 14px 0; text-align: center; }
.cm-form { background: var(--surface-2); border-radius: 14px; padding: 13px; }
.cm-form .cm-author { margin-bottom: 9px; }
.cm-web { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-actions { display: flex; align-items: center; gap: 12px; margin-top: 11px; flex-wrap: wrap; }
.cm-hint { font-size: 12px; }
.cm-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--muted); background: var(--surface-3); border-radius: var(--pill); padding: 2px 9px;
}
.cm-badge i { font-size: 11px; }
.link-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
}
.link-btn:hover { background: var(--surface-3); color: var(--accent); }
.link-btn.danger:hover { color: var(--err); }

/* ---------------- 弹窗补充 ---------------- */
.modal-wide { max-width: 760px; }
.modal-x {
  position: absolute; top: 18px; right: 18px; border: none; background: var(--surface-2);
  color: var(--muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: .15s ease;
}
.modal-x:hover { background: var(--surface-3); color: var(--text); }
.modal-mask .modal { position: relative; }
.modal-title { margin: 0 0 12px; font-size: 21px; font-weight: 650; letter-spacing: -.022em; line-height: 1.3; }
.modal-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.modal-body { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.modal-tools { display: flex; gap: 9px; margin-top: 16px; }
.modal .field textarea, .modal .field input, .modal .field select { width: 100%; }

/* ---------------- 看板等级色条 ---------------- */
.kb-card { position: relative; padding-left: 16px; overflow: hidden; cursor: pointer; }
.kb-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 3px 3px 0; }
.kb-card h4 { font-size: 13.5px; line-height: 1.4; }
.lv-p0 .kb-bar, .kb-bar.lv-p0 { background: #ff3b30; }
.lv-p1 .kb-bar, .kb-bar.lv-p1 { background: #ff9500; }
.lv-p2 .kb-bar, .kb-bar.lv-p2 { background: var(--accent); }
.lv-p3 .kb-bar, .kb-bar.lv-p3 { background: #8e8e93; }
.lv-tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  border-radius: 5px; padding: 1px 7px;
}
.lv-tag.lv-p0 { background: #ffe5e3; color: #c0392b; }
.lv-tag.lv-p1 { background: #fff0dc; color: #a8590a; }
.lv-tag.lv-p2 { background: var(--accent-soft); color: var(--accent); }
.lv-tag.lv-p3 { background: var(--surface-3); color: var(--muted); }
[data-theme="dark"] .lv-tag.lv-p0 { background: rgba(255, 69, 58, .18); color: #ff6961; }
[data-theme="dark"] .lv-tag.lv-p1 { background: rgba(255, 149, 0, .18); color: #ffb340; }
[data-theme="dark"] .lv-tag.lv-p3 { background: rgba(142, 142, 147, .2); color: #aeaeb2; }

/* 分类胶囊行 */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-row .chip {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  padding: 5px 13px; font-size: 12.5px; font-weight: 500;
}
.chip-row .chip:hover { border-color: var(--border-2); color: var(--text); }
.chip-row .chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ---------------- 赞 / 踩 ---------------- */
.vote-box { display: inline-flex; gap: 6px; }
.vote {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: var(--pill); padding: 3px 11px; font: inherit; font-size: 12.5px;
  transition: .15s ease;
}
.vote i { font-size: 15px; line-height: 1; }
.vote b { font-variant-numeric: tabular-nums; font-weight: 600; }
.vote:hover { border-color: var(--border-2); color: var(--text); }
.vote.up.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vote.down.on { background: var(--err-soft); border-color: var(--err); color: var(--err); }

/* ---------------- 提案卡 ---------------- */
.pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-card { cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pp-card:hover { border-color: var(--border-2); box-shadow: var(--sh-1); transform: translateY(-1px); }
.pp-card h3 { font-size: 15.5px; line-height: 1.4; }
.pp-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.pp-more { margin-left: auto; font-size: 12px; color: var(--dim); display: inline-flex; align-items: center; gap: 5px; }
.pp-card:hover .pp-more { color: var(--accent); }

/* ---------------- 资源清单 ---------------- */
.rs-list { display: flex; flex-direction: column; gap: 14px; }
.rs-cat { padding: 18px 20px; }
.rs-cat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rs-cat-head b { font-size: 16px; font-weight: 650; letter-spacing: -.018em; display: block; }
.rs-cat-head .desc { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.rs-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 15px; flex: none; }
.rs-ops { display: flex; gap: 6px; }
.rs-empty { text-align: center; color: var(--dim); font-size: 13px; padding: 20px; background: var(--surface-2); border-radius: 12px; }

/* ---------------- 服务器文件 ---------------- */
.fm-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; }
.fm-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11px; vertical-align: -6px; }
.fm-ico.dir { background: var(--accent-soft); color: var(--accent); }
.fm-drop { position: relative; min-height: 180px; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.fm-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 12px; font: inherit; color: var(--text); text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.fm-tile:hover { border-color: var(--accent); box-shadow: var(--sh-1); transform: translateY(-2px); }
.fm-tile-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 19px; }
.fm-tile.dir .fm-tile-ico { background: var(--accent-soft); color: var(--accent); }
.fm-tile.up .fm-tile-ico { background: var(--surface-3); color: var(--muted); }
.fm-tile b { font-size: 13px; font-weight: 550; max-width: 100%; }
.fm-tile small { font-size: 11.5px; color: var(--dim); }
.fm-dropmask {
  display: none; position: absolute; inset: 0; z-index: 5;
  align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: var(--accent-soft); border: 2px dashed var(--accent); border-radius: var(--r);
  color: var(--accent); font-weight: 600; font-size: 14px; pointer-events: none;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.fm-dropmask i { font-size: 32px; }

@media (max-width: 1100px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pp-grid { grid-template-columns: 1fr; }
  .rs-cat { padding: 15px; }
  .rs-ops { width: 100%; }
  .fm-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .md-tools { gap: 1px; }
  .md-tool { width: 28px; }
  .modal { padding: 22px; border-radius: 20px; }
  .modal-x { top: 12px; right: 12px; }
}

/* 右上角关闭按钮给首行留出空间，避免遮挡赞/踩 */
.modal > div:first-child { padding-right: 42px; }
.modal > .modal-title:first-child { padding-right: 42px; }

/* ---------------- 审核中心 ---------------- */
.tab-badge {
  background: var(--err); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: var(--pill); padding: 1px 6px; margin-left: 2px;
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.segmented button .tab-badge { background: var(--err); color: #fff; margin-left: 5px; }
.rv-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 15px; margin-bottom: 14px;
}
.rv-all { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.rv-all input { width: auto; }
.rv-bar .btn[disabled] { opacity: .45; pointer-events: none; }
.rv-list { display: flex; flex-direction: column; gap: 11px; }
.rv-card { display: flex; gap: 13px; padding: 15px 17px; transition: border-color .15s ease, background .15s ease; }
.rv-card.on { border-color: var(--accent); background: var(--accent-soft); }
.rv-card.done { opacity: .78; }
.rv-ck { padding-top: 3px; }
.rv-ck input { width: auto; }
.rv-main { flex: 1; min-width: 0; }
.rv-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; font-size: 12.5px; }
.rv-head b { font-size: 13.5px; font-weight: 600; }
.rv-ip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.rv-target { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.rv-kind {
  display: inline-block; background: var(--surface-3); color: var(--muted);
  border-radius: 5px; padding: 1px 7px; margin-right: 7px; font-size: 11px; font-weight: 600;
}
.rv-target a { font-weight: 550; }
.rv-body { background: var(--surface-2); border-radius: 10px; padding: 11px 14px; }
.rv-card.on .rv-body { background: var(--surface); }

@media (max-width: 900px) {
  .rv-card { padding: 13px; gap: 10px; }
  .rv-head { gap: 6px; }
  .rv-head > span:last-child { flex-basis: 100%; }
  .rv-bar .btn { flex: 1 1 auto; }
}

/* ---------------- 顶栏「管理」下拉 ---------------- */
.tabs .tab .caret { font-size: 9px; opacity: .55; margin-left: 1px; }
.tabs .tab .tab-badge { margin-left: 3px; }
.topbar-inner { position: relative; }
.admin-drop {
  position: absolute; top: 0; right: 0; z-index: 60;
  min-width: 182px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 15px; box-shadow: var(--sh-2);
  display: flex; flex-direction: column; gap: 2px;
  animation: dropIn .16s cubic-bezier(.32, .72, 0, 1);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.admin-drop[hidden] { display: none; }
.adm-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 10px; font-size: 13.5px; color: var(--text); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.adm-item:hover { background: var(--surface-2); text-decoration: none; }
.adm-item > i { width: 15px; text-align: center; color: var(--muted); font-size: 12.5px; }
.adm-item.on { background: var(--accent-soft); color: var(--accent); }
.adm-item.on > i { color: var(--accent); }
.adm-item .tab-badge { margin-left: auto; }

/* 顶栏在窄屏下收紧间距 */
@media (max-width: 1080px) {
  .topbar-inner { gap: 12px; }
  .tab { padding: 6px 11px; font-size: 12.5px; }
}
