/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", 微软雅黑, Arial, sans-serif;
}
body {
    background-color: #f5f5f5;
    font-size: 14px;
    color: #333;
}
a {
    text-decoration: none;
    color: #333;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

/* 页面头部 —— 优化图片自适应逻辑 */
.header-top {
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    position: relative;
}
.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    max-width: calc(100% - 120px);
    gap: 20px;
}
.title-left, .title-center {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-left img, .title-center img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.search-box {
    display: flex;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
}
.search-box input {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #ccc;
    outline: none;
    width: calc(100% - 32px);
}
.search-box button {
    height: 28px;
    width: 32px;
    border: none;
    background-color: #1f6032;
    color: #fff;
    cursor: pointer;
}

/* 导航栏 —— 全屏宽 + 居中 */
.nav-wrap {
    background-color: #1f6032;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}
.nav-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}
.nav-main {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}
.nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}
.nav-item > a {
    display: block;
    color: #fff;
    font-size: 15px;
    padding: 12px 10px;
    white-space: nowrap;
}
.nav-item:hover > a {
    background-color: #144723;
}

/* 下拉子菜单 */
.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
}
.nav-sub li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
}
.nav-sub li a:hover {
    background-color: #e6f0e9;
    color: #1f6032;
}
.nav-item:hover .nav-sub {
    display: block;
}

/* 顶部大图轮播（全屏宽，高度与内容区新闻图一致，约 3.75:1） */
.banner-slider {
    position: relative;
    width: 100vw;
    height: clamp(200px, 26.67vw, 320px);
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}
.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slide.active {
    opacity: 1;
}
.banner-dot {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dot span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}
.banner-dot span.active {
    background-color: #fff;
}

/* 新闻头条轮播 */
.news-slider {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    margin-bottom: 8px;
}
.news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.news-slide.active {
    opacity: 1;
}
.news-dot {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.news-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
}
.news-dot span.active {
    background: #1f6032;
}

/* 主体内容 */
.main-content {
    padding: 20px;
}
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1f6032;
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f6032;
}
.more {
    color: #1f6032;
    font-size: 13px;
}
.news-wrap {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.news-left {
    width: 48%;
    min-width: 300px;
    flex: 1;
}
.news-left p {
    line-height: 1.5;
}
.news-right {
    width: 52%;
    min-width: 300px;
    flex: 1;
}
.news-right .news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e8e8e8;
    transition: background-color 0.2s ease;
}
.news-right .news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.news-right .news-item:hover {
    background-color: #f8fbf9;
}
.news-right .news-item img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}
.news-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.news-text .date {
    flex-shrink: 0;
    width: 56px;
    padding: 8px 4px 6px;
    text-align: center;
    background: linear-gradient(180deg, #1f6032 0%, #2a7a42 100%);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(31, 96, 50, 0.25);
    line-height: 1.2;
}
.news-text .date-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.news-text .date-ym {
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.02em;
}
.news-text .date-month::after {
    content: "/";
    margin: 0 1px;
    opacity: 0.7;
}
.news-text a {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: #222;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s ease;
}
.news-right .news-item:hover .news-text a {
    color: #1f6032;
}

/* tab标签 */
.tab-wrap {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}
.tab-item {
    padding: 6px 15px;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #eee;
    cursor: pointer;
}
.tab-item.active {
    background-color: #1f6032;
    color: #fff;
    border-color: #1f6032;
}
.tab-more {
    font-size: 13px;
    color: #1f6032;
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
    padding: 0 6px;
}
.tab-more:hover {
    text-decoration: underline;
}
/* 新闻内容区域 默认隐藏 */
.news-content {
    display: none;
}
.news-content.active {
    display: block;
}

/* 双栏布局 */
.two-column {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.col-left, .col-right {
    width: 48%;
    min-width: 300px;
    flex: 1;
}
.block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1f6032;
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.block-title h3 {
    font-size: 16px;
    color: #1f6032;
}
.list-box li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    display: flex;
    justify-content: space-between;
}
.list-box li a:hover {
    color: #1f6032;
}
.list-box li span {
    color: #999;
    font-size: 12px;
}

/* 底部banner */
.bottom-banner {
    padding: 10px 0;
}
.banner-row1, .banner-row2 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.banner-item {
    flex: 1;
    min-width: 140px;
    height: 100px;
    background-color: #eee;
    text-align: center;
    line-height: 100px;
    border: 1px solid #ddd;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部版权信息 */
.footer {
    background-color: #1f6032;
    color: #fff;
    padding: 25px 0;
    margin-top: 0;
}
.footer .container {
    background-color: transparent;
}
.footer-content {
    text-align: center;
    line-height: 1.8;
    font-size: 13px;
}
.footer-content p {
    margin: 3px 0;
}

/* 汉堡菜单按钮（桌面隐藏） */
.nav-toggle {
    display: none;
}

/* 移动端下拉菜单（桌面隐藏） */
.nav-mobile {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-top {
        height: auto;
        flex-direction: column;
        padding: 10px 15px;
    }
    .title-wrapper {
        flex-direction: column;
        max-width: 100%;
        gap: 10px;
    }
    .title-left, .title-center {
        height: auto;
        width: 100%;
    }
    .title-left img, .title-center img {
        max-height: 60px;
    }
    .search-box {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
    .search-box input {
        width: calc(100% - 32px);
    }

    /* 导航栏 - 显示汉堡菜单按钮 */
    .nav-inner {
        position: relative;
        justify-content: flex-start;
    }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        padding: 8px 10px;
    }
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .nav-toggle span + span {
        margin-top: 5px;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .nav-main {
        display: none;
    }

    /* 移动端下拉菜单 */
    .nav-mobile {
        display: none;
        background-color: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-mobile.open {
        display: block;
    }
    .nav-mobile > ul {
        list-style: none;
    }
    .nav-mobile .mobile-nav-item > a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        color: #333;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    .nav-mobile .mobile-nav-item > a.has-sub::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
        color: #999;
        transition: transform 0.3s;
    }
    .nav-mobile .mobile-nav-item > a.has-sub.expanded::after {
        content: '−';
    }
    .mobile-sub {
        display: none;
        background-color: #f9f9f9;
    }
    .mobile-sub.open {
        display: block;
    }
    .mobile-sub li a {
        display: block;
        padding: 12px 20px 12px 36px;
        font-size: 14px;
        color: #555;
        border-bottom: 1px solid #eee;
    }
    .mobile-sub li a:active {
        background-color: #e6f0e9;
        color: #1f6032;
    }
    .banner-slider {
        display: none;
    }
    .news-slider {
        display: none;
    }
    .news-wrap {
        flex-direction: column;
    }
    .news-left, .news-right {
        width: 100%;
        min-width: 0;
    }
    .news-right .news-item img {
        width: 120px;
        height: 68px;
    }
    .news-text .date {
        width: 48px;
        padding: 6px 3px 5px;
    }
    .news-text .date-day {
        font-size: 20px;
    }
    .news-text a {
        font-size: 14px;
    }
    .two-column {
        flex-direction: column;
    }
    .col-left, .col-right {
        width: 100%;
        min-width: 0;
    }
    .banner-item {
        min-width: 100px;
        height: 80px;
    }
}