:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ff8fab;
    --accent-color: #ffb3d9;
    --light-pink: #ffe0f0;
    --dark-text: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --white: #ffffff;
    --bg-light: #fff5f7;
    --shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    --shadow-hover: 0 8px 25px rgba(255, 107, 157, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--bg-light);
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 179, 217, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-left .welcome-text {
    font-weight: 600;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-link:hover {
    opacity: 0.8;
}

.divider {
    opacity: 0.6;
}

.header-main {
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-text);
}

.logo-icon {
    font-size: 36px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-form {
    position: relative;
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow);
}

.hot-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hot-label {
    font-size: 12px;
    color: var(--light-text);
}

.hot-tag {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 107, 157, 0.1);
    transition: all 0.3s;
}

.hot-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.main-nav {
    background: rgba(255, 107, 157, 0.05);
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-item:hover a,
.nav-item.active a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* Section Spacing */
section {
    margin-bottom: 60px;
}

section:last-child {
    margin-bottom: 0;
}

/* Banner Section */
.banner-section {
    margin-bottom: 50px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    height: 600px;
}

.banner-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.banner-item.large-left {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.banner-item.medium-top {
    grid-column: 3;
    grid-row: 1;
}

.banner-item.tall-right {
    grid-column: 4;
    grid-row: 1 / 3;
}

.banner-item.small-left {
    grid-column: 1;
    grid-row: 3;
}

.banner-item.medium-bottom {
    grid-column: 2 / 4;
    grid-row: 3;
}

.banner-item.tall-right-bottom {
    grid-column: 4;
    grid-row: 3;
}

.banner-card {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.banner-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.banner-card:hover .banner-card-img {
    transform: scale(1.1);
}

.banner-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    padding: 20px;
    color: var(--white);
}

.banner-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-card-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.banner-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-right: 5px;
}

.banner-tag.red {
    background: #e74c3c;
    color: var(--white);
}

.banner-tag.yellow {
    background: #f39c12;
    color: var(--white);
}

.banner-tag.pink {
    background: var(--primary-color);
    color: var(--white);
}

.banner-card.promo {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.promo-content {
    z-index: 2;
    position: relative;
}

.promo-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.promo-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 80%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

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

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

@media (min-width: 1200px) {
    .comic-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.comic-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 107, 157, 0.08);
}

.comic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.25);
    border-color: var(--primary-color);
}

.comic-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.02), rgba(255, 179, 217, 0.01));
}

.comic-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-cover {
    position: relative;
    width: 100%;
    padding-top: 135%;
    overflow: hidden;
    background: var(--light-pink);
    border-radius: 12px 12px 0 0;
}

.cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.comic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.comic-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 10px;
    font-size: 11px;
}

.comic-info {
    padding: 16px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
}

.comic-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.comic-author {
    font-size: 11px;
    color: var(--light-text);
    margin-bottom: 6px;
}

.comic-desc {
    font-size: 11px;
    color: var(--lighter-text);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--lighter-text);
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.comic-chapter {
    color: var(--primary-color);
    font-weight: 600;
}

/* Latest Update Section */
.latest-update-section {
    margin: 50px 0;
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.update-item {
    background: rgba(255, 107, 157, 0.03);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.update-item:hover {
    background: rgba(255, 107, 157, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.update-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.update-cover {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.update-info {
    flex: 1;
}

.update-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.update-chapter {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.update-time {
    font-size: 12px;
    color: var(--lighter-text);
}

/* Ranking Section */
.ranking-section {
    margin: 50px 0;
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 107, 157, 0.03);
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.rank-item:hover {
    background: rgba(255, 107, 157, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.rank-item.rank-1,
.rank-item.rank-2,
.rank-item.rank-3 {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 179, 217, 0.05));
    border-color: var(--primary-color);
}

.rank-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.rank-item.rank-1 .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-text);
}

.rank-item.rank-2 .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--dark-text);
}

.rank-item.rank-3 .rank-number {
    background: linear-gradient(135deg, #cd7f32, #e6a857);
    color: var(--white);
}

.rank-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rank-cover {
    width: 70px;
    height: 95px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.rank-author {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.rank-views {
    font-size: 12px;
    color: var(--lighter-text);
}

/* Category Section */
.category-section {
    margin: 50px 0;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.category-item {
    background: rgba(255, 107, 157, 0.03);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid rgba(255, 107, 157, 0.1);
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.08);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.category-count {
    font-size: 12px;
    color: var(--light-text);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
    }
    
    .banner-item.large-left {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 300px;
    }
    
    .banner-item.medium-top {
        grid-column: 1;
        grid-row: 2;
        height: 200px;
    }
    
    .banner-item.tall-right {
        grid-column: 2;
        grid-row: 2;
        height: 200px;
    }
    
    .banner-item.small-left {
        grid-column: 1;
        grid-row: 3;
        height: 150px;
    }
    
    .banner-item.medium-bottom {
        grid-column: 2;
        grid-row: 3;
        height: 150px;
    }
    
    .banner-item.tall-right-bottom {
        grid-column: 1 / 3;
        grid-row: 4;
        height: 200px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .nav-item a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .banner-item {
        height: 250px !important;
        grid-column: 1 !important;
    }
    
    .banner-item.large-left {
        grid-row: 1;
    }
    
    .banner-item.medium-top {
        grid-row: 2;
    }
    
    .banner-item.tall-right {
        grid-row: 3;
    }
    
    .banner-item.small-left {
        grid-row: 4;
        height: 180px !important;
    }
    
    .banner-item.medium-bottom {
        grid-row: 5;
    }
    
    .banner-item.tall-right-bottom {
        grid-row: 6;
    }
    
    .banner-card-title {
        font-size: 18px;
    }
    
    .promo-title {
        font-size: 20px;
    }
    
    .promo-desc {
        font-size: 12px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .update-list {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-right {
        flex-wrap: wrap;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .comic-info {
        padding: 15px;
        min-height: auto;
    }
    
    .comic-title {
        font-size: 14px;
    }
    
    .comic-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-item {
        padding: 20px 15px;
    }
    
    
    .rank-item {
        padding: 15px;
    }
    
    .rank-cover {
        width: 60px;
        height: 80px;
    }
    
    .update-list {
        gap: 12px;
    }
    
    .update-item {
        padding: 12px;
    }
    
    .update-cover {
        width: 70px;
        height: 95px;
    }
    
    .latest-update-section,
    .ranking-section,
    .category-section,
    .testimonials-section {
        padding: 25px 20px;
    }
    
    .stats-section {
        padding: 30px 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* List Page Styles */
.page-header-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 179, 217, 0.05));
    padding: 40px 0;
    margin-bottom: 30px;
}

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

.page-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--light-text);
}

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 15px;
    min-width: 60px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-option {
    padding: 8px 18px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.filter-select {
    padding: 8px 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    background: var(--white);
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Comic List Section */
.comic-list-section {
    margin-bottom: 50px;
}

.list-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.list-stats {
    font-size: 14px;
    color: var(--light-text);
}

.list-stats strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

.view-switch {
    display: flex;
    gap: 8px;
    background: rgba(255, 107, 157, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

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

.comic-list-grid.list-view {
    grid-template-columns: 1fr;
}

.list-comic-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 107, 157, 0.08);
    transition: all 0.3s;
}

.list-comic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.list-comic-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.comic-list-grid:not(.list-view) .list-comic-link {
    flex-direction: column;
}

.comic-list-grid.list-view .list-comic-link {
    flex-direction: row;
}

.list-comic-cover {
    position: relative;
    flex-shrink: 0;
    background: var(--light-pink);
}

.comic-list-grid:not(.list-view) .list-comic-cover {
    width: 100%;
    padding-top: 140%;
}

.comic-list-grid.list-view .list-comic-cover {
    width: 180px;
    height: 240px;
}

.list-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.list-comic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.list-comic-badge.hot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.list-comic-badge.new {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.list-comic-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 10px;
    font-size: 11px;
}

.list-comic-status.finished {
    background: rgba(76, 175, 80, 0.9);
}

.list-comic-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-comic-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
    line-height: 1.4;
}

.list-comic-author {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.list-comic-desc {
    font-size: 13px;
    color: var(--lighter-text);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-list-grid.list-view .list-comic-desc {
    -webkit-line-clamp: 2;
}

.list-comic-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--lighter-text);
}

.list-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-comic-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.list-tag {
    padding: 4px 10px;
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.page-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    background: var(--white);
    color: var(--dark-text);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-text);
}

.page-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-num.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.page-dots {
    color: var(--lighter-text);
    font-weight: 600;
}

/* Responsive for List Page */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .filter-wrapper {
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        min-width: auto;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .list-header-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .comic-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .comic-list-grid.list-view .list-comic-link {
        flex-direction: column;
    }
    
    .comic-list-grid.list-view .list-comic-cover {
        width: 100%;
        height: 200px;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 12px 15px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .comic-list-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        padding: 20px 15px;
    }
    
    .list-comic-info {
        padding: 15px;
    }
    
    .page-num {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* Category Page Styles */
.category-page-section {
    margin-bottom: 50px;
}

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

.category-page-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 107, 157, 0.08);
    transition: all 0.3s;
}

.category-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-page-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-page-cover {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--light-pink);
}

.category-page-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.category-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-page-icon {
    font-size: 60px;
    opacity: 0.9;
}

.category-page-info {
    padding: 25px;
    text-align: center;
}

.category-page-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.category-page-count {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.category-page-desc {
    font-size: 13px;
    color: var(--lighter-text);
    line-height: 1.6;
}

/* Rank Page Styles */
.rank-tabs-section {
    margin-bottom: 30px;
}

.rank-tabs {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.rank-tab {
    padding: 12px 30px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    background: var(--white);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
}

.rank-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rank-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.rank-content-section {
    margin-bottom: 50px;
}

.rank-tab-content {
    display: none;
}

.rank-tab-content.active {
    display: block;
}

.rank-list-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rank-item-full {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255, 107, 157, 0.08);
    transition: all 0.3s;
}

.rank-item-full:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.rank-item-full.rank-1,
.rank-item-full.rank-2,
.rank-item-full.rank-3 {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(255, 179, 217, 0.04));
    border-color: var(--primary-color);
}

.rank-number-full {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}

.rank-item-full.rank-1 .rank-number-full {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-text);
    font-size: 24px;
}

.rank-item-full.rank-2 .rank-number-full {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--dark-text);
    font-size: 24px;
}

.rank-item-full.rank-3 .rank-number-full {
    background: linear-gradient(135deg, #cd7f32, #e6a857);
    color: var(--white);
    font-size: 24px;
}

.rank-link-full {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rank-cover-full {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 107, 157, 0.2);
}

.rank-info-full {
    flex: 1;
}

.rank-title-full {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.rank-author-full {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 12px;
}

.rank-desc-full {
    font-size: 14px;
    color: var(--lighter-text);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-stats-full {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.rank-stat {
    font-size: 13px;
    color: var(--light-text);
    font-weight: 600;
}

/* Update Page Styles */
.update-timeline-section {
    margin-bottom: 50px;
}

.update-date-group {
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.update-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
}

.update-date-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-count {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 600;
}

.update-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item-full {
    background: rgba(255, 107, 157, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.update-item-full:hover {
    background: rgba(255, 107, 157, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.update-link-full {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.update-cover-full {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.update-info-full {
    flex: 1;
}

.update-title-full {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.update-chapter-full {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.update-meta-full {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--lighter-text);
    flex-wrap: wrap;
}

.update-time-full,
.update-author-full {
    display: flex;
    align-items: center;
}

/* Finish Page Styles */
.finish-filter-section {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.finish-filter-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.finish-filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.finish-filter-label {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 15px;
    min-width: 60px;
}

.finish-filter-select {
    padding: 10px 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    background: var(--white);
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.finish-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.finish-comic-section {
    margin-bottom: 50px;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .category-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .rank-tabs {
        padding: 15px 20px;
    }
    
    .rank-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .rank-item-full {
        flex-direction: column;
        text-align: center;
    }
    
    .rank-link-full {
        flex-direction: column;
        text-align: center;
    }
    
    .rank-cover-full {
        width: 100px;
        height: 140px;
    }
    
    .update-link-full {
        flex-direction: column;
    }
    
    .update-cover-full {
        width: 100%;
        height: 200px;
    }
    
    .finish-filter-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-page-grid {
        grid-template-columns: 1fr;
    }
    
    .rank-number-full {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .rank-item-full.rank-1 .rank-number-full,
    .rank-item-full.rank-2 .rank-number-full,
    .rank-item-full.rank-3 .rank-number-full {
        font-size: 20px;
    }
    
    .update-date-group {
        padding: 20px 15px;
    }
}

/* New Comics Section */
.new-comics-section {
    margin: 50px 0;
}

.comic-badge.new {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.comic-status.finished {
    background: rgba(76, 175, 80, 0.9);
}

/* Finished Section */
.finished-section {
    margin: 50px 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(255, 179, 217, 0.03));
    padding: 40px 30px;
    border-radius: 15px;
}

/* Tags Section */
.tags-section {
    margin: 50px 0;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-item {
    padding: 10px 20px;
    background: rgba(255, 107, 157, 0.08);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tag-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tag-item.hot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
}

.tag-item.hot::before {
    content: '🔥';
    margin-right: 5px;
}

/* Stats Section */
.stats-section {
    margin: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px 30px;
    border-radius: 15px;
    color: var(--white);
}

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

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-label {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
    margin: 50px 0;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: rgba(255, 107, 157, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    background: rgba(255, 107, 157, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.quote-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.author-role {
    font-size: 12px;
    color: var(--lighter-text);
}

.testimonial-rating {
    text-align: center;
    font-size: 16px;
    color: #ffd700;
}

/* Optimized Layout Improvements */
.featured-section {
    margin: 50px 0;
}

.new-comics-section {
    margin: 50px 0;
}

.finished-section {
    margin: 50px 0;
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.comic-grid {
    gap: 25px;
}

.comic-card {
    border-radius: 15px;
}

.comic-cover {
    border-radius: 15px 15px 0 0;
}

.comic-info {
    padding: 18px;
}

.latest-update-section,
.ranking-section {
    margin: 50px 0;
}

.update-list {
    gap: 15px;
}

.update-item {
    border-radius: 12px;
}

.ranking-list {
    gap: 12px;
}

.rank-item {
    border-radius: 12px;
    padding: 18px;
}

.category-grid {
    gap: 25px;
}

.category-item {
    border-radius: 15px;
    padding: 30px 25px;
}

/* Enhanced Responsive */
@media (max-width: 1024px) {
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tags-cloud {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .stats-wrapper {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-cloud {
        gap: 10px;
    }
    
    .tag-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-icon {
        font-size: 40px;
    }
    
    .stat-number {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .tags-cloud {
        gap: 8px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .stats-section {
        padding: 30px 20px;
    }
}

