: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, #1e3a6e, #3a2a68); color: #dbe6ff;
  border: 1px solid rgba(148, 163, 184, .18); 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:#1e3a6e; color:#dbe6ff; border:1px solid rgba(148,163,184,.18); 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; font-size:10px; line-height:1; color:#64748b; transition:transform .18s ease; }
.side-parent.open .chev { transform:rotate(180deg); }
.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:10px; line-height:1; color:#64748b; }
.side-sub { display:flex; flex-direction:column; gap:2px; }
/* 子菜单与父级同列对齐（图标同一竖线），只降低字号与亮度表示层级，避免整列看起来错位 */
.side-sub a { padding:8px 10px; font-size:13.5px; color:#9fadc9; }
.side-sub a .ico { opacity:.7; }
.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(auto-fill, minmax(132px, 1fr)); gap:8px; padding:10px; max-height:200px; 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; white-space:nowrap; overflow:hidden; }
.prefix-cell span:first-of-type { font-weight:600; letter-spacing:.4px; }
.prefix-cell.on { border-color:#2563eb; background:#12203a; }
.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; }

/* 资金中心：分步骤卡片（① 充值卡 ② USDT ③ 在线支付） */
.fin-steps { display:flex; flex-direction:column; gap:14px; }
.fin-step { border:1px solid #1f2b45; border-radius:12px; padding:14px 16px; background:#0c1322; }
.fin-step-head { display:flex; gap:10px; align-items:flex-start; margin-bottom:12px; }
.fin-step-no { flex:0 0 auto; width:24px; height:24px; border-radius:8px; background:#0f1c33; color:#60a5fa;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.fin-step-title { font-weight:700; color:#e2e8f0; font-size:14.5px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fin-step-desc { color:#94a3b8; font-size:12.5px; margin-top:3px; line-height:1.55; }
.tag-ok { font-size:11.5px; color:#10b981; border:1px solid #134e3a; background:#0b241c; padding:1px 8px;
  border-radius:20px; font-weight:600; }
.tag-warn { font-size:11.5px; color:#f0b34c; border:1px solid #4a3413; background:#241b0b; padding:1px 8px;
  border-radius:20px; font-weight:600; }
.chip-row { gap:8px; }
.chip { background:#111a2b; border:1px solid #24314d; color:#cbd5e1; border-radius:9px; padding:8px 14px;
  font-size:13.5px; cursor:pointer; }
.chip:hover { border-color:#2563eb; }
.chip.active { border-color:#2563eb; background:#0f1c33; color:#e2e8f0; font-weight:700; }

/* USDT 充值网络选择：独立卡片，避免和上面的金额按钮混在一起 */
.net-picker {
  margin-top: 14px;
  padding: 12px 14px 13px;
  border: 1px solid #2b3a5c;
  border-left: 4px solid #2f6bff;
  border-radius: 12px;
  background: linear-gradient(180deg, #16203a, #131a2b);
}
.net-picker-title {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; color: #dbe6fb; margin-bottom: 10px;
}
.net-picker-title span { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.net-picker-list { display: flex; gap: 10px; flex-wrap: wrap; }
.net-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-width: 122px; padding: 9px 14px; cursor: pointer;
  border: 1.5px solid #2a3550; border-radius: 11px;
  background: #111a2b; color: #cbd5e1; transition: .15s;
}
.net-btn:hover { border-color: #3b82f6; }
.net-btn .net-name { font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.net-btn .net-sub { font-size: 11px; color: var(--muted); }
.net-btn.active {
  border-color: #2f6bff; background: #10203f; color: #eaf1ff;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, .18);
}
.net-btn.active .net-name::after { content: " ✓"; color: #22c55e; font-weight: 800; }
.net-btn.active .net-sub { color: #9db8ea; }
.pay-actions.two { display:grid; gap:10px; grid-template-columns:1fr 1fr; }
@media (max-width: 620px) { .pay-actions.two { grid-template-columns:1fr; } }
.pay-btn { display:flex; flex-direction:column; align-items:flex-start; gap:3px; border-radius:11px;
  padding:12px 14px; border:1px solid #24314d; background:#111a2b; color:#e2e8f0; cursor:pointer; text-align:left; }
.pay-btn .pay-btn-name { font-size:12.5px; color:#cbd5e1; }
.pay-btn .pay-btn-main { font-size:16px; font-weight:700; }
.pay-btn .pay-btn-sub { font-size:12px; color:#94a3b8; }
.pay-btn.alipay { border-color:#1d4ed8; background:linear-gradient(180deg,#12224a,#0d1830); }
.pay-btn.alipay .pay-btn-main { color:#93c5fd; }
.pay-btn.wx { border-color:#0f5132; background:linear-gradient(180deg,#0e2a20,#0a1c15); }
.pay-btn.wx .pay-btn-main { color:#6ee7b7; }
.pay-btn:hover { filter:brightness(1.15); }
.fin-note { margin-top:12px; padding-top:10px; border-top:1px dashed #1f2b45; color:#8b9ab3; font-size:12.5px; line-height:1.6; }
@media (max-width: 620px) {
  .money-grid { grid-template-columns:repeat(2, 1fr); gap:8px; }
  .buy-card { padding:10px 12px; }
  .fin-step { padding:12px 12px; }
}
@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,#1e3a6e,#3a2a68); border: 1px solid rgba(148,163,184,.18); color: #dbe6ff; 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; } }

/* ==========================================================================
   视觉优化 v3（2026-09-18）
   1) 刷新防闪烁  2) 全局质感（卡片/按钮/表单/表格/统计）  3) 后台新版左侧分组布局
   ========================================================================== */

/* 1) 刷新防闪烁：JS 可用时立即隐藏 SEO 兜底文案（爬虫与无 JS 环境照旧能读到），
      避免刷新时整屏闪现关键词介绍，由应用直接渲染正式界面。 */
html.js-app .seo-landing { display: none !important; }

/* 2) 全局质感 */
:root {
  --line-2: #33456b;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -22px rgba(0, 0, 0, .85);
  --ring: 0 0 0 3px rgba(47, 107, 255, .2);
}
body {
  background-color: var(--bg);
  background-image: radial-gradient(1200px 520px at 50% -180px, #17233c 0%, rgba(23, 35, 60, 0) 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid #5b8bff; outline-offset: 2px; }

.card {
  border-radius: var(--radius-card);
  border-color: #26324c;
  background: linear-gradient(180deg, #151f34, #101827);
  box-shadow: var(--shadow-card);
}
.card-head { gap: 10px; }
.card-head h3 { font-size: 15.5px; letter-spacing: -.01em; }

button, .btn {
  transition: background .16s ease, border-color .16s ease, color .16s ease,
              transform .12s ease, box-shadow .16s ease;
  font-weight: 600;
}
button.primary, .btn.primary {
  background: linear-gradient(135deg, #2f6bff, #5b46e5);
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(47, 107, 255, .95);
}
button:hover:not(:disabled), .btn:hover { filter: brightness(1.1); }
button:active:not(:disabled), .btn:active { transform: translateY(1px); filter: brightness(.98); }
button.ghost {
  background: #141d31;
  border-color: #26324c;
  color: #d7e0f2;
}
button.ghost:hover:not(:disabled) { border-color: var(--line-2); background: #182238; }
button.green { background: linear-gradient(135deg, #1f9e69, #17a06b); }
button.red { background: linear-gradient(135deg, #e5484d, #c73a44); }

input, select, textarea { background: #0f1728; border-color: #26324c; transition: border-color .16s ease, box-shadow .16s ease; }
input::placeholder, textarea::placeholder { color: #5f6d8c; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #3f6bff; box-shadow: var(--ring);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: #2f6bff; }

table td, table th { padding: 9px 8px; }
table thead th { background: #131c2e; color: #8fa0bd; font-weight: 600; font-size: 12.5px; }
table tbody tr { transition: background .14s ease; }
table tbody tr:hover { background: rgba(47, 107, 255, .07); }
table tbody tr:last-child td { border-bottom: none; }
.scroll-x { border-radius: 12px; }

.stat {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border-color: #26324c;
  background: linear-gradient(180deg, #16203a, #111a2c);
  transition: border-color .16s ease, transform .16s ease;
}
.stat::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #4f8cff, #7d4dff);
}
.stat:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stat b { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.pill { background: #1b2740; color: #a9b7d3; border: 1px solid #26324c; }
.pill.ok { color: #55d39a; border-color: #1d4d3a; background: #0f2a20; }
.pill.warn { color: #f0b34c; border-color: #4a3413; background: #241b0b; }

.hero-card, .dash-hero { box-shadow: 0 24px 60px -34px rgba(47, 107, 255, .85); }
.tabbar a.active { position: relative; }
.tabbar a.active::before {
  content: ''; position: absolute; top: 1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #2f6bff, #7d4dff);
}
.toast { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .95); border: 1px solid #2c3d61; }
.modal-card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95); }
.loading { letter-spacing: .02em; }
.grid.two { align-items: start; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a3550; border-radius: 8px; border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #3b4a70; background-clip: content-box; }

/* 3) 后台新版：左侧分组菜单 + 右侧卡片面板 */
body.adm-mode .sidebar { display: none; }
body.adm-mode .shell > main { max-width: 1500px; }
.adm-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-side {
  position: sticky; top: 66px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px;
  border: 1px solid #26324c; border-radius: var(--radius-card);
  background: linear-gradient(180deg, #131d31, #0e1626);
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 86px); overflow: auto;
}
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid #212c44; }
.adm-brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1e3a6e, #3a2a68);
  border: 1px solid rgba(148,163,184,.18); color: #dbe6ff;
}
.adm-brand strong { display: block; font-size: 14px; }
.adm-brand small { font-size: 11.5px; }
.adm-menu { display: flex; flex-direction: column; gap: 12px; }
.adm-group { display: flex; flex-direction: column; gap: 3px; }
.adm-group-title {
  padding: 0 8px 4px; font-size: 10.5px; letter-spacing: .14em;
  color: #64748b; text-transform: uppercase;
}
.adm-side .adm-tab {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 10px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: #c3cee3;
  font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none;
  justify-content: flex-start;
}
.adm-side .adm-tab .ico {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.adm-side .adm-tab.active .ico { opacity: 1; color: #9dbcff; }
.adm-side .adm-tab:hover { background: #182238; border-color: #26324c; color: #e8eef9; }
.adm-side .adm-tab.active {
  background: linear-gradient(135deg, rgba(47, 107, 255, .26), rgba(125, 77, 255, .18));
  border-color: #33518f; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(122, 162, 247, .16);
}
.adm-side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #212c44; }
.adm-side-foot button { width: 100%; }
.adm-main { min-width: 0; }
.adm-page-head { margin: 2px 0 12px; }
.adm-page-head h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.01em; }
.adm-page-head p { margin: 0; }
.adm-main table td, .adm-main table th { white-space: nowrap; vertical-align: middle; }
.adm-main table { font-size: 12.5px; }
.adm-main table td, .adm-main table th { padding: 8px 7px; }
.adm-main table thead th { font-size: 12px; }
.adm-inline { display: inline-flex; align-items: center; gap: 5px; }
.adm-inline input { width: 66px; padding: 6px 8px; font-size: 12.5px; }
.adm-inline .pill { white-space: nowrap; }
/* 操作列固定在右侧，表格横向滚动时也能直接点「单独价格 / 删除」 */
.adm-main table th:last-child, .adm-main table td:last-child {
  position: sticky; right: 0; background: #131c2e;
  box-shadow: -10px 0 14px -12px rgba(0, 0, 0, .95);
}
.adm-main table tbody tr:hover td:last-child { background: #172235; }
button.mini {
  padding: 6px 9px; font-size: 12.5px; border-radius: 8px; font-weight: 600;
  background: #1a243a; border: 1px solid #2a3550; color: #cfdaf0;
}
button.mini:hover:not(:disabled) { background: #21304d; border-color: var(--line-2); }
button.mini.danger { color: #ffb4b6; border-color: #4a2427; background: #2a1416; }
button.mini.danger:hover:not(:disabled) { background: #3a1a1d; border-color: #6d2f33; }
.hot-bar { width: 130px; height: 7px; border-radius: 6px; background: #1b2740; overflow: hidden; }
.hot-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f6bff, #7d4dff); }

/* IP 专区商品卡片 */
/* 号码市场：跟上游一致的 3 列卡片布局 */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
@media (max-width: 1240px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-meta div { background: #121b2d; border: 1px solid #26324c; border-radius: 8px; }
.proj-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: var(--radius-card);
  border: 1px solid #26324c; background: linear-gradient(180deg, #151f34, #101827);
  box-shadow: var(--shadow-card);
}
.proj-card h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.proj-card .proj-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.proj-card .proj-meta > div { display: flex; flex-direction: column; gap: 2px; }
.proj-card .proj-meta span { font-size: 12px; color: var(--muted); }
.proj-card .proj-meta b { font-size: 14.5px; color: #e8eef9; }
.ip-card { border-color: #2b3a5c; }
.proj-meta b { white-space: nowrap; }
/* IP 卡片：价格 / 地区 / 规格 改成一行一项，避免文字被挤断 */
.ip-card .proj-meta { display: flex; flex-direction: column; gap: 6px; }
.ip-card .proj-meta > div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex: none; flex-direction: row; padding: 7px 10px;
}
.ip-card .proj-meta span { margin: 0; }
.ip-card .row { margin-top: auto !important; }
.ip-card .row .btn { padding: 9px 14px; }
.ip-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.ip-filters .mh-field { display: flex; flex-direction: column; gap: 4px; }
.ip-filters .mh-field > span { font-size: 12px; color: var(--muted); }
.ip-country { margin-bottom: 14px; }
.ip-country-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 15px; font-weight: 700; margin: 4px 0 8px;
}
.chip-row .chip.on { border-color: #2f6bff; color: #cfe0ff; background: #16233d; }
.chip-row .chip { cursor: pointer; }

/* IP 专区（仿上游购买页，保持暗色） */
.ip-biz-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; flex-wrap: wrap; }
.ip-label { font-size: 14px; font-weight: 700; color: #e8eef9; }
.ip-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ip-tab {
  padding: 7px 14px; border-radius: 10px; border: 1px solid #26324c; background: #131c2e;
  color: #b9c6de; font-size: 13px; cursor: pointer;
}
.ip-tab.on { background: linear-gradient(135deg, #2f6bff, #5b46e5); border-color: transparent; color: #fff; }
.ip-biz-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.ip-biz {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid #26324c; background: #101827; color: #d7e0f2; font-size: 13.5px; cursor: pointer;
}
.ip-biz.on { border-color: #33518f; background: #16233d; color: #fff; }
.ip-biz-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f6bff; }
.ip-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.ip-type {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1px solid #26324c; background: #101827;
  color: #d7e0f2; cursor: pointer;
}
.ip-type b { font-size: 15px; }
.ip-type span { font-size: 12.5px; color: #93a0bd; }
.ip-type.on { border-color: #2f6bff; background: #16233d; }
.ip-region-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ip-region-head > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ip-region-search { width: 220px; padding: 8px 12px; }
.ip-shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; width: 100%; }
.ip-city-grid { min-width: 0; }
.ip-city-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; width: 100%;
}
@media (max-width: 1400px) { .ip-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .ip-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ip-city-grid { grid-template-columns: 1fr; } }
.ip-city {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left;
  border-radius: 12px; border: 1px solid #26324c; background: #101827; color: #d7e0f2; cursor: pointer;
  min-width: 0; overflow: hidden;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.ip-city:hover { border-color: #33518f; background: #141d31; transform: translateY(-1px); }
.ip-city.on {
  border-color: #2f6bff; background: linear-gradient(135deg, rgba(47,107,255,.18), rgba(125,77,255,.12));
  box-shadow: 0 0 0 1px rgba(47,107,255,.35), 0 10px 26px -18px rgba(47,107,255,.9);
}
.ip-city-flag {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #0d1524; border: 1px solid #22304c; font-size: 17px; flex: 0 0 34px;
}
.ip-city-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ip-city-main b { font-size: 14.5px; display: flex; align-items: baseline; gap: 6px; }
.ip-city-main b em { font-style: normal; font-size: 11.5px; color: #7488ab; font-weight: 400; }
.ip-city-sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8fa0bd; }
.ip-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.ip-split { width: 1px; height: 10px; background: #2a3550; display: inline-block; }
.ip-city-price { font-size: 13px; color: #55d39a; font-weight: 700; }
.ip-city-price em { font-style: normal; font-size: 11px; color: #7f8da8; font-weight: 400; }
.ip-city-go {
  flex: 0 0 auto; font-size: 11.5px; color: #9dbcff; border: 1px solid #33518f;
  padding: 3px 9px; border-radius: 999px; background: rgba(47,107,255,.12);
}
.ip-city.on .ip-city-go { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.ip-city-main b { font-size: 14px; }
.ip-city-tags { display: flex; flex-direction: column; gap: 3px; margin-left: auto; }
.ip-city-tags em {
  font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 7px;
  border: 1px solid #2a3550; color: #b9c6de;
}
.ip-city-tags em.on { border-color: #2f6bff; color: #fff; }
.ip-city-go { color: #64748b; font-size: 20px; margin-left: 6px; }
.ip-order-panel {
  position: sticky; top: 70px; padding: 14px; border-radius: 14px;
  border: 1px solid #26324c; background: linear-gradient(180deg, #151f34, #101827);
  box-shadow: var(--shadow-card);
}
.ip-order-panel h4 { margin: 0 0 6px; font-size: 15px; }
.ip-picked { margin: 8px 0 10px; padding: 10px; border-radius: 10px; background: #0f1728; }
.ip-picked-name { font-weight: 700; margin-bottom: 4px; }
.ip-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ip-qty button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid #2a3550; background: #16233d;
  color: #d7e0f2; cursor: pointer;
}
.ip-days { display: flex; gap: 6px; margin-top: 8px; }
.ip-day {
  padding: 5px 10px; border-radius: 8px; border: 1px solid #2a3550; background: #131c2e;
  color: #b9c6de; font-size: 12.5px; cursor: pointer;
}
.ip-day.on { border-color: #2f6bff; color: #fff; background: #16233d; }
.ip-order-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #1f2b45; font-size: 13px; }
.ip-order-line.total { border-bottom: none; font-size: 15px; color: #55d39a; }
.ip-pay-title { margin: 10px 0 6px; font-size: 13px; color: #93a0bd; }
.ip-pay-list { display: flex; flex-direction: column; gap: 6px; }
.ip-pay {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #26324c; background: #101827; color: #d7e0f2; font-size: 13px; cursor: pointer; text-align: left;
}
.ip-pay.on { border-color: #2f6bff; background: #16233d; }
.ip-pay-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #2a3550; }
.ip-pay.on .ip-pay-dot { border-color: #2f6bff; background: #2f6bff; }
.ip-buy-btn { width: 100%; margin-top: 12px; padding: 12px 0; font-size: 15px; }
.ip-order-panel h4 {
  padding-left: 9px; border-left: 3px solid #2f6bff; line-height: 1.1;
}
.ip-order-line b { font-variant-numeric: tabular-nums; }
.ip-order-line.total b { font-size: 19px; }
.ip-picked { border: 1px solid #22304c; background: linear-gradient(180deg, #121b2d, #0e1626); }
.ip-pay:hover { border-color: #33518f; }
.ip-buy-btn {
  background: linear-gradient(135deg, #2f6bff, #5b46e5) !important;
  box-shadow: 0 14px 30px -18px rgba(47,107,255,.95);
  letter-spacing: .04em;
}
.ip-biz, .ip-tab, .ip-type, .ip-day { transition: border-color .15s ease, background .15s ease; }
.ip-biz:hover, .ip-tab:hover, .ip-day:hover { border-color: #33518f; }
.ip-type:hover { border-color: #33518f; background: #141d31; }
@media (max-width: 900px) {
  .ip-shop-body { grid-template-columns: 1fr; }
  .ip-order-panel { position: static; }
  .ip-type-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .adm-shell { grid-template-columns: 1fr; gap: 12px; }
  .adm-side { position: static; max-height: none; }
  .adm-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
  .adm-group { display: contents; }
  .adm-group-title { display: none; }
  .adm-side-foot { margin-top: 0; }
}

/* ==========================================================================
   低对比度优化（2026-09-18）：把纯白/亮白的标题与数字换成柔和灰蓝，
   减少夜间刺眼、长时间浏览更舒服。
   ========================================================================== */
:root { --text: #d6dfef; }
body { color: #d6dfef; }
h1, h2, h3, h4 { color: #cbd6e8; }
.card h3, .card-head h3 { color: #c9d4e7; }
.proj-card h4, .ip-city-main b { color: #cfd9ea; }
.proj-card .proj-meta b, .proj-meta b { color: #9dc0f2; }
.proj-card .proj-meta span, .proj-meta span { color: #8b9ab8; }
.stat b { color: #d3dcec; }
.line .k, .line b, td b, strong b { color: #ccd6e7; }
.sms-content, .sms-content b { color: #cfd9ea; }
table td, table th { color: #c6d1e4; }
input, select, textarea { color: #d2dcec; }
.muted, .small, .muted.small { color: #8a99b7; }

/* 侧边菜单/高亮配色调暗（2026-09-18）：不再用高饱和亮蓝整块填充 */
.side-nav a, .side-parent { color: #9fadc9; }
.side-nav a:hover, .side-parent:hover { background: #131c2e; color: #c8d3e6; }
.side-nav a.active, .side-nav a.on, .side-nav a[active] {
  background: linear-gradient(90deg, rgba(47,107,255,.20), rgba(47,107,255,.05));
  color: #b9cbe8; border-left: 2px solid #2f6bff; font-weight: 600;
}
.side-nav a.active .ico, .side-nav a.on .ico { opacity: 1; color: #6f9bff; }
.sidebar { background: #0e1626; }
.sidebar .side-user { border-top: 1px solid #1d2740; }
.tabbar a.active { color: #6f9bff; }
.logo, .auth-brand .logo, .adm-brand-logo {
  background: linear-gradient(135deg, #1e3a6e, #3a2a68);
  border: 1px solid rgba(148,163,184,.18);
  color: #dbe6ff;
}

/* 城市卡片更紧凑（一行放 4 个，好找城市） */
.ip-city { padding: 9px 11px; gap: 8px; border-radius: 10px; }
.ip-city-flag { width: 26px; height: 26px; flex: 0 0 26px; font-size: 14px; border-radius: 8px; }
.ip-city-main b { font-size: 13.5px; }
.ip-city-main b em { display: none; }
.ip-city-sub { font-size: 11px; gap: 4px; }
.ip-city-price { font-size: 12px; }
.ip-city-go { display: none; }
.ip-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1400px) { .ip-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 网段（CIDR）选择 */
.ip-cidr-title { margin: 10px 0 6px; font-size: 12.5px; color: #93a0bd; }
.ip-cidr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ip-cidr {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 7px 9px; border-radius: 8px; border: 1px solid #26324c; background: #101827;
  color: #cfd9ea; font-size: 12px; cursor: pointer; text-align: left;
}
.ip-cidr em { font-style: normal; font-size: 10.5px; color: #7f8da8; }
.ip-cidr.on { border-color: #2f6bff; background: #16233d; }

/* IP 专区铺满整屏：内容占满可用宽度，右侧订单面板拉高、按钮沉底（更方便下单） */
body.ip-wide .shell > main { max-width: none; width: 100%; padding: 14px 20px 40px; }
body.ip-wide .card { max-width: none; }
.ip-shop-body { grid-template-columns: minmax(0, 1fr) 340px; }
.ip-order-panel { display: flex; flex-direction: column; min-height: 640px; }
.ip-order-panel .ip-buy-btn { margin-top: auto; padding: 14px 0; font-size: 16px; }
.ip-cidr-list { max-height: 220px; overflow: auto; }
@media (max-width: 1100px) { .ip-order-panel { min-height: 0; } }

/* 城市卡片强制变小（单行、5 列），跟上游一样密 */
.ip-city { padding: 7px 9px !important; gap: 7px !important; border-radius: 9px !important; }
.ip-city-flag { width: 22px !important; height: 22px !important; flex: 0 0 22px !important; font-size: 12px !important; border-radius: 6px !important; }
.ip-city-main { gap: 1px !important; }
.ip-city-main b {
  font-size: 12px !important; display: block !important;
  /* 城市名要完整显示（例如「美国-华盛顿-双NTT」），最多两行，不再用省略号截断 */
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  line-height: 1.3 !important; word-break: break-word !important;
}
.ip-city-main b em { display: none !important; }
.ip-city-sub { font-size: 10.5px !important; gap: 4px !important; white-space: nowrap !important; overflow: hidden !important; }
.ip-split, .ip-dot { display: none !important; }
.ip-city-price { font-size: 11.5px !important; white-space: nowrap !important; }
.ip-city-go { display: none !important; }
.ip-city-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 8px !important; }
@media (max-width: 1500px) { .ip-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 1150px) { .ip-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 820px) { .ip-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.ip-biz, .ip-tab, .ip-type, .ip-day { padding-top: 7px !important; padding-bottom: 7px !important; font-size: 13px !important; }
.ip-type { padding: 10px 12px !important; }
.ip-type b { font-size: 14px !important; }
.ip-type span { font-size: 11.5px !important; }

/* 网段（CIDR）选择：改成清爽的单列行，跟上游一样好点好认 */
.ip-cidr-title { margin: 12px 0 6px; padding-left: 8px; border-left: 3px solid #2f6bff; font-size: 12.5px; color: #a9b7d3; }
.ip-cidr-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; padding-right: 2px; }
.ip-cidr {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  justify-content: space-between !important; gap: 10px !important;
  padding: 9px 12px !important; border-radius: 9px !important;
  border: 1px solid #26324c !important; background: #101827 !important;
  color: #cfd9ea !important; font-size: 12.5px !important; cursor: pointer;
}
.ip-cidr em { font-style: normal !important; font-size: 11.5px !important; color: #7f8da8 !important; }
.ip-cidr:hover { border-color: #33518f !important; background: #141d31 !important; }
.ip-cidr.on {
  border-color: #2f6bff !important;
  background: linear-gradient(135deg, rgba(47,107,255,.18), rgba(125,77,255,.10)) !important;
  color: #fff !important;
}
.ip-cidr.on em { color: #9dbcff !important; }

/* IP 订单面板的醒目提示（红色） */
.ip-warn {
  margin: 6px 0 10px; padding: 9px 11px; border-radius: 9px;
  background: #2a1416; border: 1px solid #6d2f33; color: #ffb4b6;
  font-size: 12.5px; line-height: 1.6; font-weight: 600;
}
.ip-warn a { color: #ffd0d2; text-decoration: underline; }
.ip-warn a:hover { color: #fff; }

/* 站长中心：左侧分类/菜单 + 右侧内容（2026-09-19） */
body.tenant-wide .shell > main { max-width: none; width: 100%; padding: 14px 18px 40px; }
body.tenant-wide .card { max-width: none; }

/* 下单等待提示：客户点购买后立刻看到「正在分配号码」，避免以为没反应又点一次 */
.busy-box { text-align: center; padding: 14px 6px 4px; }
.busy-spinner {
  width: 46px; height: 46px; margin: 4px auto 14px; border-radius: 50%;
  border: 4px solid rgba(148, 163, 184, .22);
  border-top-color: #38bdf8;
  animation: busy-spin .8s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
.busy-box h3 { margin: 0 0 8px; }
.busy-note { color: var(--muted, #94a3b8); font-size: 13px; line-height: 1.75; margin: 0; }

/* 子页面标题栏（对齐上游风格） */
.page-head{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:12px;background:#0f1727;border:1px solid #1e293b;border-radius:14px}
.page-head h3{font-size:18px}

/* 桌面端隐藏顶栏品牌（与侧边栏品牌重复），对齐上游单品牌布局 */
@media (min-width: 900px) {
  .topbar .brand { display: none !important; }
  .topbar { justify-content: flex-end; }
}

/* 对齐上游源头站：侧边栏品牌做成独立卡片 + 内容区标题栏加粗带下边框 */
.side-brand {
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  margin: 10px !important;
  background: linear-gradient(180deg, rgba(23, 33, 54, .95), rgba(15, 23, 39, .95)) !important;
}
.side-brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2f6bff, #7d4dff) !important;
  color: #fff !important; font-weight: 800;
}
.side-brand strong { font-size: 16.5px !important; letter-spacing: .2px; }
.side-brand small { color: #8b9ab5 !important; }
.market-head, .page-head {
  border-bottom: 1px solid rgba(148, 163, 184, .16) !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
}
.market-head .mh-left b, .page-head h3 { font-size: 19px !important; font-weight: 800 !important; color: #e8eef9 !important; }
.market-head .mh-left span { color: #7f8da8 !important; font-size: 13px; }
.side-nav a.active, .side-nav a[style*="background"] {
  border-left: 3px solid #4f8cff !important;
}

/* 顶栏当前页面标题（对齐上游内容区标题） */
.top-page-title { font-size: 19px; font-weight: 800; color: #e8eef9; letter-spacing: .3px; }
.topbar { display: flex; align-items: center; gap: 14px; }
.topbar .top-page-title { margin-right: auto; }
@media (max-width: 899px) { .top-page-title { font-size: 16px; } }

/* 桌面端：把「当前页面名」放到右侧内容区顶部（对齐上游），而不是压在侧边栏上方 */
@media (min-width: 900px) {
  .topbar { background: transparent !important; border-bottom: none !important; padding: 0 !important; }
  .topbar .brand { display: none !important; }
  .top-page-title {
    position: fixed; top: 0; left: var(--side-w, 236px); right: 0;
    height: 46px; display: flex; align-items: center;
    padding: 0 22px; margin: 0;
    background: rgba(11, 18, 32, .96); border-bottom: 1px solid rgba(148,163,184,.16);
    z-index: 15; backdrop-filter: blur(8px);
  }
  .shell > main { padding-top: 58px; }
}

/* 侧边栏品牌卡片上移，贴到最顶部（对齐右侧标题栏） */
@media (min-width: 900px) {
  .sidebar { padding-top: 6px !important; }
  .side-brand { margin-top: 4px !important; margin-bottom: 12px !important; }
  .side-nav { margin-top: 0 !important; }
}

/* 站长要求：左侧品牌卡片顶到最上、整体背景更暗、蓝色再淡一点 */
:root { --bg: #070a12 !important; }
body { background: #070a12 !important; }
.card, .panel, .market-card, .proj-card { background: #0b1120 !important; }
@media (min-width: 900px) {
  .sidebar { padding-top: 0 !important; background: #080c16 !important; }
  .side-brand { margin: 0 10px 12px !important; }
  .topbar { min-height: 0 !important; }
}
.side-brand .logo {
  background: linear-gradient(135deg, #3b6fd4, #6d6ad8) !important;  /* 蓝色调淡一档 */
}
.side-nav a.active, .side-nav a[style*="background"] {
  border-left: 3px solid #6d9cf0 !important;   /* 高亮淡一点 */
  background: rgba(109, 156, 240, .10) !important;
}
button.primary, .btn.primary {
  background: linear-gradient(135deg, #3568d4, #5b7fe0) !important;  /* 主按钮蓝淡一点 */
}

/* 桌面端：左侧菜单和顶部标题固定不动，只有右侧商品列表滚动 */
@media (min-width: 900px) {
  .sidebar {
    position: fixed !important; top: 0; bottom: 0; left: 0;
    width: 214px !important; overflow-y: auto; z-index: 16;
  }
  .shell > main { margin-left: 214px !important; }
  .top-page-title { left: 214px !important; }
}

/* 桌面端：隐藏顶栏（避免它的毛玻璃把侧边栏品牌卡糊掉），内容区撑满右侧 */
@media (min-width: 900px) {
  .topbar { display: none !important; }
  .shell > main {
    margin-left: 214px !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 58px 22px 48px !important;
  }
  .side-brand, .side-brand * { filter: none !important; backdrop-filter: none !important; }
  .sidebar { backdrop-filter: none !important; }
}

/* 桌面端：市场筛选条固定在顶部；商品网格铺满不裁切 */
@media (min-width: 900px) {
  .market-head {
    position: sticky !important; top: 46px; z-index: 14;
    background: rgba(10, 15, 26, .97) !important;
    backdrop-filter: blur(6px);
    padding: 10px 14px !important; border-radius: 12px;
    border: 1px solid rgba(148,163,184,.14);
  }
  .shell > main { padding-right: 16px !important; overflow-x: hidden; }
  .shell > main .grid, .shell > main .cards, .shell > main .market-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 14px !important;
    max-width: 100% !important;
  }
  .proj-card, .market-card, .card { max-width: 100% !important; box-sizing: border-box; }
}

/* 修正：main 上的 overflow-x:hidden 会让 sticky 失效，这里改回 visible */
@media (min-width: 900px) {
  .shell > main { overflow-x: visible !important; overflow-y: visible !important; }
  .market-head { position: -webkit-sticky; position: sticky; top: 46px; }
}

/* 顶部标题条与筛选条：不透明 + 高层级，商品从下面滚过不会透出来 */
@media (min-width: 900px) {
  #top-page-title, .top-page-title {
    background: #090d17 !important; z-index: 40 !important;
    border-bottom: 1px solid rgba(148,163,184,.14) !important;
    backdrop-filter: none !important;
  }
  .market-head {
    position: sticky !important; top: 46px !important; z-index: 39 !important;
    background: #090d17 !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(148,163,184,.14) !important;
    margin: 0 -22px 12px !important; padding: 10px 22px !important;
    box-shadow: 0 8px 14px -8px rgba(0,0,0,.6);
  }
  .shell > main { padding-top: 46px !important; }
}

/* 桌面端顶栏已隐藏，筛选条直接吸到最顶部（与页面标题条合并为一条） */
@media (min-width: 900px) {
  .market-head { top: 0 !important; }
  .shell > main { padding-top: 14px !important; }
  #top-page-title { display: none !important; }
}

/* 强制：内容区紧跟侧边栏铺满（不再居中留白），筛选条吸附时不被卡片裁掉 */
@media (min-width: 900px) {
  .shell { display: block !important; }
  .shell > main {
    margin: 0 0 0 214px !important;
    max-width: none !important; width: auto !important;
    padding: 14px 18px 48px !important;
    box-sizing: border-box !important;
  }
  .shell > main .card, .shell > main > div { overflow: visible !important; }
  .market-head {
    position: sticky !important; top: 0 !important; z-index: 60 !important;
    background: #090d17 !important;
    margin: 0 0 12px !important; padding: 10px 14px !important;
    border: 1px solid rgba(148,163,184,.14) !important; border-radius: 12px !important;
    box-shadow: 0 10px 18px -12px rgba(0,0,0,.75);
  }
}

/* 对齐上游配色：卡片/价格/菜单高亮/文字层级 */
:root {
  --bg: #070b14 !important;
  --panel: #0e1626 !important;
  --panel-2: #121c2e !important;
  --line: #1b2436 !important;
  --text: #e8eef9 !important;
  --muted: #8b9ab5 !important;
  --brand: #4f8cff !important;
}
body { background: var(--bg) !important; }
.card, .panel, .market-card, .proj-card, .stat, .news-item {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
}
.market-card:hover, .proj-card:hover { border-color: rgba(79,140,255,.45) !important; }
.proj-meta b, .market-card b, .stat b { color: var(--brand) !important; font-weight: 700; }
.proj-card h4, .market-card h4 { color: #eaf1ff !important; font-weight: 700; }
.muted, .small { color: var(--muted) !important; }
.side-nav a { color: #c3cee0 !important; border-radius: 10px !important; }
.side-nav a.active, .side-nav a[style*="background"] {
  background: rgba(79,140,255,.13) !important;
  border-left: 3px solid var(--brand) !important;
  color: #eaf1ff !important;
}
.pill { background: rgba(79,140,255,.14) !important; color: #9dc0ff !important; border-color: rgba(79,140,255,.35) !important; }
.pill.ok, .pill.ok * { background: rgba(34,197,94,.15) !important; color: #7ee2a8 !important; border-color: rgba(34,197,94,.35) !important; }
.pill.warn { background: rgba(245,158,11,.15) !important; color: #ffd08a !important; border-color: rgba(245,158,11,.35) !important; }
button.primary, .btn.primary { background: var(--brand) !important; }

/* 内容区居中（左右留白相等），与上游一致 */
@media (min-width: 900px) {
  .shell > main > * {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .shell > main { padding-left: 20px !important; padding-right: 20px !important; }
}

/* 蓝色整体调淡一档（降低饱和度，别那么"电"） */
:root { --brand: #5d82c9 !important; }
.proj-meta b, .market-card b, .stat b, .proj-card .price, .mh-left b { color: #7ea6e0 !important; }
button.primary, .btn.primary, .tier-item.on {
  background: linear-gradient(180deg, #4d6dae, #43608f) !important;
  border-color: #4d6dae !important;
}
.side-nav a.active, .side-nav a[style*="background"] {
  background: rgba(93,130,201,.12) !important;
  border-left-color: #6b8fd0 !important;
}
.pill { background: rgba(93,130,201,.12) !important; color: #a8c2e8 !important; border-color: rgba(93,130,201,.30) !important; }
.side-brand .logo { background: linear-gradient(135deg, #4a6bb0, #6a6fb8) !important; }
a { color: #8fb0e0 !important; }

/* 顶部「← 页面名」条：铺满整个内容区宽度 + 吸顶固定；筛选条吸附在它下面 */
@media (min-width: 900px) {
  .shell > main > .page-head {
    max-width: none !important; width: auto !important;
    margin: 0 0 12px !important;
    position: sticky !important; top: 0 !important; z-index: 58 !important;
    background: #090d17 !important;
    border: none !important; border-bottom: 1px solid rgba(148,163,184,.14) !important;
    border-radius: 0 !important;
    padding: 12px 4px !important;
    box-shadow: 0 10px 16px -14px rgba(0,0,0,.9);
  }
  .market-head { top: 48px !important; z-index: 57 !important; }
}

/* 筛选条与商品一起滚动（不再单独吸附）；只有最顶部的「← 页面名」保持固定 */
@media (min-width: 900px) {
  .market-head {
    position: static !important;
    top: auto !important;
    background: #0e1626 !important;
    margin: 0 0 12px !important;
    border: 1px solid #1b2436 !important; border-radius: 12px !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
  }
}

/* 白色文字整体压暗一档，长时间看不刺眼 */
:root { --text: #cdd7e5 !important; }
body, p, li, span, div, td, th, label { color: #cdd7e5; }
h1, h2, h3, h4, .proj-card h4, .market-card h4, .page-head h3, .mh-left b {
  color: #c4d0e2 !important;
}
strong, b { color: #cfdae9; }
.muted, .small, .muted.small { color: #8593ab !important; }

/* 左侧栏加宽到 248px，并与右侧顶栏无缝相接 */
@media (min-width: 900px) {
  .sidebar { width: 248px !important; }
  .shell > main { margin-left: 248px !important; padding-left: 0 !important; padding-right: 0 !important; }
  .shell > main > .page-head {
    max-width: none !important; margin: 0 0 12px !important;
    padding: 12px 20px !important;
  }
  .shell > main > *:not(.page-head) { max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; }
  .side-brand { margin: 0 10px 12px !important; }
}

/* 品牌卡下移；顶栏更矮；滚动时不缩放 */
@media (min-width: 900px) {
  .side-brand { margin-top: 14px !important; }
  .shell > main > .page-head {
    height: 42px !important; min-height: 42px !important; max-height: 42px !important;
    padding: 0 18px !important;
    display: flex !important; align-items: center !important; gap: 10px !important;
    box-sizing: border-box !important;
    transform: none !important; transition: none !important;
  }
  .shell > main > .page-head h3 { font-size: 16px !important; line-height: 1 !important; margin: 0 !important; }
  .shell > main > .page-head button { padding: 3px 10px !important; font-size: 13px !important; line-height: 1.1 !important; }
}

/* 侧边栏「我的号码 / 财务管理」的展开箭头放大一点 */
.side-nav .side-parent .chev, .side-nav .chev {
  font-size: 15px !important;
  line-height: 1 !important;
  margin-left: 6px !important;
  opacity: .95;
  transform: scale(1.15);
}

/* 顶部「← 页面名」彻底固定（不随滚动位移，一点不动） */
@media (min-width: 900px) {
  .shell > main > .page-head {
    position: fixed !important; top: 0 !important; left: 248px !important; right: 0 !important;
    height: 42px !important; min-height: 42px !important; max-height: 42px !important;
    margin: 0 !important; padding: 0 20px !important;
    display: flex !important; align-items: center !important; gap: 10px !important;
    background: #090d17 !important;
    border: none !important; border-bottom: 1px solid rgba(148,163,184,.14) !important;
    border-radius: 0 !important; z-index: 58 !important;
    box-sizing: border-box !important;
  }
  .shell > main { padding-top: 56px !important; }
}

/* 修正：可展开项（我的号码 / 财务管理）与其它菜单项左对齐，箭头统一靠右放大 */
.side-nav .side-parent {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}
.side-nav .side-parent .ico { flex: 0 0 auto; }
.side-nav .side-parent .chev {
  margin-left: auto !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transform: none !important;
  opacity: .9;
}

/* 背景整体再压黑一档（更接近纯黑） */
:root { --bg: #04060b !important; --panel: #0a101c !important; --line: #172032 !important; }
body, html { background: #04060b !important; }
.sidebar { background: #05070e !important; }
.shell > main { background: #04060b !important; }
.shell > main > .page-head { background: #05070e !important; }
.card, .panel, .market-card, .proj-card, .stat, .news-item, .market-head {
  background: #0a101c !important;
  border-color: #172032 !important;
}

/* 背景亮度提一档（比刚才的纯黑亮一点，但仍是深色） */
:root { --bg: #0a1018 !important; --panel: #101a2b !important; --line: #1d2740 !important; }
body, html { background: #0a1018 !important; }
.sidebar { background: #0b111c !important; }
.shell > main { background: #0a1018 !important; }
.shell > main > .page-head { background: #0b111c !important; }
.card, .panel, .market-card, .proj-card, .stat, .news-item, .market-head {
  background: #101a2b !important;
  border-color: #1d2740 !important;
}

/* ===== 后台/全站视觉优化（排版、卡片、表格、表单、统计块） ===== */
.card {
  padding: 18px 18px !important;
  border-radius: 14px !important;
  background: #101a2b !important;
  border: 1px solid #1d2740 !important;
  box-shadow: 0 10px 24px -20px rgba(0,0,0,.9) !important;
  margin-bottom: 14px !important;
}
.card-head { align-items: flex-start !important; gap: 12px !important; margin-bottom: 12px !important; padding-bottom: 10px !important; border-bottom: 1px solid #1d2740 !important; }
.card-head h3 { font-size: 17px !important; font-weight: 700 !important; letter-spacing: .2px; }
.card-head .muted.small { margin-top: 4px !important; }
h3 { font-size: 17px !important; }
.grid.two { gap: 14px !important; }
.grid.three { gap: 14px !important; }
.stat {
  background: linear-gradient(180deg, #132038, #0e1728) !important;
  border: 1px solid #1d2740 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s ease, transform .15s ease;
}
.stat:hover { border-color: #2f6bff66 !important; transform: translateY(-1px); }
.stat .muted { font-size: 12.5px !important; letter-spacing: .3px; }
.stat b { font-size: 21px !important; font-weight: 800 !important; color: #cfe0ff !important; }
table { border-collapse: separate !important; border-spacing: 0 !important; width: 100%; }
thead th {
  background: #0d1626 !important; color: #9fb0cd !important;
  font-weight: 600 !important; font-size: 13px !important;
  padding: 11px 12px !important; border-bottom: 1px solid #1d2740 !important;
  position: sticky; top: 0; z-index: 2;
}
tbody td { padding: 11px 12px !important; border-bottom: 1px solid #16203200 !important; border-bottom-color: #162032 !important; }
tbody tr:hover td { background: #141f33 !important; }
input, select, textarea {
  background: #0c1420 !important; border: 1px solid #22304c !important;
  border-radius: 10px !important; padding: 9px 11px !important; color: #dbe5f3 !important;
}
input:focus, select:focus, textarea:focus {
  outline: none !important; border-color: #4f8cff !important;
  box-shadow: 0 0 0 3px rgba(79,140,255,.15) !important;
}
button, .btn { border-radius: 10px !important; padding: 9px 14px !important; font-weight: 600 !important; }
button.ghost { background: #131e31 !important; border: 1px solid #22304c !important; color: #cfdaea !important; }
button.ghost:hover { border-color: #4f8cff88 !important; }
.pill { border-radius: 999px !important; padding: 3px 9px !important; font-size: 12px !important; }

/* P0-1：后台概览的统计块在宽屏下排成 4 列大卡（原来 2 列、空隙大） */
@media (min-width: 1200px) {
  .grid.two:has(.stat:nth-child(3)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
  .grid.three:has(.stat:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
  .stat b { font-size: 24px !important; letter-spacing: .3px; }
  .stat { padding: 16px 18px !important; min-height: 92px; justify-content: center; }
  .card { padding: 20px 20px !important; }
  .card-head { margin-bottom: 14px !important; }
}

/* 后台管理页：全宽铺满、内容靠左（不再居中留白），中间区域更大 */
@media (min-width: 900px) {
  .shell > main > #view[data-admin="1"] {
    max-width: none !important;
    margin: 0 !important;
    width: auto !important;
  }
  .shell > main > #view[data-admin="1"] .grid.two { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important; }
}

/* 后台管理页：内部「菜单+内容」两栏贴左铺满，不留中间空白 */
#view[data-admin="1"] > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#view[data-admin="1"] > *:has(.side-nav) {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 16px !important;
}
#view[data-admin="1"] > *:has(.side-nav) > .card:first-child,
#view[data-admin="1"] > *:has(.side-nav) > div:first-child {
  flex: 0 0 260px !important;
  max-width: 260px !important;
  margin: 0 !important;
}
#view[data-admin="1"] > *:has(.side-nav) > *:not(:first-child) {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* 进后台时：隐藏主站左侧菜单，把「管理后台」自己的菜单顶到最左边（像图二那样贴边） */
body:has(#view[data-admin="1"]) .sidebar { display: none !important; }
body:has(#view[data-admin="1"]) .shell > main { margin-left: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
body:has(#view[data-admin="1"]) .shell > main > .page-head { left: 0 !important; padding-left: 20px !important; }
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > .card:first-child,
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > div:first-child {
  flex: 0 0 248px !important; max-width: 248px !important;
  border-radius: 0 !important;
  border-left: none !important; border-top: none !important; border-bottom: none !important;
  min-height: calc(100vh - 56px) !important;
  background: #0b111c !important;
}
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) { gap: 0 !important; }
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > *:not(:first-child) { padding: 16px 18px !important; }

/* 商品管理：标题不折行、筛选控件同一行且固定宽度（消除那个空框和拉满的下拉） */
.card-head:has(#adm-prod-q) { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; gap: 8px 12px !important; }
.card-head:has(#adm-prod-q) h3 { flex: 0 0 auto !important; white-space: nowrap !important; margin: 0 !important; }
.card-head:has(#adm-prod-q) .row { flex: 1 1 auto !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; }
#adm-prod-q { width: 230px !important; }
#adm-prod-cat, #adm-prod-status { width: 132px !important; min-width: 120px !important; max-width: 160px !important; }
.card-head:has(#adm-prod-q) button { white-space: nowrap !important; }

/* 后台左侧菜单：和普通页面一样「通顶通底」固定，内容区右让 248px */
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > .card:first-child,
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > div:first-child {
  position: fixed !important;
  top: 42px !important; left: 0 !important; bottom: 0 !important;
  width: 248px !important; max-width: 248px !important;
  overflow-y: auto !important;
  margin: 0 !important; padding: 12px 10px 16px !important;
  border-radius: 0 !important; border: none !important;
  border-right: 1px solid #1d2740 !important;
  background: #0b111c !important;
}
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > *:not(:first-child) {
  margin-left: 248px !important;
}

/* 撤销前几轮为「后台贴左/通顶通底」打的临时补丁（避免叠加出不协调） */
body:has(#view[data-admin="1"]) .sidebar { display: flex !important; }
body:has(#view[data-admin="1"]) .shell > main { margin-left: 248px !important; padding-left: 0 !important; padding-right: 0 !important; }
body:has(#view[data-admin="1"]) .shell > main > .page-head { left: 248px !important; }
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > .card:first-child,
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > div:first-child {
  position: static !important; top: auto !important; bottom: auto !important; left: auto !important;
  width: auto !important; max-width: none !important; min-height: 0 !important;
  border-radius: 14px !important; border: 1px solid #1d2740 !important;
  background: #101a2b !important; padding: 14px !important;
}
body:has(#view[data-admin="1"]) #view[data-admin="1"] > *:has(.side-nav) > *:not(:first-child) { margin-left: 0 !important; }

/* 后台概览折叠区：默认收起，点标题展开，页面更简洁 */
.adm-fold { padding: 14px 18px !important; }
.adm-fold > summary {
  cursor: pointer; font-weight: 700; color: #dbe5f3; list-style: none;
  display: flex; align-items: center; gap: 8px; font-size: 15px;
}
.adm-fold > summary::-webkit-details-marker { display: none; }
.adm-fold > summary::before { content: '▸'; color: #7ea6e0; }
.adm-fold[open] > summary { margin-bottom: 12px; }
.adm-fold[open] > summary::before { content: '▾'; }

/* 浏览器放大 / 窄屏适配：长链接换行、内容不撑破屏幕 */
/* 注意：不要给 html/body 设 overflow（会让 sticky 吸附失效，客户栏会被标题条盖住） */
.line { flex-wrap: wrap; }
.line .v { min-width: 0; overflow-wrap: anywhere; }
.line .v a { word-break: break-all; }
.status-message { overflow-wrap: anywhere; word-break: break-word; }
/* 站长站客户栏：保证「已登录 / 余额 / 充值 / 我的订单 / 退出」一直能看到，不被页面标题条盖住 */
/* 站长站客户栏：自适应吸附（--tcbar-top 由 JS 按当前屏幕算），任何尺寸都不会被盖住 */
#tc-bar {
  position: sticky !important;
  top: var(--tcbar-top, 42px) !important;
  z-index: 57 !important;
}
#tc-bar:not(.hidden) { display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  #tc-bar:not(.hidden) {
    margin: 0 0 0 var(--side-w, 248px) !important;
    padding: 9px 20px !important;
    border: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
    border-radius: 0 !important;
    background: #090d17 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  #tc-bar:not(.hidden) .pill { padding: 3px 10px !important; }
}

/* 左侧「管理后台」菜单：默认隐藏，管理员在其他页面才显示；窄屏改成横向小按钮，不再竖排一长条 */
#admin-side { display: none; }
#admin-side.adm-visible { display: block; }
@media (max-width: 899px) {
  #admin-side.adm-visible {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 100%;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid #1d2740;
    padding-top: 8px;
  }
  #admin-side.adm-visible > b {
    width: 100%;
    padding: 0 2px;
  }
  #admin-side.adm-visible a {
    padding: 6px 10px !important;
    border: 1px solid #22304c;
    border-radius: 999px;
    font-size: 13px !important;
    color: #9fadc9 !important;
    background: #0f1728;
  }
}
.card, .stat, .market-card, .proj-card { max-width: 100%; }
table { max-width: 100%; }
td, th { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .card { padding: 14px !important; }
  .hero-card h1 { font-size: 22px !important; }
}

/* ==========================================================================
   IP 专区手机端优化（2026-09-20）
   1) 手机上「城市列表 + 购买面板」原来还是桌面两栏（1fr + 340px），列表被压成 0 宽、完全看不见
   2) 筛选/地区/支付改成一行横滑 + 吸底购买条，手机上不用来回滑 6000px
   ========================================================================== */
.ip-buy-bar { display: none; }
.ip-warn-top { display: none; }

@media (max-width: 900px) {
  body.ip-wide .shell > main {
    padding: 10px 12px 104px !important;
  }

  /* 城市列表 + 购买面板：单列上下堆叠 */
  .ip-shop-body {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .ip-order-panel {
    position: static !important;
    min-height: 0 !important;
    padding: 13px !important;
  }
  /* 提示挪到列表上方（下面这条在上面显示），避免被顶到屏幕外看不到 */
  .ip-order-panel > .ip-warn { display: none !important; }
  .ip-warn-top { display: block !important; margin: 4px 0 12px !important; }
  .ip-order-panel .ip-buy-btn { margin-top: 12px !important; }

  /* 业务/洲标签：一行横滑，不再换行堆成好几排 */
  .ip-biz-row { margin: 8px 0 4px !important; gap: 8px !important; }
  .ip-tabs,
  .ip-biz-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 2px;
  }
  .ip-tabs::-webkit-scrollbar,
  .ip-biz-chips::-webkit-scrollbar { display: none; }
  .ip-tab,
  .ip-biz { flex: 0 0 auto !important; white-space: nowrap !important; }
  .ip-biz-chips { margin: 6px 0 10px !important; }

  /* 原生/广播：并排两个，省一半高度 */
  .ip-type-row { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin: 4px 0 12px !important; }
  .ip-type { padding: 10px 11px !important; }
  .ip-type b { font-size: 13.5px !important; }
  .ip-type span { font-size: 11px !important; line-height: 1.45 !important; }

  /* 地区搜索：整行铺满 */
  .ip-region-head { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .ip-region-head > div:first-child { width: 100%; }
  .ip-region-search { width: 100% !important; flex: 1 1 auto; }

  /* 城市卡片：手机上两列自适应（窄屏自动变一列），名字/库存/价格都能看清 */
  .ip-city-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
    gap: 8px !important;
  }
  .ip-city {
    position: relative;
    align-items: flex-start !important;
    padding: 10px !important;
    gap: 8px !important;
    min-height: 68px;
  }
  .ip-city-flag {
    width: 24px !important; height: 24px !important; flex: 0 0 24px !important;
    font-size: 13px !important; border-radius: 7px !important;
  }
  .ip-city-main b { font-size: 12.5px !important; line-height: 1.35 !important; }
  .ip-city-sub { font-size: 11px !important; }
  .ip-city-price { font-size: 12px !important; }
  .ip-city.on::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #9dbcff;
  }

  /* 网段列表别太高 */
  .ip-cidr-list { max-height: 190px !important; }

  /* 吸底购买条：选完城市直接买，不用滑到底部 */
  .ip-buy-bar {
    display: flex;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 60;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 14px;
    border: 1px solid #2a3550;
    background: rgba(13, 20, 34, .97);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  }
  .ip-buy-bar[hidden] { display: none !important; }
  .ip-buy-bar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .ip-buy-bar-info b {
    font-size: 13px; color: #cfd9ea; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ip-buy-bar-info span { font-size: 11.5px; color: #8fa0bd; }
  .ip-buy-bar-info span em { font-style: normal; color: #55d39a; font-weight: 700; }
  .ip-buy-bar-btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    width: auto !important;
  }
}

/* 超窄屏（≤340px）两列放不下，改一列 */
@media (max-width: 340px) {
  .ip-city-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ip-buy-bar-info b { font-size: 12.5px; }
}

/* 手机端：把「表格 / 代码」这类宽内容收进滚动容器，别再把整页撑宽（我的IP、订单、API 文档会被撑到 600~800px，
   手机上等于整页缩小、字变很小）。只在小屏生效。 */
@media (max-width: 899px) {
  /* 两列卡片在小屏挤成一条，标题/客服链接会溢出把整页撑宽 → 小屏改单列 */
  .grid.two { grid-template-columns: minmax(0, 1fr) !important; }
  /* 长客服链接 / 接口地址 / JSON 示例 撑破卡片：允许收缩 + 强制断行 */
  .line .v { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; text-align: right; }
  .scroll-x { min-width: 0 !important; max-width: 100% !important; }
  #view,
  #view > *,
  .card,
  .card > *,
  section { min-width: 0 !important; max-width: 100% !important; }
  pre,
  pre.code { max-width: 100% !important; overflow-x: auto !important; }
  pre.code { white-space: pre-wrap !important; overflow-wrap: anywhere !important; }
  /* 行内 code（接口地址 / key）也要能断行 */
  code { overflow-wrap: anywhere; }
}

/* 手机端顶栏压缩：原来「IP 专区」这种短标题被挤成竖排，顶栏占掉 150px 屏高 */
@media (max-width: 899px) {
  .topbar { padding: 8px 12px !important; gap: 8px !important; }
  .topbar .top-page-title {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }
  .topbar .brand { min-width: 0; flex: 1 1 auto; gap: 8px; overflow: hidden; }
  .topbar .brand > span { min-width: 0; overflow: hidden; }
  .topbar .brand small { display: none !important; }
  .topbar .brand strong {
    display: block; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar .logo { width: 26px; height: 26px; font-size: 12px; border-radius: 8px; }
  .topbar .top-right { gap: 6px; flex: 0 0 auto; }
  .topbar .balance { font-size: 12.5px; }
  .topbar #top-user {
    padding: 6px 10px !important; font-size: 12.5px !important;
    max-width: 44vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}
