/* ========================================
   文章阅读页专用样式 - Modernized
   ======================================== */

/* ============ 文章页整体布局 ============ */
.single-content .content-layout { max-width: 1300px; margin: 0 auto; }

/* ============ Hero 区域：site-content 双栏 ============ */
.site-detail-card {
    background: var(--bg-card);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.site-content {
    padding: 28px 32px;
}

/* 左右双栏布局 */
.site-content.d-flex {
    display: flex !important;
    flex-direction: column;
}

@media (min-width: 768px) {
    .site-content.d-flex {
        flex-direction: row !important;
    }
    .site-content.mb-md-5 {
        margin-bottom: 0 !important;
    }
}

/* ============ 左侧：site-body ============ */
.site-body {
    font-size: 14px;
    flex: 1 1 auto;
}

/* 标题行：名称 + 收藏按钮 */
.site-body > .d-flex {
    display: flex !important;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.site-name-box {
    flex: 1 1 auto;
    margin-bottom: 12px;
}

.site-name-box .site-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* meta信息行 */
.site-name-box .text-muted {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    gap: 4px;
}

.site-name-box .text-muted .mr-3 {
    margin-right: 14px;
}

.site-name-box .text-muted a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.site-name-box .text-muted a:hover {
    color: var(--theme-color);
}

/* 互动按钮容器 */
.action-btns {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 互动按钮通用样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e9ecef);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

/* 点赞按钮 */
.action-btn.io-like:hover,
.action-btn.io-like.active {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.action-btn.io-like.active {
    font-weight: 600;
}

/* 踩按钮 */
.action-btn.io-dislike:hover,
.action-btn.io-dislike.active {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.3);
}

/* 收藏按钮 */
.action-btn.btn-fav:hover,
.action-btn.btn-fav.active {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

/* 点赞/踩/收藏计数 */
.action-btn span {
    font-size: 11px;
    min-width: 10px;
    text-align: center;
}

/* 点击动画 */
.action-btn.action-animated i {
    animation: actionBounce 0.3s ease;
}

@keyframes actionBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 点击统计 */
.views-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    background: var(--bg-card, #f8f9fa);
    border-radius: 10px;
    border: 1px solid var(--border-color, #e9ecef);
    font-size: 13px;
    color: var(--text-muted);
}

.views-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.views-stat-item i {
    color: var(--theme-color);
    font-size: 14px;
}

.views-stat-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 网站打分 */
.site-score {
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.site-score .star {
    height: 16px;
    vertical-align: middle;
    margin-left: 2px;
}

/* 收藏按钮 */
.posts-like {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.posts-like .btn-fav {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.posts-like .btn-fav:hover {
    background: rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
}

.posts-like .btn-fav.active {
    background: linear-gradient(135deg, #dc3545, #c0392b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.posts-like .btn-fav i { margin-right: 6px; }

/* 描述文字 */
.site-desc-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ============ site-meta-grid 网格信息 ============ */
.site-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

.meta-row {
    display: flex;
    padding: 8px 0;
}

.meta-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.meta-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.meta-label {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
}

.meta-label i {
    color: var(--theme-color);
    font-size: 14px;
}

.meta-value {
    color: var(--text-color);
    font-size: 13px;
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.meta-value a {
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 500;
}

.meta-value a:hover { text-decoration: none; }



.meta-sep {
    color: var(--text-muted);
    margin: 0 6px;
    opacity: 0.5;
}

/* ============ site-go 操作按钮行 ============ */
.site-go {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
    gap: 10px;
}

.site-go .mr-2 {
    margin-right: 8px;
}

/* 按钮通用 */
.site-go .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    line-height: 1.5;
}

.site-go .btn-i-r span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 主题色按钮 */
.site-go .vc-theme {
    background: linear-gradient(135deg, var(--theme-color), #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(var(--theme-color-rgb), 0.3);
}

.site-go .vc-theme:hover {
    background: linear-gradient(135deg, var(--hover-color), #6c5ce7);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--theme-color-rgb), 0.35);
    color: #fff;
}

/* 主题色边框按钮 */
.site-go .vc-l-theme {
    background: transparent;
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.site-go .vc-l-theme:hover {
    background: rgba(var(--theme-color-rgb), 0.08);
    transform: translateY(-1px);
}

/* 灰色边框按钮 */
.site-go .vc-l-muted {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
    padding: 10px 16px;
}

.site-go .vc-l-muted:hover {
    border-color: var(--text-muted);
    color: var(--text-color);
}

/* ============ terms-list 标签药丸 ============ */
.terms-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
    gap: 8px;
}

.terms-list a {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(var(--theme-color-rgb), 0.06);
    color: var(--theme-color);
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    border: 1px solid rgba(var(--theme-color-rgb), 0.1);
}

.terms-list a:hover {
    background: rgba(var(--theme-color-rgb), 0.12);
    border-color: rgba(var(--theme-color-rgb), 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb), 0.12);
}

.terms-list a:active {
    transform: translateY(0);
}

.dark-mode .terms-list a {
    background: rgba(var(--theme-color-rgb), 0.1);
    border-color: rgba(var(--theme-color-rgb), 0.15);
}

.dark-mode .terms-list a:hover {
    background: rgba(var(--theme-color-rgb), 0.18);
    border-color: rgba(var(--theme-color-rgb), 0.3);
}

/* ============ 右侧：sites-preview ============ */
.sites-preview {
    flex-shrink: 0;
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .sites-preview {
        width: 300px;
        margin-left: 20px !important;
        margin-top: 0 !important;
        align-self: center;
    }
}

@media (min-width: 992px) {
    .sites-preview {
        width: 380px;
    }
}

.preview-body {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--main-radius);
    padding: 12px;
    border: 1px solid var(--border-color);
}

/* favicon行 */
.site-favicon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.site-favicon img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.site-favicon .site-icon-letter {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
}

.site-favicon .text-xs {
    font-size: 12px;
    color: var(--text-muted);
}

/* 截图区域 */
.site-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 456 / 300;
}

.site-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform var(--transition-normal);
}

.site-img:hover img {
    transform: scale(1.03);
}

.site-img-default {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 48px;
    border-radius: 12px;
}

/* 悬浮按钮 */
.site-img .preview-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, var(--theme-color), #7c3aed);
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(var(--theme-color-rgb), 0.4);
    white-space: nowrap;
}

.site-img:hover .preview-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.preview-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--hover-color), #6c5ce7);
    box-shadow: 0 8px 24px rgba(var(--theme-color-rgb), 0.5);
}

/* ============ 文章正文 ============ */
.site-detail-content-card {
    background: var(--bg-card);
    border-radius: var(--main-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.article-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-color);
}

.article-content p { margin-bottom: 18px; }
.article-content img { border-radius: 12px; margin: 12px 0; max-width: 100%; }
.article-content a { color: var(--theme-color); font-weight: 500; }

.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    margin: 32px 0 16px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.5;
}

.article-content h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.article-content h3 { font-size: 18px; }

.article-content pre {
    background: var(--bg-secondary);
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.article-content code {
    background: rgba(var(--theme-color-rgb), 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid var(--theme-color);
    padding: 16px 22px;
    margin: 18px 0;
    background: rgba(var(--theme-color-rgb), 0.04);
    border-radius: 0 12px 12px 0;
    color: var(--text-color);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 14px;
}

.article-content table th {
    background: rgba(var(--theme-color-rgb), 0.04);
    font-weight: 600;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-content li { margin-bottom: 8px; }

/* ============ 版权声明（特别声明） ============ */
.site-detail-declaration {
    background: var(--bg-card);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.site-detail-declaration .declaration-body {
    padding: 22px 26px;
}

.site-detail-declaration h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-detail-declaration h4 i { color: var(--theme-color); font-size: 16px; }

.site-detail-declaration p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.7;
}

.site-detail-declaration p:last-child { margin-bottom: 0; }

.site-detail-declaration a { color: var(--theme-color); word-break: break-all; font-weight: 500; }

.site-detail-declaration .declaration-footer {
    padding: 12px 26px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

/* ============ 相关推荐 ============ */
.related-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 28px 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    font-size: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    background: var(--bg-card);
    min-height: 0;
    overflow: hidden;
}

.related-card:hover {
    border-color: rgba(var(--theme-color-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(var(--theme-color-rgb), 0.1);
    transform: translateY(-3px);
    color: var(--text-color);
}

.related-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-color-rgb), 0.06);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-thumb .site-icon-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
}

.related-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.related-card-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.related-card-title b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

/* ============ 分享弹窗 ============ */
.share-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
}

.share-modal.active { display: flex; }

.share-modal-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}

.share-modal-body {
    position: relative;
    width: 90%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: shareModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shareModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.share-modal-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.share-modal-close {
    border: none;
    background: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: all var(--transition-fast);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover {
    color: var(--text-color);
    background: var(--bg-secondary);
}

.share-modal-content { padding: 24px; }

.share-link-box {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px 0 0 12px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 13px;
    outline: none;
    transition: all var(--transition-fast);
}

.share-link-box input:focus { border-color: var(--theme-color); }

.btn-copy-link {
    padding: 12px 20px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, var(--theme-color), #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.btn-copy-link:hover { box-shadow: 0 4px 14px rgba(var(--theme-color-rgb), 0.3); }

.share-social-row {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.share-social-btn i { font-size: 24px; }
.share-social-btn:hover {
    border-color: rgba(var(--theme-color-rgb), 0.3);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.share-qq i { color: #12b7f5; }
.share-weibo i { color: #e6162d; }
.share-twitter i { color: #1da1f2; }

/* ============ TOC 目录导航 ============ */
.toc-widget {
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#tocContainer {
    overflow-y: auto;
    max-height: 400px;
    font-size: 13px;
}

#tocContainer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tocContainer li { margin: 0; }

#tocContainer a {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    padding-left: 12px;
}

#tocContainer a:hover,
#tocContainer a.active {
    color: var(--theme-color);
    border-left-color: var(--theme-color);
    background: rgba(var(--theme-color-rgb), 0.04);
}

#tocContainer .toc-h2 { padding-left: 12px; }
#tocContainer .toc-h3 { padding-left: 24px; font-size: 12px; }
#tocContainer .toc-h4 { padding-left: 36px; font-size: 12px; }

/* ============ Hero下方 正文+侧边栏 双栏布局 ============ */
.article-sidebar-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-main-col {
    flex: 1;
    min-width: 0;
}

.article-sidebar-col {
    width: 300px;
    flex-shrink: 0;
}

.article-sidebar-col .sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-sidebar-col .sidebar-widget .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.article-sidebar-col .sidebar-widget .card-body {
    padding: 16px 20px;
}

/* ============ 响应式 ============ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 767px) {
    .site-content { padding: 20px 18px; }
    .site-name-box .site-name { font-size: 20px; }
    .site-name-box .text-muted { font-size: 12px; }
    .site-detail-content-card { padding: 22px 18px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .sites-preview { margin-top: 20px !important; margin-left: 0 !important; }
    .site-go .btn { padding: 8px 16px; font-size: 13px; }
    .share-social-row { gap: 10px; }
    .share-social-btn { padding: 10px 16px; }
    .meta-row-3 { grid-template-columns: 1fr 1fr; }
    .meta-row-2 { grid-template-columns: 1fr; }
    .views-stats { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 575px) {
    .meta-row-3 { grid-template-columns: 1fr; }
}

/* ============ 评论样式 ============ */
.comment-list-wrap {
    margin-top: 32px;
}

.comment-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-title i {
    color: var(--theme-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-avatar img {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

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

.comment-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
    word-break: break-word;
}

.comment-actions {
    margin-top: 10px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--theme-color);
    background: rgba(var(--theme-color-rgb), 0.06);
    border: 1px solid rgba(var(--theme-color-rgb), 0.15);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    background: rgba(var(--theme-color-rgb), 0.12);
    border-color: rgba(var(--theme-color-rgb), 0.3);
    color: var(--theme-color);
}

.comment-children {
    list-style: none;
    padding-left: 0 !important;
    margin: 0;
}

.comment-children .comment-item {
    padding: 12px 0;
}

.comment-children .comment-children {
    padding-left: 0 !important;
}

.cancel-reply {
    display: inline-block;
    margin-right: 12px;
}

.cancel-reply a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cancel-reply a:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
