/* ========================================
   CSS 变量定义
   ======================================== */

:root {
  /* 主题颜色 */
  --primary-color: #3299b9;
  --primary-hover: #2a7f9a;
  --secondary-color: #2e316e;
  --accent-color: #ffb55b;

  /* 文本颜色 */
  --text-primary: #333;
  --text-secondary: #5c5c5c;
  --text-white: #fff;

  /* 背景颜色 */
  --bg-primary: #f5f5f5;
  --bg-white: #ffffff;
  --bg-navbar: #3299b9;
  --bg-footer: #3299b9;

  /* 边框颜色 */
  --border-color: #ccc;
  --border-light: #ebe9e9;
  --border-footer: #00b1d4;

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 6rem;

  /* 字体大小 */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-xxl: 1.875rem;

  /* 字体粗细 */
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 800;

  /* 行高 */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 2.5;
  --line-height-loose: 3;

  /* 圆角 */
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 50px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 断点 (用于参考，实际使用在媒体查询中) */
  --breakpoint-mobile: 576px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 992px;
  --breakpoint-wide: 1200px;

  /* 最小高度 */
  --min-height-content: 400px;
  --min-height-article: 650px;

  /* 宽度 */
  --width-content: 60%;
  --width-icon: 110px;
  --width-logo: 200px;

  /* 高度 */
  --height-icon: 100px;
  --height-navbar-item: 30px;
  --height-footer-item: 80px;
}

/* ========================================
   使用示例（注释）
   ======================================== */

/*
使用方法:

.button {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-base);
}

.button:hover {
  background-color: var(--primary-hover);
}

优势:
1. 统一管理主题色和样式参数
2. 便于全局修改和主题切换
3. 提高代码可维护性
4. 减少硬编码值
*/