/* 最新动态页面 - 按效果图 */
.page-news {
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* 当前页导航高亮：最新动态 */
.page-news .nav-active > a {
    color: #fff;
}
.page-news .nav-list > li.nav-active::after {
    width: 100%;
    background: #fff;
}

/* 头部：默认半透明，鼠标滑入后浅蓝（同加入我们） */
.page-news .site-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.page-news .site-header:hover {
    background: rgba(191, 202, 215, 0.8);
    backdrop-filter: blur(10px);
}

/* 菜单字号放大 */
.page-news .site-header .nav-list > li > a {
    font-size: 16px;
}

/* ========== Banner：xinwenbg.jpg ========== */
.news-hero {
    position: relative;
    width: 100%;
    min-height: 82vh;
    margin-top: -60px;
    overflow: hidden;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ========== 最新动态：浅灰背景、标题+绿线、3x2 卡片 ========== */
.news-section {
    background: #f5f5f5;
    padding: 56px 0 52px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
}

.news-section-divider {
    width: 60px;
    height: 3px;
    background: #b8d477;
    margin-bottom: 36px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
}

/* 新闻卡片：白底、圆角、整体 padding，内容与边缘留白 */
.news-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 新闻缩略图：圆角，不贴边 */
.news-card-img {
    width: 108px;
    height: 92px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-title {
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* 日期上方横线分割，日期与箭头同一行 */
.news-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
}

.news-card-date {
    font-size: 13px;
    color: #9ca3af;
}

.news-card-arrow {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    text-indent: -999px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* 分页：整体缩小，页码绿色背景宽度缩小 */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 28px;
}

.news-page-link,
.news-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.news-page-link:hover,
.news-page-num:hover {
    background: #e5e7eb;
}

.news-page-num.active {
    background: #b8d477;
    color: #fff;
}

.news-page-ellipsis {
    padding: 0 2px;
    color: #6b7280;
    font-size: 13px;
}

/* ========== 媒体视频：轮播、圆角阴影、绿线、查看更多箭头 ========== */
.media-section {
    background: #fff;
    padding: 48px 0 64px;
    border-top: 1px solid #e5e7eb;
}

.media-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.media-header-left {
    flex: 1;
}

.media-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
}

.media-section-divider {
    width: 60px;
    height: 3px;
    background: #b8d477;
}

.media-more {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.media-more:hover {
    color: #b8d477;
}

.media-more-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    text-indent: -999px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: background 0.2s;
}

.media-more:hover .media-more-icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8d477'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* 轮播：一行三个，无滚动条，中间放大压在上方 */
.media-carousel-wrap {
    overflow: hidden;
    margin: 0;
    padding: 28px 0 32px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.media-carousel-track::-webkit-scrollbar {
    display: none;
}

.media-carousel-track {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 轨道 300% 宽共 9 项，每项占轨道 1/9 才能一行显示 3 个（3×33.33% 视口） */
.media-item {
    flex: 0 0 11.111%;
    box-sizing: border-box;
    padding: 12px 10px 24px;
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-origin: center center;
    z-index: 1;
    transform: scale(0.9);
}

/* 中间项：放大并压在左右两张上方，形态固定 */
.media-item.is-center {
    z-index: 10;
    transform: scale(1.2);
}

.media-item.is-center .media-thumb {
    box-shadow: none;
}

.media-item:not(.is-center) {
    transform: scale(0.9);
}

.media-item:hover {
    z-index: 15;
}

.media-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 播放按钮：缩小尺寸、正圆、防止被压扁 */
.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    font-size: 18px;
    padding-left: 4px;
    pointer-events: none;
}

.media-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.media-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s;
}

.media-dot:hover {
    background: #9ca3af;
}

.media-dot.active {
    background: #b8d477;
}

/* 视频弹窗 */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.video-modal-player {
    width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    background: #000;
}

/* ========== 页脚（与首页/加入我们一致） ========== */
.page-news .site-footer {
    background: #b8d477;
    padding: 0 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-news .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    min-height: 80px;
    background: url('../images/footbg.png') no-repeat center top;
    background-size: 100% auto;
    z-index: 1;
}

.page-news .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 0;
    position: relative;
    z-index: 2;
}

.page-news .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}

.page-news .footer-section {
    color: #fff;
}

.page-news .footer-left {
    flex: 0 1 auto;
    min-width: 280px;
    text-align: left;
}

.page-news .footer-brand {
    margin-bottom: 24px;
}

.page-news .footer-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.page-news .footer-brand-en {
    font-size: 11px;
    color: #fff;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.page-news .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-news .contact-block {
    margin-bottom: 20px;
}

.page-news .contact-block:last-child {
    margin-bottom: 0;
}

.page-news .contact-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.page-news .footer-contact .contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.page-news .contact-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.page-news .contact-block-detail {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    padding-left: 26px;
}

.page-news .footer-legal {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* 页脚右侧文字统一字号 - 确保所有文字完全一致 */
.page-news .footer-legal p,
.page-news .footer-legal .copyright,
.page-news .footer-legal .license {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: #fff !important;
    margin: 2px 0 !important;
}

/* 平板（768px ~ 1024px） */
@media (max-width: 1024px) {
    .news-container {
        padding: 0 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-section {
        padding: 48px 0 44px;
    }

    .media-section {
        padding: 40px 0 52px;
    }

    .media-carousel-wrap {
        padding: 24px 0 28px;
    }

    .media-item {
        padding: 10px 8px 20px;
    }
}

/* 移动端（≤768px） */
@media (max-width: 768px) {
    .news-container {
        padding: 0 16px;
    }

    .news-hero {
        min-height: 70vh;
    }

    .news-section {
        padding: 36px 0 32px;
    }

    .news-section-title {
        font-size: 20px;
    }

    .news-section-divider {
        margin-bottom: 28px;
    }

    .news-grid {
        gap: 16px;
    }

    .news-card {
        flex-direction: column;
        padding: 14px;
    }

    .news-card-img {
        width: 100%;
        height: auto;
        min-height: 140px;
    }

    .news-card-img img {
        min-height: 180px;
    }

    .news-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .news-card-bottom {
        padding-top: 10px;
    }

    .news-card-date {
        font-size: 12px;
    }

    /* 分页：移动端增大可点击区域，便于触控 */
    .news-pagination {
        margin-top: 24px;
        gap: 6px;
    }

    .news-page-link,
    .news-page-num {
        min-width: 32px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    /* 媒体视频：手机端一行一个轮播 */
    .media-section {
        padding: 36px 0 44px;
    }

    .media-carousel-wrap {
        padding: 20px 0 24px;
    }

    .media-carousel-track {
        width: 900%;
    }

    .media-item {
        flex: 0 0 11.111%;
        padding: 8px 6px 16px;
    }

    .media-item.is-center {
        transform: scale(1.02);
    }

    .media-item:not(.is-center) {
        transform: scale(0.98);
    }

    .media-section-title {
        font-size: 20px;
    }

    .media-dots {
        margin-top: 20px;
        gap: 10px;
    }

    .media-dot {
        width: 10px;
        height: 10px;
        min-width: 36px;
        min-height: 36px;
        box-sizing: border-box;
        background-origin: content-box;
        background-clip: content-box;
        padding: 13px;
    }

    .media-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 视频弹窗：移动端关闭按钮移入视口内 */
    .video-modal {
        padding: 16px;
    }

    .video-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .video-modal-player {
        max-height: 70vh;
    }

    /* 页脚适配 */
    .page-news .footer-container {
        padding: 36px 16px 0;
    }

    .page-news .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .page-news .footer-legal {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }

    .page-news .footer-legal .copyright,
    .page-news .footer-legal .license {
        font-size: 14px;
    }
}

/* 尊重用户“减少动画”偏好 */
@media (prefers-reduced-motion: reduce) {
    .media-carousel-track,
    .media-item,
    .news-card {
        transition-duration: 0.01ms;
    }
}
