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

body {
    font-family: 'KaiTi', '楷体', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4e54c8;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4e54c8;
    background-color: #f0f0f0;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

.content-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

/* 娱乐页面特殊处理 */
#entertainment.content-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: block !important;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #4e54c8;
    margin-bottom: 20px;
    font-size: 28px;
}

.content-section h3 {
    color: #4e54c8;
    margin-bottom: 10px;
}

.content-section p {
    margin-bottom: 15px;
}

/* 首页特色内容 */
.featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.featured-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4e54c8;
}

/* 阅读页面样式 */
.reading-list,
.music-list,
.life-posts,
.entertainment-list {
    margin-top: 20px;
}

.book-item,
.music-item,
.life-post,
.entertainment-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4e54c8;
}

.book-date,
.music-date,
.post-date,
.entertainment-date {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.music-artist {
    font-weight: bold;
    color: #4e54c8;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
}