/* 新闻详情页样式 */

/* 页面头部样式已在 common-components.css 中定义 */

/* 新闻详情容器 */
.policy-detail-container {
    padding: 20px 15px 100px;
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
}

/* 新闻头部信息卡片 */
.policy-header-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.policy-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.policy-date,
.policy-views,
.policy-source {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #74b9ff;
    font-size: 14px;
    font-weight: 500;
}

.policy-date i,
.policy-views i,
.policy-source i {
    font-size: 16px;
}

.policy-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.policy-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

/* 新闻内容 */
.policy-content {
    background: white;
    border-radius: 20px;
    padding: 30px 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.news-content {
    line-height: 1.8;
    color: #333;
}

.news-content p {
    font-size: 16px;
    text-align: justify;
}

.news-content h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #74b9ff;
}

.news-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
}

.news-content h3:first-child {
    margin-top: 0;
}

.news-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 4px solid #74b9ff;
}

.news-meta p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #636e72;
}

.news-meta p:last-child {
    margin-bottom: 0;
}

.news-meta strong {
    color: #2c3e50;
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.image-viewer.show {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.1s ease-out;
    touch-action: none;
}

.image-viewer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2c3e50;
    transition: transform 0.2s ease, background 0.2s ease;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

body.image-viewer-open {
    overflow: hidden;
}

/* 相关推荐 */
.related-news {
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.related-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.related-news-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-news-header h3 i {
    color: #74b9ff;
}

.related-news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #74b9ff;
    text-decoration: none;
    font-weight: 600;
}

.related-news-more:hover {
    color: #0984e3;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .policy-detail-container {
        padding: 15px 10px 100px;
    }
    
    .policy-header-card,
    .policy-content,
    .related-news {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .policy-title {
        font-size: 20px;
    }
    
    .policy-meta {
        gap: 15px;
    }
    
    .policy-date,
    .policy-views,
    .policy-source {
        font-size: 13px;
    }
    
    .content-section h2 {
        font-size: 18px;
    }
    
    .point-content h3,
    .step-content h4 {
        font-size: 16px;
    }
    
    .contact-item {
        padding: 15px;
    }
}

@media (min-width: 768px) {
    .policy-detail-container {
        padding: 30px 25px 120px;
    }
    
    .policy-header-card,
    .policy-content,
    .related-news {
        padding: 35px 30px;
    }
    
    .policy-title {
        font-size: 28px;
    }
    
    .policy-meta {
        gap: 30px;
    }
    
    .policy-date,
    .policy-views,
    .policy-source {
        font-size: 15px;
    }
    
    .content-section h2 {
        font-size: 22px;
    }
}

