/* 新闻详情页面样式 */

/* 新闻详情页面头部hero样式 */
.news-detail-hero {
    position: relative;
    min-height: 60vh;
    background: url('./newsbg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.news-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.4) 0%, rgba(44, 82, 130, 0.4) 50%, rgba(49, 130, 206, 0.5) 100%);
    z-index: 1;
}

.news-detail-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.news-detail-hero .container {
    position: relative;
    z-index: 2;
}

.news-detail-hero .hero-content {
    padding-top: 120px;
}

.news-detail-hero h1 {
    font-size: clamp(48px, 8vw, 50px);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 面包屑导航 */
.breadcrumb-section {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #1e3a8a;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #9ca3af;
    font-weight: 500;
}

.breadcrumb .current {
    color: #374151;
    font-weight: 600;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-list:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.news-detail-main {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* 文章内容 */
.article-content {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.article-header {
    margin-bottom: 30px;
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 20px;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    color: #64748b;
}

.publish-date {
    font-weight: 600;
    color: #1e40af;
    background: rgba(30, 64, 175, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.article-views {
    color: #64748b;
    font-weight: 500;
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    padding: 0 30px 30px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e40af;
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 35px 0 18px;
    position: relative;
    padding-left: 15px;
}

.article-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 2px;
}

.article-body p {
    margin-bottom: 22px;
    text-align: justify;
    color: #4b5563;
}

.article-body ul {
    margin: 25px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #4b5563;
    position: relative;
}

.article-body li::marker {
    color: #1e40af;
    font-weight: bold;
}

.article-image {
    margin: 30px 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

.article-image-caption {
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* 文章分页 */
.article-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-btn:hover:not(.disabled) {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.page-btn.active {
    background: #1e40af;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 上一篇/下一篇卡片容器 */
.prev-next-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* 上一篇/下一篇项目 */
.prev-next-item {
    padding: 20px 24px;
}

.prev-next-item.prev-item {
    padding-bottom: 16px;
}

.prev-next-item.next-item {
    padding-top: 16px;
}

/* 项目标签 */
.item-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 项目标题 */
.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 项目摘要 */
.item-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 项目元信息 */
.item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.calendar-icon {
    width: 14px;
    height: 14px;
    color: #6c757d;
}

.item-date {
    font-size: 13px;
    color: #6c757d;
}

/* 分隔线 */
.separator-line {
    height: 1px;
    background-color: #dee2e6;
    margin: 0 24px;
}

/* 返回列表按钮区域 */
.return-list-section {
    margin-top: 20px;
}

.return-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(90deg, #f4d03f 0%, #d4ac0d 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 172, 13, 0.3);
}

.return-list-btn:hover {
    background: linear-gradient(90deg, #d4ac0d 0%, #b7950b 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 172, 13, 0.4);
}

.return-icon {
    width: 16px;
    height: 16px;
    color: white;
}

/* 相关新闻 */
.related-news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-item:hover {
    background: rgba(30, 64, 175, 0.05);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.related-news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-thumb img {
    transform: scale(1.1);
}

.related-news-content {
    flex: 1;
}

.related-news-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
}

.tag:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .prev-next-container {
        margin-bottom: 20px;
    }
    
    .prev-next-item {
        padding: 16px 20px;
    }
    
    .return-list-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .news-detail-hero {
        min-height: 40vh;
        padding: 100px 0 60px 0;
    }
    
    .news-detail-hero h1 {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .news-detail-main {
        padding: 30px 0 60px;
    }
    
    .content-layout {
        gap: 25px;
    }
    
    .article-header {
        padding: 25px 25px 15px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-body {
        padding: 0 25px 25px;
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 24px;
        margin: 30px 0 15px;
    }
    
    .article-body h3 {
        font-size: 20px;
        margin: 25px 0 12px;
    }
    
    .prev-next-container {
        margin-bottom: 20px;
    }
    
    .prev-next-item {
        padding: 16px 20px;
    }
    
    .return-list-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .related-news-item {
        gap: 12px;
        padding: 12px 0;
    }
    
    .related-news-thumb {
        width: 70px;
        height: 50px;
    }
    
    .related-news-title {
        font-size: 13px;
    }
    
    .article-pagination {
        gap: 10px;
        padding: 15px;
    }
    
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-detail-hero {
        min-height: 35vh;
        padding-top: 80px;
    }
    
    .news-detail-hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }
    
    .article-header {
        padding: 20px 20px 15px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-body {
        padding: 0 20px 20px;
        font-size: 14px;
    }
    
    .article-body h2 {
        font-size: 22px;
        margin: 25px 0 12px;
    }
    
    .article-body h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .prev-next-item {
        padding: 14px 16px;
    }
    
    .return-list-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .related-news-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-news-thumb {
        width: 100%;
        height: 120px;
    }
    
    .tag-cloud {
        gap: 8px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}