/* 全局变量和基础样式 */
:root {
    --primary-color: #4CAF50; /* 主色调：清新的绿色 */
    --primary-dark: #388E3C; /* 深绿色 */
    --secondary-color: #E8F5E9; /* 浅绿色背景 */
    --accent-color: #212121; /* 黑色作为点缀 */
    --text-color: #333333; /* 深灰色文字 */
    --light-bg: #F5F5F5; /* 浅灰色背景 */
    --border-color: #BDBDBD; /* 边框颜色 */
    --shadow-color: rgba(76, 175, 80, 0.1); /* 主色调的阴影 */
    --footer-color: #E0E0E0; /* 页脚背景色 */
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    letter-spacing: 0.01em; /* 轻微增加字间距 */
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 600; /* 稍微加粗，但不过重 */
    line-height: 1.4;
}

h1 { font-size: 2.2em; margin-bottom: 0.5em; }
h2 { 
    font-size: 1.8em; 
    text-align: center; 
    margin-bottom: 25px; 
    color: #333; 
    position: relative; 
    padding-bottom: 10px; 
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

h3 { 
    font-size: 1.4em; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 8px; 
    margin-top: 30px; 
    color: #444;
}

/* 基本的图片响应式处理 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主要内容区域 */
main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px; /* 更大的圆角 */
    box-shadow: 0 4px 15px var(--shadow-color); /* 柔和的阴影 */
}

/* 添加一些装饰元素 */
.section-divider {
    text-align: center;
    margin: 30px 0;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="%23d88c9a" opacity="0.5"/></svg>');
    background-repeat: repeat-x;
    background-position: center;
}

/* 返回顶部按钮样式 */
/* .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 20px;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
} */
/* 上述 .back-to-top 相关规则已移至 layout.css，此处删除或注释掉 */