/* 子比自助授权站 · 前台与后台样式 */
:root {
  --ink: #1b2440;
  --ink-2: #5b6480;
  --line: rgba(27, 36, 64, .12);
  --blue: #2f62f3;
  --blue-d: #1b2440;
  --ok: #17a567;
  --warn: #d98b0b;
  --error: #e5484d;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 32px 16px 56px;
  font: 14px/1.65 "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: var(--ink);
  background: #f2f5fb;
}
/* ---------- 背景光斑 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.bg-orbs i:nth-child(1) { width: 420px; height: 420px; left: -80px; top: -60px; background: #8fb6ff; }
.bg-orbs i:nth-child(2) { width: 380px; height: 380px; right: -70px; top: 120px; background: #c9a7ff; }
.bg-orbs i:nth-child(3) { width: 320px; height: 320px; left: 40%; bottom: -120px; background: #8fe6d0; }
/* ---------- 玻璃卡片 ---------- */
.stage { max-width: 1080px; margin: 0 auto; }
.glass-card {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(27, 36, 64, .12);
  overflow: hidden;
}
.card-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dot-close { background: #ff5f57; }
.dot-min { background: #febc2e; }
.dot-max { background: #28c840; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.top-user { color: var(--ink-2); font-size: 13px; }
.top-link { text-decoration: none; color: var(--ink-2); font-size: 13px; }
.top-link.on, .top-link:hover { color: var(--blue); }
.top-link.danger, .top-link.danger:hover { color: var(--error); }
.top-link.primary { background: var(--blue); color: #fff !important; padding: 5px 14px; border-radius: 999px; }
.card-main { padding: 26px 26px 8px; }
.card-foot { padding: 14px 26px 20px; color: var(--ink-2); font-size: 12px; border-top: 1px solid var(--line); }
/* ---------- 文本 ---------- */
h1 { font-size: 26px; margin: 0 0 8px; }
h2.sec-title { font-size: 17px; margin: 26px 0 12px; padding-left: 10px; border-left: 3px solid var(--blue); }
h3 { margin: 0 0 10px; font-size: 15px; }
p { margin: 8px 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: Consolas, Menlo, monospace; font-size: 12.5px;
  background: #f1f3f9; border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 5px; word-break: break-all;
}
.muted { color: var(--ink-2); }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: 2px; }
.page-intro { color: var(--ink-2); font-size: 13px; }
/* ---------- 提示 ---------- */
.notice, .alert { border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.notice.ok, .alert.alert-ok, .alert-ok { background: #e9f8f0; color: #0f7a4d; border: 1px solid #b8e7d2; }
.notice.warn, .alert-warn { background: #fff6e5; color: #96650a; border: 1px solid #f3dda6; }
.notice.error, .alert-error { background: #fdecec; color: #b32025; border: 1px solid #f5c2c4; }
.hero-notice { margin-bottom: 16px; }
.alert { position: fixed; top: 76px; right: 18px; z-index: 99; max-width: 340px; box-shadow: 0 8px 24px rgba(20,40,80,.15); }
/* ---------- 按钮 ---------- */
.button {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; transition: .15s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-dark { background: var(--blue-d); color: #fff; }
.button-quiet { background: #fff; color: var(--blue-d); border: 1px solid var(--line); }
.button-full { width: 100%; text-align: center; }
.but {
  display: inline-block; border: 0; cursor: pointer; padding: 4px 12px;
  border-radius: 6px; font-size: 12.5px; color: #fff; background: var(--ink-2);
}
.but:hover { opacity: .88; text-decoration: none; }
.c-blue { background: var(--blue); }
.c-yellow { background: var(--warn); }
.c-red { background: var(--error); }
/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 14px 0 6px; }
.hero-title-lg { font-size: 34px; margin: 12px 0 6px; letter-spacing: 2px; }
.hero-slogan { color: var(--ink-2); font-size: 14px; }
.hero-actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }
.step-flow { display: flex; gap: 12px; margin: 28px 0; flex-wrap: wrap; justify-content: center; }
.step {
  flex: 1 1 150px; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.step b {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: var(--blue); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.step strong { display: block; font-size: 13.5px; }
.step span { color: var(--ink-2); font-size: 12px; }
.metric-strip { display: flex; gap: 12px; justify-content: center; margin: 20px 0 6px; flex-wrap: wrap; }
.metric-strip > div {
  min-width: 120px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 10px;
}
.metric-strip strong { display: block; font-size: 20px; }
.metric-strip span { color: var(--ink-2); font-size: 12px; }
/* ---------- 套餐 ---------- */
.plan-list { display: flex; gap: 14px; flex-wrap: wrap; }
.plan {
  flex: 1 1 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; position: relative;
}
.plan-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-tag { background: var(--error); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.plan-price { font-size: 28px; margin: 8px 0 2px; }
.plan-meta { color: var(--ink-2); font-size: 12px; margin-bottom: 14px; }
/* ---------- 表单 ---------- */
.clean-form { margin-top: 10px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; color: var(--ink-2); font-size: 12.5px; margin-bottom: 5px; }
.form-row input, .form-row select, .inline input, .inline select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13.5px; background: #fff; outline: none;
}
.form-row input:focus, .inline input:focus, .inline select:focus { border-color: var(--blue); }
.inline input, .inline select { width: auto; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.form-foot { margin-top: 14px; color: var(--ink-2); font-size: 13px; }
.auth { max-width: 420px; margin: 0 auto; }
/* ---------- 账户中心 ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-block {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 14px;
}
.block-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-row.big code { font-size: 16px; letter-spacing: 1px; }
.domain-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.domain-item:last-child { border-bottom: 0; }
.d-host { font-weight: 600; }
.d-st { color: var(--ink-2); font-size: 12.5px; }
.bind-form { margin-top: 10px; }
.tips { margin: 6px 0 12px; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.kv { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.kv span { min-width: 96px; color: var(--ink-2); font-size: 12.5px; }
/* ---------- 徽章 ---------- */
.badge { display: inline-block; font-size: 11.5px; border-radius: 999px; padding: 1px 9px; color: #fff; }
.badge-ok { background: var(--ok); }
.badge-warn { background: var(--warn); }
.badge-error { background: var(--error); }
.badge-gray { background: var(--ink-2); }
/* ---------- 表格 ---------- */
.grid { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; font-size: 13px; }
.grid th { background: #f7f8fc; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.grid tbody tr:hover { background: #fafbff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
/* ---------- 后台导航 ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.admin-nav a {
  padding: 6px 14px; border-radius: 999px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
}
.admin-nav a:hover { text-decoration: none; color: var(--blue); }
.admin-nav a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-nav .to-outer { margin-left: auto; }
/* ---------- 支付二维码占位 ---------- */
.qr-box {
  width: 180px; height: 180px; margin: 16px auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; position: relative;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.qr-box i { position: absolute; width: 34px; height: 34px; border: 8px solid var(--ink); border-radius: 6px; }
.qr-box i:nth-child(1) { top: 14px; left: 14px; }
.qr-box i:nth-child(2) { top: 14px; right: 14px; }
.qr-box i:nth-child(3) { bottom: 14px; left: 14px; }
.qr-box i:nth-child(4) { bottom: 14px; right: 14px; }
/* ---------- 弹层 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 22, 43, .45); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px; width: 100%; max-width: 420px; }
/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .card-main { padding: 18px 14px 6px; }
  .hero-title-lg { font-size: 26px; }
  .metric-strip > div { min-width: 100px; }
}