/* ============================================================
 * 新闻详情页样式（news/show.php 引用）
 * 依赖 style.css 中的 CSS 变量：--gradient-primary/--border/--text-muted/--primary/--accent
 * ============================================================ */

/* 新闻详情页：顶部渐变装饰条 + 简洁排版 */
.news-detail {
    position: relative;
    overflow: hidden;
    padding-top: 40px;
}
.news-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}
.news-detail .news-title {
    font-size: 26px;
}

/* 面包屑分隔符 */
.breadcrumb .fa-chevron-right {
    font-size: 10px;
}

/* 相关新闻：双列卡片式排版 */
.related-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.related-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.related-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity .2s;
}
.related-news-item:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(99,102,241,.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.related-news-item:hover::before {
    opacity: 1;
}
.related-rank {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    color: rgba(255,255,255,.16);
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}
.related-news-content {
    flex: 1;
    min-width: 0;
}
.related-news-content h4 {
    margin-bottom: 6px;
}
.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.related-cat {
    font-size: 10px;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 20px;
    color: var(--tag, var(--primary));
    background: rgba(99,102,241,.12);
    background: color-mix(in srgb, var(--tag, var(--primary)) 14%, transparent);
    border: 1px solid rgba(99,102,241,.3);
    border: 1px solid color-mix(in srgb, var(--tag, var(--primary)) 30%, transparent);
    flex-shrink: 0;
}
.related-news-date {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.related-arrow {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all .2s;
}
.related-news-item:hover .related-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}
@media (max-width: 768px) {
    .related-news-list {
        grid-template-columns: 1fr;
    }
    .related-news-item {
        flex-direction: row;
        align-items: center;
    }
}
/* 相关新闻标题图标 */
.related-news h3 .fa-thumbs-up {
    color: var(--primary);
}

/* 评论区标题图标 */
.comment-section h3 .fa-comments {
    color: var(--accent);
}
/* 空评论提示 */
.comment-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 20px 0;
}

/* 推广：TikTok 跨境网络专线（横幅卡片） */
.author-info {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background:
        radial-gradient(120% 170% at 0% 0%, rgba(99,102,241,.14), transparent 55%),
        radial-gradient(90% 130% at 100% 100%, rgba(236,72,153,.10), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    margin-bottom: 32px;
    transition: border-color .2s, box-shadow .2s;
}
.author-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--gradient-primary);
}
.author-info:hover {
    border-color: rgba(99,102,241,.45);
    box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 1px rgba(99,102,241,.1);
}
.author-info .author-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 55%, #6366f1 100%);
    box-shadow: 0 10px 24px rgba(236,72,153,.28), inset 0 0 0 2px rgba(255,255,255,.14);
}
.author-details h4 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.author-details .author-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #9aa4b8;
    letter-spacing: .3px;
    margin-bottom: 8px;
}
.promo-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: var(--text-muted);
}
/* 推广：右上角「推荐」红标 */
.promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 12px 5px 14px;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    border-radius: 4px 4px 4px 0;
    box-shadow: 0 4px 12px rgba(244,63,94,.35);
    white-space: nowrap;
}
.promo-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    border-top: 5px solid #c23046;
    border-right: 5px solid transparent;
}

/* 右侧栏图标配色 */
.sidebar-title .fa-fire {
    color: #ef4444;
}
.sidebar-title .fa-folder-open {
    color: var(--primary);
}
.sidebar-title .fa-bell {
    color: #22c55e;
}

/* 响应式 */
@media (max-width: 768px) {
    .author-info {
        padding-top: 40px;
    }
}
