/* ========================================
   改进的新闻详细页面样式 - 更舒适的阅读体验
======================================== */

/* 主容器布局优化 */
.news-detail-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    line-height: 1.8;
}

/* 面包屑导航优化 */
.breadcrumb {
    background: rgba(46, 123, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

/* 新闻头部优化 */
.news-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color-light);
}

.news-category-tag {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.publish-date {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
}

/* 标题优化 */
.modern-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: left;
}

.news-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
    padding: 20px;
    background: rgba(46, 123, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* 元数据信息重新设计 */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color-light);
}

.meta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* 标签优化 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(46, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* 主图优化 - 合适的大小 */
.news-featured-image {
    margin: 40px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.news-featured-image .image-container {
    position: relative;
    height: 400px; /* 固定高度避免太大 */
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-featured-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.news-featured-image:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.overlay-content i {
    font-size: 24px;
}

.image-caption {
    padding: 15px 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-color-light);
}

/* 正文内容优化 - 舒适的阅读排版 */
.news-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.content-card {
    margin-bottom: 30px;
}

/* 引言段落 */
.lead-paragraph {
    position: relative;
    padding: 25px 30px;
    margin-bottom: 35px;
    background: rgba(46, 123, 255, 0.02);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.7;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    padding-left: 20px;
}

/* 内容章节 */
.content-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46, 123, 255, 0.1);
}

.section-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

/* 正文段落 */
.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-align: justify;
}

/* 高亮内容 */
.content-highlight {
    background: rgba(46, 123, 255, 0.03);
    border: 1px solid rgba(46, 123, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.content-highlight p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* 图片集合重新设计 - 合理的图片尺寸 */
.content-gallery {
    margin-top: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

.gallery-title i {
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-card {
    position: relative;
    height: 180px; /* 固定合理高度 */
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .overlay-content {
    color: white;
    text-align: center;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* 操作按钮区域 */
.news-actions {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.actions-container {
    display: flex;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(46, 123, 255, 0.05);
    transform: translateY(-2px);
}

.like-btn.liked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-icon {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-detail-layout {
        padding: 90px 15px 40px;
    }
    
    .news-header {
        padding: 25px 20px;
    }
    
    .modern-title {
        font-size: 1.8rem;
    }
    
    .news-content {
        padding: 25px 20px;
    }
    
    .lead {
        font-size: 1.05rem;
    }
    
    .content-section p {
        font-size: 15px;
    }
    
    .news-featured-image .image-container {
        height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-card {
        height: 140px;
    }
    
    .meta-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modern-title {
        font-size: 1.6rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
        padding: 15px;
    }
    
    .news-featured-image .image-container {
        height: 200px;
    }
    
    .gallery-card {
        height: 120px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}