/*
   AI资讯详情页样式
   News Detail Page Styles
   青色主题，与 ai-news 列表页一致
*/

/* ===== Hero 头部区域 ===== */
.news-detail-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.news-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.news-detail-hero:hover .news-detail-hero-bg {
    transform: scale(1.03);
}

.news-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 145, 178, 0.95) 0%, rgba(8, 145, 178, 0.7) 40%, rgba(8, 145, 178, 0.3) 100%);
}

.news-detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-detail-hero-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.news-detail-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.news-detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.news-detail-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-detail-hero-meta i {
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .news-detail-hero {
        min-height: 260px;
    }
    
    .news-detail-hero-title {
        font-size: 1.6rem;
    }
    
    .news-detail-hero-content {
        padding: 40px 16px 30px;
    }
    
    .news-detail-hero-meta {
        gap: 16px;
        font-size: 0.85rem;
    }
}

/* ===== 面包屑 ===== */
.news-detail-breadcrumb {
    background: #f8fafc;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-detail-breadcrumb .breadcrumb-item a {
    color: #0891b2;
}

.news-detail-breadcrumb .breadcrumb-item a:hover {
    color: #0e7490;
}

.news-detail-breadcrumb .breadcrumb-item.active {
    color: #475569;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 文章区域 - AI资讯主题覆盖 ===== */
.news-detail-article.case-detail-article {
    border-top: 4px solid #0891b2;
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.08);
}

.news-detail-article .case-detail-title {
    border-bottom-color: #0891b2;
}

.news-detail-article .case-meta-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.news-detail-article .case-meta-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: rgba(8, 145, 178, 0.3);
}

.news-detail-article .case-meta-item i {
    color: #0891b2;
}

.news-detail-article .case-detail-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.news-detail-article .case-detail-content a {
    color: #0891b2;
}

.news-detail-article .case-detail-content a:hover {
    color: #0e7490;
}

.news-detail-article .case-detail-content blockquote {
    border-left-color: #0891b2;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08) 0%, transparent 100%);
}

.news-detail-article .news-tags .badge {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
}

/* ===== 正文排版优化 ===== */
.news-detail-article .case-detail-content {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #334155;
}

.news-detail-article .case-detail-content p {
    margin-bottom: 1.25rem;
}

.news-detail-article .case-detail-meta {
    padding: 1rem 0 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== 侧边栏 - 返回按钮 ===== */
.news-detail-back-btn {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-detail-back-btn:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

/* ===== 侧边栏小工具 ===== */
.news-detail-section .sidebar-widget {
    border-top: 3px solid #0891b2;
}

.news-detail-section .widget-title {
    color: #0e7490;
}

.news-detail-section .widget-title i {
    color: #0891b2;
}

/* ===== 相关资讯卡片 ===== */
.news-detail-section .related-case-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.news-detail-section .related-case-item:hover {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.12);
}

.news-detail-section .related-case-image {
    border-radius: 0;
}

.news-detail-section .related-case-item:hover .related-case-info h4 {
    color: #0891b2;
}

/* ===== 上一篇/下一篇 ===== */
.news-detail-article .case-nav-link:hover .case-nav-icon {
    background: #0891b2;
}

.news-detail-article .case-nav-link:hover {
    border-color: #0891b2;
    color: #0891b2;
}

.news-detail-article .case-nav-icon {
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}

/* ===== 区块背景 ===== */
.news-detail-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 0 4rem;
}
