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

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #8B4513;
    font-size: 24px;
    font-weight: bold;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.user-info a:hover {
    color: #8B4513;
}

/* 导航栏样式 */
nav {
    background: #8B4513;
    padding: 10px 0;
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 页面主体 */
main {
    padding: 30px 0;
    min-height: calc(100vh - 400px);
}

/* 页面标题 */
h2 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #8B4513;
    margin: 10px auto;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
} 