/* ============================================
   GEO Ranking Optimization - Design Tokens
   基于原网站 https://app.aibase.com/zh/geo 的样式提取
   
   分层继承原理：
   Layer 1 → Layer 2 → Layer 3 → Layer 4
   页面基础 → 模块容器 → 组件继承 → 差异微调
   ============================================ */

/* ============================================
   Layer 1: 页面基础 — Design Tokens
   这是整个样式体系的唯一真相源
   ============================================ */
:root {
  /* === 颜色系统 === */
  /* 主色系 */
  --color-primary: #306AF1;
  --color-primary-hover: #1051E9;
  --color-primary-light: rgba(48, 106, 241, 0.1);
  --color-primary-ghost: rgba(48, 106, 241, 0.05);
  
  /* 文本色系 */
  --color-text-primary: #061B40;
  --color-text-secondary: rgba(6, 27, 64, 0.7);
  --color-text-tertiary: rgba(6, 27, 64, 0.5);
  --color-text-light: rgba(6, 27, 64, 0.3);
  
  /* 边框色系 */
  --color-border: #e1e5eb;
  --color-border-light: rgba(225, 229, 235, 0.5);
  --color-border-focus: #306AF1;
  
  /* 背景色系 */
  --color-bg-page: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-light: #f0f4fe;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* 状态色系 */
  --color-success: #52c41a;
  --color-warning: #faad14;
  --color-error: #f5222d;
  --color-info: #1890ff;
  
  /* === 间距系统 === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-section: 80px;
  --space-section-mobile: 48px;
  
  /* === 字体系统 === */
  --font-family-base: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-code: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  --font-size-hero: 48px;
  
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* === 圆角系统 === */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-base: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* === 阴影系统 === */
  --shadow-xs: 0 1px 2px rgba(6, 27, 64, 0.05);
  --shadow-sm: 0 2px 8px rgba(6, 27, 64, 0.06);
  --shadow-md: 0 4px 16px rgba(6, 27, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(6, 27, 64, 0.1);
  --shadow-xl: 0 12px 32px rgba(6, 27, 64, 0.12);
  --shadow-glow: 0 4px 24px rgba(48, 106, 241, 0.15);
  --shadow-glow-strong: 0 8px 32px rgba(48, 106, 241, 0.2);
  --shadow-card: 0 2px 12px rgba(6, 27, 64, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(48, 106, 241, 0.15);
  
  /* === 过渡系统 === */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* === 容器系统 === */
  --container-max: 1450px;
  --container-narrow: 1200px;
  --container-padding: 20px;
  --container-padding-mobile: 16px;
  
  /* === Z-index 层级 === */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* 深色模式已移除 - 项目为浅色主题落地页 */

/* ============================================
   全局基础样式
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: var(--line-height-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 4px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8a8a8;
}