/* 新闻详情页面样式 */

/* 页面内容无内边距（仅新闻详情页使用） */
.page-content {
    padding-top: 0;
}

/* 新闻详情背景 */
.news-detail-bg {
    background-color: #f5f5f5;
    padding: 30px 0 60px;
}

.related-news-section {
    background-color: #fff;
    padding: 50px 0;
}

.related-news-title {
    text-align: center;
    font-size: 30px;
    color: #333333;
    margin: 0 0 30px;
    font-weight: normal;
}

.news-detail-container {
    background-color: #fff;
    padding: 40px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-detail-header {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.date-box {
    background-color: #c30b00;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 30px;
}

.date-box .day {
    display: block;
    font-size: 36px;
    font-weight: bold;
    font-family: Arial;
    line-height: 1;
    margin-bottom: 5px;
}

.date-box .month {
    display: block;
    font-size: 16px;
    font-family: Arial;
}

.title-box {
    flex: 1;
}

.detail-title {
    font-size: 24px;
    color: #222222;
    margin: 0 0 10px;
    font-weight: bold;
}

.detail-source {
    font-size: 16px;
    font-family: Arial;
    color: #333333;
    margin: 0;
}

.news-detail-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.share-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #999;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.share-icon:hover {
    background-color: #c30b00;
}

.share-icon.weibo {
    background-color: #e6162d;
}

.share-icon.wechat {
    background-color: #07c160;
}

.share-icon.qq {
    background-color: #12b7f5;
}

.share-icon.qzone {
    background-color: #fece00;
}

.share-icon.link {
    background-color: #666;
}

.keywords {
    font-size: 14px;
    color: #333;
}

/* 相关新闻卡片网格 */
.news-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.news-card {
    background-color: rgba(245, 245, 245, 1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card .news-card-image:hover img {
    transform: scale(1.2);
    cursor: pointer;
}

.news-card-title {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    margin: 15px 0 10px;
    padding: 0 10px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card:hover .news-card-title {
    cursor: pointer;
    color: rgba(230, 28, 42, 1);
}

.news-card-excerpt {
    font-size: 14px;
    color: #999999;
    margin: 0 0 15px;
    padding: 0 10px 10px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 44px;
}

/* 移动端新闻详情样式 */
@media (max-width: 768px) {
    .news-detail-bg {
        padding: 30px 0;
    }
    
    .related-news-section {
        padding: 50px 0 0 0;
    }
    
    .news-detail-container {
        padding: 20px;
    }
    
    .news-detail-header {
        flex-direction: column;
    }
    
    .date-box {
        display: none;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    /* 相关新闻卡片响应式 - 手机端一行两个 */
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .news-card-image {
        height: 120px;
    }
    
    .news-card-title {
        font-size: 14px;
        margin: 10px 0 5px;
    }
    
    .news-card-excerpt {
        font-size: 12px;
        margin: 0 0 10px;
        padding: 0 8px 8px;
        height: 38px;
    }
}
