* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1115;
  color: #e6e8eb;
  line-height: 1.6;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
header { padding: 40px 0 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
header h1 { font-size: 34px; letter-spacing: 1px; }
header h1 .num { color: #4ea1ff; }
header p { color: #9aa0a6; margin-top: 10px; font-size: 15px; text-align: center; }
.navbtn {
  background: #4ea1ff; color: #06121f; border: none; padding: 9px 16px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.navbtn:hover { background: #6fb2ff; }
.banner {
  background: #1b2330; border: 1px solid #2a3340; border-left: 3px solid #f0a020;
  padding: 10px 14px; border-radius: 6px; font-size: 13px; color: #d8c08a;
  margin: 0 0 28px;
}
.banner.live { border-left-color: #3ad07a; color: #b8e6c8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.card {
  background: #161a21; border: 1px solid #232a35; border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card .price { font-size: 26px; font-weight: 700; margin: 8px 0; }
.card .price small { font-size: 13px; color: #9aa0a6; font-weight: 400; }
.card .desc { font-size: 13px; color: #9aa0a6; flex: 1; }
.card button {
  margin-top: 16px; background: #4ea1ff; color: #06121f; border: none; padding: 10px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.card button:hover { background: #6fb2ff; }
.card.trial button { background: #3a4456; color: #e6e8eb; }
.auth { background: #161a21; border: 1px solid #232a35; border-radius: 12px; padding: 22px; margin-bottom: 40px; }
.auth h2 { font-size: 18px; margin-bottom: 14px; }
.auth .row { display: flex; gap: 10px; margin-bottom: 10px; }
.auth input {
  flex: 1; background: #0f1115; border: 1px solid #2a3340; color: #e6e8eb;
  padding: 10px 12px; border-radius: 8px; font-size: 14px;
}
.auth .tabs { display: flex; gap: 18px; margin-bottom: 14px; font-size: 14px; }
.auth .tabs span { cursor: pointer; color: #9aa0a6; padding-bottom: 4px; }
.auth .tabs span.active { color: #4ea1ff; border-bottom: 2px solid #4ea1ff; }
.auth .actions { display: flex; gap: 10px; }
.auth .actions button {
  background: #4ea1ff; color: #06121f; border: none; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.auth .actions .ghost { background: transparent; color: #9aa0a6; border: 1px solid #2a3340; }
.dash { display: none; background: #161a21; border: 1px solid #232a35; border-radius: 12px; padding: 22px; margin-bottom: 40px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-head .ghost { background: transparent; color: #9aa0a6; border: 1px solid #2a3340; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dash h2 { font-size: 18px; }
.dash .kv { font-size: 14px; margin-bottom: 8px; }
.dash .kv b { color: #9aa0a6; font-weight: 400; margin-right: 8px; }
.dash pre {
  background: #0f1115; border: 1px solid #232a35; border-radius: 8px; padding: 12px;
  font-size: 12px; word-break: break-all; white-space: pre-wrap; margin: 10px 0; color: #8fd18f;
}
.dash button {
  background: #4ea1ff; color: #06121f; border: none; padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 8px; margin-top: 6px;
}
.dash input { background: #0f1115; border: 1px solid #2a3340; color: #e6e8eb; padding: 8px 10px; border-radius: 8px; font-size: 13px; width: 240px; }
.dash .kv .ok { color: #8fd18f; }
.dash .kv .warn { color: #ffcf6b; }
.dash .kv .err { color: #ff6b6b; font-weight: 600; }
.act-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.act-row .primary { background: #4ea1ff; color: #06121f; border: none; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.act-row .primary:hover { background: #6fb2ff; }
.act-row .hint { color: #9aa0a6; font-size: 12px; max-width: 420px; line-height: 1.5; }
.auto-renew { border-top: 1px dashed #232a35; padding-top: 12px; }
.auto-renew .ar-label { color: #e6e8eb; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.auto-renew .ar-label input { width: auto; margin: 0; }
.msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.msg.err { color: #ff6b6b; }
.msg.ok { color: #8fd18f; }
footer { text-align: center; color: #5a6068; font-size: 12px; padding: 30px 0 50px; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.62);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  position: relative; background: #161a21; border: 1px solid #2a3340;
  border-radius: 12px; padding: 26px; width: 360px; max-width: 90vw;
}
.modal-close {
  position: absolute; top: 8px; right: 14px; background: none; border: none;
  color: #9aa0a6; font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: #e6e8eb; }
.modal-hint { font-size: 12px; color: #9aa0a6; margin-top: 8px; }
.platform-login {
  display: block; text-align: center; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #232a35; font-size: 13px; color: #4ea1ff;
  text-decoration: none; cursor: pointer;
}
.platform-login:hover { color: #6fb2ff; text-decoration: underline; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.navbell { background: transparent; color: #9aa0a6; border: 1px solid #2a3340; position: relative; }
.navbell:hover { color: #e6e8eb; background: #1a2230; }
.notif-badge {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px;
  background: #ff4d4f; color: #fff; border-radius: 10px; font-size: 11px;
  line-height: 18px; text-align: center; padding: 0 4px; font-weight: 700;
}
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: flex-end; z-index: 60; }
.drawer { width: 380px; max-width: 92vw; height: 100%; background: #161a21; border-left: 1px solid #2a3340; padding: 22px; overflow-y: auto; animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-head h3 { font-size: 17px; }
.drawer-head .ghost { background: transparent; color: #9aa0a6; border: none; font-size: 22px; cursor: pointer; line-height: 1; }
.drawer-head .ghost:hover { color: #e6e8eb; }
.notif-list { max-height: 260px; overflow-y: auto; margin-bottom: 18px; }
.notif-item { background: #0f1115; border: 1px solid #232a35; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.notif-title { font-weight: 600; color: #e6e8eb; font-size: 14px; }
.notif-body { color: #cdd2d8; font-size: 13px; margin-top: 6px; white-space: pre-wrap; }
.notif-time { color: #6b7280; font-size: 11px; margin-top: 6px; }
.muted { color: #6b7280; font-size: 13px; }
.notif-feedback h4 { font-size: 14px; color: #9aa0a6; margin-bottom: 8px; }
.notif-feedback textarea { width: 100%; min-height: 80px; background: #0f1115; border: 1px solid #2a3340; color: #e6e8eb; padding: 10px; border-radius: 8px; font-size: 13px; box-sizing: border-box; resize: vertical; margin-bottom: 10px; font-family: inherit; }
/* 产品介绍 / 接入使用 按钮条 */
.intro-bar { display: flex; gap: 12px; justify-content: center; margin: 0 0 22px; }
.intro-btn {
  background: transparent; color: #cdd2d8; border: 1px solid #2a3340;
  padding: 8px 18px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.intro-btn:hover { color: #4ea1ff; border-color: #4ea1ff; }
/* 文档弹窗 */
.doc-modal { width: 620px; max-width: 92vw; max-height: 86vh; overflow-y: auto; }
.doc-body { font-size: 14px; line-height: 1.75; }
.doc-body h2 { font-size: 20px; margin-bottom: 12px; color: #e6e8eb; }
.doc-body h3 { font-size: 16px; margin: 18px 0 8px; color: #4ea1ff; }
.doc-body p { margin-bottom: 12px; color: #cdd2d8; }
.doc-body ul { margin: 0 0 12px 20px; color: #cdd2d8; }
.doc-body li { margin-bottom: 6px; }
.doc-body code { background: #0f1115; padding: 2px 6px; border-radius: 4px; color: #8fd18f; font-size: 13px; }
.doc-body pre { background: #0f1115; border: 1px solid #232a35; padding: 10px 12px; border-radius: 8px; color: #8fd18f; font-size: 12px; overflow-x: auto; margin-bottom: 12px; }
.doc-body .muted { margin-top: 8px; }
/* 分平台下载行 */
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.dl-label { font-size: 13px; color: #9aa0a6; }
.dl-row button {
  background: #23303f; color: #cdd2d8; border: 1px solid #2a3340; padding: 7px 14px;
  border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.dl-row button:hover { background: #2d3d50; color: #fff; }
.dl-row .dl-full { background: #4ea1ff; color: #06121f; border-color: #4ea1ff; font-weight: 600; }
.dl-row .dl-full:hover { background: #6fb2ff; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .topbar { flex-direction: column; align-items: stretch; } .topbar-actions { flex-direction: column; align-items: stretch; } .navbtn { width: 100%; } .drawer { width: 100%; } }

/* ===== 一键部署向导 ===== */
.deploy-modal { width: 600px; max-width: 94vw; max-height: 90vh; overflow-y: auto; }
.deploy-modal h3 { font-size: 18px; margin-bottom: 12px; }
.deploy-modal h4 { font-size: 14px; color: #cdd2d8; margin: 16px 0 8px; }
.deploy-modal .row { margin: 6px 0; font-size: 14px; }
.deploy-modal .row label { cursor: pointer; }
.deploy-modal #selfFields { margin: 10px 0; padding: 10px; border: 1px dashed #2a3340; border-radius: 8px; }
.deploy-modal #selfFields input { display: block; width: 100%; margin: 6px 0; }
.byok { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 8px; align-items: center; }
.byok label { font-size: 13px; color: #9aa0a6; }
.byok input { background: #0f1115; border: 1px solid #2a3340; color: #e6e8eb; padding: 7px 10px; border-radius: 8px; font-size: 13px; width: 100%; }
.cb-list { background: #0f1115; border: 1px solid #2a3340; color: #9fe0b0; padding: 10px 12px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; line-height: 1.7; max-height: 240px; overflow-y: auto; }

/* ===== 微信支付 二维码弹层 ===== */
.pay-modal { width: 320px; max-width: 92vw; text-align: center; }
.pay-modal h3 { font-size: 17px; margin-bottom: 6px; }
.pay-amount { font-size: 28px; font-weight: 700; color: #4ea1ff; margin-bottom: 14px; }
.pay-qr-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 236px; }
#payQr { width: 220px; height: 220px; background: #fff; border-radius: 8px; padding: 8px; box-sizing: border-box; }
.pay-loading { color: #9aa0a6; font-size: 13px; }
.pay-tip { font-size: 13px; color: #cdd2d8; margin: 14px 0 10px; }
.pay-tip strong { color: #8fd18f; }
.pay-status { font-size: 13px; min-height: 18px; margin-top: 4px; }
.pay-status.ok { color: #8fd18f; }
.pay-status.warn { color: #ffcf6b; }
.pay-modal .actions { display: flex; justify-content: center; margin-top: 6px; }
.pay-modal .actions .ghost { background: transparent; color: #9aa0a6; border: 1px solid #2a3340; padding: 9px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pay-modal .actions .ghost:hover { color: #e6e8eb; }

/* ===== 盒子只读面板 ===== */
#boxPanel { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #232a35; }
#boxPanel .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
#boxPanel .metric { background: #0f1115; border: 1px solid #2a3340; border-radius: 8px; padding: 10px; }
#boxPanel .metric b { display: block; font-size: 12px; color: #9aa0a6; font-weight: 400; margin-bottom: 4px; }
#boxPanel .metric span { font-size: 16px; font-weight: 700; color: #8fd18f; }
#boxPanel .tag { display: inline-block; background: #3a2f12; color: #f0c060; border: 1px solid #5a4a1f; border-radius: 4px; font-size: 11px; padding: 1px 6px; margin-left: 6px; }
#boxPanel .muted { color: #9aa0a6; font-size: 12px; }
#boxPanel a { color: #4ea1ff; }

