/* ============================================================
   FlashVPN Panel — 全局样式
   深色主题（默认） · 蓝紫渐变 · 组件化
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-2: #0e1526;
  --panel: #121b30;
  --panel-2: #0e1626;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e7eefb;
  --text-2: #b6c2d4;
  --muted: #7d8aa3;
  --brand: #5b6cff;
  --brand-2: #8a5cff;
  --brand-soft: rgba(91, 108, 255, 0.14);
  --green: #22c58b;
  --green-soft: rgba(34, 197, 139, 0.14);
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, 0.14);
  --red: #f5546b;
  --red-soft: rgba(245, 84, 107, 0.12);
  --cyan: #38bdf8;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(91, 108, 255, 0.14), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(138, 92, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0 0 12px; }
p { margin: 0 0 12px; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 通用布局容器 ---------- */
.container { width: min(1120px, 92vw); margin: 0 auto; }
.container-narrow { width: min(460px, 94vw); margin: 0 auto; }
.container-wide { width: min(1200px, 96vw); margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 6px } .mt-2 { margin-top: 14px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 38px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 6px } .mb-2 { margin-bottom: 14px } .mb-3 { margin-bottom: 24px }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-warn { color: var(--amber); }
.text-brand { color: var(--brand-2); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 卡片 / 面板 ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
}
.card-head h3 { margin: 0; font-size: 15.5px; }
.card-body { padding: 20px 22px; }

/* ---------- 统计卡 ---------- */
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.3px; }
.stat .extra { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(closest-side, var(--accent, rgba(91,108,255,.22)), transparent); opacity:.8;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; border-radius: var(--radius-s);
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  transition: .18s; user-select: none; text-align: center; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--line-strong); }
.btn.ghost:hover { color: #fff; border-color: var(--brand); background: var(--brand-soft); }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn.soft:hover { background: var(--brand); color: #fff; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.success { background: var(--green-soft); color: var(--green); }
.btn.success:hover { background: var(--green); color: #fff; }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line);
}
.badge.success { color: var(--green); background: var(--green-soft); border-color: transparent; }
.badge.danger { color: var(--red); background: var(--red-soft); border-color: transparent; }
.badge.warn { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.badge.brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.badge.cyan { color: var(--cyan); background: rgba(56, 189, 248, .12); border-color: transparent; }
.badge.gray { color: var(--muted); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, textarea.input, select.input {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-s);
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
  transition: .18s; outline: none; appearance: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.input.sm { padding: 7px 10px; font-size: 13px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.input-err { color: var(--red); font-size: 12px; margin-top: 5px; }

/* 复选框开关 */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

/* ---------- 表格 ---------- */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .4px;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: rgba(148,163,184,.045); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 18px 0 4px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line);
  color: var(--text-2); background: var(--panel);
}
.pager a:hover { border-color: var(--brand); color: #fff; }
.pager .active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; font-weight: 700; }

/* ---------- 提示 ---------- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-size: 13.5px;
  display: flex; gap: 8px; align-items: flex-start;
}
.alert.success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(34,197,139,.25); }
.alert.error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(245,84,107,.25); }
.alert.info { background: var(--brand-soft); color: var(--text-2); border: 1px solid rgba(91,108,255,.25); }
.alert.warn { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,166,35,.25); }

/* ---------- 顶栏（站点） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(10, 15, 30, 0.82); border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: .2px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 16px;
  box-shadow: 0 8px 20px rgba(91,108,255,.35);
}
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a {
  color: var(--text-2); padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px;
}
.site-nav a:hover { color: #fff; background: rgba(148,163,184,.08); }
.site-nav a.active { color: #fff; background: var(--brand-soft); }

/* ---------- 控制台外壳（用户/管理共用） ---------- */
.shell { display: flex; min-height: calc(100vh - 56px); }
.side {
  width: 224px; flex: none; padding: 16px 12px;
  border-right: 1px solid var(--line); position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.side .side-title { font-size: 12px; letter-spacing: .5px; color: var(--muted); margin: 18px 12px 6px; font-weight: 600; }
.side .side-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 2px;
  text-decoration: none; transition: background .12s, color .12s;
}
.side .side-item:hover { color: #2a9d8f; background: rgba(42,157,143,.08); }
.side .side-item.active { color: #2a9d8f; background: rgba(42,157,143,.12); }
.side .side-item .side-ico { color: #2a9d8f; }
.side .side-ico { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.side .side-ico svg { width: 20px; height: 20px; }
.side .side-foot { margin-top: auto; padding: 14px 12px 4px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; padding: 24px 26px 40px; }
.page-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.2px; }
.page-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* ---------- 进度条 ---------- */
.bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar.danger i { background: linear-gradient(90deg, #f59e0b, var(--red)); }
.bar .warn { background: linear-gradient(90deg, #f5a623, var(--red)); }

/* ---------- 套餐卡片 ---------- */
.plan-card { position: relative; display: flex; flex-direction: column; padding: 24px; }
.plan-card .hot {
  position: absolute; top: -11px; right: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(91,108,255,.4);
}
.plan-card .pname { font-size: 17px; font-weight: 800; }
.plan-card .pdesc { color: var(--muted); font-size: 12.5px; min-height: 38px; }
.plan-card .pfeat { margin: 14px 0; display: grid; gap: 7px; }
.plan-card .pfeat li { list-style: none; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.tier { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.tier-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: .15s; background: var(--bg-2);
}
.tier-item:hover, .tier-item.sel { border-color: var(--brand); background: var(--brand-soft); }
.tier-item .dur { font-weight: 700; font-size: 13.5px; }
.tier-item .price { font-weight: 800; font-size: 17px; }
.tier-item .price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.tier input { display: none; }

/* ---------- 聊天式工单 ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px; position: relative; }
.msg .who { font-size: 11px; opacity: .75; margin-bottom: 4px; display: block; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .time { font-size: 11px; opacity: .65; margin-top: 6px; display: block; text-align: right; }

/* ---------- 弹窗 ---------- */
dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 0; width: min(560px, 94vw); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(4, 8, 18, 0.7); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h4 { margin: 0; font-size: 15px; }
.dlg-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.dlg-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 节点卡 ---------- */
.node-card { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.node-card .flag {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; background: linear-gradient(135deg, rgba(91,108,255,.25), rgba(138,92,255,.2));
  border: 1px solid rgba(91,108,255,.3); color: #fff; text-transform: uppercase;
}
.kv { display: grid; gap: 10px; }
.kv .row { display: grid; grid-template-columns: 108px 1fr; gap: 12px; font-size: 13.5px; }
.kv .row > span:first-child { color: var(--muted); }
.kv pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 12.5px; color: var(--text-2); }

/* 复制输入组 */
.copy-group { display: flex; gap: 8px; }
.copy-group .input { flex: 1; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ---------- Hero（首页） ---------- */
.hero { padding: 64px 0 46px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.18; margin-bottom: 16px; letter-spacing: -.6px; }
.hero .grad { background: linear-gradient(90deg, #fff, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 16.5px; max-width: 620px; margin: 0 auto 26px; }
.feature { padding: 22px; }
.feature .fi { font-size: 24px; margin-bottom: 10px; }

/* ---------- 认证卡片 ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(430px, 92vw); }
.auth-card .card-body { padding: 30px; }
.auth-title { font-size: 21px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* ---------- 徽章菜单/小贴片 ---------- */
.step-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 7px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; }
.pill.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }

/* ---------- 订阅信息 ---------- */
.sub-box { text-align: center; padding: 30px 22px; }
.sub-qr img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; }

/* ---------- 图标字体辅助 ---------- */
.icon-circle { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 17px; flex: none; }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 999; opacity: 0; transition: .3s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast div { background: #1b2542; border: 1px solid var(--line-strong); color: var(--text); padding: 11px 22px; border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .side { width: 64px; padding: 18px 6px; }
  .side .side-item { justify-content: center; padding: 10px 4px; }
  .side .side-item span:not(.side-ico) { display: none; }
  .side .side-title { text-align: center; padding: 0; font-size: 10px; }
  .side .side-foot { display: none; }
  .main { padding: 18px 14px 34px; }
  .site-nav a { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .input-row, .input-row-3 { grid-template-columns: 1fr; }
  .topbar-in { gap: 10px; }
}

/* ============================================================
   动效层：入场 / 过渡 / 悬浮光斑 / 滚动显现
   ============================================================ */
:root {
  --dur: .22s;
  --dur-s: .35s;
  --ease: cubic-bezier(.2, .7, .25, 1);
}

/* 页面平滑过渡（配合 app.js 的 SPA 式淡入淡出） */
.page-fade { animation: pageIn .42s var(--ease) both; }
body.is-leaving .page-fade { animation: pageOut .16s ease-in both; }
body.is-leaving main, body.is-leaving .shell { pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

/* 固定悬浮氛围光斑 */
.orb { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; will-change: transform; }
.orb-a { width: 460px; height: 460px; left: -140px; top: -120px; background: radial-gradient(closest-side, rgba(91,108,255,.5), transparent); animation: drift 17s ease-in-out infinite alternate; }
.orb-b { width: 380px; height: 380px; right: -120px; top: 30%; background: radial-gradient(closest-side, rgba(138,92,255,.4), transparent); animation: drift 21s ease-in-out infinite alternate-reverse; }
.orb-c { width: 300px; height: 300px; left: 38%; bottom: -160px; background: radial-gradient(closest-side, rgba(56,189,248,.32), transparent); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
body > :not(.orb) { position: relative; z-index: 1; }
header.topbar { z-index: 60; }
@media (prefers-reduced-motion: reduce) { .orb { display: none; } }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 按钮扫光 */
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-110%); animation: shine 3.4s var(--ease) infinite; }
@keyframes shine { 20%, 100% { transform: translateX(110%); } }

/* 首页 Hero 角标 */
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(91,108,255,.35); animation: badgePop .5s var(--ease) both; }
@keyframes badgePop { from { opacity: 0; transform: translateY(-10px) scale(.9); } to { opacity: 1; transform: none; } }

/* 首页数据条 */
.stats-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 6px; }
.stat-cell { background: linear-gradient(180deg, rgba(255,255,255,.04), transparent), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; transition: .25s var(--ease); }
.stat-cell:hover { transform: translateY(-3px); border-color: rgba(91,108,255,.4); box-shadow: 0 16px 34px rgba(2,6,23,.5); }
.stat-num { font-size: clamp(22px, 3vw, 30px); font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stat-label { margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* 公告行 / 页脚 */
.ann-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); transition: .2s var(--ease); }
.ann-row:hover { background: rgba(91,108,255,.06); padding-left: 22px; }
.ann-row:last-child { border-bottom: none; }

.footer { text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .55fr .6fr; gap: 30px; text-align: left; }
.footer-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.footer-link { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; transition: .2s; }
.footer-link:hover { color: #fff; transform: translateX(3px); }

/* 步骤卡 */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.step-card { border-top: 2px solid transparent; transition: .3s var(--ease); }
.step-card:hover { border-top-color: var(--brand); transform: translateY(-4px); }
.step-num { width: 44px; height: 44px; margin: 0 auto; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 22px rgba(91,108,255,.35); transition: .3s var(--ease); }
.step-card:hover .step-num { transform: scale(1.1) rotate(-4deg); }

/* 表格行微动 */
.table tbody tr { transition: background .18s; }
.card, .dialog { transition: box-shadow .3s var(--ease); }

/* 进度条填充动画 */
.bar i { transform-origin: left; animation: growBar .9s var(--ease); }
@keyframes growBar { from { transform: scaleX(0); } }

/* 弹窗动画 */
dialog { animation: dlgIn .26s var(--ease) both; }
dialog[open]::backdrop { animation: fadeIn .25s ease both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 统计大数字入场 */
.stat .value { animation: numIn .6s var(--ease) both; }
@keyframes numIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 设置页竖向分组导航 */
.tabs-v { display: grid; gap: 4px; position: sticky; top: 80px; }
.tabs-v a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: .2s; }
.tabs-v a:hover { color: #fff; background: rgba(148,163,184,.08); }
.tabs-v a.active { color: #fff; background: linear-gradient(135deg, rgba(91,108,255,.22), rgba(138,92,255,.14)); border: 1px solid rgba(91,108,255,.25); }
.tabs-v .ico { width: 20px; text-align: center; }
.settings-pane { animation: pageIn .35s var(--ease) both; }

/* 页面跳转指示器（可选细条） */
.loading-bar { position: fixed; top: 0; left: 0; height: 2px; z-index: 200; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s var(--ease); }
@keyframes shimmer { to { background-position: 200% 0; } }

/* 悬浮卡片（通用 hover 抬升） */
.lift { transition: .3s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(2,6,23,.6); border-color: rgba(91,108,255,.32); }

/* 小组件涟漪感按钮 */
.btn { position: relative; }
.btn:active::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at center, rgba(255,255,255,.35), transparent 70%); animation: ripple .4s ease; }
@keyframes ripple { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-strip { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 14px 8px; }
}

/* ============================================================
   登录/注册/重置页（浅色卡片主题）
   ============================================================ */
body.auth-page {
  background: #e8eef5;
  color: #1f2937;
}
body.auth-page a { color: #2a9d8f; }
body.auth-page a:hover { color: #21867a; }

body.auth-page .auth-wrap { padding: 40px 16px; }
body.auth-page .auth-card { width: min(460px, 94vw); }

body.auth-page .auth-card .brand {
  color: #1f2937;
  font-size: 26px;
  font-weight: 800;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
body.auth-page .auth-card .brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2a9d8f, #38b2ac);
  color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
}

body.auth-page .auth-card .card {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
body.auth-page .auth-card .card-body { padding: 32px 30px; }

body.auth-page .auth-title {
  font-size: 22px; font-weight: 800; color: #111827;
  text-align: center; margin-bottom: 6px;
}
body.auth-page .auth-sub {
  text-align: center; color: #6b7280; font-size: 13.5px; margin-bottom: 22px;
}

body.auth-page .field { margin-bottom: 15px; }
body.auth-page .field label {
  display: block; font-size: 13px; color: #374151;
  margin-bottom: 7px; font-weight: 600;
}
body.auth-page .field label .req { color: #ef4444; }

body.auth-page .input,
body.auth-page textarea.input,
body.auth-page select.input {
  width: 100%;
  padding: 12px 14px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #111827;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
body.auth-page .input::placeholder { color: #9ca3af; }
body.auth-page .input:focus {
  outline: none;
  background: #fff;
  border-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.18);
}

body.auth-page .input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
body.auth-page .input-row .btn { margin-bottom: 0; }

/* 按钮：青绿色 */
body.auth-page .btn {
  background: #2a9d8f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
body.auth-page .btn:hover { background: #238b7e; color: #fff; transform: none; filter: none; }
body.auth-page .btn:active { transform: translateY(0); }
body.auth-page .btn:disabled { opacity: .5; cursor: not-allowed; }
body.auth-page .btn.ghost {
  background: transparent; color: #6b7280;
}
body.auth-page .btn.ghost:hover { background: #f3f4f6; color: #1f2937; }
body.auth-page .btn.block { width: 100%; }
body.auth-page .btn-lg { padding: 13px 22px; font-size: 15.5px; }

/* 验证码发送按钮 */
body.auth-page .btn-code {
  background: #2a9d8f; color: #fff; border: none;
  border-radius: 10px; padding: 12px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
body.auth-page .btn-code:hover { background: #238b7e; }
body.auth-page .btn-code:disabled { background: #9ca3af; cursor: not-allowed; }

body.auth-page .alert {
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
body.auth-page .alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
body.auth-page .alert.info { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

body.auth-page .auth-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
body.auth-page .auth-foot a { font-size: 13.5px; color: #6b7280; }
body.auth-page .auth-foot a:hover { color: #2a9d8f; }

body.auth-page .center.muted.small a { color: #2a9d8f; font-weight: 600; }

/* 语言切换器 */
body.auth-page .lang-switcher { position: relative; }
body.auth-page .lang-current {
  background: none; border: none; cursor: pointer;
  font-size: 13.5px; color: #6b7280; padding: 4px 8px;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s;
}
body.auth-page .lang-current:hover { background: #f3f4f6; color: #2a9d8f; }
body.auth-page .lang-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,.14);
  min-width: 150px; padding: 6px; z-index: 50;
  display: none;
}
body.auth-page .lang-switcher.open .lang-menu { display: block; }
body.auth-page .lang-item {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: #374151; text-decoration: none;
  transition: background .12s;
}
body.auth-page .lang-item:hover { background: #f3f4f6; color: #2a9d8f; }
body.auth-page .lang-item.active { background: #ecfdf5; color: #2a9d8f; font-weight: 600; }

/* 平滑滚动锚点与页面顶部返回 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: rgba(91,108,255,.45); color: #fff; }

/* ---------- 富文本编辑器（后台公告） ---------- */
.rte { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.rte:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--panel); border-bottom: 1px solid var(--line); align-items: center; }
.rte-toolbar button, .rte-toolbar select {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 4px 8px; font-size: 13px; cursor: pointer;
  min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.rte-toolbar button:hover, .rte-toolbar select:hover { background: var(--brand-soft); border-color: var(--brand); color: #fff; }
.rte-toolbar select { padding: 3px 6px; }
.rte-sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.rte-content {
  min-height: 180px; padding: 12px 14px; outline: none; color: var(--text);
  font-size: 14px; line-height: 1.7; background: var(--bg-2);
}
.rte-content:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-content p { margin: 0 0 10px; }
.rte-content ul, .rte-content ol { margin: 0 0 10px 22px; padding: 0; }
.rte-content img { max-width: 100%; }

/* ---------- 用户中心顶栏 ---------- */
.user-topbar {
  height: 56px; background: #2a9d8f; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ut-left { display: flex; align-items: center; gap: 28px; }
.ut-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ut-logo { font-size: 20px; }
.ut-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.ut-page { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.95); padding-left: 28px; border-left: 1px solid rgba(255,255,255,.25); }
.ut-right { display: flex; align-items: center; gap: 6px; }
.ut-icon {
  background: transparent; border: none; color: #fff; font-size: 18px;
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .15s;
}
.ut-icon:hover { background: rgba(255,255,255,.18); }
.ut-lang, .ut-user { position: relative; }
.ut-user-btn {
  background: transparent; border: none; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: background .15s;
}
.ut-user-btn:hover { background: rgba(255,255,255,.12); }
/* 恢复被 body>:not(.orb) 层级规则覆盖的吸顶与层级（官网光晕规则优先级更高） */
body > header.user-topbar { position: sticky; top: 0; z-index: 100; }
.ut-avatar { font-size: 16px; }
.ut-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-caret { font-size: 11px; opacity: .8; }

/* ---------- user-topbar 移动端适配 ---------- */
@media (max-width: 680px) {
  .user-topbar { height: 50px; padding: 0 12px; }
  .ut-left { gap: 10px; flex: 1; min-width: 0; }
  .ut-brand { gap: 6px; flex-shrink: 0; }
  .ut-logo { font-size: 17px; }
  .ut-name { font-size: 15px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ut-page {
    font-size: 13px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25);
    max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ut-right { gap: 2px; flex-shrink: 0; }
  .ut-icon { width: 34px; height: 34px; font-size: 16px; }
  .ut-user-btn { gap: 4px; padding: 4px 8px; font-size: 12px; }
  .ut-email { display: none; }          /* 手机隐藏邮箱，只显示头像 */
  .ut-caret { display: none; }          /* 下拉箭头也隐藏 */
  .ut-ddown { min-width: 140px; right: -8px; }
}
@media (max-width: 420px) {
  .ut-page { display: none; }           /* 小屏再隐藏页面名 */
  .ut-name { max-width: 55px; }
}
.ut-ddown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px;
  background: #fff; color: #374151; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px;
  display: none; z-index: 200;
}
.ut-ddown.show { display: block; }

/* ---------- 一键订阅弹窗 ---------- */
.sub-link-row { display: flex; gap: 8px; margin-bottom: 12px; }
.sub-link-row .input { flex: 1; font-size: 13px; }
.sub-copy-btn { flex: none; white-space: nowrap; }
.sub-tip { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.sub-group { margin-bottom: 14px; }
.sub-group:last-child { margin-bottom: 0; }
.sub-group-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-bottom: 6px; }
.sub-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
}
.sub-item + .sub-item { margin-top: 6px; }
.sub-item:hover { border-color: #2a9d8f; background: rgba(42,157,143,.06); }
.sub-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.sub-item-desc { flex: 1; font-size: 12px; color: var(--muted); }
.sub-item-go { font-size: 12.5px; font-weight: 600; color: #2a9d8f; }
.sub-item-tg { border-color: rgba(42,157,143,.45); background: rgba(42,157,143,.08); }
.sub-item-tg:hover { border-color: #2a9d8f; background: rgba(42,157,143,.14); }
.ut-ddown-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: none; background: none;
  color: #374151; font-size: 14px; border-radius: 6px; cursor: pointer;
  text-decoration: none;
}
.ut-ddown-item:hover { background: #f3f4f6; color: #2a9d8f; }

/* ---------- 前台公告弹窗 ---------- */
.announce-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998; display: none; align-items: center; justify-content: center; padding: 20px; }
.announce-mask.show { display: flex; }
.announce-dialog { background: #fff; border-radius: 14px; max-width: 560px; width: 100%; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.announce-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.announce-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #111827; }
.announce-close { background: none; border: none; font-size: 22px; color: #9ca3af; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.announce-close:hover { background: #f3f4f6; color: #374151; }
.announce-body { padding: 20px; overflow-y: auto; color: #374151; font-size: 14px; line-height: 1.8; }
.announce-body img { max-width: 100%; }
.announce-foot { padding: 12px 20px; border-top: 1px solid #f1f5f9; text-align: right; }
.announce-foot .btn { padding: 8px 22px; }

/* ============================================================
   浅色主题（body.light）
   ============================================================ */
body.light, :root.light { color-scheme: light;
  --bg: #f3f5f9;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #111827;
  --text-2: #475569;
  --muted: #94a3b8;
  --brand-soft: rgba(91, 108, 255, 0.12);
}
body.light .card, :root.light .card { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
body.light .btn.ghost, :root.light .btn.ghost { color: var(--text-2); }
body.light .btn.ghost:hover, :root.light .btn.ghost:hover { color: var(--brand); }
body.light select.input, :root.light select.input { background-color: var(--bg-2); }
body.light .site-nav, :root.light .site-nav { background: rgba(255,255,255,.9); }
body.light .topbar, :root.light .topbar { background: rgba(255,255,255,.92); }
body.light .rte-content::before, :root.light .rte-content::before { color: var(--muted); }
body.light .announce-dialog, :root.light .announce-dialog { box-shadow: 0 20px 60px rgba(0,0,0,.18); }

/* ---------- Logo 图片（后台上传后优先于字符 Logo） ---------- */
/* 裸 logo 图兜底：固定 28px，防止无尺寸容器（用户中心顶栏等）按原图尺寸渲染 */
img.logo-img { width:28px; height:28px; object-fit:cover; border-radius:6px; display:block; }
/* 官网/auth/后台顶栏 .logo 固定 34px 容器内铺满（特异性更高，覆盖兜底规则） */
.logo .logo-img { width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }

/* ---------- 用户仪表盘 ---------- */
.dash-banner {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  min-height: 160px; padding: 20px 24px; text-decoration: none; color: inherit;
  margin-bottom: 18px; background: #6b7280;
}
.dash-banner-bg {
  position: absolute; inset: 0; opacity: .55;
  background-color: #6b7280;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='30,15 42,38 18,38'/%3E%3Ccircle cx='100' cy='28' r='12'/%3E%3Cpolygon points='160,18 175,42 145,42'/%3E%3Cpolygon points='70,60 82,82 58,82'/%3E%3Crect x='120' y='55' width='22' height='22' rx='2'/%3E%3Cpolygon points='170,70 185,95 155,95'/%3E%3Cpath d='M10 80 q8 -16 16 0 t16 0'/%3E%3Cpolygon points='40,110 52,132 28,132'/%3E%3Ccircle cx='100' cy='115' r='14'/%3E%3Cpath d='M140 110 a12 12 0 1 1 0 0.1'/%3E%3Cpath d='M165 95 l8 12 l-8 4 l8 12'/%3E%3Cline x1='8' y1='55' x2='40' y2='55'/%3E%3Cpath d='M55 160 q6 -12 12 0 t12 0'/%3E%3Cpolygon points='100,155 112,178 88,178'/%3E%3Crect x='150' y='150' width='18' height='18' rx='2'/%3E%3Cpolygon points='175,145 188,168 162,168'/%3E%3Ccircle cx='30' cy='170' r='8'/%3E%3Cpath d='M80 185 q5 -8 10 0 t10 0'/%3E%3Cline x1='155' y1='25' x2='185' y2='25'/%3E%3Cpath d='M20 130 l6 -10 l6 10 l6 -10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}
.dash-banner-tag {
  position: relative; display: inline-block; background: #ef4444; color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 6px; margin-bottom: 14px;
}
.dash-banner-body { position: relative; }
.dash-banner-title { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.dash-banner-date { color: rgba(255,255,255,.85); font-size: 14px; }
.dash-banner:hover .dash-banner-title { text-decoration: underline; }

.dash-card { padding: 0; margin-bottom: 18px; overflow: hidden; }
.dash-card-title {
  font-size: 16px; font-weight: 700; padding: 16px 22px;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.dash-plan { padding: 18px 22px 22px; }
.dash-plan-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.dash-plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.6; }
.dash-bar {
  height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.dash-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: repeating-linear-gradient(
    45deg,
    #22c55e,
    #22c55e 8px,
    #16a34a 8px,
    #16a34a 16px
  );
  transition: width .3s ease;
}
.dash-plan-meta { font-size: 14px; color: var(--text-2); font-weight: 600; }

.dash-shortcuts { border-top: 1px solid var(--line); }
.dash-shortcut {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line); transition: background .12s;
}
/* button 版快捷入口：去掉浏览器默认外观，与 a 版完全一致 */
button.dash-shortcut {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  font: inherit; width: 100%; cursor: pointer;
}
.dash-shortcut:last-child { border-bottom: none; }
.dash-shortcut:hover { background: rgba(42,157,143,.06); }
.dash-shortcut-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.dash-shortcut-desc { font-size: 13px; color: var(--muted); }
.dash-sc-ico { width: 24px; height: 24px; color: var(--muted); flex: none; }

/* ---------- 用户中心 使用文档页 ---------- */
.docs-search {
  display: flex; gap: 0; margin-bottom: 18px;
  border-radius: 10px; overflow: hidden;
}
.docs-search-input {
  flex: 1; height: 48px; padding: 0 18px;
  border: 1px solid var(--line); border-right: none;
  background: var(--panel); color: var(--text); font-size: 15px;
  border-radius: 10px 0 0 10px; outline: none;
}
.docs-search-input:focus { border-color: #2a9d8f; }
.docs-search-btn {
  width: 56px; border: none; background: #2a9d8f; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 10px 10px 0; cursor: pointer; transition: background .15s;
}
.docs-search-btn:hover { background: #238b7e; }

.docs-cat-card { padding: 0; margin-bottom: 16px; overflow: hidden; background: var(--panel); }
.docs-cat-title {
  font-size: 17px; font-weight: 700; padding: 16px 22px;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.docs-cat-list { border-top: 1px solid var(--line); }
.docs-item {
  display: block; padding: 14px 22px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line); transition: background .12s;
}
.docs-item:last-child { border-bottom: none; }
.docs-item:hover { background: rgba(42,157,143,.06); }
.docs-item-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.docs-item-date { font-size: 13px; color: var(--muted); }

/* 文档详情富文本内容样式 */
.doc-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; }
.doc-content video { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.doc-content ul, .doc-content ol { padding-left: 24px; margin: 10px 0; }
.doc-content p { margin: 8px 0; }
.doc-content h1, .doc-content h2, .doc-content h3 { margin: 16px 0 8px; }

/* ---------- 购买订阅页 ---------- */
.buy-title { font-size: 28px; font-weight: 800; color: var(--text); margin: 4px 0 22px; }

.buy-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.buy-tab {
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid #2a9d8f;
  background: transparent; color: #2a9d8f; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.buy-tab:hover { background: rgba(42,157,143,.08); }
.buy-tab.active { background: #2a9d8f; color: #fff; }

.buy-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { .buy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .buy-grid { grid-template-columns: 1fr; } }

.buy-card {
  background: var(--panel); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.buy-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.buy-card-name { font-size: 18px; font-weight: 700; color: var(--text); }

.buy-card-price {
  background: var(--panel-2); padding: 22px 20px 18px;
}
.buy-price { display: flex; align-items: baseline; gap: 2px; }
.buy-cur { font-size: 22px; font-weight: 700; color: var(--text); }
.buy-amount { font-size: 40px; font-weight: 800; color: var(--text); line-height: 1; }
.buy-duration { color: var(--muted); font-size: 15px; margin-top: 6px; font-weight: 600; }

.buy-tier-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buy-tier {
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .12s;
}
.buy-tier:hover { border-color: #2a9d8f; }
.buy-tier.on { background: #2a9d8f; color: #fff; border-color: #2a9d8f; }

.buy-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.buy-badge {
  background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-align: center;
}
.buy-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.buy-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.buy-check { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.buy-submit {
  margin-top: auto; width: 100%; padding: 11px; border-radius: 8px;
  background: #2a9d8f; color: #fff; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.buy-submit:hover { background: #238b7e; }
.buy-submit:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ---------- 节点状态页 ---------- */
.nodes-table-wrap {
  background: var(--panel); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.nodes-table { width: 100%; border-collapse: collapse; }
.nodes-table thead th {
  text-align: left; padding: 16px 22px; font-size: 14px; font-weight: 700;
  color: var(--text-2); border-bottom: 1px solid var(--line);
}
.nodes-table tbody td {
  padding: 16px 22px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nodes-table tbody tr:last-child td { border-bottom: none; }
.nodes-table tbody tr:hover { background: rgba(42,157,143,.04); }
.nodes-name { font-weight: 500; }
.node-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
}
.node-dot.on { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,.6); }
.node-dot.off { background: #cbd5e1; }
.node-rate {
  display: inline-block; padding: 3px 12px; border-radius: 6px;
  background: var(--panel-2); color: var(--text-2); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
}
.node-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: rgba(42,157,143,.1); color: #2a9d8f; font-size: 13px; font-weight: 600;
}
.nodes-muted { color: var(--muted); }
.nodes-empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- 我的订单页 ---------- */
.orders-table-wrap {
  background: var(--panel); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table thead th {
  text-align: left; padding: 16px 22px; font-size: 14px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.orders-table tbody td {
  padding: 16px 22px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.orders-table tbody tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover { background: rgba(42,157,143,.04); }
.orders-no { font-weight: 600; font-family: monospace; }
.orders-price { font-weight: 700; color: var(--text); }
.orders-muted { color: var(--muted); font-size: 13px; }
.orders-link { color: #2a9d8f; text-decoration: none; font-weight: 600; }
.orders-link:hover { text-decoration: underline; }

.orders-status {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.orders-status.warn { background: #fef3c7; color: #92400e; }
.orders-status.success { background: #dcfce7; color: #166534; }
.orders-status.gray { background: #e5e7eb; color: #4b5563; }
.orders-status.danger { background: #fee2e2; color: #991b1b; }

.orders-empty { text-align: center; padding: 50px 20px; }
.orders-empty-text { color: var(--muted); margin-top: 14px; font-size: 14px; }
.orders-pager { margin-top: 18px; text-align: center; }

/* 订单号可点击 */
.orders-no-link { color: #2a9d8f; font-weight: 600; font-family: monospace; text-decoration: none; }
.orders-no-link:hover { text-decoration: underline; }

/* 周期标签 */
.orders-period {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--line);
  border-radius: 4px; font-size: 13px; color: var(--text);
}

/* 状态圆点 */
.orders-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.orders-dot-red { background: #ef4444; }
.orders-dot-green { background: #22c55e; }
.orders-dot-gray { background: #9ca3af; }

/* 操作列 */
.orders-link { color: #2a9d8f; text-decoration: none; font-weight: 600; margin-right: 8px; }
.orders-link:hover { text-decoration: underline; }
.orders-cancel-btn {
  background: none; border: none; color: #2a9d8f; font-weight: 600;
  cursor: pointer; padding: 0; font-size: 14px;
}
.orders-cancel-btn:hover { text-decoration: underline; }
.orders-cancel-disabled { color: #c0c4cc; font-size: 14px; }

/* ---------- 订单详情/结账页 ---------- */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start;
}
.checkout-left { display: flex; flex-direction: column; gap: 18px; }
.checkout-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 24px;
}
.checkout-card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.checkout-card-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.checkout-card-head .checkout-card-title { margin-bottom: 0; }
.checkout-row {
  display: flex; padding: 8px 0; font-size: 14px;
}
.checkout-label { color: var(--muted); min-width: 80px; }
.checkout-value { color: var(--text); }
.checkout-close-btn {
  background: #2a9d8f; color: #fff; border: none; padding: 6px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* 支付方式选项 */
.pay-method-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer;
  transition: all .15s;
}
.pay-method-item:hover { border-color: #2a9d8f; }
.pay-method-item.selected { border-color: #2a9d8f; background: rgba(42,157,143,.04); }
.pay-method-item input { display: none; }
.pay-method-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1; position: relative;
}
.pay-method-item.selected .pay-method-radio { border-color: #2a9d8f; }
.pay-method-item.selected .pay-method-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #2a9d8f;
}
.pay-method-info { display: flex; flex-direction: column; }
.pay-method-info strong { font-size: 14px; color: var(--text); }
.pay-method-info small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-extra { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-extra-tip { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.pay-extra-tip a { color: #2a9d8f; }

/* 收银台渠道选择 tab */
.channel-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.channel-tab {
  padding: 8px 20px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.channel-tab:hover { border-color: #2a9d8f; }
.channel-tab.active { background: #2a9d8f; color: #fff; border-color: #2a9d8f; }

/* 后台渠道多选 */
.channel-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.channel-checks .form-check { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* 支付结果 */
.pay-result { text-align: center; padding: 30px 20px; }
.pay-result-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff;
}
.pay-result-success .pay-result-icon { background: #22c55e; }
.pay-result-fail .pay-result-icon { background: #9ca3af; }
.pay-result h3 { margin: 0 0 8px; }
.pay-result p { color: var(--muted); margin: 0; }
.pay-result a { color: #2a9d8f; }

/* 右侧总额卡（深色） */
.checkout-right { position: sticky; top: 74px; }
.checkout-summary {
  background: #2d3748; border-radius: 12px; padding: 24px; color: #e2e8f0;
}
.checkout-summary-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.checkout-summary-row {
  display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: #cbd5e1;
}
.checkout-summary-divider { border-top: 1px solid #4a5568; margin: 14px 0; }
.checkout-total-label span { color: #a0aec0; }
.checkout-total {
  font-size: 30px; font-weight: 800; color: #fff; margin: 8px 0 20px;
}
.checkout-total small { font-size: 16px; font-weight: 500; color: #cbd5e1; margin-left: 4px; }
.checkout-pay-btn {
  width: 100%; background: #2a9d8f; color: #fff; border: none; padding: 14px;
  border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.checkout-pay-btn:hover { background: #238b7e; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-right { position: static; }
}

/* ---------- 配置订阅页 ---------- */
.configure-plan-name { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.configure-features { padding: 0; margin: 14px 0 0; }
.configure-features li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text); list-style: none; }
.buy-check { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* 付款周期 */
.configure-periods { display: flex; flex-direction: column; gap: 10px; }
.configure-period-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border: 2px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: all .15s; background: var(--panel);
}
.configure-period-item:hover { border-color: #2a9d8f; }
.configure-period-item.selected { border-color: #2a9d8f; background: rgba(42,157,143,.04); }
.configure-period-name { font-size: 15px; font-weight: 600; color: var(--text); }
.configure-period-price { font-size: 15px; font-weight: 600; color: var(--text); }

/* 优惠券 */
.configure-coupon {
  display: flex; gap: 0; margin-bottom: 18px;
  background: #2d3748; border-radius: 10px; overflow: hidden;
}
.configure-coupon-input {
  flex: 1; background: transparent; border: none; padding: 12px 16px;
  color: #e2e8f0; font-size: 14px; outline: none;
}
.configure-coupon-input::placeholder { color: #718096; }
.configure-coupon-btn {
  background: #2a9d8f; color: #fff; border: none; padding: 0 20px;
  font-size: 14px; font-weight: 600; cursor: pointer; display: flex;
  align-items: center; gap: 6px;
}
.configure-coupon-btn:hover { background: #238b7e; }

/* ---------- 文档详情页（用户中心内） ---------- */
.doc-detail {
  background: var(--panel); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); min-height: calc(100vh - 110px);
}
.doc-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 56px; background: var(--panel); z-index: 5;
}
.doc-detail-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
.doc-detail-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--muted); font-size: 22px; text-decoration: none;
  transition: all .15s; flex: none;
}
.doc-detail-close:hover { background: var(--panel-2); color: var(--text); }
.doc-detail-body { padding: 24px 32px 40px; }
.doc-detail-body .doc-content { max-width: 860px; margin: 0 auto; font-size: 15px; line-height: 1.9; }

/* ---------- 我的邀请页 ---------- */
.invite-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 30px; margin-bottom: 18px; position: relative;
}
.invite-card-head { display: flex; justify-content: space-between; align-items: center; }
.invite-card-label { color: var(--text); font-size: 14px; font-weight: 600; }
.invite-card-ico { color: #cbd5e1; }
.invite-balance { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.invite-balance-num { font-size: 42px; font-weight: 700; color: var(--text); line-height: 1; }
.invite-balance-unit { font-size: 16px; color: var(--muted); }
.invite-balance-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.invite-actions { display: flex; gap: 12px; margin-top: 22px; }
.invite-btn-primary {
  background: #2a9d8f; color: #fff; border: none; padding: 8px 18px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.invite-btn-primary:hover { background: #238b7e; }
.invite-btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.invite-btn-ghost:hover { border-color: #2a9d8f; color: #2a9d8f; }

.invite-stats {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 28px; margin-bottom: 18px;
}
.invite-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.invite-stat-row:last-child { border-bottom: none; }
.invite-stat-label { color: var(--text); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.invite-stat-val { color: var(--text); font-size: 15px; font-weight: 600; }
.invite-help { color: #94a3b8; cursor: help; font-size: 13px; }

.invite-section { padding: 0; overflow: hidden; margin-bottom: 18px; }
.invite-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.invite-section-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.invite-gen-btn {
  background: #2a9d8f; color: #fff; border: none; padding: 8px 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.invite-gen-btn:hover { background: #238b7e; }

.invite-table { width: 100%; border-collapse: collapse; }
.invite-table th { text-align: left; padding: 14px 24px; font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.invite-table td { padding: 14px 24px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.invite-table tr:last-child td { border-bottom: none; }
.invite-code-cell { font-weight: 700; font-family: monospace; }
.invite-empty { text-align: center; padding: 40px 20px; }
.invite-empty-text { color: var(--muted); margin-top: 12px; font-size: 14px; }
.invite-pager { padding: 16px 24px; text-align: center; }

/* 弹窗 */
.invite-dlg {
  border: none; border-radius: 12px; padding: 0; width: 520px; max-width: 92vw;
  max-height: 85vh; overflow-y: auto;
  background: var(--panel); color: var(--text);
}
.invite-dlg::backdrop { background: rgba(0,0,0,.5); }
.invite-dlg-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--panel); z-index: 1; border-radius: 12px 12px 0 0;
}
.invite-dlg-head h4 { margin: 0; font-size: 16px; font-weight: 700; }
.invite-dlg-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.invite-dlg-body { padding: 20px 22px; }
.invite-dlg-body .field { margin-bottom: 16px; }
.invite-dlg-body .field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.invite-dlg-body .field .input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px; box-sizing: border-box;
}
.invite-dlg-body .field .input:focus { outline: none; border-color: #2a9d8f; }
.invite-warn {
  background: #fef3c7; color: #92400e; padding: 12px 14px; border-radius: 8px;
  font-size: 13px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px;
}
.invite-warn-ico { flex: none; }
.invite-dlg-foot {
  display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.invite-dlg-cancel {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  padding: 8px 22px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.invite-dlg-confirm {
  background: #2a9d8f; color: #fff; border: none; padding: 8px 22px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.invite-dlg-confirm:hover { background: #238b7e; }

/* ---------- 个人中心页 ---------- */
.profile-wallet-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 30px; margin-bottom: 18px; position: relative;
}
.profile-wallet-head { display: flex; justify-content: space-between; align-items: center; }
.profile-wallet-label { color: var(--text); font-size: 14px; font-weight: 600; }
.profile-wallet-balance { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.profile-wallet-num { font-size: 42px; font-weight: 700; color: var(--text); line-height: 1; }
.profile-wallet-unit { font-size: 16px; color: var(--muted); }
.profile-auto-renew {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 160px; margin-top: 22px; color: var(--text); font-size: 14px;
}
.profile-recharge-btn {
  display: inline-block; margin-top: 18px; background: #2a9d8f; color: #fff;
  border: none; padding: 8px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.profile-recharge-btn:hover { background: #238b7e; }

/* ============================================================
   全站动效层：页面入场 / 侧栏滑入 / 下拉弹出 / 表格行淡入 / 卡片悬浮
   统一使用 :where() 保持零优先级，不覆盖组件自身已有动画
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ---- 顶栏下滑入场 ---- */
  @keyframes topbarIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  :where(.topbar, .user-topbar) { animation: topbarIn .5s var(--ease) both; }

  /* ---- 主内容区子元素交错升入（用户中心 / 后台通用） ---- */
  @keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  :where(.main > *) { animation: riseIn .5s var(--ease) both; }
  :where(.main > *:nth-child(2)) { animation-delay: .05s; }
  :where(.main > *:nth-child(3)) { animation-delay: .1s; }
  :where(.main > *:nth-child(4)) { animation-delay: .15s; }
  :where(.main > *:nth-child(5)) { animation-delay: .2s; }
  :where(.main > *:nth-child(6)) { animation-delay: .25s; }
  :where(.main > *:nth-child(7)) { animation-delay: .3s; }
  :where(.main > *:nth-child(n+8)) { animation-delay: .32s; }

  /* ---- 侧边栏从左滑入交错 ---- */
  @keyframes sideIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
  :where(.side > a, .side .side-title, .side .side-item, .side .side-foot) { animation: sideIn .45s var(--ease) both; }
  :where(.side > *:nth-child(1)) { animation-delay: .03s; }
  :where(.side > *:nth-child(2)) { animation-delay: .06s; }
  :where(.side > *:nth-child(3)) { animation-delay: .09s; }
  :where(.side > *:nth-child(4)) { animation-delay: .12s; }
  :where(.side > *:nth-child(5)) { animation-delay: .15s; }
  :where(.side > *:nth-child(6)) { animation-delay: .18s; }
  :where(.side > *:nth-child(7)) { animation-delay: .21s; }
  :where(.side > *:nth-child(8)) { animation-delay: .24s; }
  :where(.side > *:nth-child(9)) { animation-delay: .27s; }
  :where(.side > *:nth-child(10)) { animation-delay: .3s; }
  :where(.side > *:nth-child(11)) { animation-delay: .33s; }
  :where(.side > *:nth-child(12)) { animation-delay: .36s; }
  :where(.side > *:nth-child(n+13)) { animation-delay: .38s; }

  /* ---- 下拉菜单弹出（顶栏语言/用户菜单、登录页语言菜单） ---- */
  @keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
  :where(.ut-ddown.show, .lang-switcher.open .lang-menu) {
    animation: popIn .22s var(--ease) both; transform-origin: top right;
  }

  /* ---- 表格行交错淡入（仅前 12 行交错，长列表不拖沓） ---- */
  @keyframes rowIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
  :where(.table tbody tr) { animation: rowIn .4s var(--ease) both; }
  :where(.table tbody tr:nth-child(1)) { animation-delay: .03s; }
  :where(.table tbody tr:nth-child(2)) { animation-delay: .06s; }
  :where(.table tbody tr:nth-child(3)) { animation-delay: .09s; }
  :where(.table tbody tr:nth-child(4)) { animation-delay: .12s; }
  :where(.table tbody tr:nth-child(5)) { animation-delay: .15s; }
  :where(.table tbody tr:nth-child(6)) { animation-delay: .18s; }
  :where(.table tbody tr:nth-child(7)) { animation-delay: .21s; }
  :where(.table tbody tr:nth-child(8)) { animation-delay: .24s; }
  :where(.table tbody tr:nth-child(9)) { animation-delay: .27s; }
  :where(.table tbody tr:nth-child(10)) { animation-delay: .3s; }
  :where(.table tbody tr:nth-child(n+11)) { animation-delay: .32s; }

  /* ---- 卡片悬浮微互动：通用卡片描边反馈，可点卡片整体浮起 ---- */
  :where(.card) { transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
  :where(.card:hover) { border-color: var(--line-strong); }
  :where(.plan-card, .stat, .node-card, .stat-cell) {
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  }
  :where(.plan-card:hover, .stat:hover, .node-card:hover, .stat-cell:hover) {
    transform: translateY(-3px);
    border-color: rgba(91,108,255,.45);
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
  }

  /* ---- 套餐周期选中弹跳 ---- */
  @keyframes tierPop { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
  :where(.tier-item.sel) { animation: tierPop .28s var(--ease); }

  /* ---- 认证页：品牌弹出 + 卡片升入 + 表单域交错 ---- */
  @keyframes brandPop {
    0% { opacity: 0; transform: translateY(-10px) scale(.85); }
    60% { opacity: 1; transform: translateY(2px) scale(1.04); }
    100% { opacity: 1; transform: none; }
  }
  :where(body.auth-page .auth-card .brand) { animation: brandPop .55s var(--ease) both; }
  :where(body.auth-page .auth-card .card) { animation: riseIn .55s var(--ease) .08s both; }
  :where(body.auth-page .auth-card .field) { animation: riseIn .45s var(--ease) both; }
  :where(body.auth-page .auth-card .field:nth-child(2)) { animation-delay: .07s; }
  :where(body.auth-page .auth-card .field:nth-child(3)) { animation-delay: .14s; }
  :where(body.auth-page .auth-card .field:nth-child(4)) { animation-delay: .21s; }
  :where(body.auth-page .auth-card .field:nth-child(5)) { animation-delay: .28s; }
  :where(body.auth-page .auth-card .field:nth-child(n+6)) { animation-delay: .32s; }

  /* ---- 公告弹窗：遮罩淡入 + 对话框弹出 ---- */
  @keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes dlgPop {
    0% { opacity: 0; transform: translateY(18px) scale(.92); }
    65% { opacity: 1; transform: translateY(-2px) scale(1.01); }
    100% { opacity: 1; transform: none; }
  }
  :where(.announce-mask.show) { animation: maskIn .25s ease both; }
  :where(.announce-mask.show .announce-dialog) { animation: dlgPop .38s var(--ease) both; }

  /* ---- 提示条滑入（登录页 alert 不在 .main 内，单独覆盖） ---- */
  @keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  :where(.alert) { animation: alertIn .35s var(--ease) both; }

  /* ---- 主按钮呼吸光晕（仅主内容区的大号主按钮，克制不抢焦点） ---- */
  @keyframes btnBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91,108,255,.35); }
    50% { box-shadow: 0 0 0 8px rgba(91,108,255,0); }
  }
  :where(.main .btn-lg:not(.ghost):not(.danger):not(.success)) { animation: btnBreath 2.6s ease-in-out 1.2s infinite; }
}

/* ---- 降级：系统开启"减少动态效果"时全部禁用 ---- */
@media (prefers-reduced-motion: reduce) {
  :where(.topbar, .user-topbar, .main > *, .side > a, .side .side-title, .side .side-item, .side .side-foot,
    .table tbody tr, .alert, body.auth-page .auth-card .brand, body.auth-page .auth-card .card,
    body.auth-page .auth-card .field, .announce-mask.show, .announce-mask.show .announce-dialog,
    .main .btn-lg) {
    animation: none !important;
  }
}

.profile-section { padding: 0; overflow: hidden; margin-bottom: 18px; }
.profile-section-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.profile-section-head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.profile-section-body { padding: 20px 24px; }
.profile-gift-row { display: flex; gap: 12px; align-items: stretch; }
.profile-gift-row .input { flex: 1; }
.profile-action-btn {
  background: #2a9d8f; color: #fff; border: none; padding: 10px 24px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.profile-action-btn:hover { background: #238b7e; }
.profile-error { color: #dc2626; font-size: 13px; margin-bottom: 12px; }

.profile-notify-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.profile-notify-row:last-child { border-bottom: none; }
.profile-notify-label { color: var(--text); font-size: 15px; font-weight: 600; }

/* 绑定 TG / 讨论组 行 */
.profile-link-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; margin-bottom: 18px;
}
.profile-link-label { color: var(--text); font-size: 15px; font-weight: 600; }
.profile-link-btn {
  background: #2a9d8f; color: #fff; border: none; padding: 8px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.profile-link-btn:hover { background: #238b7e; }
.profile-link-muted { color: var(--muted); font-size: 14px; }

/* 重置订阅 */
.profile-warn-box {
  background: #fff8e1; color: #92400e; padding: 14px 18px; border-radius: 8px;
  font-size: 14px; line-height: 1.7; margin-bottom: 18px;
}
.profile-reset-btn {
  background: #ef4444; color: #fff; border: none; padding: 8px 22px;
  border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.profile-reset-btn:hover { background: #dc2626; }

/* 重置确认弹窗 */
.reset-confirm-head { display: flex; align-items: flex-start; gap: 14px; }
.reset-confirm-ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #f59e0b; color: #f59e0b; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.reset-confirm-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.reset-confirm-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: #cbd5e1;
  transition: .3s; border-radius: 24px;
}
.switch .slider::before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; transition: .3s; border-radius: 50%;
}
.switch input:checked + .slider { background: #2a9d8f; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 充值弹窗金额行 */
.recharge-amount-row { display: flex; align-items: center; gap: 14px; }
.recharge-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #f59e0b; color: #f59e0b; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}


/* ---------- 顶栏通知铃铛 ---------- */
.bell { position:relative; margin:0 6px; flex:none; }
.bell-btn { position:relative; width:38px; height:38px; display:inline-grid; place-items:center; border:1px solid var(--line); background:transparent; color:var(--text-2); border-radius:11px; cursor:pointer; transition:all .18s ease; }
.bell-btn:hover { color:#fff; border-color:var(--brand); background:var(--brand-soft); transform:translateY(-1px); }
.bell.open .bell-btn { color:#fff; border-color:var(--brand); background:var(--brand-soft); }
.bell-badge { position:absolute; top:-5px; right:-5px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#ef4444; color:#fff; font-size:10px; line-height:17px; font-weight:700; text-align:center; box-shadow:0 2px 8px rgba(239,68,68,.5); animation:badgePop .3s ease; }
@keyframes badgePop { 0%{transform:scale(.4)} 70%{transform:scale(1.18)} 100%{transform:scale(1)} }
.bell-panel { position:absolute; top:calc(100% + 10px); right:0; width:320px; max-width:86vw; background:#141a2a; border:1px solid var(--line-strong); border-radius:14px; box-shadow:0 24px 60px rgba(0,0,0,.45); opacity:0; visibility:hidden; transform:translateY(-6px) scale(.98); transform-origin:top right; transition:all .18s ease; z-index:1200; overflow:hidden; }
.bell.open .bell-panel { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.bell-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); font-size:14px; }
.bell-read { background:none; border:0; color:var(--brand); font-size:12px; cursor:pointer; padding:0; flex:none; }
.bell-read:hover { text-decoration:underline; }
.bell-item { display:block; padding:11px 14px; border-bottom:1px solid var(--line); position:relative; transition:background .15s ease; }
.bell-item:hover { background:var(--brand-soft); }
.bell-item.unread { background:rgba(91,108,255,.08); }
.bell-item.unread::before { content:''; position:absolute; left:6px; top:17px; width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 8px var(--brand); }
.bell-item-title { display:block; font-size:13px; font-weight:600; color:#e6ebf5; padding-left:10px; }
.bell-item-text { display:block; font-size:12px; color:var(--text-2); margin-top:3px; line-height:1.5; padding-left:10px; }
.bell-item-time { display:block; font-size:11px; color:var(--text-2); opacity:.7; margin-top:4px; padding-left:10px; }
.bell-item .badge { float:right; margin-top:1px; }
.bell-empty { padding:28px 14px; text-align:center; color:var(--text-2); font-size:13px; }
.bell-all { display:block; padding:12px; text-align:center; font-size:13px; color:var(--brand); font-weight:600; transition:background .15s ease; }
.bell-all:hover { background:var(--brand-soft); }

/* ---------- 节点实时状态：脉冲指示点 / 实时徽标 ---------- */
.live-pill { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--text-2); border:1px solid var(--line); border-radius:999px; padding:5px 12px; background:rgba(34,197,94,.08); }
.live-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; position:relative; flex:none; }
.live-dot::after { content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(34,197,94,.5); animation:livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0%{transform:scale(.55);opacity:.9} 100%{transform:scale(1.7);opacity:0} }
.node-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#64748b; margin-right:6px; vertical-align:middle; transition:background .3s ease, box-shadow .3s ease; }
.node-dot.on { background:#22c55e; box-shadow:0 0 8px rgba(34,197,94,.7); animation:dotIn .3s ease; }
@keyframes dotIn { from{transform:scale(.4)} to{transform:scale(1)} }

@media (prefers-reduced-motion: reduce) {
  .live-dot::after, .bell-badge, .node-dot.on { animation:none; }
}

/* ============================================================
   侧栏分组折叠（管理后台）
   ============================================================ */
.side-title[data-side-toggle] { cursor:pointer; display:flex; justify-content:space-between; align-items:center; user-select:none; transition:opacity .15s ease, color .15s ease; }
.side-title[data-side-toggle]:hover { opacity:.8; color: var(--text-2); }
.side-caret { flex:none; width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid currentColor; opacity:.5; transition:transform .18s ease; }
.side-title.is-collapsed .side-caret { transform:rotate(-90deg); }
.side-group { display:flex; flex-direction:column; gap:2px; }
.side-group.is-collapsed { display:none; }
/* 展开/首次载入时的淡入下滑，避免生硬跳变 */
.side-group:not(.is-collapsed) { animation: sideGroupIn .22s ease both; }
@keyframes sideGroupIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .side-caret { transition:none; }
  .side-group:not(.is-collapsed) { animation:none; }
}

/* ============================================================
   管理后台 · 白绿商业主题（通过 body.admin 作用域覆盖，
   仅影响后台页面，前台官网保持深色风格不变）
   配色规范：页面近白 #f6f7f9 / 卡片纯白 / 品牌绿 #059669 单主色 /
   文字黑色 #111827 · 灰阶 #374151 · #6b7280
   ============================================================ */
body.admin {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #f9fafb;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --text-2: #1f2937;
  --muted: #374151;
  --brand: #059669;
  --brand-2: #047857;
  --brand-soft: rgba(5, 150, 105, 0.08);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.10);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.10);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.08);
  --cyan: #0e7490;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  background: var(--bg);
  color: var(--text);
}
body.admin a { color: var(--brand); }
body.admin a:hover { color: var(--brand-2); }

/* ---------- 基础质感：选区 / 焦点 / 细滚动条 ---------- */
body.admin ::selection { background: rgba(5, 150, 105, 0.16); }
body.admin :focus-visible { outline: 2px solid rgba(5, 150, 105, 0.55); outline-offset: 2px; }
body.admin * { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
body.admin ::-webkit-scrollbar { width: 8px; height: 8px; }
body.admin ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
body.admin ::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
body.admin ::-webkit-scrollbar-track { background: transparent; }
body.admin ::-webkit-scrollbar-corner { background: transparent; }

/* ---------- 布局壳：固定顶栏 + 固定侧栏（滚动永不错位，内容区自适应） ---------- */
body.admin .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #ffffff; }
body.admin .shell { display: block; min-height: 100vh; padding-top: 62px; }
body.admin .side {
  position: fixed; top: 62px; left: 0; bottom: 0; height: auto;
  width: 232px; overflow-y: auto;
}
body.admin .main { margin-left: 232px; padding: 26px 30px 48px; }
@media (max-width: 860px) {
  body.admin .side { width: 64px; padding: 18px 6px; }
  body.admin .main { margin-left: 64px; padding: 18px 14px 34px; }
}

/* ---------- 顶栏：白底细分割线，通栏顶格与侧栏对齐 ---------- */
body.admin .topbar { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); }
body.admin .topbar .container-wide { width: 100%; max-width: none; padding: 0 20px; }
body.admin .brand { color: var(--text); }
body.admin .brand .logo { box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22); }
body.admin .topbar .btn.sm { border-radius: 6px; }

/* ---------- 侧栏：白底导航，分组清晰、层级分明 ---------- */
body.admin .side { background: #ffffff; border-right: 1px solid var(--line); padding: 12px 12px 16px; width: 232px; }
body.admin .side .side-title {
  font-size: 12px; letter-spacing: 1.5px; color: #4b5563;
  margin: 18px 10px 6px; font-weight: 700;
}
body.admin .side .side-item {
  color: #111827; border-radius: 8px; font-size: 14px;
  padding: 9px 10px; gap: 10px; margin-bottom: 1px;
}
body.admin .side .side-item:hover { color: var(--brand); background: rgba(5, 150, 105, 0.06); }
body.admin .side .side-item.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
body.admin .side .side-item .side-ico,
body.admin .side .side-ico { color: #4b5563; width: 18px; height: 18px; }
body.admin .side .side-ico svg { width: 18px; height: 18px; }
body.admin .side .side-item:hover .side-ico,
body.admin .side .side-item.active .side-ico { color: var(--brand); }
@media (max-width: 860px) {
  body.admin .side .side-title { justify-content: center; }
  body.admin .side .side-caret { display: none; }
}

/* ---------- 主区与页头：呼吸留白 + 黑色大标题 ---------- */
body.admin .main { padding: 26px 30px 48px; }
body.admin .page-title { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 6px; color: var(--text); }
body.admin .page-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

/* ---------- 卡片：白底细边框 + 轻阴影，悬停微浮 ---------- */
body.admin .card {
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
body.admin .card:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08); }
body.admin .card-pad { padding: 20px; }
body.admin .card-head { padding: 14px 20px; background: #ffffff; }
body.admin .card-head h3 { font-size: 15px; font-weight: 700; color: var(--text); }
body.admin .card-body { padding: 20px; }

/* ---------- 统计卡：灰标签 + 黑色大数字 ---------- */
body.admin .stat { padding: 20px 22px; }
body.admin .stat .label { font-size: 12.5px; font-weight: 500; }
body.admin .stat .value { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -0.3px; color: var(--text); }
body.admin .stat .extra { font-size: 12px; margin-top: 6px; }
body.admin .stat::after { background: radial-gradient(closest-side, rgba(5, 150, 105, 0.07), transparent); opacity: 1; }

/* ---------- 表格：浅灰表头 + 斑马留白 + 舒展行高 ---------- */
body.admin .table th {
  background: #f9fafb; color: #374151;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
body.admin .table td { padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid #eef0f2; }
body.admin .table tbody tr { transition: background .15s ease; }
body.admin .table tbody tr:hover { background: #f9fafb; }

/* ---------- 表单：白底输入框 + 黑色文字 + 绿色聚焦 ---------- */
body.admin .field label { color: var(--text-2); font-weight: 600; }
body.admin .input,
body.admin textarea.input,
body.admin select.input { background: #ffffff; border-color: #d1d5db; color: #111827; }
body.admin .input::placeholder { color: #7b828c; }
body.admin .input:hover { border-color: #9ca3af; }
body.admin .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12); }
body.admin .check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- 按钮：绿色主按钮 / 6px 圆角 / 字重 500 ---------- */
body.admin .btn { border-radius: 6px; font-weight: 500; box-shadow: none; }
body.admin .btn.sm { border-radius: 6px; }
body.admin .btn.ghost { color: var(--text-2); border-color: #d1d5db; }
body.admin .btn.ghost:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

/* ---------- 徽章 / 筛选 pill ---------- */
body.admin .badge { font-weight: 600; }
body.admin .badge.gray { background: #f3f4f6; border-color: transparent; }
body.admin .pill { background: #ffffff; border-color: var(--line); color: var(--text-2); transition: all .15s ease; }
body.admin .pill:hover { border-color: var(--brand); color: var(--brand); }
body.admin .pill.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ---------- 进度条 ---------- */
body.admin .bar { background: #eceef1; }

/* ---------- 键值行 / 待办行：悬停浮起 ---------- */
body.admin .kv .row { border-radius: 8px; }
body.admin .kv a.row { padding: 9px 12px; margin: 0 -12px; transition: background .15s ease; }
body.admin .kv a.row:hover { background: #f9fafb; }
body.admin .kv a.row b { color: var(--text); }

/* ---------- 分页 ---------- */
body.admin .pager { padding: 18px 0 4px; }
body.admin .pager a, body.admin .pager span { background: #ffffff; border-color: var(--line); border-radius: 8px; }
body.admin .pager a:hover { color: var(--brand); background: var(--brand-soft); border-color: var(--brand); }

/* ---------- 提示条 ---------- */
body.admin .alert { border-radius: 8px; }
body.admin .alert.success { border-color: rgba(5, 150, 105, 0.25); }
body.admin .alert.error { border-color: rgba(220, 38, 38, 0.22); }
body.admin .alert.info { color: var(--brand); border-color: rgba(5, 150, 105, 0.22); }
body.admin .alert.warn { border-color: rgba(217, 119, 6, 0.25); }

/* ---------- 弹窗：白底 + 轻背罩 ---------- */
body.admin dialog {
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
  /* 后台表单弹窗统一加宽，避免支付方式/节点等表单内容拥挤 */
  width: min(720px, 94vw);
}
body.admin dialog::backdrop { background: rgba(17, 24, 39, 0.45); backdrop-filter: blur(2px); }
body.admin .dlg-head h4 { font-weight: 700; }

/* ---------- 富文本编辑器：白纸面 + 悬停绿字 ---------- */
body.admin .rte { background: #ffffff; }
body.admin .rte-content { background: #ffffff; color: var(--text); }
body.admin .rte-toolbar button:hover,
body.admin .rte-toolbar select:hover { color: var(--brand); background: var(--brand-soft); }

/* ---------- 通知铃铛：白底面板 ---------- */
body.admin .bell-btn { color: var(--text-2); border-radius: 9px; }
body.admin .bell-btn:hover,
body.admin .bell.open .bell-btn { color: var(--brand); }
body.admin .bell-panel { background: #ffffff; border-color: var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14); }
body.admin .bell-head { border-bottom-color: var(--line); }
body.admin .bell-head strong { color: var(--text); font-size: 14px; }
body.admin .bell-item { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--line); gap:10px; }
body.admin .bell-item:last-child { border-bottom: none; }
body.admin .bell-item:hover { background: #f9fafb; }
body.admin .bell-item-title { color: var(--text); font-size: 13.5px; font-weight: 500; padding:0; flex:1; min-width:0; }
body.admin .bell-item .badge { float:none; margin:0; flex:none; }
body.admin .bell-empty { color: var(--muted); }
body.admin .bell-all { border-top: 1px solid var(--line); }
/* 一键订阅：未购买套餐提示 */
.sub-empty { padding:30px 20px; text-align:center; }
.sub-empty p { margin:0 0 16px; font-size:14px; color:#4b5563; }
