/* ============================================================
 * GEO Cloud · 视觉精修设计系统（v0.6.6）
 * 字体 / 字号 / 色彩 / 阴影 / 装饰元素
 * ============================================================ */

/* 引入 Inter 字体（与 Arco 配合 · 数字字符更精致）*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ===== 字体 ===== */
  --vr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --vr-font-mono: 'SF Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  --vr-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;

  /* ===== 紫色 5 档梯度（取代单一 accent）===== */
  --vr-purple-50: #FAF5FF;
  --vr-purple-100: #F3E8FF;
  --vr-purple-200: #E9D5FF;
  --vr-purple-300: #D8B4FE;
  --vr-purple-400: #C084FC;
  --vr-purple-500: #A855F7;
  --vr-purple-600: #9333EA;
  --vr-purple-700: #7E22CE;
  --vr-purple-800: #6B21A8;
  --vr-purple-900: #581C87;

  /* ===== 金色（首推率专用 · No.1 概念）===== */
  --vr-gold-50: #FFFBEB;
  --vr-gold-100: #FEF3C7;
  --vr-gold-200: #FDE68A;
  --vr-gold-400: #FBBF24;
  --vr-gold-500: #F59E0B;
  --vr-gold-600: #D97706;
  --vr-gold-700: #B45309;
  --vr-gold-grad: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  --vr-gold-grad-soft: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);

  /* ===== 阴影梯度 ===== */
  --vr-shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --vr-shadow-sm: 0 2px 4px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
  --vr-shadow: 0 4px 12px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .04);
  --vr-shadow-lg: 0 12px 32px rgba(0, 0, 0, .08), 0 4px 8px rgba(0, 0, 0, .04);
  --vr-shadow-purple: 0 8px 24px rgba(124, 58, 237, .15), 0 2px 6px rgba(124, 58, 237, .1);

  /* ===== 字号尺度（type scale）===== */
  --vr-text-xs: 10.5px;     /* tag / chip 微标 */
  --vr-text-sm: 11.5px;     /* 副标 / 提示 */
  --vr-text-base: 12.5px;   /* 正文 */
  --vr-text-md: 13px;       /* 重点正文 */
  --vr-text-lg: 14px;       /* section 标题 */
  --vr-text-xl: 16px;       /* card 标题 */
  --vr-text-2xl: 20px;      /* 区块大标题 */
  --vr-text-3xl: 26px;      /* 页面标题 */
  --vr-text-4xl: 30px;      /* KPI 数字 */
  --vr-text-5xl: 36px;      /* hero 数字 */

  /* 字距 */
  --vr-tracking-tight: -.5px;
  --vr-tracking-tighter: -.8px;
  --vr-tracking-wide: .3px;
  --vr-tracking-wider: .8px;
}

/* ============================================================
 * 全局基线
 * ============================================================ */
body {
  font-family: var(--vr-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum", "ss01";
}

/* ============================================================
 * 等宽数字辅助类（任何数字相关元素加上即生效）
 * ============================================================ */
.vr-tnum, .num, [class*="-value"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ============================================================
 * 大标题样式（用 .vr-h1 / .vr-h2 / .vr-h3 来代替默认 h 标签）
 * ============================================================ */
.vr-h1 {
  font-size: var(--vr-text-3xl);
  font-weight: 800;
  letter-spacing: var(--vr-tracking-tighter);
  line-height: 1.2;
}
.vr-h2 {
  font-size: var(--vr-text-2xl);
  font-weight: 800;
  letter-spacing: var(--vr-tracking-tight);
  line-height: 1.25;
}
.vr-h3 {
  font-size: var(--vr-text-lg);
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1.35;
}

/* ============================================================
 * KPI 大数字（白底大数字 · 等宽 tnum · Inter 800）
 * ============================================================ */
.vr-kpi-num {
  font-family: var(--vr-font-display);
  font-size: var(--vr-text-4xl);
  font-weight: 800;
  letter-spacing: var(--vr-tracking-tighter);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  color: var(--text);
}
.vr-kpi-num.gold {
  background: var(--vr-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vr-kpi-num.purple {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
 * 区块标题装饰元素
 * 在 .vr-section-title 前加 4px 渐变竖线
 * ============================================================ */
.vr-section-title {
  position: relative;
  padding-left: 12px;
  font-size: var(--vr-text-lg);
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--text);
}
.vr-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, #8B5CF6, #6D28D9);
  border-radius: 99px;
}
.vr-section-title.gold::before {
  background: var(--vr-gold-grad);
}

/* ============================================================
 * 卡片基类（白底 · 微阴影 · hover 提升）
 * ============================================================ */
.vr-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--vr-shadow-sm);
  transition: all .2s;
}
.vr-card:hover {
  box-shadow: var(--vr-shadow);
}
.vr-card.elevated {
  box-shadow: var(--vr-shadow);
}
.vr-card.feature {
  border-color: rgba(124, 58, 237, .15);
  background: linear-gradient(135deg, #fff 0%, var(--vr-purple-50) 100%);
}

/* ============================================================
 * KPI 卡精修（左侧 4px accent bar）
 * ============================================================ */
.vr-kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 16px 22px;
  position: relative;
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}
.vr-kpi-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--vr-shadow);
  transform: translateY(-2px);
}
.vr-kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 3px;
  background: linear-gradient(to bottom, var(--vr-purple-400), var(--vr-purple-700));
  border-radius: 0 2px 2px 0;
  transition: all .25s;
}
.vr-kpi-card:hover::before { top: 6%; bottom: 6%; width: 4px; }

.vr-kpi-card.is-highlight {
  background: linear-gradient(135deg, #FFFBEB 0%, #fff 60%);
  border-color: var(--vr-gold-200);
}
.vr-kpi-card.is-highlight::before {
  background: var(--vr-gold-grad);
  width: 4px;
}
.vr-kpi-card.is-highlight:hover {
  border-color: var(--vr-gold-400);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .15);
}

/* ============================================================
 * 字号微调辅助类
 * ============================================================ */
.vr-text-xs { font-size: var(--vr-text-xs); }
.vr-text-sm { font-size: var(--vr-text-sm); }
.vr-text-base { font-size: var(--vr-text-base); }
.vr-text-lg { font-size: var(--vr-text-lg); }
.vr-text-xl { font-size: var(--vr-text-xl); }

/* ============================================================
 * 渐变文字（标题点缀）
 * ============================================================ */
.vr-text-grad-purple {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vr-text-grad-gold {
  background: var(--vr-gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
 * 装饰徽章（new / hot / pro）
 * ============================================================ */
.vr-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  font-size: 10px; font-weight: 800;
  letter-spacing: var(--vr-tracking-wide);
  border-radius: 4px;
  text-transform: uppercase;
  vertical-align: middle;
}
.vr-badge.new { background: linear-gradient(135deg, #10B981, #059669); color: #fff; }
.vr-badge.hot { background: linear-gradient(135deg, #F59E0B, #DC2626); color: #fff; }
.vr-badge.pro { background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; }
.vr-badge.gold { background: var(--vr-gold-grad); color: #fff; }
.vr-badge.outline { background: transparent; border: 1px solid currentColor; }

/* ============================================================
 * 实时点（live indicator · 用于"刚刚更新"等）
 * ============================================================ */
.vr-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
  animation: vr-pulse 1.6s infinite;
  vertical-align: middle;
}
@keyframes vr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

/* ============================================================
 * 数字反馈动画（数字变化时 fade）
 * ============================================================ */
.vr-num-flash {
  animation: vr-flash .4s ease;
}
@keyframes vr-flash {
  0% { color: var(--accent); transform: scale(1.05); }
  100% { color: inherit; transform: scale(1); }
}

/* ============================================================
 * 全局分页规范 · .gx-pager
 * v4.68g · 整体居中对齐：按钮 + 「共 X 条 · 第 N/M 页」info 居中显示
 *          （此前为左对齐 + info 靠右，体验割裂 · 现统一居中）
 * 兼容旧 class：.aix-pagination / .aix-ab-pager / .src-pagination
 * 各页面只需保留容器 padding/border 微调，按钮和 info 由本规范统一
 * ============================================================ */
.gx-pager,
.aix-pagination,
.aix-ab-pager,
.src-pagination {
  display: flex;
  align-items: center;
  justify-content: center;        /* v4.68g · 整体居中 */
  gap: 6px;
  padding: 12px 4px 0;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;                /* 极窄宽度下允许换行 · 不挤出溢出滚动条 */
}
.gx-pager .gx-page-info,
.aix-pagination .aix-page-info,
.aix-ab-pager .pg-info,
.src-pagination .src-page-info {
  /* v4.68g · info 紧跟按钮组（不再推到最右），整体居中显示 */
  margin-left: 6px;
  position: static;               /* 覆盖旧的 position:absolute */
  font-size: 11.5px;
  color: var(--text3);
  white-space: nowrap;
}
.gx-pager button,
.aix-pagination .aix-page-btn,
.aix-ab-pager button,
.src-pagination .src-page-btn {
  min-width: 28px; height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .12s;
}
/* v1.2.2 · 2026-05-27 · pager 归到「页面选择 = 蓝色」体系（与侧边栏 .sb-tab.active 统一）
 * 业务紫色保留在按钮/链接/品牌 chip/排序高亮等位置，导航类视觉（侧边栏选中、当前页码）走蓝色 */
.gx-pager button:hover:not(:disabled):not(.active),
.aix-pagination .aix-page-btn:hover:not(:disabled):not(.active),
.aix-ab-pager button:hover:not(:disabled):not(.active),
.src-pagination .src-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--nav-active, #2563EB);
  color: var(--nav-active, #2563EB);
}
.gx-pager button.active,
.aix-pagination .aix-page-btn.active,
.aix-ab-pager button.active,
.src-pagination .src-page-btn.active {
  background: var(--nav-active, #2563EB);
  border-color: var(--nav-active, #2563EB);
  color: #fff;
  font-weight: 700;
}
.gx-pager button:disabled,
.aix-pagination .aix-page-btn:disabled,
.aix-ab-pager button:disabled,
.src-pagination .src-page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
/* v4.68g · 强制覆盖旧 class 上的 justify-content（统一居中，与全局规范一致） */
.aix-pagination,
.aix-ab-pager,
.src-pagination {
  justify-content: center !important;
}

/* ============================================================
 * v1.2 · 2026-05-27 · 分页器 · 页大小 chip 按钮 + 省略号
 *   原生 <select> 已替换为 button + GxMultiPicker 弹窗
 *   （浏览器原生下拉无法自定义视觉 · 与按钮风格割裂 · 改用 chip）
 * ============================================================ */
.gx-pager .gx-page-size-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border, #E5E6EB);
  border-radius: 4px;
  background: #fff;
  color: var(--text, #1F2329);
  font-size: 12px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  outline: 0;
  transition: border-color .12s, color .12s;
  margin-right: 4px;
  white-space: nowrap;
}
.gx-pager .gx-page-size-btn:hover {
  /* v1.2.2 · 与当前页码按钮同色（pager 整条统一蓝色） */
  border-color: var(--nav-active, #2563EB);
  color: var(--nav-active, #2563EB);
}
.gx-pager .gx-page-size-btn .gx-page-size-lbl { line-height: 1; }
.gx-pager .gx-page-size-btn .gx-page-size-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #86909C;
  margin-left: 2px;
  transition: border-top-color .12s;
}
.gx-pager .gx-page-size-btn:hover .gx-page-size-caret { border-top-color: var(--nav-active, #2563EB); }

/* 省略号 · 与按钮等高 · 灰色 · 不可点击 */
.gx-pager .gx-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 28px;
  color: var(--text3, #86909C);
  font-size: 13px;
  user-select: none;
  letter-spacing: 1px;
}
