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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

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

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FF5252;
    transform: translateY(-2px);
}

.module {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.module-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.module-header .more {
    color: #FF6B6B;
    font-size: 14px;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #FF6B6B;
}

.logo span {
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
}

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

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

.main-nav a:hover {
    color: #FF6B6B;
}

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

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

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #eee;
    border-radius: 18px 0 0 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #FF6B6B;
    width: 220px;
}

.search-box button {
    height: 36px;
    padding: 0 15px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 0 18px 18px 0;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #FF5252;
}

/* 轮播图样式 */
.banner {
    margin-top: 20px;
}

.slider {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

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

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

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

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

/* 热门推荐模块样式 */
.hot-recommend {
    background-color: #fff;
}

.module-nav {
    display: flex;
}

.module-nav a {
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.module-nav a.active,
.module-nav a:hover {
    background-color: #FF6B6B;
    color: #fff;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    position: relative;
    height: 200px;
}

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

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.card-info {
    padding: 15px;
}

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

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

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

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

.btn-read {
    padding: 5px 12px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.btn-read:hover {
    background-color: #FF5252;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.btn-more {
    padding: 8px 25px;
    background-color: #fff;
    color: #FF6B6B;
    border: 1px solid #FF6B6B;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #FF6B6B;
    color: #fff;
}

/* 最新更新模块样式 */
.update-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.update-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.update-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.update-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

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

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

.update-time {
    margin-bottom: 3px;
}

/* 漫画分类模块样式 */
.category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

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

.category-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-item p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-category:hover {
    background-color: #FF5252;
    transform: scale(1.05);
}

/* 排行榜模块样式 */
.ranking-tabs {
    display: flex;
}

.tab {
    padding: 5px 15px;
    margin-right: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active,
.tab:hover {
    background-color: #FF6B6B;
    color: #fff;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    position: relative;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.ranking-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
}

.ranking-img {
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

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

.ranking-info .author,
.ranking-info .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

/* APP下载模块样式 */
.app-download {
    background-color: #f5f7fa;
    position: relative;
    overflow: hidden;
}

.app-download:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 107, 107, 0.05);
    z-index: 0;
}

.app-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.app-slogan {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

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

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #666;
}

.app-features li i {
    color: #FF6B6B;
    margin-right: 10px;
}

.download-buttons {
    display: flex;
    margin-bottom: 15px;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    margin-right: 15px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download i {
    margin-right: 8px;
    font-size: 18px;
}

.android {
    background-color: #3ddc84;
}

.android:hover {
    background-color: #2cc974;
}

.ios {
    background-color: #007aff;
}

.ios:hover {
    background-color: #0066cc;
}

.app-version {
    font-size: 12px;
    color: #999;
}

.app-qrcode {
    text-align: center;
    margin: 0 30px;
}

.app-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.app-qrcode p {
    font-size: 14px;
    color: #666;
}

.app-preview {
    width: 200px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* 漫画文章模块样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.article-img {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

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

.article-info {
    padding: 20px;
    flex: 1;
}

.article-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    color: #999;
    font-size: 12px;
}

.article-meta .date {
    margin-right: 15px;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-logo span {
    margin-left: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav-group {
    margin-right: 60px;
    margin-bottom: 20px;
}

.footer-nav-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FF6B6B;
}

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

.footer-nav-group ul li a {
    color: #bbb;
}

.footer-nav-group ul li a:hover {
    color: #fff;
}

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

.footer-middle h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul li, .friend-links a {
    margin-right: 15px;
    margin-bottom: 10px;
    color: #bbb;
}

.friend-links ul li a:hover, .friend-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright, .icp, .disclaimer {
    margin-bottom: 10px;
    color: #bbb;
    font-size: 12px;
}

.icp a {
    color: #bbb;
}

.icp a:hover {
    color: #fff;
}

.icp img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background-color: #FF6B6B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #FF5252;
    transform: translateY(-5px);
}

/* 图标样式 */
.icon-search:before {
    content: "🔍";
    margin-right: 5px;
}

.icon-check:before {
    content: "✓";
}

.icon-android:before {
    content: "🤖";
}

.icon-apple:before {
    content: "🍎";
}

.icon-arrow-up:before {
    content: "↑";
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
    
    .card-list, .ranking-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin-bottom: 10px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .card-list, .update-list, .ranking-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .app-qrcode {
        margin: 0 0 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 576px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .card-list, .update-list, .ranking-list, .category-list {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-nav-group {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 200px;
    }
    
    .module {
        padding: 30px 0;
    }
    
    .module-header h2 {
        font-size: 20px;
    }
    
    .app-preview {
        display: none;
    }
}

