@charset "UTF-8";

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* Screen reader only class for SEO H1 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --gray-color: #95A5A6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: none; /* Override common_home.css */
    font-size: 16px; /* Override common_home.css 12px */
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* 主要内容区域 */
main {
    padding: 30px 0 60px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI0MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDQwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEgxMjAwVjQwMEgweiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzBfMSkiLz4KPHBhdGggZD0iTTYwMCAyMDBMMzAwIDQwMEg5MDBMNjAwIDIwMFoiIGZpbGw9IiNGRjZCNkIiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CjxwYXRoIGQ9Ik04MDAgMEw2MDAgMjAwSDEwMDBMODAwIDBaIiBmaWxsPSIjNEVDREM0IiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzBfMSIgeDE9IjYwMCIgeTE9IjAiIHgyPSI2MDAiIHkyPSI0MDAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzJDM0U1MCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxQTI4MzkiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4=');
    background-size: cover;
    color: white;
    padding: 80px 0;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
}

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

/* 漫画分类 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.section-title a {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.category-card {
    flex: 1;
    min-width: 150px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background-color: var(--primary-color); /* Fallback */
}

/* Individual Category Colors handled in CSS or via inline styles in loop */

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.category-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 热门漫画 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.comic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: block; /* Ensure it works as an anchor */
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.comic-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.comic-info {
    padding: 20px;
}

.comic-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-color);
}

.comic-author {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tag {
    background-color: #F0F7FF;
    color: #118AB2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.comic-stats {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .categories {
        gap: 10px;
    }
    
    .category-card {
        min-width: 120px;
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 50px;
        padding: 15px;
    }
    
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .comic-cover {
        height: 220px;
    }
    
    .category-card {
        min-width: 100%;
    }
}

/* 搜索页特有样式 */
.search-header {
    background-color: white;
    padding: 40px 0;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.search-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.search-box-large {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
}

.search-box-large input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.search-box-large input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box-large button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

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

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-results-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.results-count {
    color: var(--gray-color);
    font-size: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0 16px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 98, 14, 0.25);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 98, 14, 0.3);
    cursor: default;
}

.pagination-btn.active:hover {
    transform: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 38px;
        height: 38px;
        line-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-color);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Search Responsive */
@media (max-width: 768px) {
    .search-header h2 {
        font-size: 1.8rem;
    }
    
    .search-box-large {
        flex-direction: column;
    }
    
    .search-box-large input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .search-box-large button {
        border-radius: 50px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .search-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

/* 分类页特有样式 */
.category-header {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.category-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-description {
    color: var(--gray-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.category-layout {
    display: flex;
    gap: 30px;
}

.category-sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.category-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--dark-color);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 14px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-item:hover {
    background-color: #f5f5f5;
}

.category-item.active {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.category-name {
    font-size: 1rem;
    flex: 1;
}

.category-count {
    background-color: #f0f0f0;
    color: var(--gray-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-item.active .category-count {
    background-color: var(--primary-color);
    color: white;
}

.category-content {
    flex: 1;
    min-width: 0;
}

.current-category-header {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 25px;
}

.current-category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.current-category-info {
    flex: 1;
}

.current-category-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.current-category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.current-category-description {
    color: #666;
    line-height: 1.6;
}

.category-comics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-comics-header h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sort-btn:hover {
    background-color: #e0e0e0;
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Category Responsive */
@media (max-width: 992px) {
    .category-layout {
        flex-direction: column;
    }
    
    .category-sidebar {
        flex: none;
        width: 100%;
        position: static;
        overflow-x: auto;
    }
    
    .category-list {
        flex-direction: row;
        width: max-content;
    }
}

/* =========================================
   Reader Page Styles (integrated from content.html)
   ========================================= */

/* Dark background for reader page */
body.p-read {
    background-color: #2C3E50;
    overflow-x: hidden;
}

/* Reader Header */
.reader-header {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.reader-header.hidden {
    transform: translateY(-100%);
}

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

.reader-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reader-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.reader-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.reader-comic-info {
    color: white;
}

.reader-comic-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: white;
}

.reader-chapter-info {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

.reader-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reader-control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reader-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Reader Content */
.reader-container {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.reader-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.reader-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.reader-page:last-child {
    border-bottom: none;
}

.page-number {
    margin-bottom: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.page-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.reader-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    max-width: 900px;
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chapter-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.chapter-select {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}

.chapter-select option {
    background-color: var(--dark-color);
    color: white;
}

/* Reader Controls Bottom */
.reader-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: transform 0.3s;
}

.reader-controls.hidden {
    transform: translateY(100%);
}

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

/* =========================================
   Comic Detail Page Styles (integrated from 详情.html)
   ========================================= */

/* Comic Header Info */
.comic-header {
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.comic-cover-large {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comic-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comic-info-large {
    flex: 1;
}

.comic-title-large {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.comic-author-info {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.comic-stats-large {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    min-width: 120px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.comic-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag-large {
    background-color: #F0F7FF;
    color: #118AB2;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

.comic-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background-color: #ff5252;
}

.action-btn.secondary {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.action-btn.secondary:hover {
    background-color: #e0e0e0;
}

.action-btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-btn.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.comic-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.status-badge {
    background-color: #06D6A0;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Comic Description */
.comic-description {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.comic-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 15px;
}

/* Chapter List */
.chapters-section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

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

.chapters-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.chapters-sort {
    display: flex;
    gap: 10px;
}

.chapters-list {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.chapter-item:hover {
    background-color: #f9f9f9;
}

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

.chapter-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-number {
    font-weight: 700;
    color: var(--dark-color);
    min-width: 60px;
}

.chapter-title {
    font-size: 1.05rem;
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.chapter-action {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chapter-action:hover {
    background-color: #ff5252;
}

/* Recommendations */
.recommendations {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.recommendations h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Detail Page Responsive */
@media (max-width: 992px) {
    .comic-header {
        flex-direction: column;
    }
    
    .comic-cover-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .comic-stats-large {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .comic-title-large {
        font-size: 1.8rem;
    }
    
    .comic-stats-large {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .comic-actions {
        flex-wrap: wrap;
    }
}

/* ========================================
   统一头部和底部样式
   ======================================== */

/* 头部样式调整 - 使其与现代化页面协调 */
.in-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
}

.in-header__logo.text-logo {
    color: white !important;
}

.in-header__nav ul li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__nav ul li.active a,
.in-header__nav ul li a:hover {
    color: white !important;
}

.in-header__nav ul li .underline {
    background: white !important;
}

.in-header__search .input {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.in-header__search .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.in-header__search .input:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
}

.in-header__search .icon-ic_head_search {
    color: rgba(255, 255, 255, 0.8) !important;
}

.in-header__user .user-item a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__user .user-item a:hover {
    color: white !important;
}

.in-header__user .user-item .iconfont {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__user .item-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__avatar .text-avatar {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* 底部样式调整 */
.footer-wrapper {
    background-color: var(--dark-color);
    margin-top: 60px;
}

.footer-bottom {
    padding: 40px 0 20px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

.footer-link {
    margin-bottom: 20px;
}

.footer-link li {
    display: inline-block;
    margin-right: 20px;
}

.footer-link li a {
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.footer-link li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 侧边栏调整 */
.in-aside-handle {
    z-index: 999;
}

.in-aside-handle .aside__item {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.in-aside-handle .aside__item:hover {
    background-color: var(--primary-color);
    transform: translateX(-5px);
}

.in-aside-handle .aside__item:hover i {
    color: white;
}

.in-aside-handle .back-top {
    cursor: pointer;
}
