.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 快速入口区域 */
.quick-access {
    padding: 2rem;
    background: white;
    margin-top: -2rem;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: 2rem;
    margin-right: 2rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.access-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.access-card:hover {
    transform: translateY(-5px);
}

.access-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.access-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* 热门推荐区域 */
.featured {
    padding: 2rem;
}

.featured h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.book-info .author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.book-info .description {
    color: #666;
    line-height: 1.6;
}

/* 最新资讯区域 */
.news {
    padding: 2rem;
    background: #f8f9fa;
}

.news h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.news-content .time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-content .preview {
    color: #666;
    line-height: 1.6;
}

/* 特色专题区域 */
.special-topics {
    padding: 2rem;
}

.special-topics h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.topic-info {
    padding: 1.5rem;
}

.topic-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.topic-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 读者互动区域 */
.community {
    padding: 2rem;
    background: #f8f9fa;
}

.community h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.community-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.reviews h3,
.rankings h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.review-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.user-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.preview {
    color: #666;
    line-height: 1.6;
}

.ranking-list {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ranking-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.ranking-list li:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    height: 30px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.title {
    flex: 1;
    color: #333;
}

.score {
    color: #e74c3c;
    font-weight: bold;
}

.bg-music {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.bg-music:hover {
    opacity: 1;
}

.bg-music audio {
    height: 30px;
    opacity: 0.7;
}

.bg-music audio:hover {
    opacity: 1;
} 