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

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6B81;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    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: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #FF6B81;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B81;
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    margin-left: 10px;
}

.login-btn {
    border: 1px solid #FF6B81;
    color: #FF6B81;
}

.register-btn {
    background-color: #FF6B81;
    color: #fff;
}

.login-btn:hover {
    background-color: rgba(255, 107, 129, 0.1);
}

.register-btn:hover {
    background-color: #ff5972;
}

/* 横幅区域样式 */
.banner-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.banner-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-slider {
    position: relative;
    height: 450px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 50px;
    max-width: 600px;
}

..banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF6B81;
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.3);
}

.banner-btn:hover {
    background-color: #ff5972;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 129, 0.4);
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* APP下载模块样式 */
.app-download {
    padding: 60px 0;
    background-color: #fff;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 1;
    padding-right: 50px;
}

.app-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.app-info p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #FF6B81;
    border-radius: 50%;
    position: relative;
}

.feature-icon:before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.download-buttons {
    display: flex;
}

.android-btn, .ios-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 25px;
    margin-right: 15px;
    font-weight: 500;
    color: #fff;
}

.android-btn {
    background-color: #3DDC84;
}

.ios-btn {
    background-color: #007AFF;
}

.android-icon, .ios-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.android-btn:hover {
    background-color: #32b36c;
    color: #fff;
}

.ios-btn:hover {
    background-color: #0062cc;
    color: #fff;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 热门推荐模块样式 */
.hot-recommend {
    padding: 60px 0;
    background-color: #f5f6fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: #FF6B81;
    border-radius: 3px;
}

.more-link {
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.more-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.more-link:hover:after {
    transform: translateX(5px);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.comic-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.comic-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comic-card:hover .comic-cover img {
    transform: scale(1.05);
}

.comic-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #FF6B81;
    color: #fff;
    font-size: 12px;
    border-radius: 15px;
    font-weight: 500;
}

.comic-info {
    padding: 15px;
}

.comic-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.comic-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 42px;
}

.comic-stats {
    display: flex;
    font-size: 12px;
    color: #999;
}

.comic-stats span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.view-icon, .like-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.view-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.like-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* 最新更新模块样式 */
.latest-updates {
    padding: 60px 0;
    background-color: #fff;
}

.update-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.update-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.update-item:hover {
    transform: translateY(-3px);
}

.update-cover {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
}

.update-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-info {
    flex: 1;
    padding: 15px;
}

.update-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-chapter {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.update-time {
    font-size: 12px;
    color: #999;
}

/* 分类浏览模块样式 */
.category-browse {
    padding: 60px 0;
    background-color: #f5f6fa;
}

.category-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tab-nav {
    display: flex;
    background-color: #f0f0f0;
    padding: 0 20px;
}

.tab-item {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: #FF6B81;
}

.tab-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FF6B81;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.category-card-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card-info p {
    font-size: 14px;
    opacity: 0.8;
}

/* 漫画资讯模块样式 */
.comic-news {
    padding: 60px 0;
    background-color: #fff;
}

.news-container {
    display: flex;
    gap: 30px;
}

.news-main {
    flex: 2;
}

.news-article {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-article:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #FF6B81;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #ff5972;
    color: #fff;
    transform: translateY(-2px);
}

.news-sidebar {
    flex: 1;
}

.news-list {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-date {
    font-size: 12px;
    color: #999;
}

/* 用户评论模块样式 */
.user-comments {
    padding: 60px 0;
    background-color: #f5f6fa;
}

.comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.comment-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-5px);
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.user-rating {
    display: flex;
}

.star {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.star:before {
    content: '★';
    color: #ddd;
}

.star.filled:before {
    color: #FFD700;
}

.star.half-filled:before {
    color: #FFD700;
}

.star.half-filled:after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FFD700;
}

.comment-content {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
}

/* 相关文章模块样式 */
.related-articles {
    padding: 60px 0;
    background-color: #fff;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.article-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.article-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.article-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FF6B81;
}

.footer-column p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #FF6B81;
    transform: translateY(-3px);
}

.social-icon {
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #FF6B81;
    padding-left: 5px;
}

.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-middle ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-middle ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-middle ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-middle ul li a:hover {
    color: #FF6B81;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-container {
        padding: 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .news-container {
        flex-direction: column;
    }
    
    .news-sidebar {
        margin-top: 30px;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 350px;
    }
    
    .banner-content {
        padding: 0 30px;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .update-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .comments-container {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 300px;
    }
    
    .banner-content h1, .banner-content h2 {
        font-size: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .android-btn, .ios-btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .update-list {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0;
    }
    
    .tab-item {
        padding: 15px 15px;
    }
}


