/* global.css */
:root {
  --bg-color: #f4f4f5;         
  --card-bg: #ffffff;          
  --text-main: #18181b;        
  --text-muted: #52525b;       
  --primary-color: #2563eb;    
  --primary-hover: #1d4ed8;    
  --success-color: #16a34a;    
  --border-color: #e4e4e7;     
  --font-family: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 核心排版：占据 70% 宽度，左右居中留白 */
.container { width: 70%; margin: 0 auto; }
@media (max-width: 768px) { .container { width: 92%; } }

/* Header 样式 */
.site-header { background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); padding: 1.2rem 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 2rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-color); }

/* Footer 样式 */
.site-footer { background-color: var(--card-bg); border-top: 1px solid var(--border-color); padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: auto; }

/* 主体内容区 */
.site-main { padding: 4rem 0; flex: 1; }