﻿@charset "utf-8";

/* ========== 新闻栏目页 - 精简版 ========== */
:root {
    --xdg-green: #003429;
    --xdg-accent: #49ac35;
    --xdg-orange: #F5821E;
    --xdg-text-dark: #1f2d3d;
    --xdg-text-soft: #4e6266;
    --xdg-border: rgba(0, 52, 41, 0.08);
    --shadow-sm: 0 8px 20px -6px rgba(0, 52, 41, 0.06);
    --shadow-hover: 0 20px 35px -12px rgba(0, 52, 41, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #f5f8f7 0%, #ffffff 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--xdg-text-dark);
    line-height: 1.5;
}

/* ========== Banner ========== */
.news-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #003429 0%, #0a5c4a 50%, #1a7a62 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(73, 172, 53, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 0;
    color: white;
    text-align: center;
}

.banner-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 1.05rem;
    opacity: 0.8;
    font-weight: 400;
}

/* ========== 主容器 ========== */
.news-master {
    width: 80%;
    max-width: 1400px;
    margin: 2rem auto 4rem;
    position: relative;
}

/* ========== 分类导航 ========== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--xdg-border);
    padding-bottom: 0.8rem;
}

.tab-btn {
    display: inline-block;
    background: rgba(240, 248, 243, 0.8);
    border: 1px solid rgba(73, 172, 53, 0.15);
    padding: 0.45rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 60px;
    color: var(--xdg-text-soft);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--xdg-green) 0%, #0a5c4a 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(0, 52, 41, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(200, 230, 210, 0.8);
    color: var(--xdg-green);
    transform: translateY(-2px);
}

/* ========== 新闻列表（单列垂直） ========== */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--xdg-border);
    transition: all 0.3s ease;
    gap: 1rem;
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(73, 172, 53, 0.2);
}

.news-item-date {
    font-size: 0.8rem;
    color: #8ba0a0;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 85px;
    text-align: center;
    font-weight: 450;
    letter-spacing: 0.3px;
}

.news-item-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.news-item-title a {
    color: var(--xdg-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-item:hover .news-item-title a {
    color: var(--xdg-accent);
}

.news-item-arrow {
    color: #c0cfca;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.news-item:hover .news-item-arrow {
    color: var(--xdg-accent);
    transform: translateX(3px);
}

/* ========== 分页器 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 2rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    background: white;
    border: 1px solid var(--xdg-border);
    color: var(--xdg-text-soft);
}

.pagination a:hover {
    background: var(--xdg-green);
    color: white;
    border-color: var(--xdg-green);
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, var(--xdg-green) 0%, #0a5c4a 100%);
    color: white;
    border-color: transparent;
    cursor: default;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== 品牌金句 ========== */
.insight-quote {
    background: linear-gradient(115deg, #f4f9f6 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 1.8rem 2.4rem;
    margin: 2rem 0 2rem;
    border-left: 5px solid var(--xdg-accent);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.06);
}

.insight-quote p {
    font-size: 1.15rem;
    font-weight: 450;
    color: #1e2f3a;
    line-height: 1.55;
}

.insight-quote small {
    display: block;
    margin-top: 0.7rem;
    color: #8ba09a;
    font-weight: 500;
}

/* ========== 返回首页 ========== */
.back-home {
    margin-top: 1rem;
    text-align: center;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 0.7rem 2rem;
    border-radius: 60px;
    color: var(--xdg-green);
    text-decoration: none;
    border: 1px solid rgba(0, 52, 41, 0.2);
    transition: all 0.25s;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-home a:hover {
    background: var(--xdg-green);
    color: white;
    border-color: var(--xdg-green);
    transform: translateY(-2px);
}

/* ========== 文章详情页 ========== */
.article-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--xdg-border);
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--xdg-text-dark);
    line-height: 1.35;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--xdg-border);
    font-size: 0.88rem;
    color: #8ba0a0;
}

.meta-cat {
    background: rgba(73, 172, 53, 0.1);
    color: var(--xdg-accent);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
}

/* 文章正文 */
.article-body {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #38474d;
    word-break: break-word;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body h2, .article-body h3 {
    color: var(--xdg-green);
    margin: 1.8rem 0 0.8rem;
    font-weight: 700;
}
.article-body h2 { font-size: 1.4rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.article-body table td, .article-body table th {
    border: 1px solid var(--xdg-border);
    padding: 10px 14px;
    text-align: left;
}
.article-body table th {
    background: #f4f9f6;
    font-weight: 600;
    color: var(--xdg-green);
}
.article-body blockquote {
    border-left: 4px solid var(--xdg-accent);
    background: #f4f9f6;
    padding: 1rem 1.4rem;
    margin: 1.2rem 0;
    border-radius: 0 8px 8px 0;
    color: #4e6266;
    font-style: italic;
}
.article-body ul, .article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body a {
    color: var(--xdg-accent);
    text-decoration: underline;
}
.article-body a:hover { color: var(--xdg-green); }

/* 上一篇 / 下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--xdg-border);
}

.article-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--xdg-border);
    background: #fafbfb;
    text-decoration: none;
    transition: all 0.2s;
}
.article-nav-item:hover {
    border-color: var(--xdg-accent);
    background: #f4faf6;
}

.article-nav-label {
    font-size: 0.78rem;
    color: #8ba0a0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-nav-title {
    font-size: 0.92rem;
    color: var(--xdg-text-dark);
    font-weight: 550;
    line-height: 1.4;
}
.article-nav-title.muted {
    color: #c0cac0;
    font-weight: 400;
}

/* ========== 移动端 ========== */
@media (max-width: 768px) {

    /* Banner 高度缩减约1/3 */
    .news-banner { min-height: 150px; }
    .news-banner::before {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    .banner-content { padding: 1.5rem 0; }
    .banner-title { font-size: 1.6rem; }
    .banner-subtitle { font-size: 0.88rem; }
    .news-master {
        width: 88%;
        margin: 1.2rem auto 2.5rem;
    }
    .banner-content {
        width: 88%;
        padding: 2rem 0;
    }
    .banner-title { font-size: 1.7rem; }
    .banner-subtitle { font-size: 0.9rem; }

    .tab-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    .category-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; border-bottom: none; padding-bottom: 0; }
    .tab-btn { text-align: center; }

    .news-item {
        padding: 0.9rem 1rem;
        gap: 0.6rem;
    }
    .news-item-date {
        font-size: 0.7rem;
        min-width: 70px;
    }
    .news-item-title {
        font-size: 0.9rem;
    }

    .insight-quote { padding: 1.3rem 1.5rem; }
    .insight-quote p { font-size: 0.95rem; }
    .pagination a, .pagination span { min-width: 36px; height: 36px; font-size: 0.8rem; }

    /* 详情页 */
    .article-card { padding: 1.4rem 1.2rem; border-radius: 12px; }
    .article-title { font-size: 1.3rem; }
    .article-meta { gap: 0.8rem; font-size: 0.78rem; }
    .article-body { font-size: 0.95rem; }
    .article-body h2 { font-size: 1.15rem; }
    .article-body h3 { font-size: 1rem; }
    .article-nav { flex-direction: column; }
}

@media (max-width: 500px) {
    .news-master { width: 94%; }
    .banner-title { font-size: 1.4rem; }
    .news-item-date { min-width: 60px; font-size: 0.68rem; }
    .news-item-title { font-size: 0.85rem; }
    .article-card { padding: 1.1rem 1rem; }
    .article-title { font-size: 1.15rem; }
}

/* ========== 移动端顶栏 ========== */
.m-top { display:none; }

@media screen and (max-width: 768px) {
    .m-top { display:block; }
    body {
        overflow-x: clip;
        overflow-x: hidden\9;
    }
    html {
        overflow-x: clip;
        overflow-x: hidden\9;
    }
}

.m-top-placeholder { display: none; }

@media screen and (max-width: 768px) {
    .m-top-placeholder { display: block; height: 48px; }
}

.m-top-bar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    bottom: auto;
    width: 100%;
    z-index: 9999;
    background: #003429;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.m-top-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}
.m-top-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #4ade80;
    padding: 3px 8px;
    letter-spacing: 0;
}
.m-top-logo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #003429;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 汉堡按钮 */
.m-menu-check { display: none; }

.m-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.m-menu-btn span,
.m-menu-btn span::before,
.m-menu-btn span::after {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all .25s ease;
}
.m-menu-btn span { position: relative; }
.m-menu-btn span::before,
.m-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}
.m-menu-btn span::before { top: -7px; }
.m-menu-btn span::after  { top: 7px; }

.m-menu-check:checked ~ .m-menu-btn span { background: transparent; }
.m-menu-check:checked ~ .m-menu-btn span::before {
    top: 0;
    transform: rotate(45deg);
}
.m-menu-check:checked ~ .m-menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 下拉菜单 */
.m-menu-drop {
    position: fixed;
    top: 48px;
    left: 0; right: 0;
    background: rgba(0, 52, 41, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    -webkit-transform: none !important;
    transform: none !important;
}
.m-menu-check:checked ~ .m-menu-drop {
    max-height: 420px;
    padding: 8px 0;
}
.m-menu-drop a {
    display: block;
    color: rgba(255,255,255,.95);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: .03em;
    padding: 19px 28px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .2s, padding-left .2s;
}
.m-menu-drop a:last-child { border-bottom: none; }
.m-menu-drop a:hover { background: rgba(255,255,255,.05); }
.m-menu-drop a:active,
.m-menu-drop a:focus { background: rgba(255,255,255,.1); padding-left: 34px; }

/* PC/移动端显示切换 */
.xidinggepc { display:block; }
.xidinggeyidong { display:none; }
@media screen and (max-width: 768px) {
    .xidinggepc { display:none; }
    .xidinggeyidong { display:block; }
}