/* 
 * base.css - 基础样式
 * 包含：重置样式、全局变量、基础元素样式
 */

/* ========== CSS变量定义 ========== */
:root {
  /* 主题色 */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #2e7d32;
  --error-color: #c62828;
  --info-color: #1976d2;
  
  /* 中性色 */
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-white: rgba(255, 255, 255, 0.95);
  
  /* 间距 */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  
  /* 圆角 */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-round: 30px;
  
  /* 阴影 */
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(102, 126, 234, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== 重置样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== 基础元素样式 ========== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
}

/* 链接默认样式 */
a {
  text-decoration: none;
  transition: var(--transition-normal);
}

/* 按钮默认样式 */
button {
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-normal);
}

/* 输入框默认样式 */
input {
  font-family: inherit;
}

/* 禁用元素样式 */
[disabled] {
  opacity: 0.6;
  cursor: not-allowed !important;
}