/* 免费韩漫网样式 */
/* 基础样式 */
:root {
    --primary: #ff6b9d;
    --secondary: #8a2be2;
    --accent: #4facfe;
    --bg-light: #faf0f6;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

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

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: bold;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.transition {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eaeaea;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.search-container {
    position: relative;
    margin-left: 20px;
}

.search-input {
    width: 200px;
    height: 36px;
    padding: 0 10px 0 32px;
    border: 1px solid #ddd;
    border-radius: 18px;
    background-color: #f5f5f5;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 250px;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    width: 18px;
    height: 18px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    color: #555;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background-color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.mobile-menu-close-icon {
    width: 24px;
    height: 24px;
    color: #555;
}

.mobile-nav-links {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* 主要内容样式 */
.main-content {
    padding-top: 60px;
}

/* 轮播图样式 - 调整背景渐变和文字颜色 */
.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.85); /* 添加半透明背景提高文字可读性 */
}

.slide-1 {
    background: linear-gradient(135deg, #ffb6c1, #ffc8dd); /* 浅粉色渐变背景 */
}

.slide-2 {
    background: linear-gradient(135deg, #b3e0ff, #ccf2ff); /* 浅蓝色渐变背景 */
}

.slide-3 {
    background: linear-gradient(135deg, #ffdfba, #ffebcd); /* 浅橙色渐变背景 */
}

.carousel-title {
    font-size: 2.5rem;
    color: var(--text-dark); /* 文字颜色改为黑色 */
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.carousel-desc {
    font-size: 1.2rem;
    color: var(--text-dark); /* 文字颜色改为黑色 */
    max-width: 800px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff4a85;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.indicator.active {
    width: 30px;
    border-radius: 5px;
    background-color: var(--primary);
}

/* section 公共样式 */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    color: #666;
}

/* 热门推荐 */
.comic-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.comic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.comic-cover {
    height: 180px;
    background: linear-gradient(135deg, #ff6b9d, #8a2be2);
    position: relative;
    overflow: hidden;
}

.comic-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.comic-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff9800;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.comic-info {
    padding: 15px;
}

.comic-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.comic-status {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.comic-like {
    color: var(--primary);
    cursor: pointer;
}

/* 分类浏览 */
.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 15px;
}

.category-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.category-count {
    font-size: 12px;
    color: #999;
    background-color: #f9f9f9;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* 最新更新 */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.update-cover {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.update-content {
    flex-grow: 1;
}

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

.update-chapter {
    font-size: 12px;
    color: #666;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.update-time {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.update-read {
    color: var(--primary);
    cursor: pointer;
}

/* 排行榜 */
.ranking-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ranking-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ranking-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.ranking-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.rank-1 {
    background-color: #ffd700;
    color: #8b4513;
}

.rank-2 {
    background-color: #c0c0c0;
    color: #000;
}

.rank-3 {
    background-color: #cd7f32;
    color: #000;
}

.rank-4, .rank-5 {
    background-color: #f0f0f0;
    color: #666;
}

.ranking-cover {
    width: 40px;
    height: 55px;
    background: linear-gradient(135deg, #ff6b9d, #8a2be2);
    border-radius: 6px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ranking-info {
    flex-grow: 1;
}

.ranking-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 11px;
    color: #999;
}

/* 页脚样式 */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-title {
font-size: 2rem;
    }

    .carousel-desc {
font-size: 1rem;
    }

    .section-title {
font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .search-container {
display: none;
    }

    .mobile-menu-btn {
display: block;
    }

    .carousel {
height: 300px;
    }

    .carousel-title {
font-size: 1.8rem;
    }

    .comic-grid, .category-grid, .ranking-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .carousel-title {
font-size: 1.5rem;
    }

    .carousel-desc {
font-size: 0.9rem;
    }

    .btn {
padding: 10px 20px;
font-size: 14px;
    }

    .section-title {
font-size: 1.8rem;
    }

    .comic-grid, .category-grid, .ranking-grid {
grid-template-columns: 1fr;
    }

    .update-item {
flex-direction: column;
align-items: flex-start;
    }

    .update-cover {
margin-bottom: 10px;
    }
}