/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 移动端强制桌面布局：配合 viewport width=1280，避免窄屏媒体查询打乱排版 */
html.force-desktop-layout {
  min-width: 1280px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f0f2f5;
  line-height: 1.6;
  min-height: 100vh;
}

html.force-desktop-layout body {
  min-width: 1280px;
}

a {
  color: #1a73e8;
  text-decoration: none;
}
a:hover {
  color: #1557b0;
}

/* ===== Login & Register Pages (split auth shell) ===== */
body.auth-page {
  background: #eef3fa;
  color: #1a2438;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-shell,
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  justify-content: stretch;
  align-items: stretch;
  overflow: hidden;
}

.auth-brand {
  position: relative;
  flex: 0 0 44%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  color: #fff;
  background:
    linear-gradient(160deg, #0b1528 0%, #132a4d 48%, #0e1f3c 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  z-index: 1;
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 35%, rgba(77, 163, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 75%, rgba(47, 111, 237, 0.12), transparent 55%);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 320px;
}

.auth-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
  display: block;
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.auth-brand-name {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}

.auth-brand-desc {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(220, 230, 245, 0.72);
  font-weight: 400;
}

.auth-stage {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background:
    linear-gradient(180deg, #f5f8fc 0%, #e8eef8 55%, #e4ecf6 100%);
  position: relative;
  z-index: 0;
}

.auth-card,
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow:
    0 18px 48px rgba(19, 42, 77, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.85) inset;
}

.register-card {
  max-width: 460px;
  padding: 32px 34px 28px;
}

.auth-shell--register .auth-stage {
  justify-content: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
  overflow-y: auto;
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f6fed;
}

.auth-card-title,
.login-header {
  text-align: left;
  margin-bottom: 26px;
}

.auth-card-title h2,
.login-header h1,
.login-header h2 {
  font-size: 26px;
  color: #13233f;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
}

.auth-card-title p,
.login-header p {
  color: #6b7a90;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.login-form .form-group {
  margin-bottom: 18px;
}
.login-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #3a4a63;
  font-size: 13px;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(19, 35, 63, 0.12);
  border-radius: 10px;
  font-size: 14px;
  color: #1a2438;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.login-form input::placeholder {
  color: #9aa8bc;
}
.login-form input:focus {
  border-color: rgba(47, 111, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
  background: #fff;
}

.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input {
  padding-right: 44px;
}
.auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8a97ab;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.auth-eye:hover {
  color: #2f6fed;
  background: rgba(47, 111, 237, 0.08);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #8a97ab;
  margin-top: 5px;
  line-height: 1.4;
}

.verify-tip {
  margin: 0 0 8px;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.verify-tip-sub {
  color: #6b7a90;
  font-size: 13px;
  margin-bottom: 16px;
}
.verify-tip strong {
  color: #2f6fed;
  word-break: break-all;
}

.error-msg {
  background: rgba(255, 242, 240, 0.92);
  border: 1px solid #ffccc7;
  color: #cf1322;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.success-msg {
  background: rgba(246, 255, 237, 0.92);
  border: 1px solid #b7eb8f;
  color: #389e0d;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-submit.btn-primary,
.login-form .btn-primary {
  height: 46px;
  line-height: 46px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  background: #163a6b;
  border-color: #163a6b;
  box-shadow: 0 8px 20px rgba(22, 58, 107, 0.22);
}
.auth-submit.btn-primary:hover,
.login-form .btn-primary:hover {
  background: #1e4b88;
  border-color: #1e4b88;
}

.auth-secondary.btn-outline,
.login-form .btn-outline {
  margin-top: 10px;
  height: 42px;
  line-height: 40px;
  border-radius: 10px;
  color: #4a5d78;
  border-color: rgba(19, 35, 63, 0.18);
  background: rgba(255, 255, 255, 0.45);
}
.auth-secondary.btn-outline:hover,
.login-form .btn-outline:hover {
  color: #163a6b;
  border-color: rgba(22, 58, 107, 0.35);
  background: rgba(255, 255, 255, 0.75);
}
.auth-secondary.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-switch,
.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: #6b7a90;
}
.auth-switch a,
.login-footer a {
  margin-left: 6px;
  font-weight: 700;
  color: #2f6fed;
}
.auth-switch a:hover,
.login-footer a:hover {
  color: #1e4b88;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn-primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.btn-primary:hover {
  background: #1557b0;
  border-color: #1557b0;
}
.btn-block {
  display: block;
  width: 100%;
}
.btn-sm {
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-outline {
  background: transparent;
  color: #ccc;
  border-color: #555;
}
.btn-outline:hover {
  color: #fff;
  border-color: #888;
}

/* ===== App Layout (Dashboard) ===== */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ===== Top Navigation ===== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  background: #0f1a2e;
  color: #fff;
  flex-shrink: 0;
  z-index: 100;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-icon {
  font-size: 22px;
  color: #4da3ff;
}

.top-nav-menu {
  display: flex;
  gap: 4px;
}
.top-nav-menu .nav-item {
  display: block;
  padding: 8px 16px;
  color: #b0bec5;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}
.top-nav-menu .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.top-nav-menu .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.user-balance {
  color: #ffd666;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 214, 102, 0.35);
  border-radius: 4px;
  background: rgba(255, 214, 102, 0.08);
  white-space: nowrap;
}
.top-nav .btn-recharge {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f4f8ff;
  -webkit-text-fill-color: #f4f8ff;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(77, 163, 255, 0.22) 52%,
    rgba(47, 111, 237, 0.28) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  padding: 5px 14px;
  line-height: 1.35;
  white-space: nowrap;
  -webkit-backdrop-filter: saturate(1.35) blur(14px);
  backdrop-filter: saturate(1.35) blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(47, 111, 237, 0.16);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.top-nav .btn-recharge:hover {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  filter: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(77, 163, 255, 0.32) 52%,
    rgba(47, 111, 237, 0.38) 100%
  );
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 18px rgba(47, 111, 237, 0.22);
}
.top-nav .btn-recharge:active {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(47, 111, 237, 0.3) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(47, 111, 237, 0.14);
}

/* —— 充值弹窗：平台液态玻璃 —— */
.recharge-modal-mask {
  --rc-ink: #13233f;
  --rc-mute: #6b778c;
  --rc-line: rgba(19, 35, 63, 0.08);
  --rc-accent: #2f6fed;
  --rc-accent-soft: rgba(47, 111, 237, 0.1);
  --rc-ok: #1f8a4c;
  --rc-glass: rgba(255, 255, 255, 0.72);
  --rc-glass-strong: rgba(255, 255, 255, 0.82);
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(47, 111, 237, 0.18), transparent 55%),
    rgba(10, 18, 32, 0.42);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  backdrop-filter: saturate(1.2) blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.05, 0.85, 0.12, 1), visibility 0.55s ease;
}
.recharge-modal-mask.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.recharge-modal-mask[hidden] { display: none !important; }

.recharge-modal {
  width: min(440px, 100%);
  max-height: min(92vh, 680px);
  display: flex;
  flex-direction: column;
  background: var(--rc-glass-strong);
  color: var(--rc-ink);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 24px 64px rgba(15, 26, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(1.4) blur(28px);
  backdrop-filter: saturate(1.4) blur(28px);
  transform: translateY(12px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.recharge-modal-mask.is-visible .recharge-modal {
  transform: translateY(0);
}

.recharge-hero {
  position: relative;
  padding: 22px 24px 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(232, 240, 255, 0.35));
  color: var(--rc-ink);
  overflow: hidden;
  border-bottom: 1px solid var(--rc-line);
}
.recharge-hero::before {
  content: "";
  position: absolute;
  right: -48px;
  top: -56px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.2), transparent 68%);
  pointer-events: none;
}
.recharge-hero-top,
.recharge-title,
.recharge-sub,
.recharge-switch {
  position: relative;
  z-index: 1;
}
.recharge-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.recharge-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rc-accent);
  font-weight: 600;
}
.recharge-close {
  appearance: none;
  border: none;
  background: rgba(19, 35, 63, 0.05);
  color: var(--rc-mute);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.recharge-close:hover {
  color: var(--rc-ink);
  background: rgba(19, 35, 63, 0.1);
}
.recharge-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--rc-ink);
}
.recharge-sub {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--rc-mute);
  line-height: 1.5;
  min-height: 1.5em;
}
.recharge-switch {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 4px;
  background: rgba(19, 35, 63, 0.05);
  border-radius: 12px;
  border-bottom: none;
}
.recharge-tab {
  appearance: none;
  border: none;
  flex: 1;
  background: transparent;
  color: var(--rc-mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 9px;
  border-bottom: none;
  margin-bottom: 0;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.recharge-tab:hover {
  color: var(--rc-ink);
}
.recharge-tab.is-on {
  color: var(--rc-accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(15, 26, 46, 0.08);
  border-bottom-color: transparent;
}

.recharge-modal-bd {
  padding: 22px 24px 8px;
  overflow: auto;
  flex: 1;
  background: transparent;
}
.recharge-modal-bd.is-enter {
  animation: rechargeIn 0.7s cubic-bezier(0.05, 0.85, 0.12, 1);
}
@keyframes rechargeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.recharge-loading,
.recharge-status {
  margin: 0;
  font-size: 13px;
  color: var(--rc-mute);
  line-height: 1.65;
}
.recharge-status { margin-bottom: 16px; }
.recharge-status.is-error { color: #cf1322; }

.recharge-rate-strip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-bottom: none;
  border-radius: 12px;
  background: rgba(47, 111, 237, 0.06);
  border: 1px solid rgba(47, 111, 237, 0.1);
}
.recharge-rate-label {
  font-size: 12px;
  color: var(--rc-mute);
  letter-spacing: 0.04em;
}
.recharge-rate-value {
  font-size: 14px;
  color: var(--rc-ink);
}
.recharge-rate-value em {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--rc-accent);
  margin: 0 2px;
}

.recharge-field { display: block; margin-bottom: 12px; }
.recharge-field-label {
  display: block;
  font-size: 12px;
  color: var(--rc-mute);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-weight: 600;
}
.recharge-field-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.recharge-field-box:focus-within {
  border-color: rgba(47, 111, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
.recharge-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--rc-mute);
}
.recharge-field-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 26px;
  font-weight: 700;
  color: var(--rc-ink);
  letter-spacing: 0.02em;
  min-width: 0;
}
.recharge-field-box input::-webkit-outer-spin-button,
.recharge-field-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.recharge-field-box input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.recharge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}
.recharge-chip {
  appearance: none;
  border: 1px solid var(--rc-line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--rc-mute);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.recharge-chip:hover {
  border-color: rgba(47, 111, 237, 0.35);
  color: var(--rc-ink);
  transform: translateY(-1px);
}
.recharge-chip.is-on {
  border-color: rgba(47, 111, 237, 0.4);
  color: var(--rc-accent);
  background: var(--rc-accent-soft);
  box-shadow: 0 2px 10px rgba(47, 111, 237, 0.12);
}

.recharge-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: none;
  border-radius: 12px;
  background: rgba(31, 138, 76, 0.06);
  border: 1px solid rgba(31, 138, 76, 0.12);
}
.recharge-result span {
  font-size: 12px;
  color: var(--rc-mute);
  letter-spacing: 0.04em;
}
.recharge-result strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--rc-ok);
}

.recharge-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: none;
}
.recharge-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: none;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  position: relative;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.recharge-plan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.2s ease;
}
.recharge-plan:hover:not(.is-locked) {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 237, 0.2);
}
.recharge-plan.is-on {
  background: var(--rc-accent-soft);
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 4px 16px rgba(47, 111, 237, 0.1);
}
.recharge-plan.is-on::before { background: var(--rc-accent); }
.recharge-plan.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.recharge-plan.is-off {
  opacity: 0.62;
  background: rgba(0, 0, 0, 0.03);
}
.recharge-plan-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  color: #a16207;
  background: #fef3c7;
  letter-spacing: 0.02em;
}
.recharge-plan-main { flex: 1; min-width: 0; }
.recharge-plan-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--rc-ink);
  letter-spacing: 0.02em;
}
.recharge-plan-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--rc-mute);
}
.recharge-plan-price b {
  font-size: 18px;
  font-weight: 700;
  color: var(--rc-accent);
}

.recharge-pay-channels {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.recharge-pay-ch {
  flex: 1;
  min-width: 120px;
  appearance: none;
  border: 1px solid rgba(19, 35, 63, 0.12);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #13233f;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.recharge-pay-ch:hover {
  border-color: rgba(47, 111, 237, 0.35);
  background: rgba(255, 255, 255, 0.78);
}
.recharge-pay-ch.is-on {
  border-color: rgba(47, 111, 237, 0.45);
  background: rgba(47, 111, 237, 0.12);
  color: #1a4fb8;
  box-shadow: 0 4px 14px rgba(47, 111, 237, 0.12);
}
.recharge-pay-pane {
  text-align: center;
}
.recharge-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px auto 8px;
  padding: 12px;
  width: fit-content;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 35, 63, 0.08);
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.06);
}
.recharge-qr-img {
  display: block;
  border-radius: 8px;
}
.recharge-qr-tip,
.recharge-pay-wait {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b778c;
}
.recharge-qr-fallback {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(19, 35, 63, 0.12);
  padding: 8px;
  resize: vertical;
}

.recharge-modal-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 22px;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--rc-line);
}
.recharge-ft-note {
  margin: 0;
  font-size: 11px;
  color: var(--rc-mute);
  letter-spacing: 0.02em;
}
.recharge-cta {
  appearance: none;
  border: none;
  cursor: pointer;
  min-width: 128px;
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(165deg, #4da3ff 0%, #2f6fed 55%, #1a73e8 100%);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.28);
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.recharge-cta:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.34);
}
.recharge-cta:active:not(:disabled) {
  transform: translateY(0);
}
.recharge-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.recharge-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 13000;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 18px;
  background: rgba(15, 26, 46, 0.82);
  color: #f4f7fb;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(15, 26, 46, 0.2);
}
.recharge-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4da3ff;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.user-role {
  color: #90a4ae;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #555;
  border-radius: 3px;
}

/* ===== Main Area (Sidebar + Content) ===== */
.main-area {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ===== Side Navigation ===== */
.side-nav {
  width: 200px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  padding: 12px 0;
  flex-shrink: 0;
}

.side-menu-group {
  display: none;
  margin-bottom: 8px;
}
.side-menu-group.active {
  display: block;
}

.side-menu-title {
  padding: 10px 20px;
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.side-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 28px;
  color: #555;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.side-menu-item:hover {
  color: #1a73e8;
  background: #f5f8ff;
}
.side-menu-item.active {
  color: #1a73e8;
  background: #e8f0fe;
  border-left-color: #1a73e8;
  font-weight: 600;
}
.side-menu-label {
  flex: 0 1 auto;
}
.side-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f5222d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.side-menu-badge[hidden] {
  display: none !important;
}

/* ===== Content Area ===== */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f0f2f5;
}

.content-header {
  margin-bottom: 24px;
}
.content-header h2 {
  font-size: 20px;
  color: #1a2a4a;
  font-weight: 600;
}

.content-body {
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  min-height: 400px;
}

.welcome-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}
.welcome-section h3 {
  font-size: 22px;
  color: #1a2a4a;
  margin-bottom: 8px;
}
.welcome-section p {
  color: #888;
  font-size: 14px;
}

/* ===== 用户系统概览 ===== */
.ov-page {
  --ov-ink: #13233f;
  --ov-muted: #6b778c;
  --ov-line: #e6ebf2;
  --ov-soft: #f4f7fb;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: ov-fade-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes ov-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ov-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px 28px 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,248,255,.92)),
    linear-gradient(120deg, #dce8ff 0%, #eef5ff 42%, #f7fafc 100%);
  border: 1px solid #d9e4f5;
}
.ov-hero-glow {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,237,.22), transparent 68%);
  pointer-events: none;
  animation: ov-glow 5.5s ease-in-out infinite alternate;
}
@keyframes ov-glow {
  from { transform: translate(0,0) scale(1); opacity: .8; }
  to { transform: translate(-18px, 12px) scale(1.12); opacity: 1; }
}
.ov-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.ov-kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3d6fd8;
  font-weight: 700;
  margin-bottom: 8px;
}
.ov-hero h3 {
  font-size: 28px;
  line-height: 1.25;
  color: var(--ov-ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.ov-sub {
  color: var(--ov-muted);
  font-size: 14px;
  max-width: 560px;
  margin-bottom: 16px;
}
.ov-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ov-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d7e3f7;
  color: #35507a;
  font-size: 13px;
}
.ov-chip strong { color: var(--ov-ink); font-weight: 700; }
.ov-chip-muted {
  background: rgba(255,255,255,.7);
  border-color: #e2e8f0;
  color: var(--ov-muted);
}

.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ov-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ov-line);
  border-radius: 12px;
  padding: 18px 16px 14px;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  animation: ov-card-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.ov-card:nth-child(1) { animation-delay: .05s; }
.ov-card:nth-child(2) { animation-delay: .1s; }
.ov-card:nth-child(3) { animation-delay: .15s; }
.ov-card:nth-child(4) { animation-delay: .2s; }
.ov-card:nth-child(5) { animation-delay: .25s; }
.ov-card:nth-child(6) { animation-delay: .3s; }
.ov-card:nth-child(7) { animation-delay: .35s; }
.ov-card:nth-child(8) { animation-delay: .4s; }
@keyframes ov-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ov-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #2f6fed;
}
.ov-card:hover {
  transform: translateY(-3px);
  border-color: #c9d8f0;
  box-shadow: 0 8px 22px rgba(19, 35, 63, .06);
}
.ov-card-label {
  font-size: 13px;
  color: var(--ov-muted);
  margin-bottom: 10px;
}
.ov-card-value {
  font-size: 28px;
  font-weight: 750;
  color: var(--ov-ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  word-break: break-all;
  transition: transform .28s ease;
}
.ov-card-value.ov-pop { transform: scale(1.04); }
.ov-card-foot {
  margin-top: 10px;
  font-size: 12px;
  color: #8a96a8;
}
.ov-tone-a::before { background: #2f6fed; }
.ov-tone-b::before { background: #e6a23c; }
.ov-tone-c::before { background: #0f9d8a; }
.ov-tone-d::before { background: #5b6cff; }
.ov-tone-e::before { background: #1f8fff; }
.ov-tone-f::before { background: #2bb673; }
.ov-tone-g::before { background: #4c6fff; }
.ov-tone-h::before { background: #d97706; }

.ov-lower {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 14px;
}
.ov-panel {
  background: #fff;
  border: 1px solid var(--ov-line);
  border-radius: 12px;
  padding: 16px;
  min-height: 240px;
}
.ov-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ov-panel-hd h4 {
  font-size: 16px;
  color: var(--ov-ink);
  font-weight: 700;
}
.ov-panel-hd span {
  font-size: 12px;
  color: var(--ov-muted);
}
.ov-shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ov-shortcut {
  text-align: left;
  border: 1px solid var(--ov-line);
  background: linear-gradient(180deg, #fff, var(--ov-soft));
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ov-shortcut:hover {
  transform: translateY(-2px);
  border-color: #b8cef3;
  background: #fff;
}
.ov-sc-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ov-ink);
  margin-bottom: 4px;
}
.ov-sc-desc {
  display: block;
  font-size: 12px;
  color: var(--ov-muted);
  line-height: 1.4;
}
.ov-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--ov-soft);
  border: 1px solid transparent;
  animation: ov-card-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.ov-recent-item:hover { border-color: #d5e2f5; background: #fff; }
.ov-recent-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ov-ink);
  margin-bottom: 2px;
}
.ov-recent-meta {
  font-size: 12px;
  color: var(--ov-muted);
}
.ov-recent-side {
  text-align: right;
  flex-shrink: 0;
}
.ov-recent-amt {
  display: block;
  font-weight: 700;
  color: var(--ov-ink);
  margin-bottom: 4px;
}
.ov-recent-st {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 650;
}
.ov-recent-st.is-done { color: #1f8a4c; background: #e8f8ef; }
.ov-recent-st.is-pending { color: #b7791f; background: #fff6e8; }
.ov-empty {
  padding: 28px 12px;
  text-align: center;
  color: #9aa6b8;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-lower { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ov-hero { padding: 22px 16px; }
  .ov-hero h3 { font-size: 22px; }
  .ov-stats { grid-template-columns: 1fr; }
  .ov-shortcut-grid { grid-template-columns: 1fr; }
}

/* legacy stat cards kept for other pages */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fafbfc;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}
.stat-card-title {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 2.8em;
}
.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a2a4a;
  word-break: break-all;
}

.placeholder-section {
  text-align: center;
  padding: 40px 0;
  color: #bbb;
  font-size: 15px;
}

/* ===== 系统设置 / 账户管理 ===== */
.settings-page {
  max-width: 720px;
}
.settings-intro {
  margin-bottom: 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.settings-intro p {
  margin: 0 0 6px;
}
.settings-email-line {
  color: #888;
  font-size: 13px;
}
.settings-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-feature-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.settings-feature-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.settings-feature-item.is-open {
  border-color: #c5d8f7;
  background: #fff;
}
.settings-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}
.settings-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2a4a;
  margin-bottom: 4px;
}
.settings-feature-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}
.settings-feature-action {
  flex-shrink: 0;
  font-size: 13px;
  color: #1a73e8;
}
.settings-feature-panel {
  border-top: 1px solid #eef0f3;
  padding: 18px 20px 20px;
  background: #fff;
}
.settings-form {
  max-width: 420px;
}
.settings-form-group {
  margin-bottom: 14px;
}
.settings-form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.settings-form-group input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.settings-form-group input:focus {
  border-color: #1a73e8;
}
.settings-code-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.settings-code-field {
  flex: 1;
  min-width: 0;
}
.settings-code-row .btn {
  flex-shrink: 0;
  height: 36px;
  white-space: nowrap;
}
.settings-form-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
.settings-form-actions {
  margin-top: 4px;
}
.settings-form .error-msg,
.settings-form .success-msg {
  margin-bottom: 12px;
}

/* ===== Announcements ===== */
.announce-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.announce-count {
  font-size: 14px;
  color: #666;
}
.announce-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.announce-loading,
.announce-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.announce-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.announce-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  background: #fafbfc;
  transition: box-shadow 0.2s;
}
.announce-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.announce-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 16px;
}
.announce-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a2a4a;
  margin: 0;
  flex: 1;
}
.announce-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}
.announce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.announce-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1a73e8;
}
.announce-tag-attach {
  background: #f6f0ff;
  color: #722ed1;
}
.announce-tag-reward {
  background: #fff7e6;
  color: #d48806;
}
.announce-tag-claimed {
  background: #f6ffed;
  color: #389e0d;
}
.announce-content {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.announce-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e8e8e8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.announce-download {
  display: inline-block;
}
.announce-claim-btn.is-claimed {
  opacity: 0.75;
  cursor: default;
}

/* ===== 视频分析模块（原生 UI） ===== */
.va-module {
  margin: -8px 0 0;
}

.va-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 20%, rgba(26, 115, 232, 0.12), transparent 42%),
    linear-gradient(135deg, #f7fafc 0%, #eef5ff 55%, #f8fafc 100%);
  border: 1px solid #e6eef8;
}

.va-hero-title {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #102a43;
  letter-spacing: 0.02em;
}

.va-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.va-brand-mark {
  font-size: 13px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 0.08em;
}

.va-mode-chip {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6e4ff;
  color: #1a73e8;
}

.va-capability-tip {
  margin: 8px 0 0;
  font-size: 13px;
  color: #5b6b7c;
  max-width: 560px;
  line-height: 1.5;
}

.va-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.va-desc {
  color: #52606d;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

.va-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}

.va-price-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eef6ff;
  color: #1d6fd8;
  font-size: 13px;
  font-weight: 600;
}

.va-price-tip {
  color: #8492a6;
  font-size: 12px;
}

.va-analyze-btn {
  min-width: 118px;
}

.va-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  width: 100%;
  max-width: 720px;
}

.va-pipe-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9aa5b1;
}

.va-pipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9e2ec;
}

.va-pipe-step.active {
  color: #1a73e8;
  font-weight: 600;
}
.va-pipe-step.active .va-pipe-dot {
  background: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}
.va-pipe-step.done {
  color: #3eba6d;
}
.va-pipe-step.done .va-pipe-dot {
  background: #3eba6d;
}

.va-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.va-progress-pct {
  font-size: 12px;
  color: #1a73e8;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.va-live-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  margin-top: 10px;
  font-size: 12px;
  color: #8292a2;
}

.va-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}

.va-tab {
  border: 1px solid #e4ebf2;
  background: #fff;
  color: #52606d;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.va-tab:hover:not(:disabled) {
  border-color: #1a73e8;
  color: #1a73e8;
}

.va-tab.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.va-tab.disabled,
.va-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.va-tab-panel {
  display: none;
  animation: vaFadeIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.va-tab-panel.active {
  display: block;
}

.va-unified-report {
  padding: 28px 32px 16px;
  max-width: 820px;
  margin: 0 auto;
}

.va-unified-report-prose .va-report-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e9ef;
}

.va-unified-report-prose .va-report-section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.va-report-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.va-report-index {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
}

.va-unified-report-prose .va-report-h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.va-report-section-lead .va-report-p-lead {
  font-size: 17px;
  line-height: 1.92;
  color: #111827;
  font-weight: 450;
}

.va-unified-report-prose .va-report-prose,
.va-unified-report-prose .va-report-body {
  font-size: 15px;
  line-height: 1.88;
  color: #334155;
}

.va-unified-report-prose .va-report-p {
  margin: 0 0 16px;
  text-align: justify;
  text-justify: inter-ideograph;
  hanging-punctuation: allow-end;
}

.va-unified-report-prose .va-report-p:last-child {
  margin-bottom: 0;
}

.va-report-sub {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #eef1f5;
}

.va-report-sub:last-child {
  margin-bottom: 0;
}

.va-report-h4 {
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid #94a3b8;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.04em;
}

.va-report-sub-body .va-report-p {
  font-size: 15px;
  color: #374151;
}

.va-report-footnote {
  margin: 14px 0 0;
  padding-top: 12px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  border-top: 1px dashed #e2e8f0;
}

.va-report-coverage {
  margin: 0 0 22px;
  padding: 11px 14px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 6px;
  line-height: 1.55;
}

.va-content-anchor {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.va-content-anchor-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.va-anchor-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.va-anchor-row:last-child {
  margin-bottom: 0;
}

.va-anchor-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.va-anchor-val,
.va-anchor-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #1e293b;
}

.va-content-analysis {
  margin-top: 4px;
}

.va-report-section {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8edf2;
}

.va-report-section:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}

.va-report-h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #1a2233;
  letter-spacing: 0.02em;
}

.va-report-prose {
  font-size: 15px;
  line-height: 1.75;
  color: #2d3748;
}

.va-report-p {
  margin: 0 0 12px;
}

.va-report-p:last-child {
  margin-bottom: 0;
}

.va-report-supplement {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.va-report-collapse {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.va-report-collapse summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #52606d;
}

.va-report-collapse .va-cue-list,
.va-report-collapse pre {
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
}

@keyframes vaFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.va-title-mm { color: #0f766e; }
.va-export-btns { display: flex; gap: 8px; }
.va-export-btn {
  border: 1px solid #b7e0d8;
  background: #f0fafa;
  color: #0f766e;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.va-export-btn:hover { background: #d9f3ee; }
.va-mm-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.va-mm-cols section {
  border: 1px solid #e8eef4;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafbfc;
  max-height: 280px;
  overflow: auto;
}
.va-modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}
.va-modality-item {
  padding: 10px 12px;
  background: #f4faf9;
  border: 1px solid #d9eee9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #5c6b73;
}
.va-modality-item strong {
  color: #134e4a;
  font-size: 13px;
  font-weight: 600;
}
.va-mm-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.va-inventory {
  margin: 0;
  padding-left: 18px;
  max-height: 280px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
  color: #3d4f5f;
}
.va-inventory li { margin-bottom: 6px; }
.va-cue-list,
.va-script-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.va-cue-row {
  display: grid;
  grid-template-columns: 88px 72px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  background: #fafbfc;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  font-size: 13px;
}
.va-cue-row p { margin: 0; color: #2f3b45; }
.va-cue-time { color: #1a73e8; font-variant-numeric: tabular-nums; font-size: 12px; }
.va-cue-src { color: #8292a2; font-size: 11px; }
.va-script-scene {
  padding: 12px 14px;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #3d4f5f;
}
.va-script-scene header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #1f2933;
}
.va-script-scene p { margin: 4px 0; }
.va-seg-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: #0f766e;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .va-mm-grid { grid-template-columns: 1fr; }
  .va-mm-cols { grid-template-columns: 1fr; }
  .va-cue-row { grid-template-columns: 1fr; }
}

.va-probe-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #52606d;
}

.va-probe-bar b {
  color: #8292a2;
  font-weight: 500;
  margin-right: 4px;
}

.va-card-flat {
  box-shadow: none;
}

.va-card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.va-empty {
  padding: 28px;
  text-align: center;
  color: #8292a2;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #d9e2ec;
}

.va-visual-brief {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #3e4c59;
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.va-seg-meter {
  height: 4px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 8px;
}

.va-seg-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.va-seg-role {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e6fffb;
  color: #08979c;
}

.va-frame-thumb-wrap {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.va-frame-thumb-wrap span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8292a2;
}

.va-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 67, 0.72);
  padding: 24px;
}

.va-lightbox.open {
  display: flex;
}

.va-lightbox-inner {
  position: relative;
  max-width: min(920px, 100%);
  max-height: 90vh;
  background: #0b1f33;
  border-radius: 12px;
  padding: 16px;
}

.va-lightbox-inner img {
  max-width: 100%;
  max-height: 72vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.va-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.va-lightbox-meta {
  margin: 10px 0 0;
  color: #9fb3c8;
  font-size: 12px;
  word-break: break-all;
}

button.va-frame-item {
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

button.va-frame-item:hover {
  border-color: #1a73e8;
  transform: translateY(-2px);
}

.va-service-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.va-service-status.online {
  background: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}
.va-service-status.offline {
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}
.va-service-status.degraded {
  background: #fffbe6;
  color: #d48806;
  border: 1px solid #ffe58f;
}

.va-badge-realtime {
  background: #e6f7ff;
  color: #0958d9;
  border: 1px solid #91caff;
}

.va-live-frames {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin-top: 8px;
  justify-content: center;
}

.va-frame-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #f5f5f5;
}

.va-title-frames { color: #0958d9; }
.va-title-seg { color: #08979c; }
.va-title-deep { color: #cf1322; }

.va-dim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.va-dim-chip,
.va-dim-badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff1f0;
  color: #a8071a;
  border: 1px solid #ffa39e;
}

.va-dim-badge {
  background: #fff2e8;
  color: #d4380d;
  border-color: #ffbb96;
}

.va-evidence-details {
  margin-bottom: 12px;
  font-size: 13px;
  color: #627d98;
}

.va-deep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.va-deep-item {
  border: 1px solid #eef2f6;
  border-left: 4px solid #9aa5b1;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.va-deep-item.va-sev-high { border-left-color: #cf1322; background: #fff7f6; }
.va-deep-item.va-sev-mid { border-left-color: #d48806; background: #fffbe6; }
.va-deep-item.va-sev-low { border-left-color: #389e0d; }

.va-deep-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.va-deep-idx {
  font-weight: 700;
  color: #102a43;
}

.va-deep-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e6f4ff;
  color: #0958d9;
}

.va-deep-sev {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  color: #8292a2;
}

.va-deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 900px) {
  .va-deep-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
  }
}

.va-deep-grid label {
  display: block;
  font-size: 11px;
  color: #8292a2;
  margin-bottom: 2px;
}

.va-deep-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #243b53;
}

.va-deep-frame {
  margin-top: 10px;
  border: 1px solid #91caff;
  background: #e6f4ff;
  color: #0958d9;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.va-frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.va-frame-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px;
  background: #fafafa;
}

.va-frame-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.va-frame-item span {
  font-size: 12px;
  color: #666;
}

.va-frame-item code {
  font-size: 10px;
  color: #999;
  word-break: break-all;
}

.va-seg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.va-seg-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.va-seg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 6px;
}

.va-seg-score {
  margin-left: auto;
  color: #08979c;
  font-weight: 600;
}

.va-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.va-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
}
.va-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}
.va-input:disabled {
  background: #f5f5f5;
}

.va-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 20px;
  color: #888;
  font-size: 13px;
}

.va-progress-track {
  width: 100%;
  max-width: 420px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.va-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1a73e8, #4da3ff);
  transition: width 0.4s ease;
}

.va-error {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  color: #cf1322;
  font-size: 14px;
}

.va-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #e8e8e8;
}

.va-feat {
  padding: 16px;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  background: #fafbfc;
}
.va-feat h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1a1a2e;
}
.va-feat p {
  margin: 0;
  font-size: 13px;
  color: #627d98;
  line-height: 1.55;
}

.va-url-input {
  flex: 1;
  min-width: 0;
}

.va-sec {
  margin: 28px 0;
  padding-bottom: 8px;
}
.va-sec-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  color: #0f172a;
}
.va-sec-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
}
.va-sec-muted {
  opacity: 0.92;
}

.va-overview {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5fc 100%);
}
.va-ov-grade {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #0b57d0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #c9daf0;
}
.va-ov-score {
  font-size: 14px;
  color: #334155;
  margin-bottom: 6px;
}
.va-ov-head {
  margin: 0 0 10px;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.5;
}
.va-ov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.va-ov-tags span {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d7e3f4;
  color: #475569;
}

.va-warn {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
  font-size: 13px;
}
.va-warn p { margin: 4px 0; }

.va-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.va-metric-card {
  padding: 14px 12px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.va-m-label { font-size: 12px; color: #64748b; }
.va-m-value { font-size: 20px; font-weight: 700; color: #0f172a; margin: 4px 0; }
.va-m-sub { font-size: 12px; color: #1a73e8; }

.va-note-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.va-author-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.va-author-grid label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}
.va-author-grid b {
  font-size: 14px;
  color: #1e293b;
}
.va-author-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #475569;
  padding-top: 4px;
}

.va-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.va-chart {
  height: 320px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
}

.va-table-wrap { overflow-x: auto; }
.va-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.va-table th, .va-table td {
  border-bottom: 1px solid #eef2f7;
  padding: 8px 10px;
  text-align: left;
  color: #334155;
}
.va-table th {
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
}

.va-peer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #475569;
}
.va-peer-details summary {
  cursor: pointer;
  color: #1a73e8;
  font-size: 13px;
  margin-bottom: 8px;
}

.va-gap-list { display: flex; flex-direction: column; gap: 8px; }
.va-gap-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e8eef5;
  background: #fff;
}
.va-gap-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.va-gap-item.is-lead .va-gap-tag { background: #e6f4ea; color: #137333; }
.va-gap-item.is-lag .va-gap-tag { background: #fce8e6; color: #c5221f; }
.va-gap-item.is-flat .va-gap-tag { background: #e8f0fe; color: #1967d2; }
.va-gap-item p { margin: 4px 0 0; font-size: 12px; color: #64748b; }

.va-advice-list { display: flex; flex-direction: column; gap: 10px; }
.va-advice {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #fff;
}
.va-advice header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.va-advice h4 { margin: 0; font-size: 15px; color: #0f172a; }
.va-adv-pri {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.va-advice-urgent { border-color: #f5c2c0; background: #fff8f7; }
.va-advice-urgent .va-adv-pri { background: #fce8e6; color: #c5221f; }
.va-advice-important .va-adv-pri { background: #fef7e0; color: #b06000; }
.va-advice-enhance .va-adv-pri { background: #e6f4ea; color: #137333; }
.va-advice p { margin: 0; font-size: 13px; color: #475569; line-height: 1.6; }

.va-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 13px;
}
.va-info-grid label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.va-legacy-note {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.va-legacy-sum { color: #475569; line-height: 1.6; }

.va-metric-grid-deep {
  margin-top: 10px;
}
.va-metric-grid-deep .va-m-value {
  font-size: 16px;
}

.va-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.va-layer {
  padding: 14px 14px 10px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
  min-height: 160px;
}
.va-layer header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.va-layer-lv {
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 2px 6px;
  border-radius: 4px;
}
.va-layer h4 {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: #0f172a;
}
.va-layer-score {
  font-size: 18px;
  color: #0b57d0;
}
.va-layer-sum {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.va-layer ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #475569;
  line-height: 1.65;
  max-height: none;
}

.va-tag-buckets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.va-tag-bucket {
  padding: 14px 16px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
}
.va-tag-bucket header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.va-tag-bucket h4 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}
.va-tag-comp {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8f0fe;
  color: #1967d2;
}
.va-tag-bucket p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}
.va-chart-wide {
  height: 260px;
  margin-top: 12px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 960px) {
  .va-layer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .va-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .va-chart-row { grid-template-columns: 1fr; }
  .va-author-grid { grid-template-columns: repeat(2, 1fr); }
  .va-features { grid-template-columns: 1fr 1fr; }
  .va-overview { flex-direction: column; }
  .va-ov-grade { flex-basis: auto; }
}

.va-feature-card {
  text-align: left;
  padding: 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid #e8eef5;
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.va-feature-card:hover {
  border-color: #b6d0f5;
  transform: translateY(-2px);
}
.va-feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.va-feature-card h4 {
  font-size: 15px;
  color: #102a43;
  margin: 0 0 8px;
}
.va-feature-card p {
  font-size: 12px;
  color: #627d98;
  line-height: 1.6;
  margin: 0;
}

.va-card {
  background: #fafbfc;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.va-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.va-title-video { color: #1a73e8; }
.va-title-author { color: #4da3ff; }
.va-title-engage { color: #722ed1; }
.va-title-value { color: #52c41a; }
.va-title-traffic { color: #fa8c16; }
.va-title-multi { color: #531dab; }
.va-title-audience { color: #1a73e8; }

.va-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.va-title-audience { color: #1a73e8; }
.va-title-insight { color: #cf1322; }
.va-title-ext { color: #722ed1; }
.va-title-direction { color: #08979c; }
.va-title-future { color: #d4380d; }

.va-insights {
  border-left: 4px solid #ff4d4f;
  background: #fffafa;
}

.va-benchmark {
  padding: 12px 14px;
  background: #e6f7ff;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
  border: 1px solid #bae7ff;
}

.va-insight-list {
  list-style: none;
  padding: 0;
}

.va-insight-list li {
  position: relative;
  padding: 10px 12px 10px 28px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ffe7e7;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}

.va-insight-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #faad14;
}

.va-ext-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.va-ext-chip {
  text-align: center;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 11px;
  color: #888;
}

.va-ext-chip strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.va-ext-radar {
  height: 320px;
  min-height: 280px;
}

.va-direction {
  border-left: 4px solid #13c2c2;
}

.va-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.va-dir-score {
  margin-left: auto;
  font-size: 13px;
  color: #666;
}

.va-persona-line {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.va-diagnosis {
  padding: 14px 16px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}

.va-primary-dir {
  padding: 12px 14px;
  background: #e6fffb;
  border: 1px solid #87e8de;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #006d75;
  margin-bottom: 16px;
}

.va-dir-cols { margin-bottom: 12px; }

.va-bottleneck li::before { color: #ff4d4f !important; }
.va-pitfalls li::before { content: '- ' !important; color: #ff4d4f !important; }

.va-forecast {
  margin-top: 12px;
  padding: 12px;
  background: #f6ffed;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}

.va-future {
  border-left: 4px solid #fa541c;
}

.va-topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.va-topic-card {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  border-left: 3px solid #1a73e8;
}

.va-topic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.va-topic-priority {
  background: #1a73e8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.va-topic-meta {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-top: 4px;
}

.va-topic-meta span {
  color: #999;
}

.va-actions li::before {
  content: '- ';
  color: #52c41a;
}

.va-overview {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #f5f8ff 0%, #fff 100%);
  border-color: #d6e4ff;
}

.va-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.va-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.va-score-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.va-score-label {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.va-overview-body { flex: 1; }

.va-summary {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.va-badges, .va-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.va-badge, .va-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.va-badge-info, .va-tag-info { background: #e8f0fe; color: #1a73e8; }
.va-badge-ai { background: #fff0f6; color: #eb2f96; }
.va-badge-success, .va-tag { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.va-badge-warning, .va-tag-warn { background: #fffbe6; color: #d48806; border: 1px solid #ffe58f; }
.va-badge-danger, .va-tag-hot { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; }

.va-video-row {
  display: flex;
  gap: 16px;
}

.va-cover {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.va-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
}

.va-video-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.va-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.va-muted { color: #999; font-size: 13px; }

.va-author-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.va-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.va-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4da3ff;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.va-author-name {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.va-signature {
  font-size: 13px;
  color: #666;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.va-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.va-mini-stat {
  text-align: center;
  padding: 10px 6px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}

.va-mini-num {
  font-size: 16px;
  font-weight: 700;
  color: #1a2a4a;
}
.va-stat-missing .va-mini-num {
  color: #9aa5b1;
  font-weight: 500;
}

.va-mini-label {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.va-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.va-metric {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}

.va-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.va-metric-num {
  font-size: 15px;
  font-weight: 700;
  color: #1a2a4a;
}

.va-metric-label {
  font-size: 11px;
  color: #999;
}

.va-metric-rate {
  font-size: 10px;
  color: #1a73e8;
}

.va-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  height: 220px;
  margin-bottom: 12px;
}

.va-chart {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}

.va-note {
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  border: 1px solid #eee;
}

.va-value-head, .va-traffic-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.va-big-score {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.va-big-score small {
  font-size: 14px;
  font-weight: 400;
  color: #999;
}

.va-section-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.va-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.va-point-box {
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}
.va-point-pos { background: #f6ffed; }
.va-point-risk { background: #fff2f0; }

.va-point-box ul {
  list-style: none;
  line-height: 1.8;
  color: #555;
}

.va-detail-text, .va-box-text {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
  margin-bottom: 12px;
}

.va-grade {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.va-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.va-info-item {
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.va-strategies {
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}
.va-strategies li::before {
  content: '→ ';
  color: #1a73e8;
}

.va-multi-row, .va-audience-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.va-radar { min-height: 260px; }

.va-attrs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.va-attr {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}
.va-attr span {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}

.va-score-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.va-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.va-circle-score {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8e8e8 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a2a4a;
}

.va-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.va-lists ul {
  list-style: none;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
}
.va-lists li::before {
  content: '• ';
  color: #1a73e8;
}

.va-persona { text-align: center; }

.va-match-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: conic-gradient(#1a73e8 calc(var(--p) * 1%), #e8e8e8 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.va-match-ring::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: #fafbfc;
  border-radius: 50%;
}
.va-match-num, .va-match-label {
  position: relative;
  z-index: 1;
}
.va-match-num {
  font-size: 22px;
  font-weight: 800;
  color: #1a2a4a;
  line-height: 1;
}
.va-match-label {
  font-size: 11px;
  color: #999;
}

.va-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 16px;
  color: #999;
  font-size: 12px;
  border-top: 1px dashed #e8e8e8;
  margin-top: 8px;
}

.va-bg-tip {
  margin: 8px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  line-height: 1.5;
}

.vl-module {
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px 28px;
}

.vl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vl-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: #303133;
}

.vl-desc {
  margin: 0;
  font-size: 13px;
  color: #909399;
  line-height: 1.5;
  max-width: 640px;
}

.vl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vl-empty {
  text-align: center;
  padding: 48px 16px;
  color: #909399;
  font-size: 14px;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
}

.vl-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafafa;
}

.vl-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8e8e8;
  flex-shrink: 0;
}

.vl-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909399;
  font-size: 13px;
}

.vl-item-body {
  flex: 1;
  min-width: 0;
}

.vl-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vl-item-title {
  margin: 0;
  font-size: 15px;
  color: #303133;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vl-status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #606266;
}

.vl-status-completed { background: #f6ffed; color: #389e0d; }
.vl-status-running,
.vl-status-queued { background: #e6f4ff; color: #1677ff; }
.vl-status-failed { background: #fff2f0; color: #cf1322; }

.vl-item-meta {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #909399;
}

.vl-item-msg {
  margin: 0 0 10px;
  font-size: 13px;
  color: #606266;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vl-actions {
  display: flex;
  gap: 8px;
}

.module-placeholder {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #dcdfe6;
}

.module-placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.module-placeholder h3 {
  font-size: 20px;
  color: #303133;
  margin-bottom: 10px;
}

.module-placeholder p {
  color: #909399;
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .auth-shell,
  .login-container {
    flex-direction: column;
  }
  .auth-brand {
    flex: 0 0 auto;
    max-width: none;
    clip-path: none;
    padding: 36px 24px 28px;
  }
  .auth-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }
  .auth-brand-name {
    font-size: 28px;
  }
  .auth-stage {
    padding: 28px 20px 40px;
  }
  .auth-card, .login-card, .register-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 22px;
  }
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .va-hero {
    flex-direction: column;
    padding: 16px;
  }
  .va-hero-title {
    font-size: 22px;
  }
  .va-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .va-tabs {
    gap: 6px;
  }
  .va-tab {
    padding: 5px 10px;
    font-size: 12px;
  }
  .va-grid-2,
  .va-multi-row,
  .va-audience-row,
  .va-charts-row,
  .va-metrics,
  .va-points,
  .va-lists {
    grid-template-columns: 1fr;
  }
  .va-search {
    flex-direction: column;
  }
  .va-mini-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .va-ext-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .va-dir-score {
    margin-left: 0;
    width: 100%;
  }
  .side-nav {
    width: 160px;
  }
  .top-nav {
    padding: 0 12px;
  }
  .top-nav-menu .nav-item {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ===== 角色导航壳 ===== */
body.role-user [data-role-layout="admin"],
body.role-admin [data-role-layout="user"] {
  display: none !important;
}

/* ===== 管理员平台管理 ===== */
.admin-platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 8px;
}
.admin-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
}
.admin-tab.active {
  color: #1e88e5;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #1e88e5;
}
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 6px;
  font-size: 13px;
  color: #606266;
}
.admin-stats b {
  color: #303133;
  margin-left: 4px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-input,
.admin-select,
.admin-textarea {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
  color: #303133;
}
.admin-input {
  min-width: 140px;
}
.admin-select {
  min-width: 120px;
}
.admin-textarea {
  width: 100%;
  resize: vertical;
}
.admin-table-wrap {
  overflow: auto;
  max-height: 420px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
/* 大量订单时跳过屏外行的布局/绘制，减轻卡顿（不影响功能） */
.admin-table tbody tr.admin-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 44px;
}
.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  white-space: nowrap;
}
.admin-table th {
  background: #fafafa;
  color: #606266;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-row {
  cursor: pointer;
}
.admin-row:hover {
  background: #f5f9ff;
}
.admin-row.selected {
  background: #e8f3ff;
}
.admin-status-ban {
  color: #e53935;
  font-weight: 600;
}
.admin-status-wl {
  color: #1976d2;
  font-weight: 600;
}
.admin-status-sys {
  color: #ef6c00;
  font-weight: 600;
}
.admin-status-local {
  color: #ef6c00;
  font-weight: 600;
}
.admin-online-badge {
  display: inline-block;
  min-width: 2.5em;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.admin-online-badge.is-on {
  color: #1b7a3d;
  background: #e8f7ee;
}
.admin-online-badge.is-off {
  color: #6b7280;
  background: #f3f4f6;
}
.admin-online-n {
  color: #1b7a3d;
}
.admin-empty {
  text-align: center;
  color: #909399;
  padding: 20px !important;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-selected {
  font-size: 12px;
  color: #909399;
  margin-left: 4px;
}
.btn-danger {
  background: #e53935;
  color: #fff;
  border: 1px solid #e53935;
}
.btn-danger:hover {
  background: #c62828;
  color: #fff;
}

/* 控制台浅色区域：提高按钮文字对比度（勿影响顶栏/登录深色场景） */
.content-area .btn,
.admin-modal .btn,
.admin-platform .btn,
.prod-admin .btn,
.mall .btn {
  color: #303133;
  background: #fff;
  border: 1px solid #c0c4cc;
}
.content-area .btn:hover:not(:disabled),
.admin-modal .btn:hover:not(:disabled),
.admin-platform .btn:hover:not(:disabled),
.prod-admin .btn:hover:not(:disabled),
.mall .btn:hover:not(:disabled) {
  color: #1a73e8;
  border-color: #1a73e8;
  background: #f5f9ff;
}
.content-area .btn-primary,
.admin-modal .btn-primary,
.admin-platform .btn-primary,
.prod-admin .btn-primary,
.mall .btn-primary,
.content-area .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger):not(.mall-buy),
.admin-modal .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger),
.admin-platform .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger),
.prod-admin .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger) {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.content-area .btn-primary:hover:not(:disabled),
.admin-modal .btn-primary:hover:not(:disabled),
.admin-platform .btn-primary:hover:not(:disabled),
.prod-admin .btn-primary:hover:not(:disabled),
.mall .btn-primary:hover:not(:disabled),
.content-area .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger):not(.mall-buy):hover:not(:disabled),
.admin-modal .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger):hover:not(:disabled),
.admin-platform .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger):hover:not(:disabled),
.prod-admin .btn:not(.btn-outline):not(.btn-primary):not(.btn-danger):hover:not(:disabled) {
  background: #1557b0;
  color: #fff;
  border-color: #1557b0;
}
.content-area .btn-outline,
.admin-modal .btn-outline,
.admin-platform .btn-outline,
.prod-admin .btn-outline,
.mall .btn-outline {
  background: #fff;
  color: #303133;
  border-color: #c0c4cc;
}
.content-area .btn-outline:hover:not(:disabled),
.admin-modal .btn-outline:hover:not(:disabled),
.admin-platform .btn-outline:hover:not(:disabled),
.prod-admin .btn-outline:hover:not(:disabled),
.mall .btn-outline:hover:not(:disabled) {
  color: #1a73e8;
  border-color: #1a73e8;
  background: #f5f9ff;
}
.content-area .btn-danger,
.admin-modal .btn-danger,
.admin-platform .btn-danger,
.prod-admin .btn-danger {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}
.content-area .btn-danger:hover:not(:disabled),
.admin-modal .btn-danger:hover:not(:disabled),
.admin-platform .btn-danger:hover:not(:disabled),
.prod-admin .btn-danger:hover:not(:disabled) {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}
.content-area .btn:disabled,
.admin-modal .btn:disabled,
.admin-platform .btn:disabled,
.prod-admin .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #606266;
  background: #f5f7fa;
  border-color: #e4e7ed;
}
.admin-tab {
  color: #303133;
}
.admin-tab.active {
  color: #1a73e8;
}
.admin-subpanel {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}
.admin-subpanel-title {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}
.admin-detail {
  margin: 0;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  font-size: 12px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.admin-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-mask[hidden] {
  display: none !important;
}
.admin-modal {
  width: min(640px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.admin-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #ebeef5;
  font-weight: 600;
}
.admin-modal-x {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #909399;
}
.admin-modal-bd {
  padding: 16px;
}
.admin-modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
}
.admin-form {
  display: grid;
  gap: 10px;
}
.admin-form-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: center;
}
.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: stretch;
  min-height: 520px;
}
.admin-users-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.admin-users-table-wrap {
  max-height: 420px;
  overflow: auto;
}
.admin-user-logs-pane {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: calc(100vh - 220px);
}
.admin-user-logs-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.admin-user-logs-meta {
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
  line-height: 1.4;
}
.admin-user-logs-body {
  flex: 1;
  max-height: none;
  overflow: auto;
}
.admin-log-table {
  font-size: 12px;
  margin: 0;
}
.admin-log-table th,
.admin-log-table td {
  padding: 6px 8px;
  vertical-align: top;
}
.admin-log-time {
  color: #909399;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-log-action {
  color: #1e88e5;
  font-weight: 600;
}
.admin-log-code {
  margin-top: 2px;
  font-size: 11px;
  color: #c0c4cc;
}
.admin-log-detail {
  color: #606266;
  word-break: break-word;
}
.admin-log-ip {
  color: #909399;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
@media (max-width: 1100px) {
  .admin-users-layout {
    grid-template-columns: 1fr;
  }
  .admin-user-logs-pane {
    max-height: 480px;
    min-height: 320px;
  }
}

.admin-logs {
  max-height: 420px;
  overflow: auto;
}
.admin-logs-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-log-group {
  margin-bottom: 12px;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  overflow: hidden;
}
.admin-log-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f7f9fc;
  font-weight: 600;
  font-size: 13px;
}
.admin-log-item {
  padding: 6px 10px;
  font-size: 12px;
  border-top: 1px solid #f0f2f5;
  color: #606266;
}
.admin-log-item .t {
  color: #909399;
  margin-right: 6px;
}
.admin-log-item .a {
  color: #1e88e5;
  margin-right: 6px;
}
.admin-toast {
  position: fixed;
  top: 80px;
  right: 30px;
  background: #303133;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 10001;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== 流量商城 ===== */
.mall {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mall-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mall-title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-right: 8px;
}
.mall-hint {
  font-size: 13px;
  color: #909399;
}
.mall-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mall-section-hd {
  margin-bottom: 12px;
}
.mall-section-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 650;
  color: #303133;
}
.mall-section-desc {
  margin: 0;
  font-size: 12px;
  color: #909399;
}
.mall-section-empty {
  padding: 28px 16px;
  text-align: center;
  color: #c0c4cc;
  font-size: 13px;
  background: #fafbfc;
  border: 1px dashed #e4e7ed;
  border-radius: 10px;
}
.mall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.mall-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mall-card:hover {
  border-color: #90caf9;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.08);
}
.mall-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.mall-card-id {
  font-size: 12px;
  color: #909399;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.mall-kind {
  color: #1d6fd8;
  font-weight: 600;
}
.my-ord-video {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-ord-video a {
  color: #1d6fd8;
}
.mall-card-desc {
  font-size: 13px;
  color: #606266;
  line-height: 1.5;
  min-height: 40px;
  flex: 1;
}
.mall-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.mall-old {
  font-size: 12px;
  color: #909399;
  text-decoration: line-through;
}
.mall-now {
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
}
.mall-tag {
  font-size: 12px;
  color: #1e88e5;
  background: #e3f2fd;
  padding: 2px 6px;
  border-radius: 4px;
}
.mall-card-meta {
  font-size: 12px;
  color: #909399;
}
.mall-buy {
  align-self: flex-start;
  background: #1e88e5 !important;
  color: #fff !important;
  border: none !important;
}
.mall-buy:hover:not(:disabled) {
  background: #1565c0 !important;
  color: #fff !important;
}
.ord-acts {
  white-space: nowrap;
}
.ord-acts .btn {
  margin-right: 4px;
}
.ord-reject-tip {
  margin-top: 6px;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.4;
  color: #e6a23c;
  white-space: normal;
  word-break: break-word;
}
.ord-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.ord-tag-ok {
  background: #f0f9eb;
  color: #67c23a;
}
.ord-tag-warn {
  background: #fdf6ec;
  color: #e6a23c;
}
.order-admin .admin-toolbar {
  align-items: center;
}
.my-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.my-ord-pending {
  color: #e6a23c;
  font-weight: 600;
}
.my-ord-done {
  color: #67c23a;
  font-weight: 600;
}
.my-ord-ex-ok {
  color: #409eff;
}
.my-ord-ex {
  color: #e6a23c;
}
.my-ord-acts {
  white-space: nowrap;
}
.my-ord-acts .btn {
  margin: 2px 4px 2px 0;
}
.my-ord-ask.is-disabled,
.my-ord-ask:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ord-result-modal {
  max-width: 520px;
  width: min(92vw, 520px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.ord-result-bd {
  padding: 16px 18px;
  overflow: auto;
  flex: 1;
}
.ord-result-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #ecf5ff;
  color: #409eff;
  font-weight: 700;
  font-size: 14px;
}
.ord-result-sec {
  margin-bottom: 14px;
}
.ord-result-sec-t {
  font-size: 13px;
  font-weight: 700;
  color: #303133;
  margin-bottom: 8px;
}
.ord-result-sec-b {
  font-size: 13px;
  line-height: 1.55;
  color: #606266;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #ebeef5;
  border-radius: 6px;
}
.ord-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  overflow: hidden;
}
.ord-result-list li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #ebeef5;
  background: #fff;
}
.ord-result-list li:last-child {
  border-bottom: none;
}
.ord-result-list li span {
  flex: 0 0 88px;
  color: #909399;
}
.ord-result-list li b {
  flex: 1;
  font-weight: 600;
  color: #303133;
  word-break: break-word;
}

/* 数据追踪 */
.data-track {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
  align-items: start;
  min-height: 420px;
}
.data-track-list-pane,
.data-track-analysis-pane {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 10px;
  padding: 14px 16px 16px;
  min-height: 400px;
}
.data-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}
.data-track-item {
  text-align: left;
  width: 100%;
  border: 1px solid #ebeef5;
  background: #fafbfc;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.data-track-item:hover {
  border-color: #90caf9;
}
.data-track-item.is-active {
  border-color: #1e88e5;
  background: #f0f7ff;
}
.dt-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.dt-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  line-height: 1.35;
}
.dt-item-meta {
  font-size: 12px;
  color: #909399;
  line-height: 1.4;
}
.dt-mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.dt-badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecf5ff;
  color: #1d6fd8;
  font-weight: 600;
}
.dt-status-completed {
  background: #f0f9eb;
  color: #67c23a;
}
.dt-status-failed {
  background: #fef0f0;
  color: #f56c6c;
}
.dt-status-running {
  background: #ecf5ff;
  color: #1d6fd8;
}
.data-track-analysis {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.data-track-empty,
.data-track-empty-sm {
  color: #c0c4cc;
  text-align: center;
  padding: 40px 12px;
  font-size: 14px;
}
.data-track-empty-sm {
  padding: 16px;
  font-size: 13px;
}
.dt-section-hd {
  font-size: 15px;
  font-weight: 650;
  color: #303133;
  margin-bottom: 10px;
}
.dt-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  color: #606266;
}
.dt-overview .dt-full {
  grid-column: 1 / -1;
  word-break: break-all;
}
.dt-k {
  color: #909399;
  margin-right: 6px;
}
.dt-warn {
  color: #e6a23c;
}
.dt-metrics,
.dt-delta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dt-metric,
.dt-delta-cell {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px 12px;
}
.dt-metric-label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}
.dt-metric-val {
  font-size: 18px;
  font-weight: 650;
  color: #303133;
  font-variant-numeric: tabular-nums;
}
.dt-rate {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #1d6fd8;
}
.dt-verdict {
  font-size: 14px;
  font-weight: 600;
  color: #1d6fd8;
  margin-bottom: 10px;
}
.dt-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #606266;
  background: #fafbfc;
  border-left: 3px solid #90caf9;
  padding: 10px 12px;
}
.dt-submeta {
  margin-top: 8px;
  font-size: 12px;
  color: #909399;
}
.dt-pair {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.dt-pair-hd {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}
.dt-snap-table {
  font-size: 12px;
}
@media (max-width: 900px) {
  .data-track {
    grid-template-columns: 1fr;
  }
  .dt-metrics,
  .dt-delta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-track-list,
  .data-track-analysis {
    max-height: none;
  }
}

/* ===== 售后聊天 ===== */
.chat-admin {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  min-height: 520px;
  height: calc(100vh - 180px);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.chat-admin-list {
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  background: #fafbfc;
  min-height: 0;
}
.chat-admin-list-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e8e8e8;
  font-weight: 600;
  color: #1a2a4a;
}
.chat-admin-list-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.chat-thread-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  padding: 10px 12px;
  cursor: default;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}
.chat-thread-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.chat-thread-item:hover { background: #f3f6fb; }
.chat-thread-item.is-active { background: #e8f0fe; }
.chat-thread-remove {
  flex-shrink: 0;
  padding: 2px 8px !important;
  font-size: 12px !important;
  margin-top: 2px;
  color: #909399 !important;
  border-color: #dcdfe6 !important;
}
.chat-thread-remove:hover {
  color: #f56c6c !important;
  border-color: #f56c6c !important;
}
.chat-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.chat-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f56c6c;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.chat-thread-meta,
.chat-thread-preview,
.chat-thread-time {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.chat-thread-preview {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555;
}
.chat-admin-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}
.chat-empty,
.chat-empty-panel {
  padding: 28px 16px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}
.chat-empty-panel {
  margin: auto;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.chat-panel-hd {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}
.chat-panel-sub {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #888;
  font-weight: 400;
}
.chat-panel-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f7f8fa;
  min-height: 220px;
}
.chat-bubble {
  max-width: 78%;
  margin-bottom: 12px;
  clear: both;
}
.chat-bubble.is-mine {
  float: right;
  text-align: right;
}
.chat-bubble.is-peer { float: left; }
.chat-bubble.is-system {
  float: none;
  margin: 8px auto 16px;
  max-width: 90%;
  text-align: center;
}
.chat-bubble-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.chat-bubble-body {
  display: inline-block;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8e8e8;
  font-size: 14px;
  line-height: 1.5;
  color: #303133;
  word-break: break-word;
}
.chat-bubble.is-mine .chat-bubble-body {
  background: #2f6fed;
  border-color: #2f6fed;
  color: #fff;
}
.chat-bubble.is-system .chat-bubble-body {
  background: #f0f2f5;
  border: none;
  color: #888;
  font-size: 12px;
}
.chat-panel-compose {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
  align-items: flex-end;
}
.chat-panel-compose textarea {
  flex: 1;
  resize: none;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  min-height: 44px;
}
.chat-panel-compose textarea:focus {
  outline: none;
  border-color: #2f6fed;
}
.chat-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat-modal {
  width: min(560px, 96vw);
  height: min(640px, 88vh);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}
.chat-modal .chat-panel-msgs { flex: 1; }
@media (max-width: 900px) {
  .chat-admin {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-admin-list { max-height: 240px; }
}
/* ===== 通知铃铛 / 管理新页 / 空状态 ===== */
.notify-dd-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  border-bottom: 1px solid #ebeef5;
}
.notify-tab {
  border: none;
  background: transparent;
  color: #909399;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.notify-tab.active, .notify-tab:hover {
  color: #1677ff;
  background: #f0f7ff;
}
.notify-type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #1677ff;
  background: #e8f3ff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
}
.notify-bell-btn {
  position: relative;
  border: 1px solid #e4e7ed;
  background: #fff;
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.notify-bell-btn:hover { border-color: #c0c4cc; }
.notify-bell-icon { font-size: 16px; line-height: 1; }
.notify-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f56c6c; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
}
.notify-dropdown {
  position: absolute; right: 0; top: 42px; width: 340px;
  background: #fff; border: 1px solid #ebeef5; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 10020;
  overflow: hidden;
}
.notify-dd-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #f0f2f5; font-weight: 600; font-size: 13px;
}
.notify-dd-list { max-height: 360px; overflow: auto; }
.notify-empty { padding: 24px; text-align: center; color: #909399; font-size: 13px; }
.notify-item {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f5f7fa;
  background: #fff; padding: 10px 12px; cursor: pointer;
}
.notify-item:hover { background: #f5f7fa; }
.notify-item.is-unread { background: #f0f7ff; }
.notify-item-title { font-size: 13px; font-weight: 600; color: #303133; }
.notify-item-body { font-size: 12px; color: #606266; margin-top: 4px; line-height: 1.5; }
.notify-item-time { font-size: 11px; color: #909399; margin-top: 4px; }

.btn-link {
  border: 0; background: none; color: #1e88e5; cursor: pointer; font-size: 13px; padding: 0;
}
.btn-link:hover { text-decoration: underline; }
.auth-forgot { display: block; width: 100%; text-align: center; margin-top: 12px; }
.auth-code-row { display: flex; gap: 10px; align-items: flex-end; }
.auth-code-field { flex: 1; }
.auth-code-row .btn { white-space: nowrap; height: 40px; }

.empty-state {
  text-align: center; padding: 56px 24px; color: #606266;
}
.empty-state-icon { font-size: 36px; color: #c0c4cc; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; color: #303133; font-size: 18px; }
.empty-state p { margin: 0 0 16px; font-size: 14px; }

.video-guide-page { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.vg-block {
  background: #fff; border: 1px solid #ebeef5; border-radius: 10px; padding: 16px 18px;
}
.vg-block h3 { margin: 0 0 8px; font-size: 16px; color: #303133; }
.vg-block p, .vg-block li { font-size: 14px; color: #606266; line-height: 1.7; }
.vg-block ol, .vg-block ul { margin: 0; padding-left: 1.2em; }

.ao-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.ao-card {
  border: 1px solid #ebeef5; border-radius: 10px; background: #fff;
  padding: 16px; text-align: left; cursor: pointer;
  border-top: 3px solid #2f6fed;
}
.ao-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ao-tone-b { border-top-color: #e6a23c; }
.ao-tone-c { border-top-color: #0f9d8a; }
.ao-tone-d { border-top-color: #5b6cff; }
.ao-tone-e { border-top-color: #1f8fff; }
.ao-tone-f { border-top-color: #2bb673; }
.ao-tone-g { border-top-color: #4c6fff; }
.ao-tone-h { border-top-color: #d97706; }
.ao-label { font-size: 12px; color: #909399; }
.ao-value { font-size: 22px; font-weight: 700; color: #303133; margin-top: 6px; }
.ao-foot { font-size: 11px; color: #1e88e5; margin-top: 8px; }

.pay-cfg-form { max-width: 720px; }
.pay-cfg-sec { margin: 18px 0 10px; font-size: 15px; color: #303133; }
.pay-ready { color: #2bb673; font-size: 12px; font-weight: 600; }
.pay-not-ready { color: #e6a23c; font-size: 12px; font-weight: 600; }
.admin-form-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.admin-form-row > label:first-child { width: 96px; flex-shrink: 0; font-size: 13px; color: #606266; line-height: 32px; }
.admin-textarea { width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: 6px; font-family: inherit; }
.admin-modal-lg { max-width: 640px; width: 92vw; }
.ann-roles label { margin-right: 10px; font-size: 13px; }

.ops-grid { display: flex; flex-direction: column; gap: 12px; }
.ops-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; width: fit-content;
  background: #f5f7fa; color: #606266;
}
.ops-pill.ok { background: #f0f9eb; color: #67c23a; }
.ops-pill.bad { background: #fef0f0; color: #f56c6c; }
.ops-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ops-cells { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ops-cell { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 12px; }
.ops-k { font-size: 12px; color: #909399; }
.ops-v { font-size: 16px; font-weight: 600; color: #303133; margin-top: 4px; }

.rbac-perms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; max-width: 720px; }
.rbac-item { font-size: 13px; color: #303133; padding: 8px 10px; border: 1px solid #ebeef5; border-radius: 8px; background: #fff; }
.rbac-item code { color: #909399; font-size: 11px; margin-left: 4px; }

.settings-form-inline { display: flex; gap: 10px; align-items: center; }
.dt-chart { width: 100%; background: #fff; border: 1px solid #ebeef5; border-radius: 8px; }

.recharge-toast-ok { background: #2bb673 !important; }
.recharge-toast-err { background: #f56c6c !important; }

@media (max-width: 1100px) {
  .ao-grid, .ops-cells, .rbac-perms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
