/* ==========================================================================
   锐沃云 revo-cloud 控制台样式
   设计参考：腾讯云官网 / 控制台（主色 #0052d9，卡片、表格、配额进度条）
   无外部依赖，纯 CSS，支持浅色 / 深色主题与响应式
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #0052d9;
  --brand-hover: #0046c0;
  --brand-active: #003da8;
  --brand-soft: #e8f1ff;
  --brand-soft-2: #f2f7ff;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf1f7;
  --border: #e5eaf2;
  --border-strong: #d3dbe8;

  --text: #1a2233;
  --text-2: #4d5b70;
  --text-3: #8590a2;

  --success: #00a870;
  --success-text: #007a52;
  --success-soft: #e6f7f1;
  --warning: #ed7b2f;
  --warning-text: #9a5b16;
  --warning-soft: #fff3e8;
  --danger: #e34d59;
  --danger-text: #b8323e;
  --danger-soft: #fdecee;

  --chip-cloud-bg: #e8f1ff;
  --chip-cloud-fg: #0052d9;
  --chip-dynamic-bg: #f0eaff;
  --chip-dynamic-fg: #6137c4;
  --chip-device-bg: #e6f7f1;
  --chip-device-fg: #007a59;
  --chip-upload-bg: #fff3e6;
  --chip-upload-fg: #9a5b16;

  --shadow-xs: 0 1px 2px rgba(16, 36, 66, 0.04);
  --shadow-sm: 0 2px 10px rgba(16, 36, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 36, 66, 0.1);
  --shadow-lg: 0 18px 48px rgba(9, 26, 54, 0.18);
  --focus-ring: 0 0 0 3px rgba(0, 82, 217, 0.16);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --sidebar-w: 240px;
  --topbar-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo,
    monospace;
}

[data-theme="dark"] {
  --bg: #0d1320;
  --surface: #151e2e;
  --surface-2: #1a2537;
  --surface-3: #223047;
  --border: #26344a;
  --border-strong: #34455f;

  --text: #e8edf6;
  --text-2: #b0bdd1;
  --text-3: #7f8ea6;

  --brand-soft: #122a4c;
  --brand-soft-2: #12233d;

  --success-text: #61ddb4;
  --success-soft: #102e26;
  --warning-text: #ffc48b;
  --warning-soft: #33240f;
  --danger-text: #ffb3ba;
  --danger-soft: #361b20;

  --chip-cloud-bg: #142a4b;
  --chip-cloud-fg: #7fb2ff;
  --chip-dynamic-bg: #2a2244;
  --chip-dynamic-fg: #c0a8ff;
  --chip-device-bg: #122e26;
  --chip-device-fg: #6fe3bb;
  --chip-upload-bg: #332610;
  --chip-upload-fg: #ffc07a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.42);
  --focus-ring: 0 0 0 3px rgba(88, 145, 255, 0.25);
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button {
  font-family: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(0, 82, 217, 0.18);
}

:focus-visible {
  outline: 2px solid rgba(0, 82, 217, 0.55);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-logo {
  fill: currentColor;
  stroke: none;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--text-3);
}

.nowrap {
  white-space: nowrap;
}

.text-right {
  text-align: right;
}

.spacer {
  flex: 1;
}

.divider-v {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(130, 145, 168, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 145, 168, 0.55);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 82, 217, 0.22);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-primary:active {
  background: var(--brand-active);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(0.95);
}

.btn-danger-ghost {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.btn-danger-ghost:hover {
  background: rgba(227, 77, 89, 0.16);
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-sm .icon {
  width: 14px;
  height: 14px;
}

.btn-lg {
  height: 44px;
  font-size: 15px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.link-btn .icon {
  width: 14px;
  height: 14px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--text-3);
  pointer-events: none;
}

.field-icon .icon {
  width: 17px;
  height: 17px;
}

.field-control .input {
  padding-left: 38px;
}

.field-control.password .input {
  padding-right: 44px;
}

.field-action {
  position: absolute;
  right: 5px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
}

.field-action:hover {
  color: var(--text-2);
  background: var(--surface-2);
}

.field-action .icon {
  width: 17px;
  height: 17px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #b9c4d6;
}

[data-theme="dark"] .input:hover,
[data-theme="dark"] .select:hover,
[data-theme="dark"] .textarea:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:disabled,
.select:disabled {
  background: var(--surface-2);
  color: var(--text-3);
  cursor: not-allowed;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238590a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.textarea {
  height: auto;
  min-height: 88px;
  padding: 9px 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-hint {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
}

.form-hint code {
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger-text);
}

.form-section {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-section-title .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .select {
  width: 92px;
  flex: none;
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: var(--surface-2);
  font-size: 13px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.check-box {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.check input:checked + .check-box {
  background: var(--brand);
  border-color: var(--brand);
}

.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check input:focus-visible + .check-box {
  box-shadow: var(--focus-ring);
}

/* ---------- 提示 ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.alert-icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: none;
}

.alert-content {
  min-width: 0;
  word-break: break-word;
}

.alert-danger {
  color: var(--danger-text);
  background: var(--danger-soft);
  border-color: rgba(227, 77, 89, 0.2);
}

.alert-warning {
  color: var(--warning-text);
  background: var(--warning-soft);
  border-color: rgba(237, 123, 47, 0.22);
}

.alert-info {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(0, 82, 217, 0.16);
}

/* ---------- 登录页 ---------- */
.login-view {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.login-aside {
  position: relative;
  display: flex;
  width: 52%;
  max-width: 780px;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
      120% 90% at 8% 0%,
      rgba(52, 130, 255, 0.4) 0%,
      rgba(0, 82, 217, 0) 58%
    ),
    radial-gradient(
      90% 70% at 95% 100%,
      rgba(0, 168, 255, 0.34) 0%,
      rgba(0, 82, 217, 0) 60%
    ),
    linear-gradient(152deg, #03142e 0%, #062a63 46%, #0052d9 100%);
}

.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 40% 35%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(
    ellipse at 40% 35%,
    #000 10%,
    transparent 74%
  );
  pointer-events: none;
}

.login-aside::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.02),
    0 0 0 180px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.login-aside-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 40px clamp(32px, 5vw, 64px) 30px;
}

.login-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #3b86ff 0%, #0052d9 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 40, 120, 0.28);
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
}

.brand-mark-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-mark-lg .icon {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 1px;
  color: var(--text);
}

.brand-text span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--text-3);
}

.login-aside .brand-text strong {
  color: #fff;
}

.login-aside .brand-text span {
  color: rgba(255, 255, 255, 0.55);
}

.login-hero {
  margin-top: clamp(44px, 8vh, 86px);
  max-width: 520px;
}

.login-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff 30%, #c9dcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-hero p {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.login-points {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.login-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.point-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9px;
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-icon .icon {
  width: 16px;
  height: 16px;
}

.login-points strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13.5px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.94);
}

.login-points em {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.login-visual {
  position: relative;
  height: 230px;
  margin-top: auto;
  padding-top: 34px;
  flex: none;
}

.visual-glow {
  position: absolute;
  left: 12%;
  top: 8%;
  width: 300px;
  height: 150px;
  border-radius: 50%;
  background: rgba(63, 143, 255, 0.35);
  filter: blur(56px);
  pointer-events: none;
}

.glass-card {
  position: absolute;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.045)
  );
  box-shadow: 0 18px 40px rgba(0, 16, 48, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.glass-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #d9e9ff;
  background: rgba(255, 255, 255, 0.12);
}

.glass-ok {
  color: #86f0cd;
}

.glass-value {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: #fff;
}

.glass-value em {
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.glass-bar {
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.glass-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #86b7ff, #ffffff);
}

.glass-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.46);
}

.glass-quota {
  left: 0;
  top: 0;
  width: 316px;
  transform: rotate(-1.4deg);
  animation: floatCard 9s ease-in-out infinite;
}

.glass-pools {
  right: 0;
  top: 42px;
  width: 236px;
  animation: floatCard 11s ease-in-out 0.6s infinite reverse;
}

.glass-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
}

.glass-row:last-child {
  border-bottom: none;
}

.glass-row span:last-child {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
}

.glass-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #6ef0c4;
  box-shadow: 0 0 0 3px rgba(110, 240, 196, 0.14);
}

.glass-sync {
  left: 42px;
  bottom: -4px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 272px;
  padding: 11px 14px;
  animation: floatCard 8s ease-in-out 0.3s infinite;
}

.glass-sync-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  color: #bcd8ff;
  background: rgba(255, 255, 255, 0.1);
}

.glass-sync-icon .icon {
  width: 16px;
  height: 16px;
}

.glass-sync strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
}

.glass-sync span:not(.glass-sync-icon):not(.glass-pulse) {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.46);
}

.glass-pulse {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: #86f0cd;
  box-shadow: 0 0 0 0 rgba(134, 240, 205, 0.45);
  animation: pulse 1.8s infinite;
}

.login-aside-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 26px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

.login-aside-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.login-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 48px 32px;
  background: var(--surface);
}

.login-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    560px 380px at 100% 0%,
    var(--brand-soft-2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.login-main-inner {
  position: relative;
  width: 100%;
  max-width: 404px;
}

.login-card-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: var(--text);
}

.login-card-head p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--text-3);
}

.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-row-hint {
  font-size: 12px;
  color: var(--text-3);
}

.login-form .alert {
  margin-top: -2px;
}

#login-notice {
  margin-top: 18px;
}

.login-form .btn-lg {
  margin-top: 2px;
}

.login-service-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.login-service-line code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.login-service-sep {
  color: var(--border-strong);
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(0, 168, 112, 0.14);
}

.login-legal {
  margin-top: 22px;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-3);
}

.login-aside-foot-mobile {
  display: none;
  justify-content: center;
  padding-top: 24px;
  color: var(--text-3);
}

/* ---------- 应用布局 ---------- */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 0 12px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar-brand {
  height: var(--topbar-h);
  flex: none;
  padding: 0 8px;
}

.sidebar-close {
  display: none;
  margin-left: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
  padding: 12px 0 18px;
  overflow-y: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-label {
  padding: 0 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-3);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-item .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: color 0.16s ease;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-item.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
}

.nav-item.active .icon {
  color: var(--brand);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.nav-badge {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  color: var(--warning-text);
  background: var(--warning-soft);
}

.sidebar-help {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 4px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.sidebar-help-icon {
  color: var(--brand);
  flex: none;
  margin-top: 1px;
}

.sidebar-help-icon .icon {
  width: 16px;
  height: 16px;
}

.sidebar-help strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-help code {
  font-size: 10.5px;
  word-break: break-all;
  color: var(--brand);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
}

.sidebar-version {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 10px;
}

.sidebar-backdrop {
  display: none;
}

.main-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-w);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-menu {
  display: none;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--text-3);
}

.topbar-breadcrumb strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-sep {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-env {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 10px;
  margin-right: 4px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--success-text);
  background: var(--success-soft);
}

.topbar-env.is-offline {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.env-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(0, 168, 112, 0.14);
}

.topbar-env.is-offline .env-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(227, 77, 89, 0.14);
}

.icon-theme-dark {
  display: none;
}

[data-theme="light"] .icon-theme-light {
  display: block;
}

[data-theme="dark"] .icon-theme-light {
  display: none;
}

[data-theme="dark"] .icon-theme-dark {
  display: block;
}

.user-menu {
  position: relative;
  margin-left: 5px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 7px 3px 3px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.user-chip:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3b86ff, #0052d9);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.avatar-lg {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.user-chip-text {
  display: flex;
  flex-direction: column;
  max-width: 132px;
  line-height: 1.25;
  text-align: left;
}

.user-chip-text strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  overflow: hidden;
  font-size: 11px;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 262px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: dropIn 0.16s ease;
}

.dropdown-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.dropdown-head strong {
  display: block;
  max-width: 180px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-head span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.dropdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-3);
}

.dropdown-meta code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
}

.dropdown-sep {
  height: 1px;
  margin: 6px 0;
  background: var(--border);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dropdown-item .icon {
  width: 16px;
  height: 16px;
}

.dropdown-danger:hover {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* ---------- 页面标题 ---------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--text);
}

.page-sub {
  max-width: 760px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-actions .icon {
  width: 15px;
  height: 15px;
}

/* ---------- 卡片 ---------- */
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
  flex-wrap: wrap;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-title .icon {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

.card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.card-body {
  padding: 18px 20px 20px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.card-foot .link-btn {
  font-size: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 概览 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.stat-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
}

.stat-icon .icon {
  width: 16px;
  height: 16px;
}

.stat-icon.tone-success {
  color: var(--success-text);
  background: var(--success-soft);
}

.stat-icon.tone-warning {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.stat-icon.tone-danger {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-value.is-muted {
  color: var(--text-3);
}

.stat-unit {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

.stat-meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font-size: 12px;
  cursor: pointer;
}

.stat-link:hover {
  text-decoration: underline;
}

.stat-link .icon {
  width: 13px;
  height: 13px;
}

.stat-split-bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.stat-split-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7bff, #0052d9);
}

.overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.overview-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}

.quota-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.quota-used {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.quota-used small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

.quota-percent {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
}

.quota-percent.tone-warning {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.quota-percent.tone-danger {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7bff, #0052d9);
  transition: width 0.5s ease;
}

.progress-fill.tone-warning {
  background: linear-gradient(90deg, #ffbb69, #ed7b2f);
}

.progress-fill.tone-danger {
  background: linear-gradient(90deg, #ff8f98, #e34d59);
}

.progress-fill.tone-success {
  background: linear-gradient(90deg, #38d39f, #00a870);
}

.progress-lg {
  height: 10px;
}

.progress-sm {
  height: 6px;
}

.quota-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.quota-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.breakdown-item {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  min-width: 0;
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
}

.breakdown-value {
  margin-top: 2px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.legend-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
}

.legend-dot.success {
  background: var(--success);
}

.legend-dot.warning {
  background: var(--warning);
}

.legend-dot.neutral {
  background: var(--border-strong);
}

.mini-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12.5px;
}

.mini-row:last-child {
  border-bottom: none;
}

.mini-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
}

.mini-dot.is-muted {
  background: var(--border-strong);
}

.mini-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meta {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.quick-action:hover {
  border-color: var(--brand);
  background: var(--brand-soft-2);
}

.quick-action .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.quick-action span {
  flex: 1;
}

.quick-action .icon-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

/* ---------- 表格 ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table thead th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th:first-child {
  padding-left: 20px;
}

.data-table thead th:last-child {
  padding-right: 20px;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tbody td:first-child {
  padding-left: 20px;
}

.data-table tbody td:last-child {
  padding-right: 20px;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.data-table .cell-strong {
  color: var(--text);
  font-weight: 500;
}

.data-table .cell-muted {
  color: var(--text-3);
}

.data-table .cell-mono {
  font-family: var(--mono);
  font-size: 12px;
}

.data-table .cell-right {
  text-align: right;
}

.data-table.compact tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.table-card .card-body {
  padding: 0;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.toolbar-spacer {
  flex: 1;
  min-width: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.select-sm {
  width: auto;
  min-width: 168px;
  height: 34px;
  padding-left: 10px;
  font-size: 13px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}

.search-box .input {
  width: 210px;
  height: 34px;
  padding-left: 32px;
  font-size: 13px;
}

.table-count {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.crumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  min-width: 0;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 240px;
  padding: 2px 5px;
  overflow: hidden;
  border: none;
  border-radius: 5px;
  background: none;
  color: var(--text-3);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.crumb:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.crumb.is-current {
  color: var(--text);
  font-weight: 500;
}

.crumb .icon {
  width: 14px;
  height: 14px;
}

.crumb-bar .crumb-sep {
  color: var(--text-3);
}

.crumb-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}

.crumb-up:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.crumb-up .icon {
  width: 13px;
  height: 13px;
}

/* ---------- 文件表格 ---------- */
.file-table {
  min-width: 820px;
}

.file-table thead th:first-child {
  width: 40%;
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
}

.file-ico .icon {
  width: 17px;
  height: 17px;
}

.file-ico.is-dir {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.file-name-wrap {
  min-width: 0;
}

.file-link {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.file-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-link:hover {
  color: var(--brand);
}

.file-link.is-static {
  cursor: default;
  color: var(--text);
  font-weight: 500;
}

.file-sub {
  display: block;
  max-width: 380px;
  margin-top: 1px;
  overflow: hidden;
  font-size: 11px;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-ext {
  flex: none;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  min-width: 28px;
  padding: 0 7px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.row-action .icon {
  width: 14px;
  height: 14px;
}

.row-action:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.row-action.danger:hover {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.row-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.row-action:disabled:hover {
  color: var(--text-2);
  background: transparent;
}

/* ---------- 徽标 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  color: var(--success-text);
  background: var(--success-soft);
}

.badge-warning {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.badge-danger {
  color: var(--danger-text);
  background: var(--danger-soft);
}

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

.badge-neutral {
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.badge-local {
  color: var(--warning-text);
  background: var(--warning-soft);
}

.cluster-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cluster-chip .icon {
  width: 12px;
  height: 12px;
}

.cluster-chip-cloud {
  color: var(--chip-cloud-fg);
  background: var(--chip-cloud-bg);
  border-color: transparent;
}

.cluster-chip-dynamic {
  color: var(--chip-dynamic-fg);
  background: var(--chip-dynamic-bg);
  border-color: transparent;
}

.cluster-chip-device {
  color: var(--chip-device-fg);
  background: var(--chip-device-bg);
  border-color: transparent;
}

.cluster-chip-upload {
  color: var(--chip-upload-fg);
  background: var(--chip-upload-bg);
  border-color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10.5px;
  white-space: nowrap;
}

/* ---------- 空状态 / 提示块 / 骨架屏 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 46px 24px;
  text-align: center;
  color: var(--text-3);
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 16px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.empty-icon .icon {
  width: 24px;
  height: 24px;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.empty-desc {
  max-width: 440px;
  font-size: 12.5px;
  line-height: 1.7;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.state-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 20px;
  padding: 12px 14px;
  border: 1px solid rgba(237, 123, 47, 0.22);
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 12.5px;
  line-height: 1.65;
}

.state-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: none;
}

.state-note-content {
  min-width: 0;
  word-break: break-word;
}

.state-note-content strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
  color: inherit;
}

.state-note .btn {
  margin-left: auto;
  flex: none;
}

.state-error {
  border-color: rgba(227, 77, 89, 0.22);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.state-info {
  border-color: rgba(0, 82, 217, 0.18);
  background: var(--brand-soft);
  color: var(--brand);
}

.permission-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 64px 24px;
  text-align: center;
}

.permission-state .empty-icon {
  color: var(--warning-text);
  background: var(--warning-soft);
  border-color: transparent;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-3) 25%,
    var(--surface-2) 37%,
    var(--surface-3) 63%
  );
  background-size: 400% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-text {
  height: 12px;
  margin: 8px 0;
}

.skeleton-value {
  width: 56%;
  height: 28px;
  margin-top: 12px;
}

.skeleton-files {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.skeleton-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skeleton-file-row .skeleton:first-child {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

.skeleton-file-row .skeleton-file-name {
  width: 38%;
  height: 12px;
}

.skeleton-file-row .skeleton-file-meta {
  width: 14%;
  height: 12px;
  margin-left: auto;
}

/* ---------- 存储池 ---------- */
.pool-bucket {
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

.pool-meta-line {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  word-break: break-all;
}

.pool-usage-cell {
  min-width: 190px;
}

.pool-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--text-2);
}

.pool-usage-head span:last-child {
  color: var(--text-3);
  font-size: 11px;
}

.pool-usage-cell .progress {
  height: 6px;
}

.pool-usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
}

.pool-status {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.pool-endpoint {
  max-width: 220px;
  overflow: hidden;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

.capacity-text {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-2);
}

.capacity-text span:last-child {
  color: var(--text-3);
}

/* ---------- 配额页 ---------- */
.quota-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.quota-summary-body {
  padding: 20px;
}

.quota-big-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 2px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.quota-big-value small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

.quota-summary-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.quota-summary-body .progress {
  height: 10px;
  margin-top: 16px;
}

.quota-composition {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.composition-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 12px;
  color: var(--text-3);
}

.segment-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.segment {
  display: block;
  height: 100%;
  min-width: 0;
}

.segment-base {
  background: var(--brand);
}

.segment-purchased {
  background: #5c9dff;
}

.segment-subscription {
  background: #a9c9ff;
}

[data-theme="dark"] .segment-purchased {
  background: #3d7fe0;
}

[data-theme="dark"] .segment-subscription {
  background: #2f5e9e;
}

.composition-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-2);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item strong {
  font-weight: 600;
  color: var(--text);
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.detail-row span {
  color: var(--text-3);
}

.detail-row strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.quota-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
}

.quota-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: none;
}

.admin-card {
  border-color: rgba(0, 82, 217, 0.22);
}

.admin-card .card-head {
  padding-bottom: 0;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
}

.quota-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.quota-form .form-field {
  min-width: 190px;
  flex: 1;
}

.quota-form .btn {
  flex: none;
}

/* ---------- API 接入页 ---------- */
.doc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background: radial-gradient(
      600px 260px at 100% 0%,
      rgba(80, 150, 255, 0.5),
      transparent 65%
    ),
    linear-gradient(140deg, #03142e 0%, #062a63 55%, #0052d9 100%);
  box-shadow: var(--shadow-sm);
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at 80% 0%,
    #000 20%,
    transparent 75%
  );
  pointer-events: none;
}

.doc-hero > * {
  position: relative;
  z-index: 1;
}

.doc-hero h2 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.doc-hero p {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.66);
}

.doc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #d7e7ff;
  font-size: 11px;
}

.api-base-box {
  align-self: center;
}

.api-base-label {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.52);
}

.api-base {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 18, 40, 0.32);
  color: #eaf3ff;
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}

.api-base .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: #9fc6ff;
}

.api-base-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e7ff;
  cursor: pointer;
}

.api-base-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.api-base-copy .icon {
  width: 13px;
  height: 13px;
  margin: 0;
}

.api-base-hint {
  margin-top: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.api-grid .span-2 {
  grid-column: 1 / -1;
}

.doc-card-head {
  padding-bottom: 14px;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
}

.endpoint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.endpoint:first-child {
  padding-top: 0;
}

.endpoint:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.method {
  margin-top: 2px;
  flex: none;
  min-width: 48px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

.method.post {
  color: var(--success-text);
  background: var(--success-soft);
}

.method.delete {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.endpoint-main {
  min-width: 0;
  flex: 1;
}

.endpoint-path {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}

.endpoint-desc {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.api-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.api-key-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  min-width: 0;
}

.api-key-label {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-3);
}

.api-key-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.code-block {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #1e2c42;
  border-radius: 10px;
  background: #0d1729;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: #9db1d4;
  font-size: 11.5px;
}

.code-head .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: transparent;
  color: #9db1d4;
  font-size: 11px;
  cursor: pointer;
}

.code-head .copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.code-head .copy-btn .icon {
  width: 12px;
  height: 12px;
}

.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: #d6e4ff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
}

.code-block code {
  font-family: inherit;
  font-size: inherit;
}

.code-muted {
  color: #7387a8;
}

.code-key {
  color: #8fc5ff;
}

.code-str {
  color: #a6e3a1;
}

.doc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}

.doc-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex: none;
  color: var(--brand);
}

.doc-note code {
  color: var(--brand);
}

.doc-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.doc-step {
  position: relative;
  padding-left: 34px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.doc-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.doc-step strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.doc-step code {
  color: var(--brand);
}

/* ---------- 弹窗 ---------- */
.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 20px 32px;
  overflow-y: auto;
  background: rgba(13, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.16s ease;
}

.modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.modal-sm {
  max-width: 420px;
}

.modal-lg {
  max-width: 680px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.modal-head p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  word-break: break-all;
}

.modal-body {
  flex: 1;
  min-height: 0;
  padding: 18px 22px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.modal-foot-note {
  margin-right: auto;
  font-size: 12px;
  color: var(--text-3);
}

.confirm-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  word-break: break-word;
}

.modal .form-grid {
  margin-top: 2px;
}

.modal-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 上传 ---------- */
.upload-target {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.upload-target-item {
  min-width: 0;
}

.upload-target-item span {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  color: var(--text-3);
}

.upload-target-item strong,
.upload-target-item code {
  font-size: 12.5px;
  color: var(--text-2);
  word-break: break-all;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 28px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: var(--brand-soft-2);
}

.dropzone-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  color: var(--brand);
}

.dropzone-title {
  font-size: 13.5px;
  color: var(--text-2);
}

.dropzone-title span {
  color: var(--brand);
  font-weight: 500;
}

.dropzone-hint {
  font-size: 11.5px;
  color: var(--text-3);
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  margin-top: 12px;
  overflow-y: auto;
}

.upload-item {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.upload-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.upload-item-head .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex: none;
}

.upload-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item-size {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}

.upload-item-status {
  flex: none;
  font-size: 11px;
  color: var(--text-3);
}

.upload-item-status.is-ok {
  color: var(--success-text);
}

.upload-item-status.is-error {
  color: var(--danger-text);
}

.upload-item .progress {
  height: 5px;
  margin-top: 7px;
}

.upload-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.upload-summary .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Toast ---------- */
.toast-root {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  pointer-events: auto;
  animation: toastIn 0.22s ease;
}

.toast.is-leaving {
  animation: toastOut 0.18s ease forwards;
}

.toast-icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: none;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-info .toast-icon {
  color: var(--brand);
}

.toast-body {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.toast-close .icon {
  width: 13px;
  height: 13px;
}

/* ---------- 其他通用 ---------- */
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hint-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
}

.hint-inline .icon {
  width: 14px;
  height: 14px;
}

.section-gap {
  margin-top: 16px;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-3);
}

.summary-strip strong {
  margin-left: 4px;
  color: var(--text);
  font-weight: 600;
}

.summary-strip .summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.summary-strip .icon {
  width: 14px;
  height: 14px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.copy-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 动画 ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(-1.4deg);
  }
  50% {
    transform: translateY(-7px) rotate(-1.4deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 240, 205, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(134, 240, 205, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 240, 205, 0);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-main,
  .overview-bottom,
  .quota-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .doc-hero {
    grid-template-columns: 1fr;
  }

  .api-grid .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: var(--shadow-lg);
    z-index: 80;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    opacity: 0;
    visibility: hidden;
    background: rgba(9, 18, 34, 0.46);
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-shell {
    margin-left: 0;
  }

  .topbar-menu {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .login-aside {
    display: none;
  }

  .login-main {
    padding: 38px 24px;
  }

  .login-mobile-brand {
    display: flex;
  }

  .login-aside-foot-mobile {
    display: flex;
  }

  .login-card-head h2 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .quota-form .form-field {
    min-width: 0;
    flex: 1 1 180px;
  }
}

@media (max-width: 720px) {
  .content {
    padding: 16px 14px 40px;
  }

  .topbar {
    padding: 0 14px;
    gap: 8px;
  }

  .topbar-env {
    display: none;
  }

  .topbar-root {
    display: none;
  }

  .topbar-breadcrumb > .crumb-sep {
    display: none;
  }

  .user-chip-text {
    display: none;
  }

  .user-chevron {
    display: none;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 19px;
  }

  .page-sub {
    font-size: 12.5px;
  }

  .page-actions {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-value {
    font-size: 25px;
  }

  .quota-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-main,
  .overview-bottom,
  .quota-grid {
    gap: 12px;
    margin-bottom: 12px;
  }

  .card-head {
    padding: 16px 16px 0;
  }

  .card-body {
    padding: 16px;
  }

  .card-foot {
    padding: 12px 16px;
  }

  .card-actions .btn span {
    display: none;
  }

  .table-toolbar {
    padding: 12px 16px;
  }

  .table-toolbar .search-box,
  .table-toolbar .search-box .input {
    width: 100%;
  }

  .table-toolbar .search-box {
    order: 4;
    flex: 1 1 100%;
  }

  .select-sm {
    min-width: 140px;
    max-width: 100%;
  }

  .table-count {
    display: none;
  }

  .crumb-bar {
    padding: 8px 14px;
  }

  .data-table thead th:first-child,
  .data-table tbody td:first-child {
    padding-left: 14px;
  }

  .data-table thead th:last-child,
  .data-table tbody td:last-child {
    padding-right: 14px;
  }

  .table-footer {
    padding: 10px 14px;
  }

  .empty {
    padding: 34px 16px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  }

  .modal-head {
    padding: 16px 18px 0;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-foot {
    padding: 14px 18px;
  }

  .modal-foot-note {
    width: 100%;
    margin-right: 0;
  }

  .dropdown {
    right: -4px;
    width: min(280px, calc(100vw - 24px));
  }

  .api-key-grid {
    grid-template-columns: 1fr;
  }

  .doc-hero {
    padding: 20px;
  }

  .quota-form {
    align-items: stretch;
  }

  .quota-form .form-field {
    flex: 1 1 100%;
  }

  .quota-form .btn {
    width: 100%;
  }

  .login-main {
    padding: 30px 20px;
    align-items: flex-start;
  }

  .login-main-inner {
    padding-top: 20px;
  }

  .login-row-hint {
    display: none;
  }

  .quota-big-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .topbar-right > .icon-btn[data-action="refresh-view"] {
    display: none;
  }

  .login-legal {
    display: none;
  }

  .login-row {
    gap: 8px;
  }

  .breakdown-item {
    padding: 8px 10px;
  }

  .page-actions .btn {
    flex: 1;
  }

  .page-actions .btn span {
    white-space: nowrap;
  }

  .row-action span {
    display: none;
  }

  .row-action {
    padding: 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   v3 增量样式：公开落地页 / 钱包计费 / 充值时间线 / 余额不足告警
   仅复用与扩展既有设计变量，浅色 / 深色 / 移动端自适应
   ========================================================================== */

/* ---------- 顶栏钱包余额 ---------- */
.topbar-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.topbar-balance .icon {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.topbar-balance:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.topbar-balance.is-negative {
  color: var(--danger-text);
  border-color: rgba(227, 77, 89, 0.42);
  background: var(--danger-soft);
}

.topbar-balance.is-negative .icon {
  color: var(--danger);
}

/* ---------- 余额不足全局告警条 ---------- */
.balance-alert {
  width: auto;
  margin: 16px 24px 0;
  align-items: center;
  flex-wrap: wrap;
}

.balance-alert .alert-content {
  flex: 1;
}

.balance-alert .btn {
  flex: none;
  margin-left: auto;
}

.form-hint.is-warning {
  color: var(--warning-text);
}

.form-hint.is-ok {
  color: var(--success-text);
}

/* ---------- 金额 / 公式 ---------- */
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.money-negative {
  color: var(--danger-text);
}

.money-positive {
  color: var(--success-text);
}

.cell-amount {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.formula-tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

/* ---------- 配额关系（用户配额 ≥ 应用配额合计） ---------- */
.quota-relation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 138px;
}

.quota-relation-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.quota-relation-foot {
  font-size: 11px;
  color: var(--text-3);
}

.quota-relation .progress {
  margin: 0;
}

.quota-relation-static {
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- 近 30 天用量柱状图 ---------- */
.usage-chart-wrap {
  padding: 4px 0 0;
}

.usage-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
}

.usage-bar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.usage-bar-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-2);
  transition: background 0.15s ease;
}

.usage-bar-col:hover .usage-bar-stack {
  background: var(--brand-soft-2);
}

.usage-bar-seg {
  width: 100%;
  min-height: 0;
}

.usage-bar-seg.up {
  background: var(--brand);
}

.usage-bar-seg.down {
  background: #6ea8ff;
}

.usage-bar-labels {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}

.usage-bar-labels span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: middle;
}

.legend-dot.is-up {
  background: var(--brand);
}

.legend-dot.is-down {
  background: #6ea8ff;
}

/* ---------- 充值状态时间线 ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-3);
}

.timeline-dot .icon {
  width: 14px;
  height: 14px;
}

.timeline-item.is-done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.timeline-item.is-current .timeline-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.timeline-item.is-rejected .timeline-dot {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.timeline-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.timeline-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.timeline-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.timeline-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 登录页补充 ---------- */
.login-register-hint {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-3);
}

.login-register-hint a {
  color: var(--brand);
}

.login-service-line .link-btn {
  font-size: 12px;
}

/* ---------- 统计栅格列数变体 ---------- */
.stat-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- 公开落地页 ---------- */
.landing-view {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.landing-brand:hover {
  color: var(--text);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
  font-size: 14px;
}

.landing-nav-links a {
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav-links a:hover {
  color: var(--brand);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.landing-root {
  outline: none;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 24px 60px;
  background: radial-gradient(620px 400px at 12% 0%, var(--brand-soft) 0%, transparent 70%),
    radial-gradient(700px 420px at 88% 8%, var(--brand-soft-2) 0%, transparent 72%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 82, 217, 0.2);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.landing-eyebrow .icon {
  width: 14px;
  height: 14px;
}

.landing-title {
  margin: 18px 0 0;
  font-size: 46px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text);
}

.landing-title em {
  font-style: normal;
  color: var(--brand);
}

.landing-sub {
  max-width: 560px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.landing-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.landing-cta-note {
  font-size: 12px;
  color: var(--text-3);
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.landing-proof-item strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
  color: var(--text);
}

.landing-proof-item span {
  font-size: 12px;
  color: var(--text-3);
}

.landing-hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-code-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.landing-code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.landing-code-card pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.landing-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.landing-mini-card .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
}

.landing-mini-card strong {
  display: block;
  font-size: 13px;
}

.landing-mini-card span {
  font-size: 12px;
  color: var(--text-3);
}

.landing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.landing-section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.landing-section-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
}

.landing-section-title {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: var(--text);
}

.landing-section-sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-feature {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.landing-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}

.landing-feature-icon .icon {
  width: 19px;
  height: 19px;
}

.landing-feature h3 {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.landing-feature p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}

.landing-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.landing-price-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.landing-price-card.is-primary {
  border-color: rgba(0, 82, 217, 0.28);
  box-shadow: var(--shadow-md);
}

.landing-price-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.landing-formula {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  word-break: break-all;
}

.landing-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.landing-vars code {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
}

.landing-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.landing-example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
}

.landing-example strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.landing-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0052d9 0%, #1a6fe8 60%, #3b86f5 100%);
  color: #fff;
}

.landing-contact h2 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.landing-contact p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.landing-contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #0052d9;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.landing-mail:hover {
  color: #003da8;
}

.landing-mail .icon {
  width: 16px;
  height: 16px;
}

.landing-contact .btn {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
}

.landing-contact .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.landing-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  font-size: 12px;
  color: var(--text-3);
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-footer a {
  color: var(--text-3);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--brand);
}

@media (max-width: 1024px) {
  .landing-nav-links {
    display: none;
  }

  .landing-hero {
    padding: 52px 20px 44px;
  }

  .landing-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .landing-title {
    font-size: 36px;
  }

  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-contact {
    margin: 0 20px;
    padding: 26px 24px;
  }

  .landing-section {
    padding: 48px 20px;
  }

  .balance-alert {
    margin: 12px 16px 0;
  }
}

@media (max-width: 720px) {
  .landing-title {
    font-size: 30px;
    letter-spacing: -0.8px;
  }

  .landing-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .landing-section-title {
    font-size: 24px;
  }

  .landing-contact h2 {
    font-size: 20px;
  }

  .landing-contact {
    margin: 0 16px;
  }

  .landing-nav-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .usage-bars {
    height: 120px;
  }

  .stat-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .landing-nav-actions .btn span {
    display: none;
  }

  .stat-grid.cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .balance-alert .btn {
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   v4 上线精修：落地页营销版 / 充值步骤条 / 打款凭证上传与预览
   ========================================================================== */

/* ---------- 落地页 v4（简洁营销版） ---------- */
.landing-features-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-example-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.landing-example-card span {
  font-size: 13px;
  color: var(--text-2);
}

.landing-example-card strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.landing-formula-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
}

.landing-formula-line code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
}

/* ---------- 充值步骤条 ---------- */
.step-card {
  padding: 22px 22px 20px;
  margin-bottom: 18px;
}

.stepbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -12px;
  width: 10px;
  height: 1px;
  background: var(--border-strong);
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
}

.step-dot .icon {
  width: 15px;
  height: 15px;
}

.step.is-done .step-dot {
  border-color: transparent;
  background: var(--success-soft);
  color: var(--success-text);
}

.step.is-current .step-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.step.is-rejected .step-dot,
.step.is-cancelled .step-dot {
  border-color: transparent;
  background: var(--danger-soft);
  color: var(--danger-text);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.step-body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step.is-current .step-body strong {
  color: var(--brand);
}

.step-meta {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
  word-break: break-word;
}

/* ---------- 打款凭证上传 ---------- */
.upload-card {
  margin-bottom: 18px;
  border-color: rgba(0, 82, 217, 0.24);
}

.upload-card .card-head {
  padding-bottom: 6px;
}

.proof-upload {
  position: relative;
}

.dropzone-lg {
  padding: 34px 20px;
  min-height: 148px;
  justify-content: center;
}

.dropzone-lg .dropzone-icon {
  width: 34px;
  height: 34px;
}

.dropzone:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.proof-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.proof-upload-hint {
  display: block;
  margin-top: 10px;
}

.proof-upload .upload-list {
  max-height: 260px;
}

/* ---------- 已上传凭证卡片 ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.proof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.proof-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-3);
  cursor: pointer;
}

.proof-thumb:hover {
  border-color: var(--brand);
}

.proof-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-thumb .icon {
  width: 22px;
  height: 22px;
}

.proof-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.proof-info strong {
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-info span {
  font-size: 11.5px;
  color: var(--text-3);
}

.proof-actions {
  display: flex;
  gap: 4px;
  width: 100%;
  padding-top: 2px;
  border-top: 1px dashed var(--border);
}

.proof-empty-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 13px;
}

.proof-empty-note .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* 管理员列表里的凭证缩略图 */
.proof-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.proof-mini-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-3);
}

.proof-mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-mini-item .icon {
  width: 16px;
  height: 16px;
}

.proof-count {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}

.cell-proof {
  min-width: 130px;
}

.recharge-status-note {
  font-size: 12.5px;
  color: var(--text-2);
}

/* 凭证预览弹层 */
.image-preview {
  text-align: center;
}

.image-preview img {
  display: inline-block;
  max-width: 100%;
  max-height: 68vh;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 20px;
  color: var(--text-2);
}

.file-preview .icon {
  width: 42px;
  height: 42px;
  color: var(--brand);
}

.file-preview strong {
  font-size: 14px;
}

.file-preview span {
  font-size: 12px;
  color: var(--text-3);
}

.modal-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 2px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .landing-features-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .landing-features-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-example-card {
    padding: 18px;
  }

  .landing-example-card strong {
    font-size: 22px;
  }

  .step-card {
    padding: 18px 16px;
  }

  .stepbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .stepbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .proof-thumb {
    width: 52px;
    height: 52px;
  }
}
/* ---------- 成功提示条（v4） ---------- */
.alert-success {
  color: var(--success-text);
  background: var(--success-soft);
  border-color: rgba(0, 168, 112, 0.2);
}

/* ==========================================================================
   v5 充值流程：管理员填写打款信息 / 客户上传凭证并提交开票信息 / 审核开票
   ========================================================================== */

/* 打款信息卡片：应付金额强调 */
.pay-card {
  border-color: rgba(0, 82, 217, 0.24);
}

.pay-amount-row strong.pay-amount {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.pay-copy {
  margin-left: 8px;
}

.pay-amount-note {
  margin-top: 14px;
}

/* APPROVED：凭证上传 + 开票信息表单 + 一次提交 */
#proof-upload-card .proof-upload {
  margin-bottom: 20px;
}

.invoice-form {
  margin-top: 2px;
}

.proof-submit-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.proof-submit-bar .form-hint {
  flex: 1;
  min-width: 220px;
}

.progress-fill.is-error {
  background: var(--danger);
}

/* 管理员列表：打款信息 / 凭证与开票两列 */
.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cell-sub-line {
  display: block;
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 步骤条：新流程第 3 步文案较长，允许换行 */
.stepbar .step-body strong {
  white-space: normal;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .proof-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-submit-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .pay-amount-row strong.pay-amount {
    font-size: 18px;
  }
}

/* ==========================================================================
   v6 开票升级：管理员必填上传 PDF 发票 / 客户预览与下载
   ========================================================================== */

/* 开票弹窗内的发票 PDF 选择区 */
.invoice-dropzone {
  padding: 24px 20px;
}

/* 管理员列表「凭证与开票」列：发票 PDF 下载入口 */
.invoice-file-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--brand);
  font-size: 11.5px;
}

.invoice-file-link .icon {
  width: 13px;
  height: 13px;
}

/* 发票 PDF 文件卡片 */
.invoice-file-card {
  border-color: rgba(0, 82, 217, 0.24);
  background: var(--surface);
}

.invoice-card {
  border-color: rgba(0, 82, 217, 0.24);
}

.invoice-file-thumb {
  color: var(--brand);
  background: var(--brand-soft-2);
  cursor: default;
}

.invoice-file-thumb .icon {
  width: 26px;
  height: 26px;
}

.invoice-empty-note {
  margin-top: 8px;
}

/* 发票 PDF 预览弹层 */
.invoice-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.invoice-preview-frame {
  display: block;
  width: 100%;
  height: 64vh;
  min-height: 420px;
  border: 0;
  background: var(--surface);
}

.invoice-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 720px) {
  .invoice-preview-frame {
    height: 52vh;
    min-height: 320px;
  }
}