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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8b500;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
}

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

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 轮播横幅 */
.banner-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-item:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

.banner-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 181, 0, 0.4);
}

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

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

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* 内容区域 */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

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

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

.comic-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.comic-cover {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.comic-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.1)" width="50" height="50"/><rect fill="rgba(255,255,255,0.1)" x="50" y="50" width="50" height="50"/></svg>');
    opacity: 0.3;
}

.comic-info {
    padding: 15px;
}

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

.comic-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.comic-rating {
    color: var(--accent-color);
    font-weight: bold;
}

/* 漫画列表 */
.comic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comic-list-item {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.comic-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.comic-list-cover {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.comic-list-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.1)" width="50" height="50"/><rect fill="rgba(255,255,255,0.1)" x="50" y="50" width="50" height="50"/></svg>');
    opacity: 0.3;
}

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

.comic-list-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.comic-list-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.comic-list-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px 15px;
    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: var(--shadow-hover);
}

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

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

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

/* 排行榜 */
.rank-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rank-tab {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.rank-tab.active,
.rank-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.rank-item {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.rank-item:hover {
    transform: translateX(5px);
}

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

.rank-number.top1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-number.top2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

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

.rank-info {
    flex: 1;
}

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

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

/* 推荐阅读 */
.featured-comics {
    margin-top: 20px;
}

.featured-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.featured-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.featured-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.8;
}

.featured-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.featured-list li {
    padding-left: 25px;
    position: relative;
}

.featured-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
}

/* 页脚 */
.footer {
    background: #2c2c2c;
    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-section h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }

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

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

    .search-box input {
        width: 100%;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-section {
        height: 300px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .comic-cover {
        height: 200px;
    }

    .comic-list-item {
        flex-direction: column;
    }

    .comic-list-cover {
        width: 100%;
        height: 200px;
    }

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

    .featured-content h3 {
        font-size: 22px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-tabs {
        flex-wrap: wrap;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comic-card,
.comic-list-item,
.category-card,
.rank-item {
    animation: fadeIn 0.5s ease-out;
}

/* 详情页样式 */
.detail-main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.comic-detail-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.detail-cover-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.detail-cover {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.detail-cover-wrapper:hover .cover-overlay {
    opacity: 1;
}

.btn-read-now,
.btn-favorite {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    color: var(--white);
}

.btn-read-now {
    background: var(--accent-color);
}

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

.btn-read-now:hover,
.btn-favorite:hover {
    transform: scale(1.05);
}

.btn-favorite.active {
    background: #ff1744;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.detail-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.meta-item {
    padding: 5px 15px;
    background: var(--bg-color);
    border-radius: 20px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 15px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.detail-description {
    margin-top: 10px;
}

.detail-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.detail-description p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 章节列表 */
.chapters-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

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

.section-header h2 {
    font-size: 24px;
    color: var(--text-color);
}

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

.sort-btn {
    padding: 8px 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.chapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    gap: 10px;
}

.chapter-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.chapter-number {
    font-weight: bold;
    font-size: 14px;
}

.chapter-title {
    flex: 1;
    font-size: 14px;
}

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

.chapter-item:hover .chapter-update {
    color: rgba(255, 255, 255, 0.8);
}

.btn-read-chapter {
    padding: 6px 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.load-more-chapters {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-load-more:hover {
    transform: scale(1.05);
}

/* 预览图 */
.preview-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

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

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-weight: bold;
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

/* 角色介绍 */
.characters-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

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

.character-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.character-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.character-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.character-role {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.character-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 评论区域 */
.comments-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit-comment {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-submit-comment:hover {
    transform: scale(1.05);
}

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

.comment-item {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-user {
    font-weight: bold;
    color: var(--primary-color);
}

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

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.btn-like,
.btn-reply {
    padding: 5px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-like:hover,
.btn-reply:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 相关推荐 */
.related-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

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

.related-comic-card {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-comic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* 详情页响应式 */
@media (max-width: 768px) {
    .comic-detail-header {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        height: 300px;
    }

    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .chapters-grid {
        grid-template-columns: 1fr;
    }

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

    .preview-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-comics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 24px;
    }

    .detail-stats {
        grid-template-columns: 1fr;
    }

    .preview-gallery {
        grid-template-columns: 1fr;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .related-comics {
        grid-template-columns: 1fr;
    }
}

