/* 智映星河门户 · 第一阶段统一设计系统 */
:root {
  color-scheme: dark;
  --xh-bg: #080a0f;
  --xh-bg-subtle: #0b0e14;
  --xh-surface: #11151d;
  --xh-surface-raised: #171c26;
  --xh-surface-hover: #1d2430;
  --xh-border: rgba(255, 255, 255, .08);
  --xh-border-strong: rgba(255, 255, 255, .14);
  --xh-text: #f3f5f7;
  --xh-text-secondary: #aab2c0;
  --xh-text-muted: #707a8b;
  --xh-accent: #7c8cff;
  --xh-accent-hover: #93a0ff;
  --xh-accent-soft: rgba(124, 140, 255, .14);
  --xh-success: #3fcf8e;
  --xh-warning: #e6a84a;
  --xh-danger: #f06b78;
  --xh-radius-sm: 8px;
  --xh-radius-md: 12px;
  --xh-radius-lg: 16px;
  --xh-shadow-card: 0 12px 32px rgba(0, 0, 0, .28);
  --xh-shadow-float: 0 20px 52px rgba(0, 0, 0, .4);

  /* 兼容门户现有页面，逐步淘汰旧变量。 */
  --bg: var(--xh-bg);
  --text: var(--xh-text);
  --soft: var(--xh-text-secondary);
  --muted: var(--xh-text-muted);
  --surface: rgba(17, 21, 29, .94);
  --surface2: rgba(23, 28, 38, .96);
  --line: var(--xh-border);
  --line2: var(--xh-border-strong);
  --violet: var(--xh-accent);
  --cyan: var(--xh-accent-hover);
  --ok: var(--xh-success);
  --warn: var(--xh-warning);
  --down: var(--xh-danger);
  --radius: var(--xh-radius-lg);
  --shadow-card: var(--xh-shadow-card);
  --grad: linear-gradient(135deg, #7c8cff 0%, #6677ee 100%);
  --grad2: linear-gradient(135deg, #93a0ff 0%, #7c8cff 100%);
}

html, body, #app {
  background: var(--xh-bg) !important;
  color: var(--xh-text);
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* 降低门户原有星空和极光的装饰强度，让内容层级更稳定。 */
.aurora { opacity: .32 !important; filter: blur(64px) saturate(80%) !important; }
.stars { opacity: .3 !important; }

.glass, .card, .panel, .box, .a-panel, .a-kpi,
.modal-content, .dropdown-menu, .stat-card, .pricing-card, .dashboard-card {
  background: var(--xh-surface) !important;
  border: 1px solid var(--xh-border) !important;
  border-radius: var(--xh-radius-lg) !important;
  color: var(--xh-text) !important;
  box-shadow: var(--xh-shadow-card) !important;
  backdrop-filter: none !important;
}

.glass:hover, .feat:hover, .step:hover, .a-kpi:hover {
  border-color: var(--xh-border-strong) !important;
}

.btn {
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: var(--xh-radius-md) !important;
  background: var(--xh-accent) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}

.btn::after { display: none !important; }
.btn:hover { background: var(--xh-accent-hover) !important; transform: translateY(-1px); }
.btn.ghost {
  background: transparent !important;
  border: 1px solid var(--xh-border-strong) !important;
  color: var(--xh-text-secondary) !important;
}
.btn.ghost:hover { background: var(--xh-surface-hover) !important; color: var(--xh-text) !important; }
.btn.sm { min-height: 34px; padding: 0 13px !important; font-size: 13px !important; }

.inp, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  background: var(--xh-surface-raised) !important;
  border: 1px solid var(--xh-border-strong) !important;
  border-radius: var(--xh-radius-md) !important;
  color: var(--xh-text) !important;
  box-shadow: none !important;
}
.inp:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--xh-accent) !important;
  box-shadow: 0 0 0 3px rgba(124, 140, 255, .16) !important;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--xh-text-muted) !important; }

.side {
  background: var(--xh-bg-subtle) !important;
  border-color: var(--xh-border) !important;
  backdrop-filter: none !important;
}
nav a { color: var(--xh-text-secondary) !important; }
nav a:hover { background: var(--xh-surface-raised) !important; color: var(--xh-text) !important; }
nav a.router-link-exact-active {
  background: var(--xh-accent-soft) !important;
  color: var(--xh-accent-hover) !important;
  box-shadow: inset 3px 0 0 var(--xh-accent) !important;
}

.orb, .mark, .av, .bal {
  background: var(--grad) !important;
  box-shadow: none !important;
}

.chip, .tag { border-radius: 999px; }
.mini { background: var(--xh-surface-raised) !important; border-color: var(--xh-border-strong) !important; }
.a-table th, .a-table td, table, th, td { border-color: var(--xh-border) !important; }

#floating-canvas-cta {
  background: var(--xh-accent) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: var(--xh-shadow-float) !important;
}
#floating-canvas-cta span { color: #fff !important; }

*:focus-visible { outline: 2px solid var(--xh-accent) !important; outline-offset: 2px; }
::selection { background: rgba(124, 140, 255, .3); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #303746; border-radius: 999px; }

@media (max-width: 720px) {
  .body { padding: 20px 16px !important; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px) !important; }
}
