/* ==========================================
   News Detail Page Styles (新闻详情专属) - V2 原生规范版
   ========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2f3338;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: #ff3010 !important;
}

/* --- 面包屑导航 --- */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #6d7888;
    margin-top: 60px; /* 避开固定 Header */
}

.breadcrumb a {
    color: #6d7888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff3010;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

/* --- 详情内容区 --- */
.news-detail-section {
    padding: 60px 0 80px 0;
    background: #fff;
}

.news-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f2f5;
    padding-bottom: 30px;
}

.news-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2f3338;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.news-detail-meta {
    font-size: 14px;
    color: #999;
}

.news-detail-content {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
    margin-bottom: 40px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* --- 多图自由响应式网格 (去Tailwind耦合) --- */
.news-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.news-image-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}

.news-image-grid img:hover {
    transform: scale(1.01);
}

/* 单张图片居中跨列样式 */
.news-image-grid.single-image {
    display: block;
    text-align: center;
}

.news-image-grid.single-image img {
    max-width: 800px;
    height: auto;
    max-height: 500px;
    margin: 0 auto;
}

/* --- 标签区块 --- */
.news-tags {
    padding: 24px 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 40px;
}

.news-tags .label {
    color: #6d7888;
    margin-right: 12px;
    font-size: 14px;
}

.news-tag-item {
    display: inline-block;
    background: rgba(255, 48, 16, 0.06);
    color: #ff3010;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.news-tag-item:hover {
    background: #ff3010;
    color: #fff;
}

/* --- 翻页控制器 --- */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-box {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    background: #fbfbfc;
}

.nav-box:hover {
    border-color: #ff3010;
    background: rgba(255, 48, 16, 0.02);
}

.nav-box i {
    font-size: 20px;
    color: #ff3010;
}

.nav-box.prev i {
    margin-right: 16px;
}

.nav-box.next {
    justify-content: flex-end;
    text-align: right;
}

.nav-box.next i {
    margin-left: 16px;
}

.nav-box-content {
    overflow: hidden;
}

.nav-box-content .nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.nav-box-content .nav-title {
    font-size: 15px;
    color: #2f3338;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* --- 移动端响应式适配 --- */
@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 56px;
        padding: 15px 0;
    }
    .news-detail-section {
        padding: 40px 0;
    }
    .news-detail-title {
        font-size: 24px;
    }
    .news-detail-content {
        font-size: 16px;
    }
    .news-image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-image-grid img {
        height: 240px;
    }
    .news-navigation {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nav-box-content .nav-title {
        max-width: 100%;
    }
}