/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '微软雅黑', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5e8; /* 浅米色背景，符合传统文化氛围 */
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 5%;
    background-color: #2d2b26; /* 深棕导航栏 */
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c69c6d; /* 金色悬停效果 */
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* 首页主内容 */
.hero {
    height: 93vh; /* 设置为视口高度的80%，适配背景图高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('20250510184910.png'); /* 假设背景图 */
    background-size: cover; /* 覆盖整个容器，避免背景图过小 */
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    margin-top: 70px; /* 调整为导航栏高度（包含padding和内容高度），避免遮挡背景图 */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 通用板块样式 */
.section {
    padding: 5rem 5%;
}

.section h2 {
    color: #2d2b26;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* 引用块样式 */
blockquote {
    border-left: 4px solid #c69c6d;
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
}

cite {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: #2d2b26;
    color: white;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2d2b26;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        height: 60vh; /* 移动端调整为视口高度的60% */
        background-position: center top; /* 移动端调整背景位置为顶部居中 */
        background-size: cover; /* 覆盖整个容器，保持比例 */
        margin-top: 70px; /* 移动端导航栏高度，避免遮挡背景图 */
    }
}