/**
 * 基础样式文件
 * 包含CSS变量、重置样式、通用布局
 */

:root {
    /* 白天主题变量 */
    --bg-color: #f5f7fa;
    --text-color: #333;
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --card-bg: #fff;
    --header-bg: rgba(255, 255, 255, 0.3);
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #3498db, #1abc9c);
}

.dark-theme {
    /* 暗夜主题变量 */
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #38bdf8;
    --secondary-color: #1e293b;
    --accent-color: #0ea5e9;
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.9);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #0ea5e9, #7c3aed);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-image: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 16px;
    margin-top: 15px;
}

/* 页面内容通用样式 */
.page {
    min-height: 100vh;
}
