:root {
  --bg: #0b0e14;
  --bg-2: #10141d;
  --panel: #161b26;
  --panel-2: #1c2230;
  --border: #262e3d;
  --text: #e6eaf2;
  --muted: #8b94a7;
  --brand: #ff5a4d;
  --brand-2: #ff8a3d;
  --accent: #4d8bff;
  --ok: #37d399;
  --warn: #ffcc4d;
  --danger: #ff5a5a;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #1a2130 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 居中卡片（登录/注册）===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 30px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 20px;
  box-shadow: 0 6px 18px rgba(255, 90, 77, .35);
}
.brand h1 { font-size: 20px; margin: 0; letter-spacing: .5px; }
.brand small { color: var(--muted); font-size: 12px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.input, input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #0e121b; color: var(--text); font-size: 14px; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 225, .14); }
textarea { resize: vertical; min-height: 72px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text); font-size: 14px; font-weight: 600; transition: transform .05s, background .15s, border .15s;
  user-select: none;
}
.btn:hover { background: #232b3b; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(255, 90, 90, .5); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 90, 90, .12); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }

/* ===== 顶栏 + 布局 ===== */
.topbar {
  height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  background: rgba(16, 20, 29, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar .brand { margin: 0; }
.topbar .brand .logo { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.topbar .brand h1 { font-size: 16px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.pill { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }

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

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 14px; font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ===== 统计卡 ===== */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.stat .lbl { font-size: 13px; color: var(--muted); }
.stat.brand .num { color: var(--brand); }
.stat.ok .num { color: var(--ok); }
.stat.accent .num { color: var(--accent); }

/* ===== 会员信息大卡 ===== */
.hero {
  border-radius: 18px; padding: 26px; border: 1px solid var(--border);
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 90, 77, .18), transparent 60%),
              linear-gradient(180deg, var(--panel), var(--panel-2));
}
.hero .big { font-size: 34px; font-weight: 800; margin: 6px 0; }
.hero .sub { color: var(--muted); }

/* ===== 徽章 ===== */
.badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 600; display: inline-block; }
.badge.on { background: rgba(55, 211, 153, .16); color: var(--ok); }
.badge.off { background: rgba(139, 148, 167, .16); color: var(--muted); }
.badge.warn { background: rgba(255, 204, 77, .16); color: var(--warn); }
.badge.danger { background: rgba(255, 90, 90, .16); color: var(--danger); }
.badge.brand { background: rgba(255, 90, 77, .16); color: var(--brand); }

/* ===== 表格 ===== */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ===== 标签页 ===== */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); border: 1px solid transparent; font-weight: 600; font-size: 14px; }
.tab:hover { background: var(--panel-2); }
.tab.active { background: var(--panel-2); color: var(--text); border-color: var(--border); }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { width: 100%; max-width: 480px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
.modal h3 { margin: 0 0 16px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-body { max-height: 72vh; overflow-y: auto; padding-right: 4px; }
.modal.wide { max-width: 780px; }
.form-section { border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px 6px; margin-bottom: 14px; background: rgba(240,247,255,.35); }
.form-section-title { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .5px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }

/* 公告横幅 */
.notice-banners { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.notice-banner { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 34px 10px 14px; border-radius: 4px; border: 1px solid; font-size: 13px; line-height: 1.6; }
.notice-banner .nb-title { font-weight: 600; margin-right: 6px; }
.notice-banner .nb-content { white-space: pre-wrap; word-break: break-word; }
.notice-banner .nb-close { position: absolute; top: 6px; right: 8px; cursor: pointer; background: transparent; border: 0; color: inherit; opacity: .55; font-size: 16px; line-height: 1; padding: 4px 6px; }
.notice-banner .nb-close:hover { opacity: 1; }
.notice-banner.info { border-color: #a4c7ff; background: #eef4ff; color: #1c3f75; }
.notice-banner.success { border-color: #9ee0b8; background: #ebfaf1; color: #145c37; }
.notice-banner.warning { border-color: #f2d18a; background: #fff7e5; color: #7a4b0d; }
.notice-banner.danger { border-color: #f2a6a6; background: #fdeeee; color: #7a1c1c; }
.notice-banner .nb-pin { font-size: 11px; padding: 1px 6px; border-radius: 2px; background: rgba(0,0,0,.08); }

/* ===== Toast ===== */
#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast-item { padding: 12px 18px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; animation: slidein .2s ease; }
.toast-item.ok { border-color: rgba(55, 211, 153, .5); }
.toast-item.err { border-color: rgba(255, 90, 90, .5); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.section-title h2 { font-size: 18px; margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 160px; }
.code-box { background: #0e121b; border: 1px dashed var(--border); border-radius: 10px; padding: 12px; font-family: ui-monospace, monospace; font-size: 13px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.code-generator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 1050px) { .code-generator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .code-generator-grid { grid-template-columns: 1fr; } }

/* ===== 后台：固定左侧导航 + 独立 URL 页面 ===== */
.admin-shell { min-height: 100vh; display: flex; background: #0c1018; }
.admin-sidebar {
  width: 248px; min-height: 100vh; flex: 0 0 248px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 20px 14px 16px; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #121824, #0d1119);
}
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 24px; color: var(--text); text-decoration: none; }
.admin-brand:hover { text-decoration: none; }
.admin-logo {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #4d8bff, #6f5bff); box-shadow: 0 6px 18px rgba(77, 139, 255, .3);
}
.admin-brand strong { display: block; font-size: 16px; }
.admin-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.admin-nav a span { width: 16px; text-align: center; color: #77849b; }
.admin-nav a:hover { background: #1b2433; color: var(--text); text-decoration: none; }
.admin-nav a.active { background: rgba(77, 139, 255, .16); color: #9dbcff; }
.admin-nav a.active span { color: #79a4ff; }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: 7px; padding: 14px 6px 0; border-top: 1px solid var(--border); }
.admin-sidebar-foot a, .admin-sidebar-foot button {
  padding: 9px 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { color: var(--text); text-decoration: none; }
.admin-main { min-width: 0; flex: 1; }
.admin-header {
  height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  border-bottom: 1px solid var(--border); background: rgba(16, 20, 29, .78); backdrop-filter: blur(8px);
}
.admin-header p { margin: 0 0 3px; font-size: 11px; color: var(--muted); }
.admin-header h1 { margin: 0; font-size: 16px; }
.admin-content { max-width: 1380px; margin: 0 auto; padding: 28px 32px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 7px; font-size: 22px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 100%; height: auto; min-height: 0; position: static; padding: 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .admin-brand { padding: 0 4px 14px; }
  .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-nav a { min-height: 38px; padding: 0 6px; justify-content: center; gap: 4px; font-size: 12px; }
  .admin-nav a span { display: none; }
  .admin-sidebar-foot { display: none; }
  .admin-header { height: 64px; padding: 0 18px; }
  .admin-content { padding: 22px 16px 40px; }
  .page-heading h2 { font-size: 20px; }
}

/* ===== 用户中心：左侧导航 ===== */
.user-theme {
  --bg: #f4f8ff;
  --bg-2: #eaf3ff;
  --panel: #ffffff;
  --panel-2: #f7fbff;
  --border: #dbe8f8;
  --text: #1b2a41;
  --muted: #71819a;
  --brand: #2878f0;
  --brand-2: #53a6ff;
  --accent: #2878f0;
  --ok: #1eae73;
  --warn: #e5a224;
  --danger: #df5555;
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 50%, #eaf5ff 100%) fixed;
}
.user-theme .card { box-shadow: 0 8px 26px rgba(41, 101, 170, .08); }
.user-theme .hero { background: radial-gradient(620px 300px at 100% 0%, rgba(68, 155, 255, .2), transparent 60%), linear-gradient(135deg, #ffffff, #f4f9ff); }
.user-theme input, .user-theme select, .user-theme textarea { background: #fff; }
.user-theme .btn { background: #f6faff; border-color: #d4e4f7; color: #315071; }
.user-theme .btn:hover { background: #eaf4ff; }
.user-theme .btn.primary { background: linear-gradient(135deg, #2878f0, #53a6ff); color: #fff; }
.user-shell { min-height: 100vh; display: flex; background: #0c1018; }
.user-theme .user-shell { background: transparent; }
.user-sidebar {
  width: 248px; min-height: 100vh; flex: 0 0 248px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 20px 14px 16px; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #181624, #0e1119);
}
.user-theme .user-sidebar { border-color: #dbe8f8; background: linear-gradient(180deg, #fff, #f5faff); }
.user-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; color: var(--text); text-decoration: none; }
.user-brand:hover { text-decoration: none; }
.user-logo {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 18px rgba(255, 90, 77, .28);
}
.user-theme .user-logo { background: linear-gradient(135deg, #2878f0, #53a6ff); box-shadow: 0 6px 18px rgba(40, 120, 240, .25); }
.user-brand strong { display: block; font-size: 16px; }
.user-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.user-profile-mini { display: flex; gap: 10px; align-items: center; margin: 0 6px 18px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.user-theme .user-profile-mini { background: #f3f8ff; }
.user-profile-mini .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--panel-2); font-size: 16px; }
.user-profile-mini b { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-profile-mini span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.user-nav { display: grid; gap: 4px; }
.user-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.user-nav a span { width: 16px; text-align: center; color: #8d7c93; }
.user-nav a:hover { background: #28202b; color: var(--text); text-decoration: none; }
.user-theme .user-nav a:hover { background: #edf6ff; }
.user-nav a.active { background: rgba(255, 90, 77, .14); color: #ffb0a8; }
.user-nav a.active span { color: var(--brand); }
.user-theme .user-nav a.active { background: #e4f1ff; color: #2878f0; }
.user-nav .nav-logout {
  display: flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 6px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.user-nav .nav-logout span { width: 16px; text-align: center; }
.user-nav .nav-logout:hover { background: #fdf1f0; color: #d9534f; }
.user-sidebar-foot { margin-top: auto; display: grid; gap: 7px; padding: 14px 6px 0; border-top: 1px solid var(--border); }
.user-sidebar-foot a, .user-sidebar-foot button {
  padding: 9px 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.user-sidebar-foot a:hover, .user-sidebar-foot button:hover { color: var(--text); text-decoration: none; }
.user-main { min-width: 0; flex: 1; }
.user-header {
  height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  border-bottom: 1px solid var(--border); background: rgba(16, 20, 29, .78); backdrop-filter: blur(8px);
}
.user-theme .user-header { border-color: #dbe8f8; background: rgba(255,255,255,.82); }
.user-header p { margin: 0 0 3px; font-size: 11px; color: var(--muted); }
.user-header h1 { margin: 0; font-size: 16px; }
.user-content { max-width: 1280px; margin: 0 auto; padding: 28px 32px 60px; }
.notification-list { display: grid; gap: 10px; }
.notification-item { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.notification-item.unread { border-left: 3px solid var(--brand); }
.notification-item h3 { margin: 0 0 6px; font-size: 14px; }
.notification-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.notification-item time { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.segmented button { border: 0; border-radius: 7px; padding: 9px 18px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.segmented button.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px rgba(40, 120, 240, .2); }
.purchase-card { max-width: 720px; }
.purchase-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.purchase-head h2 { margin: 0 0 6px; font-size: 16px; }
.purchase-head p { margin: 0; color: var(--muted); font-size: 13px; }
.purchase-form { display: grid; gap: 18px; }
.purchase-field { display: grid; gap: 8px; }
.purchase-label { color: var(--text); font-size: 13px; font-weight: 600; }
.purchase-note { margin: 0; color: var(--muted); font-size: 12px; }
.purchase-form select, .purchase-form input[type=number] { height: 46px; font-size: 14px; }
.duration-picker { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(170px, 1fr); gap: 10px; }
.qty-group { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 3px; background: #fff; overflow: hidden; }
.qty-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 225, .14); }
.qty-step { width: 42px; flex: 0 0 42px; border: 0; background: #f7faff; color: #52657e; font-size: 17px; cursor: pointer; user-select: none; transition: background .15s; }
.qty-step:hover { background: #eaf3ff; color: var(--brand); }
.qty-group input[type=number] { border: 0 !important; border-radius: 0; text-align: center; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; }
.qty-group input[type=number]::-webkit-outer-spin-button, .qty-group input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #cfe1f7; border-radius: 3px; background: #f4f9ff; }
.order-summary-item { display: flex; align-items: baseline; gap: 8px; }
.order-summary-item span { color: var(--muted); font-size: 13px; }
.order-summary-item b { color: var(--text); font-size: 14px; font-weight: 600; }
.order-summary-total b { color: var(--brand); font-size: 22px; font-weight: 800; }
.payment-channel-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.payment-channel-option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); background: #fff; cursor: pointer; text-align: left; transition: .15s ease; position: relative; }
.payment-channel-option:hover { border-color: #8ebcff; background: #f7fbff; }
.payment-channel-option.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.payment-channel-option.active::after { content: "✓"; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 12px; color: #fff; background: var(--brand); border-top-left-radius: 3px; }
.payment-channel-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 15px; }
.payment-channel-icon.wxpay { background: #16c76a; }
.payment-channel-icon.alipay { background: #18aee7; }
.payment-channel-icon.qqpay { background: #2588e8; }
.payment-channel-image { width: 42px; height: 42px; object-fit: contain; flex: 0 0 42px; }
.payment-channel-option strong { display: block; font-size: 16px; }
.payment-channel-option small { display: block; margin-top: 3px; color: var(--muted); }
.purchase-submit { min-height: 46px; margin-top: 4px; font-size: 15px; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); font-size: 23px; line-height: 1; cursor: pointer; padding: 4px; }

/* ===== 企业控制台视觉重构：浅蓝白色、低圆角、低装饰 ===== */
:root {
  --bg: #f5f8fc; --bg-2: #edf3fa; --panel: #fff; --panel-2: #f8fbff;
  --border: #dce5ef; --text: #172b4d; --muted: #6b7b93;
  --brand: #2f7de1; --brand-2: #529bf0; --accent: #2f7de1;
  --radius: 4px; --shadow: 0 2px 10px rgba(27, 55, 90, .06);
}
body { background: #f5f8fc; }
.auth-wrap { background: linear-gradient(120deg, #edf5ff, #f8fbff 55%, #edf7ff); }
.auth-card { background: #fff; border-radius: 6px; box-shadow: 0 12px 30px rgba(35, 72, 115, .11); }
.brand .logo, .admin-logo, .user-logo { border-radius: 4px !important; box-shadow: none !important; }
.card { background: #fff; border-radius: 4px; box-shadow: var(--shadow); }
.btn, .input, input[type=text], input[type=password], input[type=email], input[type=number], select, textarea { border-radius: 3px; background: #fff; }
.btn.primary { background: #2f7de1; }
.pill, .badge { border-radius: 3px; }
.admin-sidebar, .user-sidebar { background: #fff !important; border-color: #dce5ef !important; }
.admin-shell, .user-shell { background: #f5f8fc !important; }
.admin-main, .user-main { background: linear-gradient(135deg, #f7faff 0%, #f5f8fc 55%, #edf5ff 100%); }
.admin-header, .user-header { background: rgba(255,255,255,.94) !important; border-color: #dce5ef !important; }
.admin-nav a.active, .user-nav a.active { background: #eaf3ff !important; color: #2f7de1 !important; border-radius: 3px; }
.admin-nav a:hover, .user-nav a:hover { background: #f2f7fd !important; }
.table-wrap { border-radius: 3px; border-color: #dce5ef; }
.table-wrap th { background: #f7faff; color: #52657e; }
.hero { border-radius: 4px; background: linear-gradient(110deg, #fff, #f0f7ff) !important; }
.segmented, .payment-channel-option, .duration-picker input, .duration-picker select { border-radius: 3px; }
.payment-channel-option { background: #fff; }

@media (max-width: 760px) {
  .user-shell { display: block; }
  .nav-toggle { display: inline-flex; }
  .user-sidebar { display: none; position: fixed; z-index: 100; inset: 0 auto 0 0; width: min(280px, 82vw) !important; height: 100vh !important; padding: 18px !important; box-shadow: 12px 0 28px rgba(22,43,77,.18); }
  .user-sidebar.open { display: flex; }
  .user-sidebar { min-height: 0; border-right: 1px solid var(--border); border-bottom: 0; }
  .user-brand { padding: 0 4px 12px; }
  .user-profile-mini, .user-sidebar-foot { display: none; }
  .user-nav { grid-template-columns: 1fr; }
  .user-nav a, .user-nav .nav-logout { min-height: 44px; font-size: 14px; }
  .user-header { height: 64px; padding: 0 18px; }
  .user-content { padding: 22px 16px 40px; }
  .duration-picker { grid-template-columns: 1fr; }
  .payment-channel-options { grid-template-columns: 1fr; }
}
