:root {
  --bg: #0a0c11;
  --card: #14171f;
  --surface-2: #1a1e28;
  --surface-3: #212633;
  --line: #262b38;
  --line-strong: #363d4e;
  --text: #e9ecf5;
  --muted: #98a0b3;
  --brand: #7b74ff;
  --brand-soft: rgba(123, 116, 255, .16);
  --good: #3ddc97;
  --bad: #ff6b6b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.pos { color: var(--good); }
.inline { display: inline; }
.link { color: var(--brand); font-weight: 500; }
.link:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12,14,20,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6d63f0, #4f46e5); color: #fff; font-size: 14px; font-weight: 700;
}
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.is-active { color: var(--text); background: var(--surface-3); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.btn-primary:hover { background: #4338ca; }
.btn-ghost { background: var(--card); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn-block { width: 100%; }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 18px 20px 0; margin-bottom: 10px; }

.hero { padding: 68px 0 44px; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.03em; }
.hero-sub { color: var(--muted); font-size: 16px; margin: 0 auto 22px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-soft); color: #c7c3ff; font-size: 12px; font-weight: 600;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-3 .card { margin-top: 0; }
.grid-3 .card p { margin: 8px 0 0; font-size: 13.5px; }

.section { padding: 40px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; margin: 0; letter-spacing: -.02em; }

.page-head { padding: 40px 0 20px; }
.page-head h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.025em; }
.page-head p { margin: 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 16px; min-width: 108px; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-value { font-size: 18px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.stack { display: flex; flex-direction: column; gap: 16px; padding-bottom: 56px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.stack > .card + .card { margin-top: 0; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 11px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(61,220,151,.14); color: var(--good); font-size: 11.5px; font-weight: 600; }

.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th { text-align: left; width: 132px; color: var(--muted); font-weight: 500; padding: 7px 0; vertical-align: top; }
.kv td { padding: 7px 0; word-break: break-all; }

/* 表单 */
.field { display: block; margin-top: 12px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--card); font-size: 13.5px; font-family: inherit; color: var(--text); outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.input-sm { max-width: 180px; }
.row-form > .input:not(.input-sm):not(.input-xs) { flex: 0 1 300px; width: auto; }
.input-xs { max-width: 88px; padding: 4px 8px; font-size: 12px; }
.row-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.inline-row { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 代码 */
pre { margin: 10px 0 0; background: #16171d; color: #e6e7ef; padding: 16px 18px; border-radius: 11px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; }
pre code { font-size: 12.5px; }
.code-card { padding: 0; }
.key-box { background: var(--brand-soft); color: #d9d6ff; }

/* 提示 */
.flash {
  margin-top: 16px; padding: 10px 14px; border-radius: 10px;
  background: rgba(61,220,151,.12); color: var(--good); border: 1px solid rgba(61,220,151,.25); font-size: 13px;
}
.flash-error { background: rgba(255,107,107,.12); color: #ff9b9b; border-color: rgba(255,107,107,.25); }

/* 登录 */
.auth-wrap { display: grid; place-items: center; padding: 70px 0 90px; }
.auth-card { width: 100%; max-width: 392px; }
.auth-title { font-size: 22px; margin: 0 0 4px; letter-spacing: -.02em; }
.center.small { text-align: center; margin-top: 14px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); background: var(--card); }

.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; align-items: center; }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav { display: none; }
  .page-head-row { align-items: flex-start; }
}

/* 支付 */
.pay-grid { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; }
/* 二维码容器保持白底，深色底会影响部分带透明的码 */
.qr-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; display: grid; place-items: center; min-height: 178px; }
.qr-img { width: 168px; height: 168px; object-fit: contain; border-radius: 6px; }
.qr-empty { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.pay-info .pay-amount { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 2px; }
.order-no { display: inline-block; margin: 6px 0 10px; padding: 5px 10px; border-radius: 7px; background: var(--surface-2); font-size: 12.5px; }
.pay-info form { margin-top: 12px; }
.pill-warn { background: rgba(255,183,77,.15); color: #ffc36b; padding: 4px 10px; display: inline-block; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--card); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.divider { height: 1px; background: var(--line); margin: 16px 0 2px; }
.step-no { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: #c7c3ff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } }

.nowrap { white-space: nowrap; }
.nowrap .btn { margin-left: 4px; }

/* 导入兜底面板 */
.modal-mask { position: fixed; inset: 0; background: rgba(16,17,24,.42); display: grid; place-items: center; z-index: 90; }
.modal-mask[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: 14px; padding: 22px; width: min(520px, calc(100vw - 48px)); box-shadow: 0 24px 60px rgba(16,17,24,.28); }
.modal-card h3 { margin: 0 0 6px; font-size: 16px; }
.modal-card ol { padding-left: 18px; margin: 8px 0 12px; }
.cmd-box { background: #16171d; color: #e6e7ef; border-radius: 9px; padding: 12px 14px; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; }

/* 动态二维码（支付宝当面付） */
.qr-svg { width: 168px; height: 168px; display: grid; place-items: center; }
.qr-svg svg { width: 100%; height: 100%; border-radius: 6px; }
.pay-mode-hint { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.notify-row { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11.5px; }

/* 接入代码块 */
.api-block { margin-top: 14px; }
.api-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.api-block pre { margin: 0 0 6px; background: #16171d; color: #e6e7ef; border-radius: 9px; padding: 12px 14px; font-size: 11.5px; line-height: 1.65; overflow-x: auto; }
.api-block pre code { white-space: pre; }
.api-block .muted { margin: 0; }

/* 密钥展示与复制 */
.key-wrap { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.key-wrap .key-box { flex: 1; margin: 0; }
@media (max-width: 560px) { .key-wrap { flex-direction: column; align-items: stretch; } }

/* 教程步骤 */
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step > div:last-child { flex: 1; min-width: 0; }
.step .step-no { flex: 0 0 auto; margin-bottom: 2px; }
.step p { margin: 4px 0 0; }

/* 一键接入：系统切换 + 大命令块 */
.os-tabs { display: flex; gap: 6px; margin: 4px 0 14px; }
.os-tab {
  padding: 7px 18px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.os-tab:hover { border-color: var(--line-strong); color: var(--text); }
.os-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }

.os-pane[hidden] { display: none; }
.os-pane .muted { margin: 0 0 10px; }

.big-cmd { display: flex; flex-direction: column; gap: 10px; }
.big-cmd pre {
  margin: 0; background: #16171d; color: #e6e7ef; border-radius: 11px;
  padding: 18px 20px; font-size: 13.5px; line-height: 1.6; overflow-x: auto;
  border: 1px solid #24262f;
}
.big-cmd pre code { white-space: pre-wrap; word-break: break-all; }
.big-cmd .btn { align-self: flex-start; }

.badge-brand { background: var(--brand); color: #fff; }

/* 折叠块 */
.fold { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.fold > summary {
  cursor: pointer; list-style: none; padding: 10px 0 2px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: ""; width: 0; height: 0; flex: 0 0 auto;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s;
}
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:hover { color: var(--text); }
.fold-body { padding: 8px 0 4px; }
.fold-body .stack-sm { margin-top: 8px; }
.fold + .fold { margin-top: 0; border-top: 1px solid var(--line); }

/* 两步教程 */
.step-big { display: flex; gap: 16px; padding: 6px 0 24px; }
.step-big + .step-big { border-top: 1px dashed var(--line); padding-top: 24px; }
.step-big-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(79,70,229,.28);
}
.step-big-body { flex: 1; min-width: 0; }
.step-big-title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 4px; }
.step-big-body > p { margin: 0 0 12px; }
.step-big-body .os-tabs { margin-top: 12px; }

.guide-done {
  margin-top: 4px; padding: 14px 16px; border-radius: 11px;
  background: rgba(61,220,151,.10); border: 1px solid rgba(61,220,151,.22); color: var(--good);
  font-size: 13px; line-height: 1.7;
}
.guide-done code { background: rgba(61,220,151,.16); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 560px) {
  .step-big { gap: 12px; }
  .step-big-no { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .big-cmd pre { font-size: 12px; padding: 14px; }
}

/* 节点套餐卡片 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.plan-card {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 16px 14px;
  background: var(--card); display: flex; flex-direction: column; transition: .15s;
}
.plan-card:hover { border-color: var(--line-strong); }
.plan-card.is-hot { border-color: var(--brand); box-shadow: 0 4px 16px rgba(79,70,229,.12); }
.plan-tag {
  display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: #c7c3ff; font-size: 11px; font-weight: 650; margin-bottom: 8px;
}
.plan-name { font-size: 13px; font-weight: 650; color: var(--muted); }
.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 0; line-height: 1.2; }
.plan-price span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); }
.plan-list li { display: flex; gap: 6px; align-items: flex-start; }
.plan-list li::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.plan-card form { margin-top: auto; }

.node-sub { font-size: 12.5px; line-height: 1.75; color: var(--muted); }

@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}

/* 管理员专属导航项：低调但能一眼找到 */
.nav-admin { color: var(--brand); font-weight: 600; }
.nav-admin::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-right: 6px; vertical-align: 1px;
}

/* 站内消息气泡 */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; padding: 2px 0 4px; }
.chat-row { display: flex; flex-direction: column; max-width: 78%; }
.chat-row.is-user { align-self: flex-end; align-items: flex-end; }
.chat-row.is-admin { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word;
}
.is-user .chat-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.is-admin .chat-bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-form { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: vertical; min-height: 60px; font-family: inherit; }
.chat-form .btn { flex: 0 0 auto; }
.chat-mini { max-height: 180px; }

/* 全站客服浮窗按钮 */
.fab {
  position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; z-index: 60;
  box-shadow: 0 8px 22px rgba(79,70,229,.38); transition: .16s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.45); }
.fab-dot {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
@media (max-width: 640px) { .fab { right: 14px; bottom: 14px; width: 48px; height: 48px; } }

/* 微信式聊天浮窗 */
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; width: 380px; height: 560px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20,22,40,.18); z-index: 70;
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); min-width: 0;
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 650; flex: 0 0 auto;
}
.chat-panel-title { font-size: 14px; font-weight: 650; }
.chat-panel-sub { font-size: 11.5px; color: var(--muted); }
.chat-x {
  border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 4px; flex: 0 0 auto;
}
.chat-x:hover { color: var(--text); }

.chat-panel-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2);
}
.chat-empty { color: var(--muted); font-size: 12.5px; text-align: center; margin: auto 0; line-height: 1.7; }
.chat-img {
  max-width: 200px; max-height: 200px; border-radius: 10px; cursor: zoom-in;
  display: block; object-fit: cover;
}
.is-user .chat-img { align-self: flex-end; }

.chat-panel-foot {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--line); background: var(--card);
}
.chat-plus {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card); font-size: 20px; line-height: 1;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; padding-bottom: 2px;
}
.chat-plus:hover { border-color: var(--brand); color: var(--brand); }
.chat-panel-foot textarea {
  flex: 1 1 0; min-width: 0; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px;
  background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 13px; resize: none; max-height: 96px; min-height: 36px;
  outline: none; line-height: 1.5;
}
.chat-panel-foot textarea:focus { border-color: var(--brand); }
.chat-send {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 9px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat-send:hover { background: #4338ca; }
.chat-panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px 10px; font-size: 11.5px; color: var(--muted);
}
.chat-end { color: var(--muted); text-decoration: underline; }
.chat-end:hover { color: var(--bad); }

/* 手机：整屏聊天，避免键盘把输入框顶出可视区 */
@media (max-width: 640px) {
  .chat-panel {
    left: 0; right: 0; top: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    border-radius: 0; border: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .chat-panel-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)); gap: 6px; }
  .chat-panel-bar { flex-wrap: wrap; font-size: 11px; gap: 4px; }
  .chat-end { max-width: 100%; }
  .chat-panel-body { padding: 14px 12px; }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0)); width: 54px; height: 54px; }
  .chat-img { max-width: 150px; max-height: 150px; }
}

/* 手机上点击不要有 300ms 延迟、不要双击缩放 */
.fab, .chat-send, .chat-plus, .chat-x, .chat-end { touch-action: manipulation; }
.fab, .chat-panel { -webkit-transform: translateZ(0); }

/* 客服工作台：三栏 */
.sp-layout {
  display: grid; grid-template-columns: 246px minmax(0, 1fr) 310px;
  gap: 14px; align-items: start; padding-bottom: 40px;
}
.sp-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.sp-list { max-height: 76vh; overflow-y: auto; padding: 6px; }
.sp-item {
  display: flex; gap: 9px; align-items: flex-start; padding: 10px; border-radius: 10px;
  text-decoration: none; color: inherit; position: relative;
}
.sp-item:hover { background: var(--surface-2); }
.sp-item.is-on { background: var(--brand-soft); }
.sp-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(123,116,255,.16); color: #c7c3ff; font-size: 12.5px; font-weight: 650;
  display: grid; place-items: center;
}
.sp-item.is-on .sp-avatar { background: var(--brand); color: #fff; }
.sp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-item-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.sp-item-top b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item-top i { font-style: normal; font-size: 10.5px; color: var(--muted); flex: 0 0 auto; }
.sp-item-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-badge {
  position: absolute; right: 8px; bottom: 8px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
}

.sp-main { display: flex; flex-direction: column; height: 76vh; overflow: hidden; }
.sp-chat-head {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.sp-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2);
}
.sp-main .chat-form { padding: 10px 12px; margin-top: 0; border-top: 1px solid var(--line); background: var(--card); }

.sp-side { padding: 14px; max-height: 76vh; overflow-y: auto; }
.sp-profile-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sp-profile-name { font-size: 13.5px; font-weight: 650; word-break: break-all; }
.sp-profile-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.sp-stats > div {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 2px;
}
.sp-stats span { font-size: 10.5px; color: var(--muted); }
.sp-stats b { font-size: 13px; font-variant-numeric: tabular-nums; }
.sp-block { margin-top: 14px; }
.sp-block-title { font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.table-tight th, .table-tight td { padding: 6px 8px; font-size: 11.5px; }
.table-tight th { font-size: 10.5px; }

@media (max-width: 1100px) {
  .sp-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .sp-side { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 720px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-list { max-height: 220px; }
  .sp-main { height: 64vh; }
}

/* 后台导航未读红点 */
.nav-badge {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 5px;
  margin-left: 5px; border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 10.5px; font-weight: 700; vertical-align: 1px;
}
.nav-badge[hidden] { display: none; }

/* 客户侧：已开通的订阅链接置顶展示 */
.sub-live {
  background: linear-gradient(135deg, rgba(123,116,255,.14), rgba(123,116,255,.05));
  border: 1px solid #2a2f45; border-radius: 12px; padding: 16px;
}
.sub-live-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 650; margin-bottom: 10px;
}
.sub-live-url {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 12px; font-size: 12px; line-height: 1.6; word-break: break-all; color: #d9d6ff;
}

/* 后台：催单标记 */
.urge-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,107,107,.15); color: #ff9b9b; font-size: 11px; font-weight: 700;
  animation: urge-pulse 1.6s ease-in-out infinite;
}
@keyframes urge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* 会话列表里的图片缩略图 */
.sp-thumb {
  width: 30px; height: 30px; border-radius: 7px; object-fit: cover;
  flex: 0 0 auto; border: 1px solid var(--line); cursor: zoom-in; align-self: center;
}

/* 控制台顶部的独立引导栏：跟下面的卡片区完全分开 */
.setup-band {
  background: linear-gradient(135deg, rgba(123,116,255,.13) 0%, rgba(123,116,255,.04) 100%);
  border: 1px solid #2a2f45;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 16px 20px 14px;
  margin: 0 0 22px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, .06);
}
.setup-band[hidden] { display: none; }

.setup-band-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.setup-band-head > b { font-size: 15px; letter-spacing: -.01em; }
.setup-band-tag {
  padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 650;
}
.setup-band-hide {
  margin-left: auto; border: 0; background: none; padding: 2px 0;
  color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer;
  text-decoration: underline; flex: 0 0 auto;
}
.setup-band-hide:hover { color: var(--text); }

.setup-steps {
  display: grid; grid-template-columns: 0.95fr 1.5fr 1fr; gap: 20px;
  align-items: start;
}
.setup-step { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.setup-step-no {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(123,116,255,.35); color: #c7c3ff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  margin-top: 1px;
}
.setup-step-body { flex: 1; min-width: 0; }
.setup-step-body > b { display: block; font-size: 13px; margin-bottom: 3px; }
.setup-step-body > p { margin: 0 0 8px; }
.setup-step-body .btn { white-space: nowrap; }

.setup-band-note {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.75; color: var(--muted);
}
.setup-band-note b { color: var(--text); font-weight: 600; }
.setup-band-note code {
  background: rgba(123,116,255,.18); color: #c7c3ff; padding: 1px 5px; border-radius: 4px;
  font-size: 11.5px;
}

.setup-band .fold { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 2px; }

@media (max-width: 900px) {
  .setup-steps { grid-template-columns: 1fr; gap: 16px; }
  .setup-band { padding: 14px 16px 12px; }
  .setup-band-head { gap: 7px; }
  .setup-band-hide { margin-left: auto; }
}

/* ============ 三个区域各自独立的外观 ============ */
/* 官网、控制台、节点互不穿插：各自的菜单、页脚、配色 */

body.zone-console { --bg: #0a0c11; }

body.zone-node {
  --brand: #2dd4bf;
  --brand-soft: rgba(45, 212, 191, .14);
  --bg: #08110f;
}
body.zone-node .brand-mark { background: linear-gradient(135deg, #12a594, #0f766e); }
body.zone-node .topbar { border-bottom-color: #1d3a35; }
body.zone-node .plan-tag { color: #2dd4bf; }
body.zone-node .step-no { color: #2dd4bf; }
body.zone-node .nav-link.is-active { background: var(--brand-soft); color: #2dd4bf; }
body.zone-node .sub-live {
  background: linear-gradient(135deg, rgba(45,212,191,.10), rgba(45,212,191,.04));
  border-color: #1d3a35;
}
body.zone-node .sub-live-url { color: #7ff0dc; }
body.zone-node .pay-mode-hint { background: rgba(45,212,191,.06); border-color: #1d3a35; }
body.zone-node .link { color: #2dd4bf; }
body.zone-node .fab { box-shadow: 0 8px 22px rgba(15, 118, 110, .35); }

/* ============ 控制台：左侧分组菜单 + 右侧面板 ============ */
.con-wrap { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 18px; align-items: start; }

.con-side {
  position: sticky; top: 78px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 8px 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.con-group {
  padding: 13px 10px 6px; font-size: 11px; letter-spacing: .08em;
  color: var(--muted); font-weight: 600;
}
.con-group:first-child { padding-top: 6px; }
.con-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  cursor: pointer; user-select: none;
}
.con-item:hover { background: var(--surface-3); color: var(--text); }
.con-item.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.con-item svg { flex: 0 0 16px; width: 16px; height: 16px; opacity: .95; }
.con-item .con-dot {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
.con-foot {
  margin-top: 10px; padding: 11px 10px 6px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.con-main { min-width: 0; }
.con-panel { display: none; }
.con-panel.is-on { display: block; }
.con-panel > .card:first-child { margin-top: 0; }

/* 概览里的快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-card {
  display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); transition: .15s;
}
.quick-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.quick-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.quick-sub { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .con-wrap { grid-template-columns: 1fr; }
  .con-side {
    position: static; flex-direction: row; overflow-x: auto;
    padding: 8px; gap: 4px; scrollbar-width: none;
  }
  .con-side::-webkit-scrollbar { display: none; }
  .con-group, .con-foot { display: none; }
  .con-item { white-space: nowrap; padding: 7px 10px; }
  .con-item .con-dot { margin-left: 4px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ 深色版收官：字号与聊天窗口 ============ */
/* 整体字号抬一档，正文 16.5px，附属信息 13.5px */
body { font-size: 16.5px; line-height: 1.68; }
.small, .muted.small { font-size: 13.5px; }
.nav-link { font-size: 14.5px; }
.btn { font-size: 14.5px; }
.btn-xs { font-size: 13px; }
.card-title { font-size: 17px; }
.table th { font-size: 13px; }
.table td { font-size: 14.5px; }
.input { font-size: 14.5px; }
.chip-btn { font-size: 14.5px; }
.pill { font-size: 12.5px; }
.page-head h1 { font-size: 30px; }
.page-head p { font-size: 14.5px; }
.hero h1 { font-size: 44px; }
.hero-sub { font-size: 17px; }
.quick-title { font-size: 14.5px; }
.quick-sub { font-size: 13px; }

/* 聊天窗口：桌面 440×660，手机基本满屏 */
.chat-panel { width: 440px; height: 660px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.chat-panel-head { padding: 16px 18px; }
.chat-avatar { width: 38px; height: 38px; font-size: 15px; }
.chat-panel-title { font-size: 15.5px; }
.chat-panel-sub { font-size: 12.5px; }
.chat-panel-body { padding: 18px; gap: 14px; }
.chat-bubble { font-size: 14.5px; }
.chat-empty { font-size: 13.5px; }
.chat-panel-foot textarea { font-size: 14.5px; min-height: 40px; }
.chat-send { font-size: 14px; padding: 9px 18px; }
.chat-panel-bar { font-size: 12.5px; }
.chat-img { max-width: 240px; max-height: 240px; }

@media (max-width: 640px) {
  .chat-panel {
    right: 8px; left: 8px; bottom: 8px; width: auto;
    height: min(82vh, 680px);
  }
  .page-head h1 { font-size: 26px; }
  .hero h1 { font-size: 32px; }
}

/* 深色下代码块再压暗一点，跟卡片区分 */
pre, .cmd-box, .api-block pre { background: #0b0e14; color: #d8dcea; }
.qr-svg { background: #fff; padding: 8px; border-radius: 8px; }

/* 表格里的操作按钮不换行 */
.row-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.table { table-layout: auto; }

/* API Key：完整密钥可反复复制 */
.key-line { display: flex; align-items: flex-start; gap: 8px; }
.key-plain {
  display: block; max-width: 330px; padding: 3px 7px;
  font-size: 12.5px; line-height: 1.55; word-break: break-all;
  user-select: all; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; color: var(--text);
}
.key-line .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .key-plain { max-width: 100%; } }

/* 密钥表格：表头与操作按钮不换行，密钥列限宽 */
.table th { white-space: nowrap; }
.table td:last-child { white-space: nowrap; }
.table .btn { white-space: nowrap; }
.key-plain { max-width: 260px; }

/* 手机上密钥表只留名称/密钥/操作，避免挤成竖排 */
.key-plain { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
  .key-table th:nth-child(3), .key-table td:nth-child(3),
  .key-table th:nth-child(4), .key-table td:nth-child(4) { display: none; }
  .key-table td { vertical-align: top; }
  .key-table td:first-child { max-width: 42%; }
}

/* 手机上给名称列和操作列保底宽度，避免「一键配置（自动生成）」和「删除」被压成竖排 */
@media (max-width: 760px) {
  .key-table td:first-child { max-width: 40%; min-width: 90px; }
  .key-table td:last-child { min-width: 58px; }
}

/* API Key 行内：复制 + 导入 Codex / Claude */
.key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.key-actions .btn { flex: 0 0 auto; }
@media (max-width: 760px) {
  .key-actions .btn { font-size: 12px; padding: 3px 8px; }
}

/* ============ API Key 表格：对齐上家的清晰布局 ============ */
.key-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.key-name .pill { margin-left: 4px; font-weight: 500; }
.key-mask, .key-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: #8fb6ff; user-select: all; letter-spacing: .01em;
}
.key-full { word-break: break-all; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; flex: 0 0 auto;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.is-on { color: var(--brand); background: rgba(123, 116, 255, .16); }

.group-form { display: inline-block; }
.group-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.group-dot { width: 8px; height: 8px; border-radius: 50%; background: #7b74ff; flex: 0 0 auto; }
.g-codex .group-dot { background: #10a37f; }
.g-claude .group-dot { background: #d9775f; }
.group-pill select {
  border: 0; background-color: transparent; color: var(--text);
  font-size: 13px; font-family: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  padding: 0 16px 0 0; line-height: 1.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' fill='none' stroke='%237c8499' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right center;
}
.group-pill select:focus { outline: none; }
.group-pill:focus-within { border-color: var(--line-strong); }

.api-tag {
  display: inline-block; margin: 2px 4px 2px 0; padding: 3px 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 500;
  background: rgba(123, 116, 255, .13); color: #b9b5ff;
  border: 1px solid rgba(123, 116, 255, .28); white-space: nowrap;
}
.usage-cell { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.key-table td:last-child { white-space: normal; }
.key-table td:last-child .row-actions { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  .key-table td:first-child { max-width: 52%; min-width: 130px; }
  .key-table td:last-child { min-width: 80px; }
  .api-tag { font-size: 11px; padding: 2px 6px; }
}

/* 兼容 API 标签做成按钮：点一下就把这行的密钥导入对应客户端 */
.api-tag-btn {
  font-family: inherit; cursor: pointer; line-height: 1.4;
  transition: background .15s, border-color .15s, color .15s;
}
.api-tag-btn:hover { background: rgba(123, 116, 255, .26); border-color: rgba(123, 116, 255, .5); color: #d6d3ff; }
.api-tag-btn:active { transform: translateY(1px); }
.key-mask { white-space: nowrap; }
.key-table td:last-child { white-space: nowrap; }

/* 手机上用固定三列宽度，彻底避免表格撑破卡片 */
@media (max-width: 760px) {
  .key-table { table-layout: fixed; width: 100%; }
  .key-table th:nth-child(1), .key-table td:nth-child(1) { width: 46%; }
  .key-table th:nth-child(2), .key-table td:nth-child(2) { width: 32%; }
  .key-table th:nth-child(5), .key-table td:nth-child(5) { width: 22%; }
  .key-table td:first-child, .key-table td:last-child { min-width: 0; max-width: none; }
  .group-pill { padding: 4px 4px 4px 8px; gap: 5px; }
  .group-pill select { font-size: 12px; padding-right: 14px; background-size: 9px; }
  .key-mask { font-size: 12px; }
  .key-line { gap: 4px; }
}

/* 手机端在密钥下方补导入按钮（桌面用兼容 API 标签就行） */
.key-import-mobile { display: none; }
@media (max-width: 760px) {
  .key-import-mobile { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
  .key-import-mobile .btn { font-size: 12px; padding: 3px 9px; }
}

/* 卡片内的提示条（兑换结果就地反馈） */
.flash-inline { margin: 0 0 14px; }

/* 提示条淡出：3.6 秒后自动收走 */
.flash { transition: opacity .4s ease, transform .4s ease; }
.flash-out { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* ============ 宽屏铺满 + 字号再大一档 ============ */
.container {
  max-width: 1720px;
  padding-left: clamp(16px, 2vw, 40px);
  padding-right: clamp(16px, 2vw, 40px);
}
.container-wide { max-width: 1900px; }

body { font-size: 17.5px; line-height: 1.7; }
.small, .muted.small { font-size: 14px; }
.nav-link { font-size: 15px; }
.btn { font-size: 15px; }
.btn-xs { font-size: 13.5px; }
.card-title { font-size: 18px; }
.table { font-size: 15px; }
.table th { font-size: 13.5px; }
.table td { font-size: 15.5px; }
.input { font-size: 15px; }
.chip-btn { font-size: 15px; }
.pill { font-size: 13px; }
.page-head h1 { font-size: 34px; }
.page-head p { font-size: 15.5px; }
.hero h1 { font-size: 50px; }
.hero-sub { font-size: 18px; }
.quick-title { font-size: 15.5px; }
.quick-sub { font-size: 13.5px; }

.card { padding: 24px; }
.card + .card { margin-top: 18px; }
.card-head { margin-bottom: 16px; }
.table th, .table td { padding: 13px 22px; }
.page-head { padding: 44px 0 22px; }

.con-wrap { grid-template-columns: 236px minmax(0, 1fr); gap: 22px; }
.con-item { font-size: 14.5px; padding: 9px 11px; }
.quick-grid { gap: 14px; }

@media (max-width: 900px) {
  .con-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .card { padding: 18px; }
  .table th, .table td { padding: 11px 12px; }
  .page-head h1 { font-size: 28px; }
  .hero h1 { font-size: 34px; }
  .body, body { font-size: 16.5px; }
}

/* 排版收口：卡片头允许换行、长代码不撑破卡片、手机表格字号回收一点 */
.card-head { flex-wrap: wrap; }
.card-head > * { min-width: 0; }

@media (max-width: 640px) {
  .setup-band-note { overflow-wrap: anywhere; }
  .setup-band-note code { word-break: break-all; }
  .api-block pre { font-size: 11px; }
  .table td { font-size: 14px; }
  .table th { font-size: 12.5px; }
  .card-title { font-size: 16.5px; }
}

/* ============ 字号再放大一档（整体明显变大） ============ */
body { font-size: 21px; line-height: 1.72; }
.small, .muted.small { font-size: 16px; }
.nav-link { font-size: 18px; }
.btn { font-size: 18px; }
.btn-xs { font-size: 15.5px; }
.card-title { font-size: 21px; }
.table { font-size: 18px; }
.table th { font-size: 15.5px; }
.table td { font-size: 18px; }
.input { font-size: 18px; }
.chip-btn { font-size: 18px; }
.pill { font-size: 15px; }
.page-head h1 { font-size: 42px; }
.page-head p { font-size: 18px; }
.hero h1 { font-size: 62px; }
.hero-sub { font-size: 21px; }
.quick-title { font-size: 18.5px; }
.quick-sub { font-size: 16px; }
.flash { font-size: 15.5px; }

/* 控制台侧栏与密钥表 */
.con-item { font-size: 16.5px; padding: 10px 12px; }
.con-group { font-size: 12.5px; }
.con-foot { font-size: 14px; }
.key-name { font-size: 16px; }
.key-mask, .key-full { font-size: 15px; }
.group-pill select { font-size: 15px; }
.api-tag { font-size: 13.5px; padding: 4px 10px; }
.usage-cell { font-size: 14.5px; }
.icon-btn { width: 28px; height: 28px; }

/* 聊天窗跟着放大 */
.chat-panel { width: 470px; height: 700px; }
.chat-bubble { font-size: 16px; }
.chat-panel-title { font-size: 17px; }
.chat-panel-sub, .chat-panel-bar { font-size: 14px; }
.chat-panel-foot textarea { font-size: 16px; }
.chat-send { font-size: 15.5px; }

@media (max-width: 900px) {
  body { font-size: 18.5px; }
  .page-head h1 { font-size: 34px; }
  .hero h1 { font-size: 42px; }
  .card-title { font-size: 19px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; line-height: 1.68; }
  .small, .muted.small { font-size: 15px; }
  .table { font-size: 15.5px; }
  .table td { font-size: 15.5px; }
  .table th { font-size: 14px; }
  .card-title { font-size: 18.5px; }
  .page-head h1 { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .key-mask, .key-full { font-size: 14px; }
  .api-tag { font-size: 12.5px; }
  .con-item { font-size: 15px; }
}

/* 手机端：表格在卡片内横向滚动，避免把整页撑宽 */
@media (max-width: 640px) {
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-head { position: sticky; left: 0; }
  .table th, .table td { padding: 9px 10px; }
  .table .btn { font-size: 12.5px; padding: 3px 8px; }
  .key-table td:last-child .btn { font-size: 12.5px; padding: 3px 7px; }
  .api-tag { padding: 3px 8px; }
}

/* ============ 用户端组件同步放大（首页 / 节点页 / 登录 / 教程） ============ */
.brand { font-size: 19px; }
.brand-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.btn-sm { font-size: 15.5px; padding: 8px 14px; }
.hero-sub { max-width: 780px; }
.hero-meta { font-size: 16px; }
.badge { font-size: 15px; padding: 6px 14px; }
.hero-actions .btn { padding: 13px 26px; }
.stat-label { font-size: 15px; }
.stat-value { font-size: 24px; }
.grid-3 .card p { font-size: 17px; }
.kv { font-size: 17px; }
.field-label { font-size: 15px; }
.input-xs { font-size: 15px; }
pre { font-size: 15px; }
pre code { font-size: 15px; }
.footer-inner { font-size: 15px; padding: 26px 0; }
.qr-empty, .order-no { font-size: 15px; }
.pay-mode-hint { font-size: 15.5px; }
.notify-row { font-size: 14px; }
.api-block-head { font-size: 16px; }
.api-block pre { font-size: 14px; }
.step-no { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
.cmd-box { font-size: 14.5px; }
.plan-card { padding: 20px; }
.plan-tag { font-size: 13.5px; padding: 3px 10px; }
.plan-name { font-size: 17px; }
.plan-price { font-size: 40px; }
.plan-price span { font-size: 15px; }
.plan-list { font-size: 16px; gap: 9px; }
.step-big-no { width: 42px; height: 42px; font-size: 19px; border-radius: 13px; }
.step-big-title { font-size: 20px; }
.auth-card { max-width: 460px; }
.auth-title { font-size: 28px; }

@media (max-width: 640px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; font-size: 14px; }
  .btn-sm { font-size: 14px; padding: 7px 12px; }
  .hero-sub { font-size: 17px; max-width: 100%; }
  .hero-meta { font-size: 14px; }
  .badge { font-size: 13px; }
  .stat-label { font-size: 13px; }
  .stat-value { font-size: 21px; }
  .grid-3 .card p { font-size: 15.5px; }
  .kv { font-size: 15.5px; }
  .footer-inner { font-size: 13.5px; }
  .plan-price { font-size: 34px; }
  .plan-list { font-size: 14.5px; }
  .step-big-no { width: 34px; height: 34px; font-size: 16px; }
  .step-big-title { font-size: 18px; }
  .auth-card { max-width: none; }
  pre { font-size: 13px; }
  pre code { font-size: 13px; }
}

/* 兑换框等表单输入拉宽；页脚与内容对齐 */
.row-form > .input:not(.input-sm):not(.input-xs) { flex: 1 1 320px; width: auto; min-width: 0; }
.container.footer-inner {
  padding-top: 26px;
  padding-bottom: 26px;
  padding-left: clamp(16px, 2vw, 40px);
  padding-right: clamp(16px, 2vw, 40px);
}

/* ============================================================
   科技感动效（只作用于用户端：官网 / 登录 / 控制台 / 节点页）
   后台 zone-admin 完全不动，保持干净利落
   层次：before 底色光晕(-4) → after 网格(-3) → #bgfx 粒子(-2) → 内容
   ============================================================ */
body:not(.zone-admin) { background: transparent; }

body:not(.zone-admin)::before {
  content: "";
  position: fixed; inset: -18%;
  z-index: -5; pointer-events: none;
  background:
    radial-gradient(46% 42% at 16% 6%, rgba(123, 116, 255, .46), transparent 70%),
    radial-gradient(38% 36% at 88% 2%, rgba(45, 212, 191, .24), transparent 72%),
    radial-gradient(52% 46% at 50% 108%, rgba(56, 132, 255, .28), transparent 74%),
    var(--bg);
  animation: aurora 26s ease-in-out infinite alternate;
  will-change: transform;
}
body.zone-node::before {
  background:
    radial-gradient(42% 38% at 18% 8%, rgba(45, 212, 191, .22), transparent 68%),
    radial-gradient(34% 32% at 86% 4%, rgba(56, 189, 248, .13), transparent 70%),
    radial-gradient(48% 42% at 50% 106%, rgba(16, 185, 129, .17), transparent 72%),
    var(--bg);
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.07); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}

body:not(.zone-admin)::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -4; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line, rgba(133, 126, 255, .12)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(133, 126, 255, .12)) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35) 55%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35) 55%, transparent 78%);
  animation: gridDrift 42s linear infinite;
}
body.zone-node { --grid-line: rgba(45, 212, 191, .07); }
@keyframes gridDrift {
  to { background-position: 58px 58px, 58px 58px; }
}

body:not(.zone-admin) #bgfx {
  position: fixed; inset: 0;
  z-index: -2; pointer-events: none;
}

/* 首页大标题流光 */
body:not(.zone-admin) .hero h1 {
  background: linear-gradient(96deg, #ffffff 6%, #c9c3ff 32%, #6ff0d8 66%, #ffffff 96%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(123, 116, 255, .38));
  animation: titleSheen 10s ease-in-out infinite;
}
@keyframes titleSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 卡片顶部细光 + 悬停微光 */
body:not(.zone-admin) .card { position: relative; }
body:not(.zone-admin) .card::before {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 148, 255, .5), rgba(45, 212, 191, .3), transparent);
  opacity: .6; pointer-events: none;
}
body:not(.zone-admin) .plan-card:hover { box-shadow: 0 10px 34px rgba(80, 74, 220, .18); }

/* 顶栏底部流光 */
body:not(.zone-admin) .topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 116, 255, .8), rgba(45, 212, 191, .55), transparent);
  background-size: 220% 100%;
  animation: topTrace 7.5s linear infinite;
  pointer-events: none;
}
@keyframes topTrace {
  from { background-position: -120% 0; }
  to { background-position: 220% 0; }
}

/* 主按钮发光 */
body:not(.zone-admin) .btn-primary { box-shadow: 0 6px 22px rgba(110, 102, 255, .28); }
body:not(.zone-admin) .btn-primary:hover { box-shadow: 0 10px 30px rgba(110, 102, 255, .46); }

/* 手机减负 */
@media (max-width: 640px) {
  body:not(.zone-admin)::before { animation: none; filter: none; }
  body:not(.zone-admin)::after { animation-duration: 70s; background-size: 44px 44px; }
  body:not(.zone-admin) .hero h1 { animation: none; }
  body:not(.zone-admin) .topbar::after { animation-duration: 12s; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.zone-admin)::before,
  body:not(.zone-admin)::after,
  body:not(.zone-admin) .hero h1,
  body:not(.zone-admin) .topbar::after { animation: none !important; }
}


/* ============================================================
   大片级动态元素：透视地面 + 扫描光带 + 鼠标光斑 + Hero 双光环
   （同样只作用于用户端）
   ============================================================ */
body:not(.zone-admin) .fx-floor {
  position: fixed; left: -60%; right: -60%; bottom: -6%;
  height: 62vh; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 116, 255, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 116, 255, .20) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: perspective(440px) rotateX(74deg);
  transform-origin: bottom center;
  animation: floorRun 8s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, .55) 42%, transparent 80%);
  mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, .55) 42%, transparent 80%);
  opacity: .6;
}
body.zone-node .fx-floor {
  background-image:
    linear-gradient(rgba(45, 212, 191, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, .18) 1px, transparent 1px);
}
@keyframes floorRun { to { background-position: 0 84px, 0 0; } }

body:not(.zone-admin) .fx-scan {
  position: fixed; left: 0; right: 0; top: 0; height: 260px;
  z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(123, 116, 255, .07) 55%, rgba(45, 212, 191, .05), transparent);
  animation: scanDown 16s linear infinite;
}
@keyframes scanDown {
  0% { transform: translate3d(0, -280px, 0); }
  100% { transform: translate3d(0, 100vh, 0); }
}

body:not(.zone-admin) .fx-pointer {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px;
  margin: -280px 0 0 -280px; border-radius: 50%;
  z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(123, 116, 255, .15), rgba(45, 212, 191, .05) 52%, transparent 72%);
  transition: opacity .5s ease;
  will-change: transform;
}

/* Hero 背后两圈反向旋转的光环 */
body:not(.zone-admin) .hero { position: relative; isolation: isolate; }
body:not(.zone-admin) .hero::before,
body:not(.zone-admin) .hero::after {
  content: ""; position: absolute; left: 50%; top: 46%;
  border-radius: 50%; pointer-events: none; z-index: -1;
  transform: translate(-50%, -50%);
}
body:not(.zone-admin) .hero::before {
  width: 780px; height: 780px;
  background: conic-gradient(from 0deg, transparent 0 50%, rgba(123, 116, 255, .55) 64%, transparent 76%, rgba(45, 212, 191, .6) 90%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 56%, #000 72%, transparent 80%);
  mask-image: radial-gradient(circle, transparent 46%, #000 56%, #000 72%, transparent 80%);
  filter: blur(12px);
  opacity: .8;
  animation: heroSpin 26s linear infinite;
}
body:not(.zone-admin) .hero::after {
  width: 540px; height: 540px;
  background: conic-gradient(from 180deg, transparent 0 54%, rgba(56, 189, 248, .62) 70%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle, transparent 45%, #000 55%, #000 66%, transparent 73%);
  mask-image: radial-gradient(circle, transparent 45%, #000 55%, #000 66%, transparent 73%);
  filter: blur(10px);
  opacity: .6;
  animation: heroSpinBack 18s linear infinite;
}
@keyframes heroSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes heroSpinBack { to { transform: translate(-50%, -50%) rotate(-360deg); } }

@media (max-width: 640px) {
  body:not(.zone-admin) .fx-floor { opacity: .35; height: 44vh; }
  body:not(.zone-admin) .fx-pointer { display: none; }
  body:not(.zone-admin) .hero::before,
  body:not(.zone-admin) .hero::after { display: none; }
  body:not(.zone-admin) .fx-scan { animation-duration: 26s; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.zone-admin) .fx-floor,
  body:not(.zone-admin) .fx-scan { animation: none !important; }
  body:not(.zone-admin) .hero::before,
  body:not(.zone-admin) .hero::after { display: none; }
}


/* 玻璃拟态：官网 / 节点页的卡片半透明，背景光效透过来（控制台卡片多，保持不透明） */
body.zone-site .card,
body.zone-node .card {
  background: rgba(18, 21, 30, .72);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
body.zone-site .card .table th,
body.zone-node .card .table th { background: rgba(26, 30, 40, .55); }
body.zone-site .card .table tbody tr:hover,
body.zone-node .card .table tbody tr:hover { background: rgba(255, 255, 255, .03); }
body.zone-site .stat,
body.zone-node .stat { background: rgba(18, 21, 30, .66); backdrop-filter: blur(8px); }

/* ============================================================
   控制台也来点大动静：更亮的极光 + 玻璃卡片 + 页头光斑 + 侧栏发光
   ============================================================ */
body.zone-console::before {
  background:
    radial-gradient(50% 46% at 10% 2%, rgba(123, 116, 255, .52), transparent 70%),
    radial-gradient(40% 38% at 90% 0%, rgba(56, 189, 248, .24), transparent 72%),
    radial-gradient(56% 50% at 50% 112%, rgba(123, 116, 255, .28), transparent 74%),
    var(--bg);
}

/* 玻璃卡片：背景的网格和粒子透出来 */
body.zone-console .card,
body.zone-console .con-side,
body.zone-console .stat {
  background: rgba(19, 23, 33, .66);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
}
body.zone-console .card .table th { background: rgba(28, 33, 45, .5); }
body.zone-console .card .table tbody tr:hover { background: rgba(255, 255, 255, .035); }
body.zone-console .stat:hover { border-color: rgba(123, 116, 255, .45); box-shadow: 0 8px 26px rgba(94, 86, 255, .22); }

/* 页头一大团会呼吸的光斑 */
body.zone-console .page-head { position: relative; isolation: isolate; }
body.zone-console .page-head::before {
  content: "";
  position: absolute; left: -4%; top: -180px; width: 820px; height: 460px;
  background: radial-gradient(closest-side, rgba(123, 116, 255, .34), rgba(56, 189, 248, .10) 58%, transparent 74%);
  filter: blur(28px);
  z-index: -1; pointer-events: none;
  animation: consoleGlow 16s ease-in-out infinite alternate;
}
@keyframes consoleGlow {
  0% { transform: translate3d(-30px, 0, 0) scale(1); opacity: .85; }
  100% { transform: translate3d(80px, 24px, 0) scale(1.14); opacity: 1; }
}

/* 控制台标题也走渐变 */
body.zone-console .page-head h1 {
  background: linear-gradient(96deg, #ffffff 10%, #d5d1ff 46%, #8fe8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 侧栏选中项发光 */
body.zone-console .con-item.is-on {
  box-shadow: inset 0 0 0 1px rgba(123, 116, 255, .35), 0 6px 18px rgba(80, 74, 220, .22);
}

/* 手机端关掉重模糊，省电 */
@media (max-width: 640px) {
  body.zone-console .card,
  body.zone-console .con-side,
  body.zone-console .stat {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(19, 23, 33, .9);
  }
  body.zone-console .page-head::before { animation: none; filter: blur(20px); }
}

/* 控制台：右下角一圈缓慢旋转的大光束，给一点"大型动效"的体感 */
body.zone-console .con-main { position: relative; }
body.zone-console .con-main::after {
  content: "";
  position: fixed; right: -22vw; bottom: -34vh; width: 76vw; height: 76vw;
  z-index: -1; pointer-events: none;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 58%, rgba(123, 116, 255, .16) 70%, rgba(56, 189, 248, .12) 80%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle, transparent 34%, #000 54%, transparent 88%);
  mask-image: radial-gradient(circle, transparent 34%, #000 54%, transparent 88%);
  opacity: .9;
  animation: beamSpin 36s linear infinite;
}
@keyframes beamSpin { to { transform: rotate(360deg); } }

/* 卡片底色提亮一点，玻璃后面透光更明显 */
body.zone-console .card,
body.zone-console .con-side {
  background: rgba(24, 29, 41, .62);
}

@media (max-width: 640px) {
  body.zone-console .con-main::after { display: none; }
}

/* ============================================================
   电影感 Hero：巨型粒子球 + 3D 倾斜控制台预览（参考 finlytic）
   ============================================================ */
.hero-cinema { position: relative; padding: 56px 0 0; text-align: center; isolation: isolate; }
body:not(.zone-admin) .hero-cinema::before,
body:not(.zone-admin) .hero-cinema::after { display: none; }

.hero-cinema .orb-stage {
  position: absolute; left: 50%; top: -250px;
  width: min(1400px, 132vw); height: min(1400px, 132vw);
  transform: translateX(-50%);
  z-index: 0; pointer-events: none;
}
.hero-cinema .orb-stage canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 60px rgba(123, 116, 255, .45)); }
.hero-cinema .orb-halo {
  position: absolute; inset: 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 116, 255, .38), rgba(88, 72, 220, .16) 56%, transparent 72%);
  filter: blur(34px);
  animation: orbPulse 9s ease-in-out infinite alternate;
}
@keyframes orbPulse {
  from { transform: scale(.95); opacity: .72; }
  to { transform: scale(1.07); opacity: 1; }
}

.hero-cinema .hero-copy { position: relative; z-index: 2; }
body:not(.zone-admin) .hero-cinema .hero-title {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.06; letter-spacing: -.035em;
  margin: 18px 0 16px;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: #ffffff; color: #fff;
  animation: none; filter: none;
}
body:not(.zone-admin) .hero-cinema .hero-title span { display: block; font-weight: 800; }
body:not(.zone-admin) .hero-cinema .hero-title em {
  display: block; font-style: italic; font-weight: 500;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  background: linear-gradient(96deg, #ddd8ff 4%, #9a86ff 44%, #6fe8dc 88%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .06em;
  filter: drop-shadow(0 10px 34px rgba(123, 116, 255, .5));
}

/* 3D 控制台预览 */
.hero-cinema .preview-3d {
  position: relative; z-index: 1;
  width: min(1200px, 96vw);
  margin: 46px auto 0;
  perspective: 1700px;
  animation: pvFloat 10s ease-in-out infinite alternate;
}
@keyframes pvFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}
.preview-frame {
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(150, 130, 255, .42);
  background: linear-gradient(180deg, rgba(24, 20, 44, .93), rgba(10, 10, 20, .96));
  box-shadow:
    0 60px 140px rgba(70, 50, 220, .38),
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 0 90px rgba(123, 116, 255, .16) inset;
  transform: rotateX(10deg) scale(.99);
  transform-origin: center top;
}
.pv-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
}
.pv-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.pv-dot:nth-child(1) { background: #ff6b6b; opacity: .85; }
.pv-dot:nth-child(2) { background: #ffd166; opacity: .85; }
.pv-dot:nth-child(3) { background: #3ddc97; opacity: .85; }
.pv-bar b { margin-left: 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.pv-body { display: grid; grid-template-columns: 170px 1fr; min-height: 292px; }
.pv-side { border-right: 1px solid rgba(255, 255, 255, .06); padding: 12px 10px; text-align: left; }
.pv-side-title { padding: 10px 8px 5px; font-size: 10.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .32); }
.pv-nav { padding: 7px 9px; border-radius: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.pv-nav.is-on { background: rgba(123, 116, 255, .22); color: #cfc9ff; }
.pv-main { padding: 16px 18px; text-align: left; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pv-stat { padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.pv-stat span { display: block; font-size: 11px; color: rgba(255, 255, 255, .38); }
.pv-stat b { font-size: 18px; font-weight: 650; color: #fff; }
.pv-rows { border-top: 1px solid rgba(255, 255, 255, .06); }
.pv-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px;
  align-items: center; padding: 9px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12.5px; color: rgba(255, 255, 255, .6);
}
.pv-head { font-size: 11px; letter-spacing: .06em; color: rgba(255, 255, 255, .32); }
.pv-pill { justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: rgba(61, 220, 151, .14); color: #4be0a3; }
.pv-pill.idle { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .4); }

/* 让后面的板块盖住球体下缘，形成"球体沉入内容"的层次 */
.section { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero-cinema { padding-top: 34px; }
  .hero-cinema .orb-stage { top: -20px; width: min(720px, 128vw); height: min(720px, 128vw); }
  .hero-cinema .preview-3d { margin-top: 42px; }
  .pv-body { grid-template-columns: 1fr; min-height: 0; }
  .pv-side { display: none; }
  .preview-frame { transform: rotateX(10deg) scale(.99); }
}
@media (max-width: 640px) {
  .hero-cinema .orb-stage { top: 0; width: 150vw; height: 150vw; opacity: .9; }
  .pv-stats { grid-template-columns: 1fr 1fr; }
  .pv-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .pv-row span:last-child { display: none; }
  .pv-bar b { font-size: 11px; }
  .hero-cinema .preview-3d { animation: none; }
}

/* 标题区压暗一层，让粒子球在文字后面退后，保证可读 */
.hero-cinema .hero-copy::before {
  content: "";
  position: absolute; left: 50%; top: 48%;
  width: min(1020px, 112vw); height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(7, 8, 16, .82), rgba(7, 8, 16, .45) 58%, transparent 76%);
  z-index: -1; pointer-events: none;
}

/* 背景装饰层用 fixed 超出视口，容易在手机上晃出横向滚动；clip 只裁切、不建滚动容器 */
html { overflow-x: clip; }

/* 可视化编辑器入口（管理员本机可见）与普通内容不打架 */
@media (max-width: 720px) {
  .le-fab { bottom: 84px; right: 12px; width: 38px; height: 38px; font-size: 15px; }
}
