/* 书籍信息卡片 */
.article-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.article-card-body {
    padding: 24px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #dc2626, #f97316) 1;
}

.article-cover {
    text-align: center;
    margin-bottom: 15px;
}

.article-cover img {
    max-width: 200px;
    margin: 0 auto;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

/* 元信息列表 */
.article-meta-list {
    margin-bottom: 18px;
}

.article-meta-item {
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.article-meta-item i {
    color: #dc2626;
    opacity: 0.7;
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.meta-label {
    font-weight: 600;
    color: #374151;
}

.meta-link {
    color: #dc2626;
    transition: color 0.2s ease;
}

.meta-link:hover {
    color: #b91c1c;
}

/* 标签 */
.article-tags {
    display: inline;
}

.article-tag {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* 操作按钮 */
.article-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-read-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.btn-read-now:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    box-shadow: 0 5px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #fff;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* 通用段落区块 */
.article-section {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.article-section-heading {
    padding: 14px 20px;
    border: none;
}

.article-section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.article-section-title i {
    margin-right: 5px;
}

.section-highlight {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
}

.section-chapters {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.section-recommend {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.article-section-body {
    padding: 20px;
}

/* 精彩片段 */
.article-quote {
    margin: 0 0 16px 0;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
}

.article-quote p {
    margin: 0;
}

.article-content-preview {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

/* 阅读更多按钮 */
.highlight-read-more {
    margin-top: 16px;
    text-align: center;
}

.highlight-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.highlight-read-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.highlight-read-more-link:hover::before {
    left: 100%;
}

.highlight-read-more-link:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 5px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.highlight-read-more-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.highlight-read-more-link:hover i {
    transform: translateX(3px);
}

/* 章节列表 */
.chapter-list-wrapper {
    max-height: 500px;
    overflow-y: visible;
    overflow-x: hidden;
}

.chapter-list-wrapper.scrollable {
    overflow-y: auto;
}

.chapter-list-wrapper::-webkit-scrollbar {
    width: 5px;
}

.chapter-list-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.chapter-list-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chapter-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.chapter-list-item {
    display: block;
    padding: 10px 12px;
    color: #4b5563;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-list-item i {
    color: #d1d5db;
    margin-right: 6px;
    font-size: 11px;
    transition: color 0.2s ease;
}

.chapter-list-item:hover {
    background: #fef2f2;
    color: #dc2626;
    padding-left: 16px;
}

.chapter-list-item:hover i {
    color: #dc2626;
}

/* 相关推荐 - 书籍封面卡片 */
.book-grid-item {
    margin-bottom: 15px;
}

.recommendation-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recommendation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.15);
}

.book-link {
    display: block;
}

.book-cover-container {
    position: relative;
    width: 100%;
    padding-bottom: 128.57%;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

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

.book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 24px 12px 12px;
    color: #fff;
    transition: all 0.3s ease;
}

.book-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.book-views {
    font-size: 11px;
    opacity: 0.9;
}

.book-views i {
    margin-right: 4px;
    font-size: 10px;
    color: #fbbf24;
}

.recommendation-item:hover .book-cover {
    transform: scale(1.05);
}

.recommendation-item:hover .book-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0) 100%);
}

.recommendation-item:hover .book-cover-container {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2), 0 0 0 1px rgba(220, 38, 38, 0.1);
}


/* 响应式 */
@media (max-width: 768px) {
    .article-card-body {
        padding: 18px;
    }

    .article-title {
        font-size: 20px;
        margin-top: 12px;
    }

    .article-section-body {
        padding: 16px;
    }

    .article-actions {
        margin-top: 4px;
    }

    .btn-read-now,
    .btn-read-more {
        padding: 9px 18px;
        font-size: 13px;
    }

    .book-overlay {
        padding: 18px 10px 10px;
    }

    .book-title {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .book-views {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .article-card-body {
        padding: 14px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-meta-item {
        font-size: 13px;
    }

    .btn-read-now,
    .btn-read-more {
        padding: 8px 16px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }

    .book-overlay {
        padding: 15px 8px 8px;
    }

    .book-title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .book-views {
        font-size: 9px;
    }

    .chapter-list-item {
        font-size: 12px;
        padding: 8px 10px;
    }
}
