/* =========================================================
   TrueSource AI Gateway · 终极视觉设计规范 (Cyber Slate & Enterprise Indigo)
   ========================================================= */

:root {
  /* Ultra-Refined Color Tokens */
  --bg-abyss: #07090e;
  --bg-midnight: #0b0f19;
  --bg-slate-panel: rgba(15, 23, 42, 0.72);
  --bg-slate-card: rgba(22, 33, 56, 0.65);
  --bg-slate-hover: rgba(30, 45, 74, 0.85);
  --bg-input-field: rgba(11, 17, 30, 0.88);

  /* Border Tokens */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.45);
  --border-emerald-glow: rgba(16, 185, 129, 0.4);

  /* Brand Accents */
  --indigo-primary: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.28);
  --sapphire-blue: #38bdf8;
  --emerald-truth: #10b981;
  --amber-thinking: #f59e0b;
  --crimson-danger: #f43f5e;

  /* Typography */
  --text-pure: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  /* Radii & Elevation */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-bento: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-indigo: 0 8px 30px -4px rgba(99, 102, 241, 0.35);
  --shadow-emerald: 0 8px 30px -4px rgba(16, 185, 129, 0.35);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-abyss);
  color: var(--text-pure);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(16, 185, 129, 0.06), transparent 70%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* =========================================================
   1. Global Telemetry Bar (全球遥测专线条)
   ========================================================= */
.telemetry-bar {
  background: rgba(7, 9, 14, 0.95);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 16px;
  font-size: 0.75rem;
  backdrop-filter: blur(12px);
}

.telemetry-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.telemetry-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.telemetry-left::-webkit-scrollbar {
  display: none;
}

.telemetry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-truth);
  box-shadow: 0 0 10px var(--emerald-truth);
  flex-shrink: 0;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.telemetry-title {
  color: var(--text-muted);
  font-weight: 600;
}

.telemetry-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tele-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  color: var(--text-pure);
}

.tele-node em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--sapphire-blue);
  font-weight: 600;
}

.sla-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* =========================================================
   2. App Header
   ========================================================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-entity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
}

.brand-svg {
  width: 100%;
  height: 100%;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.brand-headline span {
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-caption {
  font-size: 0.68rem;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-item:hover {
  color: #fff;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all var(--ease-spring);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.cta-arrow {
  font-size: 0.9rem;
}

/* =========================================================
   3. Hero Section (Bento Grid Architecture)
   ========================================================= */
.hero-bento {
  padding: 70px 24px 60px 24px;
  position: relative;
}

.hero-bento-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-narrative {
  display: flex;
  flex-direction: column;
}

.hero-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 22px;
}

.tag-icon {
  font-size: 0.85rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-lead b {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-indigo);
  transition: all var(--ease-spring);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.55);
}

.hero-btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--ease-spring);
}

.hero-btn-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.arrow-right {
  color: var(--sapphire-blue);
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 580px;
}

.pillar-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.pillar-num small {
  font-size: 0.85rem;
  color: var(--sapphire-blue);
}

.pillar-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-pure);
}

.pillar-desc {
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* Hero Terminal Card */
.hero-terminal-side {
  position: relative;
}

.terminal-shell {
  background: #06090f;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

.terminal-topbar {
  background: #0f1422;
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.terminal-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #e2e8f0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t-line.dim { color: #64748b; }
.t-line.success { color: var(--emerald-truth); }
.t-line.highlight { color: #a5b4fc; font-weight: 600; }
.t-line.info { color: var(--sapphire-blue); }
.t-line.thinking-preview { color: #f59e0b; font-style: italic; }
.t-line.stream-output { color: #f8fafc; }
.t-line.bold { font-weight: 700; }

.terminal-footer {
  background: #0a0d16;
  border-top: 1px solid var(--border-glass);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tf-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-truth);
  box-shadow: 0 0 8px var(--emerald-truth);
}

.btn-terminal-test {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-terminal-test:hover {
  background: #6366f1;
  color: #fff;
}

/* =========================================================
   4. The Truth Matrix Section (行业黑幕深度解密)
   ========================================================= */
.truth-section, .models-section, .integration-section, .sandbox-section, .console-section, .guarantee-section {
  padding: 80px 24px;
}

.content-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

.section-title-lockup {
  margin-bottom: 46px;
}

.section-title-lockup.text-center {
  text-align: center;
}

.pill-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--indigo-primary);
  letter-spacing: 0.12em;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.title-primary {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.subtitle-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.bento-truth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.truth-card {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
}

.card-badge.danger {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.truth-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.truth-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.truth-body b {
  color: #fff;
}

.truth-solution {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.sol-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-truth);
  margin-bottom: 4px;
}

.sol-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.self-audit-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-bento);
}

.audit-icon-box {
  font-size: 2rem;
  flex-shrink: 0;
}

.audit-text-block h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.audit-text-block p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.audit-text-block code {
  font-family: var(--font-mono);
  color: var(--sapphire-blue);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-test-now {
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--indigo-primary);
  color: #a5b4fc;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-test-now:hover {
  background: var(--indigo-primary);
  color: #fff;
}

/* =========================================================
   5. Bento Calculator & Models Grid
   ========================================================= */
.bento-calculator {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-bento);
}

.calc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.calc-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-icon {
  font-size: 1.8rem;
}

.calc-h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.calc-sub {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.calc-rate-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sapphire-blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.calc-body-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}

.input-field {
  margin-bottom: 18px;
}

.input-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.slider-header b {
  color: var(--sapphire-blue);
  font-family: var(--font-mono);
}

.styled-select, .styled-textarea, .styled-input {
  width: 100%;
  background: var(--bg-input-field);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.86rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.styled-select:focus, .styled-textarea:focus, .styled-input:focus {
  border-color: var(--indigo-primary);
}

.styled-range {
  width: 100%;
  accent-color: var(--indigo-primary);
  cursor: pointer;
}

.presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.74rem;
  color: var(--text-faint);
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.preset-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--indigo-primary);
  color: #a5b4fc;
}

/* Cost Output Card */
.calc-cost-display {
  background: #06090e;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.cost-card-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-item .c-lbl {
  font-size: 0.75rem;
  color: var(--text-faint);
  display: block;
}

.cost-item .c-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.cost-item.main .c-val.highlight {
  font-size: 2.2rem;
  color: var(--emerald-truth);
}

.c-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cost-sep {
  display: none;
}

/* Models Grid */
.models-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-bento);
  transition: transform var(--ease-spring), border-color 0.2s ease;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.model-card.featured {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.card-featured-pill {
  position: absolute;
  top: -10px;
  right: 18px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.brand-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.brand-chip.anthropic { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.brand-chip.openai { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.brand-chip.google { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.brand-chip.deepseek { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.model-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  word-break: break-all;
}

.model-subtitle {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.45;
  margin-bottom: 18px;
  flex: 1;
}

.model-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.m-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}

.mm-lbl { color: var(--text-faint); }
.mm-val { font-family: var(--font-mono); font-weight: 700; color: #fff; }
.mm-val small { font-weight: 400; color: var(--text-faint); }

.model-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.channel-tag {
  font-size: 0.7rem;
  color: var(--emerald-truth);
  font-weight: 600;
}

.btn-copy-model-id {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-model-id:hover {
  background: var(--indigo-primary);
  color: #fff;
  border-color: var(--indigo-primary);
}

/* =========================================================
   6. 1-Click Integration Studio
   ========================================================= */
.studio-card {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-bento);
}

.studio-tab-bar {
  display: flex;
  background: #080c14;
  border-bottom: 1px solid var(--border-glass);
  overflow-x: auto;
  scrollbar-width: none;
}

.studio-tab-bar::-webkit-scrollbar {
  display: none;
}

.studio-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.studio-tab:hover {
  color: #fff;
}

.studio-tab.active {
  color: #fff;
  border-bottom-color: var(--indigo-primary);
  background: rgba(99, 102, 241, 0.08);
}

.studio-panel {
  display: none;
  padding: 28px;
}

.studio-panel.active {
  display: block;
}

.panel-desc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-desc-row h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.panel-desc-row p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.btn-studio-copy {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--indigo-primary);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-studio-copy:hover {
  background: var(--indigo-primary);
  color: #fff;
}

.snippet-box {
  background: #05080e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #e2e8f0;
}

/* =========================================================
   7. Live Stream Sandbox (真机沙箱调试台)
   ========================================================= */
.sandbox-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.sandbox-card {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-bento);
}

.card-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.bar-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.bar-status {
  font-size: 0.72rem;
  color: var(--sapphire-blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.sb-field {
  margin-bottom: 16px;
}

.sb-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sb-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.qa-lbl {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.qa-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.btn-execute-stream {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-indigo);
  transition: all var(--ease-spring);
}

.btn-execute-stream:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* Output Console */
.stream-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--emerald-truth);
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-truth);
}

.thinking-container {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

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

.thinking-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber-thinking);
}

.thinking-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  padding: 2px 6px;
  border-radius: 4px;
}

.thinking-stream-text {
  font-size: 0.78rem;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.55;
  max-height: 130px;
  overflow-y: auto;
}

.response-stream-box {
  flex: 1;
  min-height: 230px;
  max-height: 360px;
  background: #05080e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #f8fafc;
  white-space: pre-wrap;
  overflow-y: auto;
}

.telemetry-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
}

.t-badge-item .tb-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.t-badge-item .tb-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.t-badge-item .tb-val.cert {
  color: var(--emerald-truth);
}

/* =========================================================
   8. Developer Console & Billing
   ========================================================= */
.console-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.c-card {
  background: var(--bg-slate-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-bento);
}

.c-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.acc-tier-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.acc-id {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.acc-balance-block {
  text-align: right;
}

.bal-label {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.bal-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--emerald-truth);
  line-height: 1.1;
}

.bal-tip {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.acc-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.stat-pill span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
}

.stat-pill b {
  font-size: 0.95rem;
  color: #fff;
}

.redeem-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.redeem-heading h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.redeem-hint {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.redeem-action-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.redeem-field {
  flex: 1;
  background: var(--bg-input-field);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #fff;
  outline: none;
}

.redeem-field:focus {
  border-color: var(--indigo-primary);
}

.btn-redeem-action {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-redeem-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.redeem-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.redeem-chip.hot {
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
}

/* Key Management Column */
.km-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.km-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.btn-create-new-key {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-create-new-key:hover {
  background: var(--indigo-primary);
  border-color: var(--indigo-primary);
}

.key-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.key-row-item {
  background: #06090e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.k-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.k-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.k-status {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}

.k-value-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.k-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sapphire-blue);
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 8px;
  border-radius: var(--radius-xs);
}

.btn-k-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-k-copy:hover {
  background: var(--indigo-primary);
  border-color: var(--indigo-primary);
}

/* Ledger Box */
.ledger-box {
  background: #06090e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.ledger-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.ledger-note {
  font-size: 0.65rem;
  color: var(--emerald-truth);
}

.ledger-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1.2fr 1fr 1fr;
  align-items: center;
  font-size: 0.72rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ledger-row .col-t { color: var(--text-faint); font-family: var(--font-mono); }
.ledger-row .col-m { color: #fff; font-weight: 600; }
.ledger-row .col-tok { color: var(--text-muted); }
.ledger-row .col-c { color: var(--crimson-danger); font-weight: 700; }
.ledger-row .col-status { color: var(--sapphire-blue); font-size: 0.65rem; }

/* =========================================================
   9. Guarantee Banner
   ========================================================= */
.guarantee-glass-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
}

.gg-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.gg-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.gg-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 880px;
}

.gg-text b {
  color: var(--emerald-truth);
}

.gg-pillars {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gg-pill {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
}

/* =========================================================
   10. App Footer
   ========================================================= */
.app-footer {
  background: #04060a;
  border-top: 1px solid var(--border-glass);
  padding: 60px 24px 90px 24px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.footer-logo span {
  color: var(--indigo-primary);
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 10px 0 16px 0;
  max-width: 280px;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links-col a:hover {
  color: #fff;
}

.col-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   11. Mobile App Dock (专属移动端单手极速底栏)
   ========================================================= */
.mobile-app-dock {
  display: none;
}

@media (max-width: 840px) {
  body {
    padding-bottom: 74px; /* 为底栏预留安全距离 */
  }

  .mobile-app-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)) 12px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.15s ease;
  }

  .dock-item:active {
    transform: scale(0.92);
  }

  .dock-icon {
    font-size: 1.15rem;
  }

  .dock-item.highlight {
    color: var(--sapphire-blue);
  }

  .dock-item.highlight .dock-icon {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
  }
}

/* =========================================================
   12. Global Toast Hub
   ========================================================= */
.toast-hub {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--indigo-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  animation: toastPop 0.25s var(--ease-spring) forwards;
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   13. Responsive Breakpoints
   ========================================================= */
@media (max-width: 1024px) {
  .hero-bento-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-pillars-grid {
    max-width: 100%;
  }

  .bento-truth-grid {
    grid-template-columns: 1fr;
  }

  .models-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-body-grid {
    grid-template-columns: 1fr;
  }

  .sandbox-duo-grid {
    grid-template-columns: 1fr;
  }

  .console-bento-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .desktop-nav {
    display: none;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero-bento {
    padding: 40px 16px;
  }

  .truth-section, .models-section, .integration-section, .sandbox-section, .console-section, .guarantee-section {
    padding: 50px 16px;
  }

  .self-audit-bar {
    flex-direction: column;
    text-align: center;
  }

  .models-cards-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-badges-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .acc-stats-strip {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   8. User Auth & Multi-tenant System (顶部状态与鉴权)
   ========================================================= */
.header-auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.auth-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-login {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  color: var(--text-pure);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-nav-register {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.user-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-light);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.user-status-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.5);
}

.user-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.user-pill-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-pill-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.user-pill-balance {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.user-pill-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

/* User Menu Dropdown */
.user-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #111726;
  border: 1px solid var(--border-glass-light);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 14px;
  z-index: 1100;
  backdrop-filter: blur(20px);
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ud-user-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 10px;
}

.ud-user-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.ud-user-email {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.ud-user-tier {
  display: inline-block;
  font-size: 0.68rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  font-weight: 600;
}

.ud-section-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 6px 0;
}

.ud-preset-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ud-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-pure);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.ud-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-light);
}

.ud-preset-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  font-weight: 700;
}

.ud-preset-bal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-truth);
}

.ud-actions-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ud-action-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease;
  width: 100%;
  text-align: left;
}

.ud-action-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.ud-action-link.danger:hover {
  color: #f87171;
}

/* =========================================================
   9. Quota Flow Architecture (额度流转与调用扣减原理)
   ========================================================= */
.quota-flow-architecture {
  background: linear-gradient(180deg, rgba(22, 31, 54, 0.7) 0%, rgba(13, 18, 32, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.quota-flow-architecture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #38bdf8, transparent);
}

.qfa-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px auto;
}

.qfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qfa-pulse-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseBeacon 2s infinite;
}

.qfa-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.qfa-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.qfa-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.qfa-step-card {
  background: rgba(11, 15, 25, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: all 0.25s ease;
  position: relative;
}

.qfa-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.qfa-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qfa-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.qfa-step-tag {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.qfa-step-tag.user {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.qfa-step-tag.pay {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-truth);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.qfa-step-tag.redis {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.qfa-step-tag.deduct {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.qfa-step-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.qfa-step-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.qfa-step-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.qfa-step-text code {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.qfa-step-action {
  margin-top: 12px;
}

.btn-step-test {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-light);
  color: var(--text-pure);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-step-test:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.btn-step-test.highlight {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 700;
}

.btn-step-test.highlight:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fff;
}

.qfa-connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.qfa-status-bar {
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qfa-active-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.qfa-active-indicator .active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-truth);
  box-shadow: 0 0 8px var(--emerald-truth);
}

.qfa-active-indicator strong {
  color: #fff;
}

.qfa-sep {
  color: var(--border-glass-light);
}

.btn-qfa-switch {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qfa-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Developer Console additions */
.acc-user-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.btn-switch-account-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-light);
  color: var(--sapphire-blue);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-switch-account-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.uid-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-left: 6px;
}

.acc-email {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.redeem-target-banner {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.redeem-target-banner strong {
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* =========================================================
   10. Auth Modal Styles
   ========================================================= */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-dialog {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #131b2e 0%, #0d1222 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  padding: 28px;
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-badge {
  font-size: 1.8rem;
}

.auth-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.auth-brand-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.auth-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass-light);
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.auth-tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.auth-tab-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.auth-input-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass-light);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #fff;
  transition: border-color 0.15s ease;
}

.auth-input:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.auth-input.highlight-code {
  font-family: var(--font-mono);
  color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.auth-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.6);
}

.auth-submit-btn.register-gradient {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.auth-submit-btn.register-gradient:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.auth-demo-divider {
  text-align: center;
  position: relative;
  margin: 18px 0 14px 0;
}

.auth-demo-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-glass);
}

.auth-demo-divider span {
  position: relative;
  background: #111726;
  padding: 0 10px;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.auth-preset-users-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-user-preset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.auth-user-preset-card:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.auth-user-preset-card .u-icon {
  font-size: 1.4rem;
}

.auth-user-preset-card .u-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.auth-user-preset-card .u-bal {
  font-size: 0.72rem;
  color: var(--emerald-truth);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.auth-notice-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--text-pure);
  line-height: 1.5;
  margin-top: 14px;
}

.auth-tab-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.auth-all-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tenant-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 12px 14px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.tenant-item-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.tenant-item-card.current {
  border-color: var(--emerald-truth);
  background: rgba(16, 185, 129, 0.06);
}

.tenant-meta {
  display: flex;
  flex-direction: column;
}

.tenant-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tenant-badge-cur {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-truth);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.tenant-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.btn-tenant-switch {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tenant-switch:hover {
  background: #6366f1;
}

/* Media Queries for Quota Architecture & Auth */
@media (max-width: 900px) {
  .qfa-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qfa-connector-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

@media (max-width: 640px) {
  .quota-flow-architecture {
    padding: 20px 14px;
  }

  .qfa-title {
    font-size: 1.2rem;
  }

  .qfa-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-qfa-switch {
    width: 100%;
  }

  .user-status-pill {
    padding: 3px 8px 3px 4px;
  }

  .user-pill-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .user-pill-name {
    font-size: 0.74rem;
  }

  .user-pill-balance {
    font-size: 0.68rem;
    padding: 1px 5px;
  }
}

