/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

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

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

::selection { background: var(--brand-100); color: var(--brand-800); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* 工具类 */
.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }
.gap-1{gap:4px;} .gap-2{gap:8px;} .gap-3{gap:12px;} .gap-4{gap:16px;} .gap-6{gap:24px;}
.mt-2{margin-top:8px;} .mt-3{margin-top:12px;} .mt-4{margin-top:16px;} .mt-6{margin-top:24px;} .mt-8{margin-top:32px;}
.ml-auto{margin-left:auto;}
.flex-1{flex:1 1 auto;}
.wrap{flex-wrap:wrap;}
.hidden{display:none !important;}
.text-center{text-align:center;}
.text-right{text-align:right;}
.text-secondary{color:var(--text-secondary);}
.text-tertiary{color:var(--text-tertiary);}
.text-danger{color:var(--danger);}
.text-success{color:var(--success);}
.text-brand{color:var(--brand-600);}
.fw-500{font-weight:500;} .fw-600{font-weight:600;} .fw-700{font-weight:700;}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-tertiary);
}

/* 数据大字 - 增强立体感 */
.data-xl, .data-lg, .data-md {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  /* 立体渐变:从深墨到品牌紫,模拟金属/墨玉质感 */
  background: linear-gradient(180deg,
    #1a1f3a 0%,
    #2d3561 30%,
    #4f46e5 75%,
    #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  /* 字体本身投影,制造立体浮凸感 */
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.18))
          drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
  position: relative;
}
.data-xl {
  font-size: 40px; line-height: 1.02; font-weight: 800;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.data-lg {
  font-size: 28px; line-height: 1.1; font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 48;
}
.data-md {
  font-size: 22px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 32;
}

.data-unit {
  font-family: var(--font-display);
  font-size: 0.5em;
  font-weight: 500;
  background: none !important;
  -webkit-text-fill-color: var(--text-tertiary) !important;
  color: var(--text-tertiary) !important;
  margin-left: 4px;
  filter: none;
}

/* —— 渐变变体 —— */
.grad-warm {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #fb7185 70%, #e11d48 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.22))
          drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}
.grad-cool {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 45%, #4f46e5 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(20, 184, 166, 0.22))
          drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}
.grad-luxe {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 40%, #4f46e5 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(79, 70, 229, 0.3))
          drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
}
.grad-brand {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.28))
          drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
}
