/* 变量系统 */
:root {
  /* 色板 */
  --primary: #2c3e50;        /* 主色 */
  --secondary: #3498db;      /* 辅色 */
  --success: #2ecc71;        /* 成功状态 */
  --warning: #f1c40f;        /* 警告状态 */
  --danger: #e74c3c;         /* 危险状态 */
  
  /* 中性色 */
  --text-primary: #2c3e50;
  --text-secondary: #64748b;
  --border-default: #e0e0e0;
  --background-light: #f8f9fa;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 0.8rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
  
  /* 过渡动画 */
  --transition-base: 0.2s ease;
}

/* 重置与全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
}

/* 主要内容区域 */
.content-wrapper {
  flex: 1;
  padding: 2rem;
  transition: margin-left 0.3s ease;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border-radius: 8px;
  margin: 20px;
}

.content-wrapper:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}