/* ============================================================
   来源：views/article/detail.html 内联 <style> 第 1 块（原位抽离，296 行）
   说明：在原位置以 <link rel="stylesheet"> 引入，来源顺序不变，
        层叠结果与抽离前逐字一致，不会引起样式变化。
   ============================================================ */
/* 收藏弹窗样式 */
.collect-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.collect-modal-overlay.open {
    display: flex;
}
.collect-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 440px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: scaleIn 0.2s ease;
}
.collect-modal-card .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c2b28;
}
.collect-modal-card .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.collect-modal-card .modal-close:hover {
    color: #333;
}
.collect-modal-card .folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0ebe6;
}
.collect-modal-card .folder-item:hover {
    background: #feeeee;
}
.collect-modal-card .folder-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #eb1313;
    flex-shrink: 0;
}
.collect-modal-card .folder-item .folder-name {
    font-size: 0.95rem;
    color: #2c2b28;
}
.collect-modal-card .folder-item .folder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
}
.collect-modal-card .empty-tip {
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}
.collect-modal-card .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0ebe6;
}
.collect-modal-card .modal-actions .btn {
    padding: 6px 24px;
    border-radius: 30px;
    border: 1px solid #e0d8d0;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}
.collect-modal-card .modal-actions .btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.collect-modal-card .modal-actions .btn-primary {
    background: #eb1313;
    color: #fff;
    border-color: #eb1313;
}
.collect-modal-card .modal-actions .btn-primary:hover {
    background: #c40e0e;
    border-color: #c40e0e;
    color: #fff;
}
.collect-modal-card .modal-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.collect-btn {
    background: none;
    border: 1px solid #e0d8d0;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #666;
}
.collect-btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.collect-btn.collected {
    border-color: #eb1313;
    background: #feeeee;
    color: #eb1313;
    cursor: default;
}
.collect-btn.collected:hover {
    background: #feeeee;
    border-color: #eb1313;
    color: #eb1313;
}
/* ===== 评论区样式 ===== */
.comment-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #f0ebe6;
}
.comment-section .comment-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c2b28;
}
.comment-section .comment-input-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.comment-section .comment-input-box .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #feeeee;
    color: #eb1313;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.comment-section .comment-input-box .input-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-section .comment-input-box textarea {
    width: 100%;
    min-height: 70px;
    border: 1px solid #e0d8d0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.comment-section .comment-input-box textarea:focus {
    border-color: #eb1313;
}
.comment-section .comment-input-box .submit-btn {
    align-self: flex-end;
    background: #eb1313;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 7px 26px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.comment-section .comment-input-box .submit-btn:hover {
    background: #c40e0e;
}
.comment-section .comment-input-box .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.comment-list .comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe6;
    display: flex;
    gap: 12px;
}
.comment-list .comment-item:last-child {
    border-bottom: none;
}
.comment-list .comment-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #feeeee;
    color: #eb1313;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.comment-list .comment-item .c-body {
    flex: 1;
    min-width: 0;
}
.comment-list .comment-item .c-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c2b28;
}
.comment-list .comment-item .c-reply-to {
    font-size: 0.8rem;
    color: #94a3b8;
}
.comment-list .comment-item .c-content {
    margin-top: 4px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    word-break: break-word;
}
.comment-list .comment-item .c-actions {
    margin-top: 6px;
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}
.comment-list .comment-item .c-actions span {
    cursor: pointer;
    transition: 0.2s;
}
.comment-list .comment-item .c-actions span:hover {
    color: #eb1313;
}
.comment-list .comment-item .c-time {
    margin-left: 6px;
    font-size: 0.75rem;
    color: #b0a8a0;
}
.comment-list .sub-comments {
    margin-left: 48px;
    padding-left: 12px;
    border-left: 2px solid #f0ebe6;
}
.comment-list .empty-comment {
    text-align: center;
    color: #b0a8a0;
    padding: 20px 0;
}
