/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 公共布局 */
.header, .main, .footer {
    width: 100%;
}

.header-inner, .main, .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    color: #8B4513;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #333;
    text-decoration: none;
    padding: -2px 15px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #8B4513;
}

.nav a.active {
    color: #8B4513;
    font-weight: bold;
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #8B4513;
}

/* 主要内容区域 */
.main {
    margin-top: 100px;
    padding: 20px 15px;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B4513;
}

/* 通用标题样式 */
h2 {
    font-size: 28px;
    color: #8B4513;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #8B4513;
    margin: 10px auto 0;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
} 