/**
 * 文件名: news-detail.css
 * 描述: 新闻详情页样式表
 * 作者: 开发团队
 * 创建日期: 2024
 * 最后修改: 2024
 */

/* ==================== 新闻详情页主容器 ==================== */

.news-detail-main {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--bg-white);
    min-height: calc(100vh - 400px);
}

/* ==================== 返回按钮 ==================== */

.back-button {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
}

.back-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* ==================== 新闻文章 ==================== */

.news-article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: var(--shadow);
}

/* ==================== 新闻头部 ==================== */

.news-header {
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 48px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-date {
    color: var(--text-gray);
}

.news-category {
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 4px;
    font-weight: 500;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0;
}

/* ==================== 文章内容区 ==================== */

.article-content {
    color: var(--text-dark);
}

/* 文章区块 */
.article-section {
    margin-bottom: 48px;
}

.article-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 0;
}

.article-section p {
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* 导语 */
.article-intro {
    font-size: 20px;
    line-height: 2;
    color: var(--text-dark);
    font-weight: 500;
    padding: 32px;
    background-color: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 48px;
}

/* 区块图标 */
.section-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

/* 副标题 */
.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* 高亮文字 */
.highlight-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* ==================== 信息网格 ==================== */

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: var(--bg-gray);
    border-radius: 8px;
}

.info-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ==================== 特性列表 ==================== */

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 16px;
    margin-bottom: 16px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.feature-desc {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* ==================== 理由卡片 ==================== */

.reason-card {
    padding: 32px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.reason-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.reason-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.reason-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 0;
}

.reason-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0;
}

/* ==================== 结语区块 ==================== */

.conclusion {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: var(--bg-white);
}

.conclusion h2 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.conclusion p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0;
}

/* ==================== 二维码区域 ==================== */

.qr-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 48px;
    background: var(--bg-gray);
    border-radius: 12px;
    margin: 48px 0;
}

.qr-code {
    width: 160px;
    height: 160px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code svg {
    width: 100%;
    height: 100%;
    color: var(--text-dark);
}

.qr-text {
    text-align: left;
}

.qr-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.qr-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

.qr-company {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.qr-slogan {
    font-style: italic;
    color: var(--text-light);
}

/* ==================== 分享区域 ==================== */

.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.share-label {
    font-size: 15px;
    color: var(--text-gray);
}

.share-btn {
    padding: 10px 24px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-gray);
}

/* ==================== 相关新闻 ==================== */

.related-news {
    max-width: 800px;
    margin: 48px auto 0 auto;
    padding: 32px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.related-item {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateX(4px);
    color: var(--primary-hover);
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .article-title {
        font-size: 32px;
    }
    
    .article-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .news-detail-main {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .news-article {
        padding: 32px 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-intro {
        font-size: 18px;
        padding: 24px 20px;
    }
    
    .article-section h2 {
        font-size: 22px;
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
    }
    
    .highlight-text {
        font-size: 18px;
        padding: 16px;
    }
    
    .reason-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .reason-icon {
        margin: 0 auto;
    }
    
    .qr-section {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .qr-text {
        text-align: center;
    }
    
    .share-section {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .news-article {
        padding: 24px 16px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-intro {
        font-size: 16px;
        padding: 20px 16px;
    }
    
    .article-section p {
        font-size: 16px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .highlight-text {
        font-size: 16px;
    }
    
    .info-item {
        padding: 16px;
    }
    
    .feature-list li {
        padding: 12px;
    }
}
