/* ========================================
   Naver漫画页面通用样式
   ======================================== */

/* 基础重置 */
.comic-page * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.comic-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* ========================================
   漫画列表页样式 (list.html) - 꿀벌티비 테마
   作用域: .comic-list-page (仅 list.html body 携带)
   主题参考: static/_bee/demo/demo.html (.hb-box / .hb-tabs / .hb-tag / .hb-pages / .hb-partner)
   ======================================== */

/* 列表页主体背景 */
.comic-list-page {
    background: #16120d;
    color: #d9c7a4;
}
.comic-list-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 分类标签区 - hb-box 风格 */
.comic-list-page .tag-section {
    background: linear-gradient(135deg, #251e15, #1b1711);
    border: 1px solid #76562e;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.comic-list-page .tag-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}
.comic-list-page .tag-title {
    font-size: 16px;
    color: #ffda7f;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.comic-list-page .tag-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ffd063, #fac349);
    border-radius: 2px;
}
.comic-list-page .tag-list-container {
    flex: 1;
    min-width: 0;
}
.comic-list-page .tag-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #574023;
    background: #19150f;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #edc46e;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.comic-list-page .tag-toggle-btn:hover {
    background: #463417;
    transform: scale(1.05);
}
.comic-list-page .tag-toggle-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.comic-list-page .tag-toggle-btn.expanded .arrow {
    transform: rotate(180deg);
}

.comic-list-page .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 36px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.comic-list-page .tag-list.expanded {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}
/* 自定义滚动条样式 */
.comic-list-page .tag-list.expanded::-webkit-scrollbar {
    width: 6px;
}
.comic-list-page .tag-list.expanded::-webkit-scrollbar-track {
    background: #19150f;
    border-radius: 3px;
}
.comic-list-page .tag-list.expanded::-webkit-scrollbar-thumb {
    background: #7b5a29;
    border-radius: 3px;
}
.comic-list-page .tag-list.expanded::-webkit-scrollbar-thumb:hover {
    background: #a47732;
}

.comic-list-page .tag-item {
    padding: 6px 16px;
    border-radius: 20px;
    background: #463417;
    border: 1px solid #7b5a29;
    color: #edc46e;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.comic-list-page .tag-item:hover {
    background: #574023;
    color: #ffd063;
    border-color: #ffd063;
}
.comic-list-page .tag-item.active {
    background: #ffd063;
    color: #39240b;
    border-color: #ffd063;
    font-weight: 700;
}

/* 筛选栏 - hb-tabs 容器 */
.comic-list-page .filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    background: #19150f;
    border-radius: 12px;
    padding: 9px;
}
.comic-list-page .filter-bar label {
    font-size: 14px;
    color: #bca887;
    white-space: nowrap;
}
.comic-list-page .filter-bar select {
    padding: 6px 12px;
    border: 1px solid #574023;
    border-radius: 8px;
    font-size: 13px;
    background: #21190f;
    color: #d9c7a4;
    cursor: pointer;
    outline: none;
}
.comic-list-page .filter-bar select:focus {
    border-color: #ffd063;
}

/* 更新日标签 - hb-tabs button */
.comic-list-page .week-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}
.comic-list-page .week-tag {
    padding: 10px 17px;
    border-radius: 11px;
    background: transparent;
    color: #d2bb94;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #574023;
    white-space: nowrap;
}
.comic-list-page .week-tag:hover {
    color: #ffd063;
    border-color: #ffd063;
}
.comic-list-page .week-tag.active {
    background: #ffd063;
    color: #39240b;
    border-color: #ffd063;
    font-weight: 900;
}

/* 漫画网格 */
.comic-list-page .comic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.comic-list-page .comic-card {
    background: #21190f;
    border: 1px solid #705026;
    border-radius: 13px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.comic-list-page .comic-card:hover {
    transform: translateY(-4px);
    border-color: #bd8c36;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}
.comic-list-page .comic-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #2b2113;
}
.comic-list-page .comic-cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: radial-gradient(at top, #65451a, #2b2113);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd87a;
    font-size: 48px;
}
.comic-list-page .comic-info {
    padding: 12px;
}
.comic-list-page .comic-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffda7f;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-list-page .comic-meta {
    font-size: 12px;
    color: #a78f67;
    display: flex;
    align-items: center;
    gap: 4px;
}
.comic-list-page .comic-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-list-page .comic-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: auto;
}
.comic-list-page .badge-up { background: #503611; color: #ffdb82; border: 1px solid #75542a; }
.comic-list-page .badge-rest { background: #2b2113; color: #bfa574; border: 1px solid #574023; }
.comic-list-page .badge-finish { background: #5b3a13; color: #ffdc7f; border: 1px solid #b78a3e; }
.comic-list-page .badge-genre { background: #463417; color: #edc46e; border: 1px solid #7b5a29; }

/* ========================================
   漫画详情页样式 (detail.html)
   ======================================== */

/* 返回导航 */
.back-nav {
    margin-bottom: 20px;
}
.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c5ce7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.back-nav a:hover { color: #5a4bd1; }

/* 漫画信息区 */
.comic-header {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    gap: 28px;
}
.comic-cover-wrap {
    flex-shrink: 0;
    width: 200px;
}
.comic-cover-wrap img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.cover-placeholder {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #636e72;
}
.comic-info-wrap {
    flex: 1;
    min-width: 0;
}
.comic-info-wrap h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 12px;
    line-height: 1.3;
}
.comic-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #636e72;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 6px;
}
.meta-item .icon { font-size: 14px; }
.meta-item.star { background: #fff8e1; color: #f39c12; }
.meta-item.views { background: #e8f5e9; color: #27ae60; }
.meta-item.fav { background: #fce4ec; color: #e91e63; }
.comic-synopsis {
    font-size: 14px;
    color: #636e72;
    line-height: 1.8;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.comic-synopsis h4 {
    font-size: 14px;
    color: #2d3436;
    margin-bottom: 8px;
}

/* 状态标签 */
.status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-updating { background: #d4edda; color: #155724; }
.badge-rest { background: #fff3cd; color: #856404; }
.badge-finished { background: #f8d7da; color: #721c24; }
.badge-age { background: #e2e3e5; color: #383d41; }
.badge-day { background: #cce5ff; color: #004085; }

/* 章节列表 */
.chapter-section {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.chapter-section h2 {
    font-size: 20px;
    color: #2d3436;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chapter-section h2::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, #6c5ce7, #a29bfe);
    border-radius: 3px;
}
.chapter-count {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.chapter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #fafafa;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.chapter-item:hover {
    background: #ede9fe;
    border-color: #6c5ce7;
    color: #6c5ce7;
}
.chapter-thumb {
    width: 101px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8e8e8;
}
.chapter-text {
    flex: 1;
    min-width: 0;
}
.chapter-no {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.chapter-subtitle {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chapter-lock {
    font-size: 14px;
    color: #f39c12;
    flex-shrink: 0;
}

/* ========================================
   漫画阅读页样式 (reader.html)
   ======================================== */

.reader-page {
    background: #1a1a2e;
    color: #eee;
}

/* 顶部导航栏 */
.reader-header {
    background: #16213e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a29bfe;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.back-btn:hover { color: #6c5ce7; }
.comic-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.chapter-name {
    font-size: 14px;
    color: #a29bfe;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #ddd;
}
.nav-btn:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
}
.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 图片阅读区域 */
.reader-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.reader-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.reader-images img {
    width: 100%;
    display: block;
    background: #0f0f23;
}

/* 底部导航 */
.reader-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.footer-btn.prev {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ccc;
}
.footer-btn.prev:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.footer-btn.next {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border: none;
}
.footer-btn.next:hover {
    background: linear-gradient(135deg, #5a4bd1, #8c7ae6);
}
.footer-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.chapter-indicator {
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* 加载动画 */
.img-loading {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f23;
    color: #555;
    font-size: 14px;
}
.img-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #333;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b2bec3;
}
.empty-state .empty-icon { 
    font-size: 64px; 
    margin-bottom: 16px; 
}
.empty-state p { 
    font-size: 16px; 
}

/* 图片懒加载占位 */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lazy-img.loaded {
    opacity: 1;
}

/* ========================================
   分页样式 (通用)
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}
.pagination a:hover {
    background: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
}
.pagination .current { 
    background: #6c5ce7; 
    color: #fff; 
}
.pagination .disabled { 
    background: #f0f0f0; 
    color: #ccc; 
    cursor: not-allowed; 
}
.page-info { 
    font-size: 13px; 
    color: #999; 
    margin: 0 8px; 
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    /* 平板：4列 */
    .comic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    /* 小平板：3列 */
    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 手机横屏：2列 */
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    /* 详情页响应式 */
    .comic-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .comic-cover-wrap { width: 160px; }
    .comic-cover-wrap img { width: 160px; height: 224px; }
    .cover-placeholder { width: 160px; height: 224px; }
    .comic-meta-list { justify-content: center; }

    /* 列表页响应式 - 保持2列 */
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* 阅读页响应式 */
    .reader-header {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }
    .header-left, .header-right {
        width: 100%;
        justify-content: center;
    }
    .reader-footer {
        flex-direction: column;
        gap: 12px;
    }
    .footer-btn {
        width: 100%;
    }
}

/* ========================================
   列表页 (list.html) 主题覆盖 - 꿀벌티비 테마
   仅作用于 .comic-list-page，不影响 detail/reader
   主题参考: demo.html (.hb-empty / .hb-pages)
   ======================================== */

/* 空状态 - hb-empty */
.comic-list-page .empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #c8b695;
}
.comic-list-page .empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #d5ac5d;
}
.comic-list-page .empty-state p {
    font-size: 14px;
}

/* 分页 - hb-pages */
.comic-list-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 20px 0 5px;
}
.comic-list-page .pagination a,
.comic-list-page .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
    display: grid;
    place-items: center;
    background: #241a0d;
    border: 1px solid #6a4d26;
    color: #d4b783;
}
.comic-list-page .pagination a:hover {
    background: #362916;
    color: #ffd063;
    border-color: #ffd063;
}
.comic-list-page .pagination .current {
    background: #f4c054;
    border-color: #f4c054;
    color: #392509;
}
.comic-list-page .pagination .disabled {
    background: #1a140b;
    border-color: #2e2415;
    color: #6a5230;
    cursor: not-allowed;
}
.comic-list-page .page-info {
    font-size: 13px;
    color: #9c8561;
    margin: 0 8px;
    background: transparent;
    border: 0;
    min-width: 0;
    height: auto;
    padding: 0;
    display: inline;
}

/* 列表页响应式 - 网格列数 (默认 4 列, 嵌入页面保持 4 列) */
@media (max-width: 992px) {
    .comic-list-page .comic-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .comic-list-page .comic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}
@media (max-width: 640px) {
    .comic-list-page .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ========================================
   详情页 (detail.html) 主题 - 꿀벌티비 테마
   作用域: .comic-detail-page (仅 detail.html body 携带)
   主题参考: demo.html (.hb-box / .hb-tag / .hb-partner-art)
   ======================================== */

.comic-detail-page {
    background: #16120d;
    color: #d9c7a4;
}
.comic-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 返回导航 */
.comic-detail-page .back-nav {
    margin-bottom: 20px;
}
.comic-detail-page .back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #edc46e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.comic-detail-page .back-nav a:hover {
    color: #ffd063;
}

/* 漫画信息头 - hb-box */
.comic-detail-page .comic-header {
    background: linear-gradient(135deg, #251e15, #1b1711);
    border: 1px solid #76562e;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 28px;
}
.comic-detail-page .comic-cover-wrap {
    flex-shrink: 0;
    width: 200px;
}
.comic-detail-page .comic-cover-wrap img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.comic-detail-page .cover-placeholder {
    width: 200px;
    height: 280px;
    background: radial-gradient(at top, #65451a, #2b2113);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #ffd87a;
}
.comic-detail-page .comic-info-wrap {
    flex: 1;
    min-width: 0;
}
.comic-detail-page .comic-info-wrap h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffda7f;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* 状态标签 - hb-tag */
.comic-detail-page .status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.comic-detail-page .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #7b5a29;
    background: #463417;
    color: #edc46e;
}
.comic-detail-page .badge-updating {
    background: #503611;
    color: #ffdb82;
    border-color: #75542a;
}
.comic-detail-page .badge-rest {
    background: #2b2113;
    color: #bfa574;
    border-color: #574023;
}
.comic-detail-page .badge-finished {
    background: #5b3a13;
    color: #ffdc7f;
    border-color: #b78a3e;
}
.comic-detail-page .badge-age {
    background: #21190f;
    color: #d4b783;
    border-color: #6a4d26;
}
.comic-detail-page .badge-day {
    background: #3a2912;
    color: #ffd87a;
    border-color: #c28d37;
}

/* 元信息 */
.comic-detail-page .comic-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.comic-detail-page .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #d9c7a4;
    background: #21190f;
    border: 1px solid #574023;
    padding: 4px 12px;
    border-radius: 6px;
}
.comic-detail-page .meta-item .icon {
    font-size: 14px;
}
.comic-detail-page .meta-item.star {
    background: #3a2912;
    color: #ffd87a;
    border-color: #c28d37;
}
.comic-detail-page .meta-item.views {
    background: #1f2a18;
    color: #b5d59a;
    border-color: #4a6630;
}
.comic-detail-page .meta-item.fav {
    background: #2e1a1f;
    color: #ffb3c1;
    border-color: #7a3a4a;
}

/* 简介 */
.comic-detail-page .comic-synopsis {
    font-size: 14px;
    color: #bca887;
    line-height: 1.8;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #49371f;
}
.comic-detail-page .comic-synopsis h4 {
    font-size: 14px;
    color: #ffda7f;
    margin-bottom: 8px;
}

/* 章节列表 - hb-box */
.comic-detail-page .chapter-section {
    background: linear-gradient(135deg, #251e15, #1b1711);
    border: 1px solid #76562e;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.comic-detail-page .chapter-section h2 {
    font-size: 20px;
    color: #ffda7f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comic-detail-page .chapter-section h2::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, #ffd063, #fac349);
    border-radius: 3px;
}
.comic-detail-page .chapter-count {
    font-size: 14px;
    color: #9c8561;
    font-weight: 400;
    margin-left: 8px;
}

/* 章节网格 */
.comic-detail-page .chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.comic-detail-page .chapter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #21190f;
    border: 1px solid #574023;
    border-radius: 8px;
    text-decoration: none;
    color: #d9c7a4;
    transition: all 0.2s;
}
.comic-detail-page .chapter-item:hover {
    background: #362916;
    border-color: #ffd063;
    color: #ffd063;
}
.comic-detail-page .chapter-thumb {
    width: 101px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #2b2113;
}
.comic-detail-page .chapter-text {
    flex: 1;
    min-width: 0;
}
.comic-detail-page .chapter-no {
    font-size: 13px;
    font-weight: 600;
    color: #ffda7f;
    margin-bottom: 2px;
}
.comic-detail-page .chapter-subtitle {
    font-size: 12px;
    color: #9c8561;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-detail-page .chapter-lock {
    font-size: 14px;
    color: #ffd063;
    flex-shrink: 0;
}

/* 空状态 - hb-empty */
.comic-detail-page .empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #c8b695;
}
.comic-detail-page .empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #d5ac5d;
}
.comic-detail-page .empty-state p {
    font-size: 14px;
}

/* 分页 - hb-pages */
.comic-detail-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 20px 0 5px;
}
.comic-detail-page .pagination a,
.comic-detail-page .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
    display: grid;
    place-items: center;
    background: #241a0d;
    border: 1px solid #6a4d26;
    color: #d4b783;
}
.comic-detail-page .pagination a:hover {
    background: #362916;
    color: #ffd063;
    border-color: #ffd063;
}
.comic-detail-page .pagination .current {
    background: #f4c054;
    border-color: #f4c054;
    color: #392509;
}
.comic-detail-page .pagination .disabled {
    background: #1a140b;
    border-color: #2e2415;
    color: #6a5230;
    cursor: not-allowed;
}
.comic-detail-page .page-info {
    font-size: 13px;
    color: #9c8561;
    margin: 0 8px;
    background: transparent;
    border: 0;
    min-width: 0;
    height: auto;
    padding: 0;
    display: inline;
}

/* 详情页响应式 */
@media (max-width: 640px) {
    .comic-detail-page .comic-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .comic-detail-page .comic-cover-wrap {
        width: 160px;
    }
    .comic-detail-page .comic-cover-wrap img {
        width: 160px;
        height: 224px;
    }
    .comic-detail-page .cover-placeholder {
        width: 160px;
        height: 224px;
    }
    .comic-detail-page .comic-meta-list {
        justify-content: center;
    }
}

/* ========================================
   阅读页 (reader.html) 主题 - 꿀벌티비 테마
   作用域: .comic-reader-page (仅 reader.html body 携带)
   ======================================== */

.comic-reader-page {
    background: #0f0d0a;
    color: #d9c7a4;
}

/* 顶部导航栏 */
.comic-reader-page .reader-header {
    background: #16120d;
    border-bottom: 1px solid #86602d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.comic-reader-page .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.comic-reader-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #edc46e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.comic-reader-page .back-btn:hover {
    color: #ffd063;
}
.comic-reader-page .comic-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffda7f;
}
.comic-reader-page .chapter-name {
    font-size: 14px;
    color: #edc46e;
}
.comic-reader-page .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.comic-reader-page .nav-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #574023;
    background: #21190f;
    color: #d9c7a4;
}
.comic-reader-page .nav-btn:hover {
    background: #362916;
    border-color: #ffd063;
    color: #ffd063;
}
.comic-reader-page .nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 图片阅读区域 */
.comic-reader-page .reader-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.comic-reader-page .reader-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.comic-reader-page .reader-images img {
    width: 100%;
    display: block;
    background: #0a0807;
}

/* 底部导航 */
.comic-reader-page .reader-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.comic-reader-page .footer-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.comic-reader-page .footer-btn.prev {
    background: #21190f;
    border: 1px solid #574023;
    color: #d9c7a4;
}
.comic-reader-page .footer-btn.prev:hover {
    background: #362916;
    color: #ffd063;
    border-color: #ffd063;
}
.comic-reader-page .footer-btn.next {
    background: linear-gradient(135deg, #ffd063, #fac349);
    color: #39240b;
    border: 1px solid #ffd063;
}
.comic-reader-page .footer-btn.next:hover {
    background: linear-gradient(135deg, #ffda7f, #ffd063);
}
.comic-reader-page .footer-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.comic-reader-page .chapter-indicator {
    font-size: 14px;
    color: #9c8561;
    text-align: center;
}

/* 加载动画 */
.comic-reader-page .img-loading {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0807;
    color: #6a5230;
    font-size: 14px;
}
.comic-reader-page .img-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #2e2415;
    border-top-color: #ffd063;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

/* 空状态 - hb-empty */
.comic-reader-page .empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #c8b695;
}
.comic-reader-page .empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #d5ac5d;
}
.comic-reader-page .empty-state p {
    font-size: 14px;
}

/* 阅读页响应式 */
@media (max-width: 640px) {
    .comic-reader-page .reader-header {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }
    .comic-reader-page .header-left,
    .comic-reader-page .header-right {
        width: 100%;
        justify-content: center;
    }
    .comic-reader-page .reader-footer {
        flex-direction: column;
        gap: 12px;
    }
    .comic-reader-page .footer-btn {
        width: 100%;
    }
}
