/* ============================================================
   金豚云 · 设计系统（青蓝科技蓝）
   —— 深夜空底 + 青蓝光晕 + 玻璃拟态 + 地球环境光
   ============================================================ */

:root {
  /* 背景层级 */
  --bg: #030914;
  --panel: #071422;
  --surface: #0b1a2e;
  --surface-2: rgba(56, 189, 248, 0.06);

  /* 文字 */
  --text: #f0f7ff;
  --text-2: #c5d7ef;
  --text-3: #7f9bb8;
  --text-4: #4d6a85;

  /* 强调（青蓝科技蓝） */
  --accent: #22d3ee;
  --accent-2: #0891b2;
  --accent-hover: #67e8f9;

  /* 金色仅留给金额等语义，不再当品牌主色 */
  --gold: #e6b450;
  --gold-hover: #f0c46a;
  --gold-soft: rgba(230, 180, 80, 0.12);

  /* 状态 */
  --green: #10b981;
  --red: #f87171;

  /* 边框（半透明白，暗色上的结构线） */
  --border: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.05);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   背景层：光晕（底色）+ 星空粒子 + 流星（Canvas）
   ============================================================ */

/* 蓝紫光晕 —— 加强透明度，作为星空底下的氛围底色 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 8% -8%, rgba(14,165,233,0.28), transparent 62%),
    radial-gradient(ellipse 48% 42% at 92% 8%, rgba(34,211,238,0.22), transparent 60%),
    radial-gradient(ellipse 70% 55% at 72% 118%, rgba(37,99,235,0.42), transparent 62%),
    radial-gradient(ellipse 30% 26% at 78% 70%, rgba(56,189,248,0.16), transparent 60%);
  animation: aurora-breathe 14s ease-in-out infinite;
}

@keyframes aurora-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* 星空粒子 Canvas —— 盖在光晕之上，星星更清晰 */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 内容浮在背景之上 */
main, .topbar, .footer { position: relative; z-index: 10; }

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

/* ============================================================
   顶栏导航（深色玻璃）
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: rgba(15,16,17,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #031018;
  box-shadow: 0 0 20px rgba(34,211,238,0.35);
  flex-shrink: 0;
}
.brand .logo svg { display: block; }

.brand .brand-name b { color: var(--accent); font-weight: 600; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 16px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active {
  background: rgba(34,211,238,0.12);
  color: var(--accent-hover);
  font-weight: 600;
}

.nav-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-3); }
.nav-user .phone { font-weight: 500; color: var(--text-2); }
.nav-user .logout { color: var(--text-4); }
.nav-user .logout:hover { color: var(--red); }

/* ============================================================
   容器
   ============================================================ */
.container { max-width: 880px; margin: 0 auto; padding: 40px 20px 56px; width: 100%; }

/* ============================================================
   落地页 Hero（精简，聚焦登录框）
   ============================================================ */
.hero {
  padding: 48px 20px 36px;
  text-align: center;
}
.hero .hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 10px;
  font-weight: 400;
}
.hero .trust {
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 40px;
}
.hero .trust span { margin: 0 6px; color: var(--text-3); }

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: left;
}
.feature {
  background: rgba(20,22,26,0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s, transform .2s;
}
.feature:hover {
  border-color: rgba(34,211,238,0.4);
  transform: translateY(-2px);
}
.feature .icon { font-size: 22px; margin-bottom: 12px; }
.feature .title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature .desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ============================================================
   登录框（玻璃卡片）
   ============================================================ */
.login-wrap { max-width: 400px; margin: 0 auto; }
.login-box {
  background: rgba(25,26,27,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.login-box h2 { font-size: 20px; color: var(--text); text-align: center; margin-bottom: 6px; font-weight: 600; }
.login-box .sub { font-size: 13px; color: var(--text-4); text-align: center; margin-bottom: 26px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  transition: border .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--text-4); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.18);
}

/* 主按钮：青蓝渐变 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
  color: #031018;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.32);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .05s;
  letter-spacing: 0.5px;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn.block { width: 100%; }
.btn.ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

.hint { font-size: 12px; color: var(--text-4); text-align: center; margin-top: 14px; line-height: 1.6; }
.msg { font-size: 13px; text-align: center; margin-top: 12px; min-height: 18px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

/* ============================================================
   卡片（玻璃拟态）
   ============================================================ */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.card h2 { font-size: 16px; color: var(--text); margin-bottom: 16px; font-weight: 600; }
.card .card-sub { font-size: 13px; color: var(--text-3); margin-bottom: 16px; line-height: 1.6; }

/* ============================================================
   统计卡片
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
}
.stat .label { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.stat .value { font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.stat .value.gold { color: var(--gold); text-shadow: 0 0 24px rgba(230,180,80,0.25); }
.stat .unit { font-size: 14px; font-weight: 400; color: var(--text-4); margin-left: 3px; }

/* ============================================================
   Key 展示
   ============================================================ */
.key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.key-box code {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
  color: var(--text-2);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;
}
.key-box .copy {
  padding: 7px 14px;
  background: rgba(34,211,238,0.14);
  color: var(--accent-hover);
  border: 1px solid rgba(34,211,238,0.35);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.key-box .copy:hover { background: rgba(34,211,238,0.24); }

/* ============================================================
   步骤引导
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step .txt { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.step .txt b { color: var(--text); }

/* ============================================================
   充值
   ============================================================ */
.balance-banner {
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(37,99,235,0.12));
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.balance-banner .label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.balance-banner .amount { font-size: 40px; font-weight: 600; color: var(--gold); text-shadow: 0 0 28px rgba(230,180,80,0.3); }
.balance-banner .amount small { font-size: 20px; font-weight: 500; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.amount-grid button {
  padding: 18px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.amount-grid button:hover, .amount-grid button.selected {
  border-color: var(--accent);
  background: rgba(34,211,238,0.12);
  color: var(--text);
}
.amount-grid button .bonus { display: block; font-size: 11px; font-weight: 500; color: var(--gold); margin-top: 3px; }

.pay-method { display: flex; gap: 12px; margin-bottom: 22px; }
.pay-method label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  transition: all .15s;
}
.pay-method label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(34,211,238,0.12);
  color: var(--text);
}
.pay-method input { display: none; }

/* ============================================================
   模型卡片
   ============================================================ */
.category-block { margin-bottom: 28px; }
.category-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.category-title h3 { font-size: 16px; color: var(--text); font-weight: 600; }
.category-title .count { font-size: 12px; color: var(--text-4); }
.category-desc { font-size: 12px; color: var(--text-4); margin-bottom: 12px; }

.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.model-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px;
  transition: border-color .15s;
}
.model-card:hover { border-color: rgba(34,211,238,0.45); }
.model-card .m-vendor { font-size: 12px; color: var(--accent-hover); font-weight: 500; margin-bottom: 4px; }
.model-card .m-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.model-card .m-id {
  font-size: 11px;
  color: var(--text-4);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  word-break: break-all;
}

.search-box {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 26px;
  transition: border .15s;
}
.search-box::placeholder { color: var(--text-4); }
.search-box:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15,16,17,0.5);
  padding: 28px 20px 32px;
  text-align: center;
}
.footer .f-brand { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer .f-links { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.footer .f-links a { margin: 0 10px; }
.footer .f-links a:hover { color: var(--accent-hover); }

/* ============================================================
   控制台 · 飞书式布局（侧栏 + 页头 + 内容区）
   ============================================================ */
body.is-app {
  min-height: 100vh;
  background: #0b0f14;
}
body.is-app #starfield,
body.is-app .aurora { display: none; }

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(12, 16, 22, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
}
body.is-app .app-brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: none;
}
.app-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.app-nav-item.active .nav-icon { opacity: 1; stroke: #67e8f9; }
.app-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.app-nav-item.active {
  background: rgba(103, 232, 249, 0.1);
  color: #67e8f9;
}
.app-sidebar-foot {
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.app-user-phone {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.app-logout {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}
.app-logout:hover { color: #f87171; }

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(8, 11, 16, 0.75);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 20, 0.6);
}
.page-header-main h1 {
  font-size: 20px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.page-header-main p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
}
.page-header-aside {
  text-align: right;
  padding-bottom: 20px;
}
.aside-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.aside-value {
  font-size: 28px;
  font-weight: 600;
  color: #e6b450;
  letter-spacing: -0.02em;
}

.app-content {
  flex: 1;
  padding: 24px 32px 40px;
  width: 100%;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.metric-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.metric {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.metric-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.metric-value {
  font-size: 24px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.metric-value.accent-gold { color: #e6b450; }
.metric-unit {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 4px;
}
.section-head p,
.section-card > .subsection h3 {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.subsection {
  margin: 20px 0 16px;
}
.subsection h3 {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 12px;
}

.empty-hint {
  font-size: 13px;
  color: #64748b;
  padding: 12px 0 4px;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: #94a3b8;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.guide-list li:first-child { border-top: none; padding-top: 0; }
.guide-list li strong {
  color: #e2e8f0;
  font-weight: 600;
}

.toolbar {
  margin-bottom: 20px;
}
.toolbar .search-box {
  margin-bottom: 0;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.is-app .btn-primary {
  background: #0ea5e9;
  color: #fff;
  box-shadow: none;
}
body.is-app .btn-primary:hover:not(:disabled) {
  background: #38bdf8;
  filter: none;
}
body.is-app .btn.sm {
  padding: 8px 14px;
  font-size: 13px;
}

body.is-app .key-box {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.is-app .key-box code { flex: 1; min-width: 180px; }
body.is-app .copy {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
  color: #7dd3fc;
}

body.is-app .amount-grid button {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
body.is-app .amount-grid button.selected {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
}
body.is-app .amount-grid .bonus {
  display: block;
  margin-top: 4px;
}

body.is-app .pay-method label {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
body.is-app .model-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}
body.is-app .model-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
body.is-app .category-block {
  margin-bottom: 24px;
}
body.is-app .category-title h3 {
  font-size: 14px;
  font-weight: 600;
}
body.is-app .model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  body.is-app .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 控制台扩展组件 */
.alert-banner {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.alert-banner a { color: #7dd3fc; margin-left: 4px; }
.alert-banner.warn {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}
.alert-banner.danger {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}
.hint-line {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
}
.hint-line a { color: #7dd3fc; }
.tab-bar {
  display: flex;
  gap: 4px;
}
.tab-bar .tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
}
.tab-bar .tab.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
  color: #7dd3fc;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.select-sm {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #cbd5e1;
  font-size: 13px;
}
.search-box.compact {
  max-width: 160px;
  padding: 8px 12px;
  font-size: 13px;
}
.status-pill.recharge { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-pill.consume { background: rgba(148,163,184,0.12); color: #94a3b8; }
.data-table td.pos { color: #4ade80; }
.data-table td.neg { color: #94a3b8; }
.data-table code.xs { font-size: 11px; color: #64748b; }
.code.xs.block { display: block; margin-top: 4px; }
.m-price {
  font-size: 12px;
  color: #7dd3fc;
  margin: 6px 0 4px;
}
.m-price.muted { color: #64748b; }
.app-content .legal-page {
  max-width: 720px;
}
body.is-legal .container,
body.is-legal main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-page h1 {
  font-size: 28px;
  color: #f1f5f9;
  margin: 0 0 8px;
}
.legal-page .legal-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 32px;
}
.legal-page section {
  margin-bottom: 24px;
}
.legal-page h2 {
  font-size: 16px;
  color: #e2e8f0;
  margin: 0 0 8px;
}
.legal-page p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}
.legal-page a { color: #7dd3fc; }
.section-card.compact { padding: 16px 20px; }
.budget-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}
.budget-label { color: #64748b; }
.budget-nums { color: #e2e8f0; font-weight: 500; }
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  transition: width 0.3s;
}
.key-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.key-row:first-of-type { border-top: none; padding-top: 0; }
.key-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.key-name { font-size: 14px; font-weight: 600; color: #f1f5f9; }
.key-date { font-size: 12px; color: #64748b; }
.key-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.btn-ghost {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: #e2e8f0; }
.btn-ghost.sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost.xs { padding: 3px 8px; font-size: 11px; }
.btn-ghost.danger:hover { color: #f87171; border-color: rgba(248,113,113,0.3); }
.config-grid { display: flex; flex-direction: column; gap: 16px; }
.config-item .config-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}
.config-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.config-value-row code {
  font-size: 13px;
  color: #7dd3fc;
  background: rgba(0,0,0,0.25);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
}
.config-value-row code.muted { color: #64748b; }
.code-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.info-list { margin: 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.info-list > div:first-child { border-top: none; }
.info-list dt { color: #64748b; margin: 0; }
.info-list dd { color: #e2e8f0; margin: 0; }
.info-list .accent-gold { color: #e6b450; }
.setup-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.setup-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.setup-checklist li.ok { border-color: rgba(34,197,94,0.2); }
.setup-checklist li.fail { border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.06); }
.setup-checklist li.warn { border-color: rgba(251,191,36,0.25); }
.setup-checklist .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}
.setup-checklist li.ok .check-icon { background: rgba(34,197,94,0.15); color: #4ade80; }
.setup-checklist li.fail .check-icon { background: rgba(248,113,113,0.15); color: #f87171; }
.setup-checklist li strong { display: block; color: #f1f5f9; margin-bottom: 2px; }
.setup-checklist li span { color: #64748b; }
.setup-checklist li code { font-size: 12px; color: #7dd3fc; }
.setup-checklist .check-env { display: block; margin-top: 4px; font-size: 11px; }
.compact-checklist li { padding: 10px 14px; }

.system-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,26,34,0.85);
}
.system-summary.ready { border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.06); }
.system-summary.pending { border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.05); }
.system-summary-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.system-summary.ready .system-summary-icon { background: rgba(34,197,94,0.15); color: #4ade80; }
.system-summary.pending .system-summary-icon { background: rgba(251,191,36,0.15); color: #fbbf24; }
.system-summary strong { display: block; color: #f1f5f9; margin-bottom: 2px; }
.system-summary span { font-size: 13px; color: #94a3b8; }
.env-check-table code { font-size: 11px; }
.steps-list {
  margin: 0; padding-left: 20px; color: #94a3b8; font-size: 13px; line-height: 1.8;
}
.steps-list code { color: #7dd3fc; font-size: 12px; }
.form-stack { max-width: 360px; }
.form-stack .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: #f1f5f9;
  font-size: 14px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table th { color: #64748b; font-weight: 500; }
.data-table td { color: #cbd5e1; }
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.status-pill.paid { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-pill.pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.status-pill.expired { background: rgba(148,163,184,0.12); color: #94a3b8; }
.status-pill.failed { background: rgba(248,113,113,0.12); color: #f87171; }

.pay-modal { max-width: 400px; text-align: center; }
.pay-modal-meta strong { color: #fbbf24; font-weight: 600; }
.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
}
.pay-qr { display: block; width: 220px; height: 220px; }
.pay-order-no code { font-size: 11px; color: #cbd5e1; }
.pay-countdown { color: #fbbf24; font-size: 12px; margin-bottom: 0; }
.m-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.m-id-row .m-id { flex: 1; min-width: 0; }

/* 本地开发提示 */
.dev-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
}
.dev-banner strong { color: #bae6fd; font-weight: 600; }
.dev-banner span { color: #94a3b8; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 32px 20px;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(103, 232, 249, 0.08);
  color: #67e8f9;
}
.empty-state.compact { padding: 20px; }
.empty-state .empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 8px;
}
.empty-state .empty-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}

/* Toast */
.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { border-color: rgba(34,197,94,0.35); }
.toast.err { border-color: rgba(248,113,113,0.35); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-box {
  width: 100%;
  max-width: 420px;
  background: #141a22;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 14px;
}
.modal-text {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px;
  line-height: 1.6;
}
.modal-key { font-size: 11px; word-break: break-all; margin-bottom: 0; }
.modal-box .field { margin-bottom: 14px; }
.modal-box .field label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}
.modal-box .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: #f1f5f9;
  font-size: 14px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* 模型页 */
.toolbar-split {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-split .search-box { flex: 1; min-width: 200px; margin-bottom: 0; }
.toolbar-meta { font-size: 12px; color: #64748b; white-space: nowrap; }
.model-card .m-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #67e8f9;
  background: rgba(103,232,249,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.recharge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .recharge-layout { grid-template-columns: 1fr; }
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.amount-grid button .amt { display: block; font-size: 18px; font-weight: 600; }

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .app-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 12px;
  }
  .app-brand { padding: 12px 8px; }
  .app-nav {
    flex: 1;
    flex-direction: row;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 24px), transparent);
  }
  .app-sidebar-foot {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 12px;
    border-top: none;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 0;
  }
  .page-header-aside { text-align: left; padding-bottom: 16px; }
  .app-content { padding: 16px 20px 32px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row-3 { grid-template-columns: 1fr; }
  .guide-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   登录页 · 大厂级 Landing
   ============================================================ */
body.is-landing {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #030a14;
}
body.is-landing .landing-main {
  max-width: none;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
body.is-landing .aurora {
  opacity: 0.48;
  background:
    radial-gradient(ellipse 22% 20% at 94% 46%, rgba(14,165,233,0.05), transparent 50%),
    radial-gradient(ellipse 38% 32% at 12% 8%, rgba(37,99,235,0.12), transparent 58%),
    radial-gradient(ellipse 55% 24% at 50% 108%, rgba(6,182,212,0.05), transparent 60%);
}

.landing {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.5vh, 24px) clamp(8px, 1.5vw, 20px) clamp(16px, 2.5vh, 24px) clamp(24px, 5vw, 64px);
}
.landing-glow {
  position: fixed;
  inset: auto 0 0 0;
  height: 24vh;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 65% at 50% 100%, rgba(14,165,233,0.06), transparent 66%),
    radial-gradient(ellipse 22% 28% at 90% 88%, rgba(34,211,238,0.03), transparent 62%);
}

.landing-nav {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: clamp(52px, 7vh, 64px);
}
.landing-nav .brand {
  text-decoration: none;
  color: inherit;
}

.landing-body {
  position: relative;
  z-index: 12;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(400px, 540px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.landing-copy {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: center;
  min-height: 0;
  max-width: 520px;
  width: 100%;
  color: var(--text);
  animation: landing-in 0.7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes landing-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-copy h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f1f5f9;
  white-space: nowrap;
}
.landing-copy h1 em {
  font-style: normal;
  color: #67e8f9;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.model-tags span {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-panel {
  padding: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.login-panel .field { margin-bottom: 12px; }
.login-panel .field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}
.login-panel .field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 15px;
  color: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
}
.login-panel .field input::placeholder { color: #475569; }
.login-panel .field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
}
.login-panel .field input:focus {
  outline: none;
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(0, 0, 0, 0.38);
}

.panel-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.trust-line {
  margin: 0;
  font-size: 12px;
  color: #475569;
  text-align: center;
  letter-spacing: 0.04em;
}

.btn-primary {
  margin-top: 8px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #67e8f9;
  box-shadow: none;
}
.btn-primary:hover:not(:disabled) {
  opacity: 1;
  background: #7dd3fc;
  filter: none;
  box-shadow: none;
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-primary.is-loading .btn-label { opacity: 0.85; }

.login-panel .msg {
  margin-top: 10px;
  min-height: 18px;
}

.meta-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}
.meta-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,0.35), rgba(14,165,233,0.2));
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.meta-steps .sep {
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(148,163,184,0.35), rgba(148,163,184,0.08));
}

.landing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
  pointer-events: none;
  animation: landing-in 0.9s cubic-bezier(.22,1,.36,1) 0.08s both;
}
.earth-stage {
  position: relative;
  flex-shrink: 0;
  width: min(78vh, 100%, 680px);
  height: min(78vh, 100%, 680px);
  margin: 0 auto;
  perspective: 1000px;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* 立体轨道：后半段在地球后面，前半段在地球前面，整体缓慢旋转 */
.orbit-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.orbit-back {
  z-index: 1;
  clip-path: inset(0 0 50% 0);
  -webkit-clip-path: inset(0 0 50% 0);
}
.orbit-front {
  z-index: 3;
  clip-path: inset(50% 0 0 0);
  -webkit-clip-path: inset(50% 0 0 0);
}
.orbit-spinner {
  position: absolute;
  inset: 10%;
  transform-style: preserve-3d;
  animation: orbit-spin 32s linear infinite;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}
.orbit-back .orbit-ring:nth-child(1) { transform: rotateX(68deg) rotateY(0deg); border-color: rgba(255,255,255,0.38); }
.orbit-back .orbit-ring:nth-child(2) { transform: rotateX(68deg) rotateY(72deg); border-color: rgba(255,255,255,0.32); }
.orbit-back .orbit-ring:nth-child(3) { transform: rotateX(68deg) rotateY(144deg); border-color: rgba(255,255,255,0.28); }
.orbit-front .orbit-ring:nth-child(1) { transform: rotateX(68deg) rotateY(0deg); border-color: rgba(255,255,255,0.55); }
.orbit-front .orbit-ring:nth-child(2) { transform: rotateX(68deg) rotateY(72deg); border-color: rgba(255,255,255,0.48); }
.orbit-front .orbit-ring:nth-child(3) { transform: rotateX(68deg) rotateY(144deg); border-color: rgba(255,255,255,0.42); }
@keyframes orbit-spin {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to   { transform: rotateY(360deg) rotateX(10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spinner { animation: none; }
}
.earth-glow {
  position: absolute;
  inset: 16%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.14) 0%, rgba(34,211,238,0.05) 40%, transparent 52%);
  filter: blur(4px);
  pointer-events: none;
}
.earth-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 82%;
  transform: translate(-50%, -50%);
  line-height: 0;
  animation: earth-float 7s ease-in-out infinite;
}
@keyframes earth-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 10px)); }
}
.earth-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    saturate(1.1)
    contrast(1.06)
    drop-shadow(0 0 18px rgba(56, 189, 248, 0.4))
    drop-shadow(0 0 32px rgba(34, 211, 238, 0.12));
}
.earth-sphere {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.35) 0%, transparent 42%),
    radial-gradient(circle at 70% 65%, #1e4d7a 0%, #0c2d4a 38%, #061525 72%);
  box-shadow:
    inset -18px -22px 40px rgba(0,0,0,0.45),
    0 0 60px rgba(56, 189, 248, 0.12);
  filter:
    drop-shadow(0 0 12px rgba(56, 189, 248, 0.38))
    drop-shadow(0 0 22px rgba(34, 211, 238, 0.1));
}

.landing-foot {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 clamp(14px, 2vh, 20px);
  font-size: 12px;
  color: #475569;
}
.landing-foot a {
  color: #64748b;
  transition: color 0.15s;
}
.landing-foot a:hover { color: #94a3b8; }
.landing-foot .foot-sep { color: #334155; user-select: none; }

@media (max-width: 900px) {
  .landing-body {
    grid-template-columns: 1fr;
    gap: clamp(8px, 1.5vh, 16px);
    align-content: center;
  }
  .landing-visual {
    order: -1;
    justify-content: center;
    max-height: min(34vh, 300px);
    padding-right: 0;
  }
  .earth-stage {
    width: min(72vw, min(34vh, 300px));
    height: min(72vw, min(34vh, 300px));
    margin-right: auto;
    transform: none;
  }
  .landing-copy {
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
  }
  .landing-copy h1 {
    font-size: 24px;
    white-space: normal;
  }
  .model-tags span { font-size: 11px; padding: 5px 10px; }
  .login-panel { padding: 22px; }
}
@media (max-width: 640px) {
  .landing { padding: 0 18px; }
  .login-panel .field input { padding: 12px; }
  .hero h1 { font-size: 38px; }
  .hero-features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
}

.footer .f-copy { font-size: 12px; color: var(--text-4); line-height: 1.7; }
.footer .f-support { color: #64748b; }

/* 新手引导 */
.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.onboarding-step.done {
  border-color: rgba(34,197,94,0.2);
  background: rgba(34,197,94,0.04);
}
.onboarding-step.active {
  border-color: rgba(103,232,249,0.25);
  background: rgba(103,232,249,0.06);
}
.step-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  color: #94a3b8;
}
.onboarding-step.done .step-mark {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.onboarding-step.active .step-mark {
  background: rgba(103,232,249,0.15);
  color: #67e8f9;
}
.step-body { flex: 1; min-width: 0; }
.step-body strong { display: block; color: #f1f5f9; font-size: 14px; }
.step-body span { font-size: 12px; color: #64748b; }
.step-link {
  font-size: 12px;
  color: #67e8f9;
  white-space: nowrap;
}

/* 接入页 */
.connect-test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .recommend-grid { grid-template-columns: 1fr; }
}
.recommend-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.recommend-title { font-weight: 600; color: #f1f5f9; margin-bottom: 4px; }
.recommend-desc { font-size: 12px; color: #64748b; margin-bottom: 8px; line-height: 1.5; }
.recommend-id { display: block; font-size: 11px; color: #7dd3fc; margin-bottom: 8px; word-break: break-all; }
.guide-list.steps-plain li { grid-template-columns: 28px 1fr; }
.model-browse-cat {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0 12px 8px;
}
.model-browse-cat summary {
  cursor: pointer;
  padding: 12px 0;
  color: #e2e8f0;
  font-weight: 600;
}
.model-browse-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.faq-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.faq-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}
.faq-list strong { display: block; color: #e2e8f0; margin-bottom: 2px; }
.muted.xs { font-size: 11px; color: #64748b; margin-left: 8px; }

/* 首页 Key  spotlight */
.key-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(103, 232, 249, 0.05);
  margin-bottom: 12px;
}
.key-spotlight-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.key-spotlight-name {
  display: block;
  color: #f1f5f9;
  font-size: 15px;
  margin-bottom: 6px;
}
.key-spotlight-main code {
  font-size: 12px;
  color: #7dd3fc;
  word-break: break-all;
}
.key-spotlight-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.key-manage-fold {
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}
.key-manage-fold summary {
  cursor: pointer;
  font-size: 13px;
  color: #64748b;
  padding: 8px 0;
  user-select: none;
}
.key-manage-fold summary:hover { color: #94a3b8; }
.key-manage-body { padding-top: 8px; }

/* 接入：测试结果 */
.connect-test-block { margin-top: 16px; }
.connect-test-label { font-size: 12px; color: #64748b; margin-right: 8px; }
.test-model-pill {
  font-size: 12px;
  color: #7dd3fc;
  margin-right: 12px;
}
.test-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.test-result.ok {
  border-color: rgba(34,197,94,0.25);
  background: rgba(34,197,94,0.08);
}
.test-result.err {
  border-color: rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.06);
}
.test-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.test-result.ok .test-result-icon {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.test-result.err .test-result-icon {
  background: rgba(248,113,113,0.15);
  color: #f87171;
}
.test-result strong { display: block; color: #f1f5f9; font-size: 14px; margin-bottom: 2px; }
.test-result p { margin: 0; font-size: 13px; color: #94a3b8; line-height: 1.5; }

.guide-fold summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 4px 0;
}
.guide-fold-body { padding-top: 12px; }
.guide-fold-h {
  font-size: 13px;
  color: #94a3b8;
  margin: 16px 0 8px;
  font-weight: 600;
}
.guide-fold-h:first-child { margin-top: 0; }

/* 模型抽屉 */
body.drawer-open { overflow: hidden; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.drawer-panel {
  width: min(480px, 100vw);
  height: 100%;
  background: #0f1419;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: -12px 0 40px rgba(0,0,0,0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.drawer-overlay.show .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.drawer-head h2 { margin: 0 0 4px; font-size: 18px; color: #f1f5f9; }
.drawer-head p { margin: 0; font-size: 12px; color: #64748b; }
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}
.config-value-wrap { flex-wrap: wrap; }
