:root {
  --bg: #0f1523;
  --card: #182034;
  --card-2: #1f2940;
  --line: #2a3550;
  --text: #e8eef9;
  --muted: #93a0bd;
  --blue: #2f6bff;
  --green: #22a06b;
  --red: #e5484d;
  --amber: #d9a441;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.seo-landing {
  max-width: 760px;
  margin: 18px auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.seo-landing h1 { font-size: 22px; margin: 0 0 10px; }
.seo-landing h2 { font-size: 17px; margin: 16px 0 6px; }
.seo-landing p, .seo-landing li { color: var(--muted); }
.seo-landing ul, .seo-landing ol { margin: 6px 0; padding-left: 20px; }
.seo-landing li { margin: 4px 0; }
body.app-ready .seo-landing { display: none; }
.status-message {
  margin: 10px 14px 0;
  padding: 12px 14px;
  border: 1px solid #2b4a7d;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: linear-gradient(180deg, #152341, #121a2b);
  color: #dbe6fb;
  font-size: 14px;
  line-height: 1.6;
}
.status-message.warn {
  border-color: #6b4f18;
  border-left-color: var(--amber);
  background: linear-gradient(180deg, #2a2313, #1a1710);
  color: #f2e2c0;
}
.status-message .status-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 680px) { .status-message { margin: 8px 10px 0; } }
/* 侧边栏默认隐藏，等前端确认登录状态后再显示，避免未登录访客看到菜单 */
body:not(.app-ready) .sidebar { display: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  padding-bottom: 76px;
}
a { color: var(--blue); text-decoration: none; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: rgba(15, 21, 35, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.logo {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2f6bff, #7d4dff); font-weight: 700; font-size: 13px;
}
.top-right { display: flex; align-items: center; gap: 8px; }
.balance { color: var(--green); font-weight: 600; font-size: 13px; white-space: nowrap; }
main { max-width: 1100px; margin: 0 auto; padding: 14px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #131a2b; border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { text-align: center; padding: 8px 2px; color: var(--muted); font-size: 12.5px; }
.tabbar a.active { color: #6f9bff; font-weight: 600; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid transparent;
  background: var(--card-2); color: var(--text); font-size: 14px; cursor: pointer;
}
button.primary, .btn.primary { background: var(--blue); }
button.green { background: var(--green); }
button.red { background: var(--red); }
button.ghost { background: transparent; border-color: var(--line); }
button:disabled { opacity: .5; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #121a2b; color: var(--text); font-size: 15px;
}
label.field { display: block; margin: 10px 0; }
label.field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 10px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 681px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border-radius: 999px; background: #202b44; color: var(--muted); font-size: 12px;
}
.pill.ok { color: #55d39a; }
.pill.warn { color: var(--amber); }
.prefix-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.prefix-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid #202a41;
}
.prefix-item:last-child { border-bottom: none; }
.prefix-item .count { color: var(--muted); font-size: 12.5px; }
.number-list { max-height: 320px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.number-list div { padding: 6px 0; border-bottom: 1px dashed #253052; word-break: break-all; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: #223055; color: #fff; padding: 10px 16px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(6, 9, 16, .72); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal.hidden { display: none; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; width: min(560px, 96vw); max-height: 86vh; overflow: auto; }
.codes { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: #121a2b; padding: 10px; border-radius: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.stat { background: var(--card-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 20px; margin-top: 4px; }
.loading { text-align: center; color: var(--muted); padding: 30px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #232e49; }
th { color: var(--muted); font-weight: 500; }
.scroll-x { overflow-x: auto; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin-bottom:12px; }
.stat { background:#0b1220; border:1px solid #1e293b; border-radius:12px; padding:12px 14px; }
.stat span { display:block; font-size:12px; color:#94a3b8; margin-bottom:6px; }
.stat b { font-size:20px; color:#e2e8f0; }
.card { background:#0b1220; border:1px solid #1e293b; border-radius:14px; padding:14px; margin-bottom:12px; }
.card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.card-head h3 { font-size:15px; margin:0; color:#e2e8f0; }
.card-head .row { flex-wrap:wrap; justify-content:flex-end; }
.card-head button, .row.wrap button { white-space:nowrap; }
pre.code { background:#020617; border:1px solid #1e293b; border-radius:10px; padding:10px; overflow:auto; font-size:12px; color:#93c5fd; }
.order { border-bottom:1px solid #1e293b; padding:8px 0; }
.order:last-child { border-bottom:0; }
.small { font-size:12px; }
@media (max-width: 760px) {
  .tabbar { display:flex; flex-wrap:wrap; gap:6px; }
  .tabbar a { font-size:12px; padding:6px 8px; }
}
.shell { display:flex; min-height:100vh; }
.shell > main {
  flex:1 1 auto;
  min-width:0;
  max-width:1240px;      /* 跟 k8sms 一样：内容居中，两边留出距离 */
  margin:0 auto;
  padding:18px 24px 40px;
}

@media (max-width: 1400px) {
  .shell > main { max-width:none; }
}
.sidebar { width:214px; flex:0 0 214px; background:#0b1220; border-right:1px solid #1e293b; padding:14px 10px; display:flex; flex-direction:column; gap:10px; position:sticky; top:0; height:100vh; }
.side-brand { display:flex; align-items:center; gap:8px; padding:6px 8px 12px; }
.side-brand .logo { width:34px; height:34px; border-radius:10px; background:#2563eb; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.side-brand strong { display:block; font-size:15px; }
.side-brand small { color:#94a3b8; font-size:11px; }
.side-nav { display:flex; flex-direction:column; gap:2px; flex:1; overflow:auto; }
.side-nav a { color:#cbd5e1; text-decoration:none; padding:9px 10px; border-radius:9px; font-size:14px; cursor:pointer; }
.side-nav a:hover { background:#111c33; }
.side-nav a.active { background:#1d4ed8; color:#fff; }
.side-user { border:1px solid #1e293b; border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:6px; background:#0d1526; }
.side-user-label { font-size:11px; color:#64748b; letter-spacing:.08em; }
.side-user-name { font-size:13px; color:#e2e8f0; word-break:break-all; }
.side-nav a { display:flex; align-items:center; gap:10px; }
.side-nav a .ico { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; opacity:.85; }
.side-parent .ico { opacity:.85; }
.side-parent { display:flex; align-items:center; gap:10px; }
.side-parent .chev { margin-left:auto; }
.proj-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
.proj-card { background:#0b1220; border:1px solid #1e293b; border-radius:12px; padding:12px 14px; }
.proj-card h4 { margin:0 0 6px; font-size:15px; color:#e2e8f0; }
.proj-card p { margin:0 0 10px; font-size:12px; color:#94a3b8; }
.proj-meta { display:flex; gap:10px; }
.proj-meta div { flex:1; background:#020617; border:1px solid #1e293b; border-radius:9px; padding:8px 10px; }
.proj-meta span { display:block; font-size:11px; color:#94a3b8; margin-bottom:4px; }
.proj-meta b { color:#93c5fd; font-size:14px; }
.filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:10px; }
.filters > input, .filters > select { width:auto; flex:0 1 auto; min-width:132px; }
.filters > input { flex:1 1 220px; }
.filters > button, .filters > a, .filters > .ghost { flex:0 0 auto; }
@media (max-width: 860px) {
  .shell { flex-direction:column; }
  .sidebar { position:static; width:auto; height:auto; flex:none; }
  .side-nav { flex-direction:row; flex-wrap:wrap; }
}
.side-group { color:#64748b; font-size:11px; padding:10px 10px 2px; letter-spacing:.5px; }
.hidden { display: none !important; }
.buy-box { border-top: 1px solid #1e293b; margin-top: 10px; padding-top: 10px; }
.market-head { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; background:#0b1220; border:1px solid #1e293b; border-radius:12px; padding:14px 16px; margin-bottom:14px; }
.mh-left span { display:block; font-size:12px; color:#64748b; margin-bottom:6px; }
.mh-left b { font-size:20px; color:#e2e8f0; }
.mh-right { display:flex; gap:10px; align-items:flex-end; justify-content:flex-end; flex:1 1 520px; flex-wrap:wrap; }
.mh-field { display:flex; flex-direction:column; gap:4px; flex:1 1 190px; }
.mh-field span { font-size:12px; color:#94a3b8; }
.mh-right .primary, .mh-right .ghost { min-height:46px; }
.side-parent { display:flex; align-items:center; justify-content:space-between; color:#cbd5e1; padding:9px 10px; border-radius:9px; font-size:14px; cursor:pointer; }
.side-parent:hover { background:#111c33; }
.side-parent .chev { font-size:11px; color:#64748b; }
.side-sub { display:flex; flex-direction:column; gap:2px; }
.side-sub a { padding-left:24px; font-size:13px; }
.tier-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.tier-item { display:flex; align-items:center; gap:8px; border:1px solid #334155; border-radius:10px; padding:10px 12px; cursor:pointer; font-size:13px; color:#cbd5e1; }
.tier-item span { white-space:nowrap; }
.tier-item input[type=checkbox] { width:16px; height:16px; }
.tier-item.on { border-color:#2563eb; background:#0f1c33; }
.tier-item.off { opacity:.5; cursor:not-allowed; }

/* 购买弹窗里的号段网格（对齐上游样式） */
.prefix-box { border:1px solid #1e293b; border-radius:10px; overflow:hidden; }
.prefix-box-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px;
  background:#0d1526; border-bottom:1px solid #1e293b; font-size:13px; color:#cbd5e1; }
.prefix-box-head input { background:#0f1626; }
.prefix-box-head a { color:#60a5fa; cursor:pointer; font-size:12.5px; }
.prefix-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; padding:10px; max-height:168px; overflow:auto; }
.prefix-cell { display:flex; align-items:center; gap:8px; border:1px solid #263449; border-radius:8px; padding:8px 10px;
  font-size:13px; color:#e2e8f0; cursor:pointer; }
.prefix-cell:hover { border-color:#2563eb; }
@media (max-width: 700px) { .prefix-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.buy-summary { display:flex; gap:10px; margin-top:12px; }
.buy-summary div { flex:1; background:#020617; border:1px solid #1e293b; border-radius:9px; padding:10px 12px; }
.buy-summary span { display:block; font-size:11px; color:#94a3b8; margin-bottom:4px; }
.buy-summary b { color:#e2e8f0; font-size:14px; }
.market-card.clickable { cursor:pointer; transition:border-color .15s; }
.market-card.clickable:hover { border-color:#2563eb; }
.market-card.soldout { opacity:.72; }
.market-card { position: relative; }
.soldout-chip {
  position: absolute; top: 10px; right: 12px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: #3a2a12; color: #f6c05c; border: 1px solid #6b4f18;
}
.market-card.soldout .proj-meta b { color: #94a3b8; }
button[disabled] { opacity: .6; cursor: not-allowed; }

/* 仪表盘：欢迎条 + 双栏（订单 / 短信） */
.dash-hero { background: linear-gradient(180deg, #141d33, #111a2c); }
.dash-hero .card-head { align-items: flex-start; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-item {
  border: 1px solid #22304c;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #101828;
}
.dash-item:last-child { margin-bottom: 0; }
.dash-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-no { color: #7f8da8; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.dash-title { margin: 6px 0; font-weight: 600; font-size: 14.5px; color: #e8eef9; word-break: break-word; }
.dash-meta { display: flex; flex-wrap: wrap; gap: 18px; }
.dash-meta span { display: flex; flex-direction: column; gap: 2px; }
.dash-meta i { font-style: normal; font-size: 11px; color: #7f8da8; }
.dash-meta b { font-size: 13px; color: #cfd8ea; font-weight: 600; }
.stat em { display: block; font-style: normal; margin-top: 4px; }

/* 号码续费：紧凑信息条 */
.renew-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 4px;
}
.renew-stats div {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 12px;
}
.renew-stats i { display: block; font-style: normal; font-size: 11.5px; color: #94a3b8; margin-bottom: 4px; }
.renew-stats b { font-size: 14px; color: #e2e8f0; }
@media (max-width: 680px) { .renew-stats { grid-template-columns: 1fr 1fr; } }
.renew-projects { border: 1px solid #22304c; border-radius: 10px; padding: 8px 12px; background: #121a2b; }
.renew-projects summary { cursor: pointer; font-size: 13.5px; color: #cfd8ea; }

/* 短信中心：卡片式列表（对齐上游样式） */
.sms-card {
  border: 1px solid #22304c;
  border-radius: 12px;
  background: #101828;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sms-card:last-child { margin-bottom: 0; }
.sms-line1 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13.5px;
  color: #cfd8ea;
  margin-bottom: 6px;
}
.sms-line1 .sms-src { color: #9fb0cd; }
.sms-content { font-size: 14.5px; color: #e8eef9; word-break: break-word; }
.sms-meta { margin-top: 6px; font-size: 12.5px; color: #7f8da8; }
.sms-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #22304c;
}

/* 注册 / 首次充值提示弹窗 */
.risk-notice { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.risk-notice p {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #2a3a55;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background: #131c30;
  color: #cfd8ea;
  font-size: 13.5px;
  line-height: 1.6;
}

/* CDK 兑换 */
.cdk-card { border: 1px solid #2b4a7d; background: linear-gradient(180deg, #13203a, #111a2c); }
.cdk-result {
  border: 1px solid #22304c;
  border-radius: 10px;
  padding: 10px 12px;
  background: #101828;
  margin-top: 6px;
}

/* 购买弹窗：号段选择触发器与弹层（对齐上游） */
.prefix-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #2a3a55;
  border-radius: 10px;
  background: #0f1626;
  color: #e2e8f0;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.prefix-picker-trigger:hover { border-color: #2563eb; }
.prefix-picker {
  margin-top: 10px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
}
.prefix-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #0d1526;
  border-bottom: 1px solid #1e293b;
  font-size: 13px;
  color: #cbd5e1;
}
.prefix-picker-head input { background: #0f1626; }
.prefix-picker-head a { color: #60a5fa; cursor: pointer; font-size: 12.5px; }

/* 资金中心：充值卡密档位与充值提示 */
.money-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-top:8px; }
.buy-card { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:12px 14px; text-align:left; }
.buy-card b { font-size:16px; color:#e2e8f0; }
.buy-card:hover { border-color:#2563eb; }
.fin-tab.active { border-color:#2563eb; background:#0f1c33; color:#e2e8f0; }

/* 公开首页 */
.hero-card { background:linear-gradient(135deg, #101a2e 0%, #16233d 60%, #1b2c4d 100%); }
.hero-card h1 { margin:6px 0 8px; font-size:26px; color:#e8eefc; }
.hero-tag { font-size:11px; letter-spacing:.18em; color:#7aa2f7; text-transform:uppercase; }
.news-item { border-bottom:1px dashed #253052; padding:8px 0; }
.news-item:last-child { border-bottom:none; }
.news-body { white-space:pre-wrap; margin:6px 0; }

/* 明细行：仪表盘 / 资金中心 / 公告 / 联系方式都用它 */
.line { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:7px 0; border-bottom:1px dashed #1f2b45; }
.line:last-child { border-bottom:none; }
.line .k { color:#cbd5e1; font-size:13.5px; word-break:break-all; flex:1 1 auto; }
.line .v { color:#e2e8f0; font-size:13px; text-align:right; flex:0 0 auto; }

/* 资金中心：上下两排（① 买充值卡 ② 在线支付），避免一侧留大片空白 */
.fin-two { display:block; }
.fin-col { min-width:0; }
.fin-col + .fin-col { margin-top:20px; padding-top:16px; border-top:1px dashed #1f2b45; }
.fin-two .money-grid { grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); }
.fin-tips { margin-top:14px; padding-top:10px; border-top:1px dashed #1f2b45; display:flex; flex-direction:column; gap:5px; }
@media (max-width: 900px) {
  .fin-two { grid-template-columns:1fr; gap:16px; }
}
.pay-order {
  border: 1px solid #2a3a55;
  border-radius: 12px;
  background: #121b2c;
  padding: 12px 14px;
}

.pay-order .line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.pay-order .k {
  color: #93a3bd;
}

.pay-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pay-main {
  flex: 1;
  min-width: 180px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 18px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.pay-check {
  flex: 1;
  min-width: 150px;
  padding: 13px 18px;
  font-size: 15px;
}

.pay-success {
  border: 1px solid #1c6b4a;
  border-radius: 12px;
  background: #10251c;
  padding: 14px 16px;
}

.pay-success-title {
  font-size: 17px;
  font-weight: 700;
  color: #34d399;
}

/* 后台导航：分组按钮，点击切换模块，避免整页超长滚动 */
.adm-nav {
  position: sticky;
  top: 58px;
  z-index: 12;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(15, 21, 35, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  overflow-x: auto;
  flex-wrap: nowrap;
}
.adm-nav .adm-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.adm-nav .adm-sep {
  width: 1px;
  height: 20px;
  align-self: center;
  background: var(--line);
  margin: 0 4px;
  flex: 0 0 auto;
}
@media (max-width: 680px) {
  .adm-nav { top: 54px; }
  .adm-nav .adm-sep { display: none; }
}

/* 访问统计：柱状趋势图与排行榜 */
.tchart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 110px;
  padding: 12px 4px 0;
  overflow-x: auto;
}
.tbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 42px;
}
.tbar-count { font-size: 12px; color: #9fb0cd; }
.tbar-fill {
  width: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #7d4dff, #2f6bff);
}
.tbar-date { font-size: 11px; color: #8fa0bd; white-space: nowrap; }
.tbar-pair {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 64px;
}
.tbar-fill.recharge { background: linear-gradient(180deg, #4f8cff, #2f6bff); }
.tbar-fill.spend { background: linear-gradient(180deg, #f6c05c, #d99b1f); }
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 4px;
}
.legend-dot.recharge { background: #2f6bff; }
.legend-dot.spend { background: #d99b1f; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.rank-name {
  flex: 0 0 42%;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  background: #1b2537;
  overflow: hidden;
}
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2f6bff, #7d4dff);
}
.rank-value { flex: 0 0 44px; text-align: right; font-size: 13px; color: #cfd8ea; }

@media (max-width: 680px) {
  .rank-name { flex-basis: 50%; }
}

/* 后台 CDK：多项目 / 多时间档 勾选列表 */
.cdk-times { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card-2);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.chip input { width: 15px; margin: 0; }
.cdk-picks {
  max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  background: #131b2c; padding: 6px; margin-bottom: 10px;
}
.cdk-pick {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 9px;
  cursor: pointer; border: 1px solid transparent;
}
.cdk-pick:hover { background: #182034; }
.cdk-pick.on { background: #16233c; border-color: #2f6bff66; }
.cdk-pick input { width: 16px; margin-top: 2px; }
.cdk-pick-main { display: flex; flex-direction: column; gap: 1px; }
.cdk-pick-name { font-weight: 600; font-size: 14px; }

/* 后台号池：号段多选 */
.prefix-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 150px; overflow: auto; }
.prefix-chips .chip { cursor: pointer; }
.prefix-chips .chip.on { background: #2f6bff2e; border-color: #2f6bff; color: #dbe6fb; }

/* 后台号池排版 */
.pool-wrap { display: flex; flex-direction: column; gap: 14px; }
.pool-card { margin: 0; }
.pool-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.pool-prefix-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.pool-spacer { flex: 1; }
button.small, a.ghost.small { padding: 6px 11px; font-size: 13px; font-weight: 600; }
.pool-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pool-stat {
  border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.pool-stat b { margin-left: 6px; font-size: 14px; }
.pool-stat:hover { border-color: #3d5a90; }
.pool-stat.on { border-color: var(--blue); background: #2f6bff26; }
.pool-toolbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; align-items: end;
}
.pool-toolbar .field { margin: 0; }
.pool-batch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
.pool-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
#pool-list .scroll-x { border: 1px solid var(--line); border-radius: 12px; }
#pool-list table { font-size: 13px; }
#pool-list thead th {
  position: sticky; top: 0; z-index: 1; background: #131b2c; color: var(--muted);
  font-weight: 600; white-space: nowrap;
}
#pool-list tbody tr:nth-child(odd) { background: #141d2f; }
#pool-list tbody tr:hover { background: #18233a; }
#pool-list td { padding: 8px 8px; vertical-align: middle; }
.pool-card > summary { cursor: pointer; }
@media (max-width: 760px) {
  .pool-toolbar { grid-template-columns: 1fr 1fr; }
  .pool-batch { gap: 6px; }
}

/* 登录 / 注册小卡片（对齐上游样式） */
.auth-wrap { max-width: 420px; margin: 34px auto 0; padding: 0 12px; }
.auth-card { padding: 22px 22px 18px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth-brand .logo {
  width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg,#2f6bff,#7d4dff); display: grid; place-items: center;
}
.auth-brand strong { font-size: 15px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.auth-tabs button {
  flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.auth-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.auth-card .field { margin: 0 0 12px; }
.auth-submit { width: 100%; margin-top: 4px; padding: 11px 0; }
.auth-foot { margin-top: 12px; line-height: 1.7; }
@media (max-width: 520px) { .auth-wrap { margin-top: 16px; } }
