@charset "utf-8";

/* ============================================
   悠悠我心 - 公共样式表
   所有页面共用此文件
   教材标准CSS，使用float布局
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;
    background-color: #f4f4f4;
    color: #333;
}

/* 页面主容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 60px 0;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ============================================
   导航栏样式
   明亮浅蓝背景 + 白色文字，清晰易读
   ============================================ */
.beij {
    width: 100%;
    margin-top: 15px;
    overflow: visible;
}

.nav {
    width: 100%;
    height: 50px;
    background-color: #5bc0de;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    overflow: hidden;
    border-radius: 8px;
}

.nav li {
    list-style: none;
    float: left;
    width: 14.28%;
    height: 50px;
    text-align: center;
    line-height: 50px;
    position: relative;
}

/* 鼠标悬停 — 白色半透明背景 */
.nav li:hover {
    background-color: rgba(255,255,255,0.3);
}

/* 导航链接 */
.daoh {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 100%;
    height: 100%;
    font-weight: bold;
    font-size: 15px;
}

.daoh:hover {
    color: #fff;
    text-decoration: none;
}

/* ============================================
   页头样式
   ============================================ */
header {
    background-color: #fff;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

header img {
    width: 100%;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

h1.biaoti {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 10px 30px;
    margin-top: 25px;
    border-radius: 8px;
    color: #4CAF50;
    font-size: 2.5rem;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ============================================
   页脚样式
   ============================================ */
footer {
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   标题层级
   ============================================ */
h1 { font-size: 2rem; margin-bottom: 15px; color: #4CAF50; }
h2 { font-size: 1.8rem; margin-bottom: 10px; color: #555; }
h3 { margin: 0; padding: 0; }
p { margin-bottom: 15px; }
a { color: #2196F3; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ============================================
   响应式（移动端适配）
   ============================================ */
@media (max-width: 768px) {
    .container { padding: 0 10px 60px 10px; }
    .nav li { width: auto; font-size: 14px; }
    section { width: 100%; }
}
