
.media-page {
    background-color: #fff;
}

/* 页面横幅 - 轮播图 */
.page-banner {
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}

.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.banner-carousel {
    width: 100%;
    height: 500px;
    overflow: visible;
    padding: 0;
}

.banner-carousel .swiper-wrapper {
    align-items: center;
}

.banner-carousel .swiper-slide {
    height: 500px;
    transition: all 0.5s ease;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    width: 1200px;
}

.banner-carousel .slide-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.banner-carousel .slide-content .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* 中间图片：占据container的100%宽度和高度 */
.banner-carousel .swiper-slide-active {
    opacity: 1;
    z-index: 3;
    width: 1200px;
}

.banner-carousel .swiper-slide-active .slide-content {
    width: 100%;
}

.banner-carousel .swiper-slide-active .slide-content .container {
    max-width: 1200px;
    width: 100%;
    overflow: visible;
}

.banner-carousel .swiper-slide-active .banner-image img{
    width: 100%;
    height: 500px;
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    /* border-radius: 8px; */
}

/* 左侧图片：完整显示 */
.banner-carousel .swiper-slide-prev {
    z-index: 1;
    opacity: 0.7;
}

.banner-carousel .swiper-slide-prev .slide-content {
    position: relative;
    justify-content: center;
}

.banner-carousel .swiper-slide-prev .slide-content .container {
    position: relative;
    overflow: visible;
}

.banner-carousel .swiper-slide-prev .banner-image img{
    width: 100%;
    height: 500px;
    object-fit: cover;
    /* border-radius: 8px; */
}

/* 右侧图片：完整显示 */
.banner-carousel .swiper-slide-next {
    z-index: 1;
    opacity: 0.7;
}

.banner-carousel .swiper-slide-next .slide-content {
    position: relative;
    justify-content: center;
}

.banner-carousel .swiper-slide-next .slide-content .container {
    position: relative;
    overflow: visible;
}

.banner-carousel .swiper-slide-next .banner-image img{
    width: 100%;
    height: 500px;
    object-fit: cover;
    /* border-radius: 8px; */
}

.banner-image {
    display: block;
    object-fit: cover;
    /* border-radius: 8px; */
    transition: all 0.5s ease;
}

/* Swiper轮播控制按钮 */
.banner-carousel .swiper-pagination {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 10;
}

.banner-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px;
}

.banner-carousel .swiper-pagination-bullet-active {
    background: #115A94;
    width: 24px;
    border-radius: 6px;
}

.banner-carousel .swiper-button-prev,
.banner-carousel .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #115A94;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    margin-top: -25px;
}

/* 导航按钮位置：放在container内部，左右两侧 */
.banner-carousel .swiper-button-prev {
    left: calc((100vw - min(100vw, 1200px)) / 2 + 20px) !important;
}

.banner-carousel .swiper-button-next {
    right: calc((100vw - min(100vw, 1200px)) / 2 + 20px) !important;
}

.banner-carousel .swiper-button-prev:after,
.banner-carousel .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.banner-carousel .swiper-button-prev:hover,
.banner-carousel .swiper-button-next:hover {
    background: #115A94;
    color: #fff;
    transform: scale(1.1);
}

/* 新媒体平台导航区域 */
.media-nav-section {
    margin-bottom: 40px;
}

.media-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-nav-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 90, 148, 0.3) 0%, rgba(0, 102, 204, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.media-nav-item:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.media-nav-item:hover::after {
    opacity: 1;
}

.nav-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-nav-item:hover .nav-image {
    transform: scale(1.15) rotate(-1deg);
}

/* 内容区域布局 */
.media-content-section {
    margin-bottom: 40px;
}

/* 新闻行布局 */
.news-row {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.news-row-1 {
    grid-template-columns: repeat(3, 1fr);
}

.news-row-2,
.news-row-3 {
    grid-template-columns: repeat(4, 1fr);
}

/* 新闻卡片样式 */
.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 8px;
}


.news-card-image {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    height: 185px;
    border-radius: 10px;
}

.news-row:not(.news-row-1) .news-card-image{
    height: 372px;
}

.news-card-content {
    padding: 16px 10px 10px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.news-card-date {
    font-size: 16px;
    color: #B3B3B3;
    text-align: right;
    padding-right: 10px;
    line-height:1;
}
.news-row:not(.news-row-1) {
    color: #333;
    padding-right: 0;
}

.news-card-meta {
    font-family: '黑体';
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding-top: 5px 0 5px;
}
.news-card-source {
    font-size: 16px;
    color: #B3B3B3;
}

.news-card-meta .news-card-date {
    margin-top: 0;
}

/* 内容块样式 */
.content-block {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #115A94, #0066cc);
    transform: scaleX(0);
    transition: transform 0.3s;
    z-index: 1;
}

.content-block:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #115A94;
    transform: translateY(-4px);
}

.content-block:hover::before {
    transform: scaleX(1);
}

.block-content {
    padding: 20px;
    position: relative;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-block:hover .content-image {
    transform: scale(1.03);
}

.sidebar-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-left: 4px solid #115A94;
}

.sidebar-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-block:hover .sidebar-image {
    transform: scale(1.05);
}

.mobile-news-row{
    display: none;
}
.mobile-news-row>p{
    color: #115A94;
    font-size: 20px;
    padding: 10px 0;
    /* border-bottom: 1px solid #E3E3E3; */
    line-height: 1;
}
.mobile-news-card{
    padding: 18px 0;
    border-bottom: 1px solid #E3E3E3;
    line-height: 1;
}
.mobile-news-card-title{
    font-size: 18px;
    color: #333;
    line-height: 1;
}
.mobile-news-card-meta{
    font-size: 18px;
    color: #333;
    display: flex;
    justify-content: space-between;
    line-height: 1;
    margin-top: 9px;
    font-size: 18px;
}
.mobile-news-card-meta>span{
    color: #B3B3B3;
}
.more-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 20px;
}
.more-link img{
    margin-left: 6px;
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .media-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .news-row-1 {
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 38px;
    }
    .news-card-image {
        height: 145px;
    }
    
    .news-row:not(.news-row-1) .news-card-image{
        height: 294px;
    }

    .news-row-2,
    .news-row-3 {
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 14px;
    }
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .page-banner {
        margin-bottom: 20px;
        margin-left: 0;
    }

    .banner-carousel {
        height: auto;
    }

    .banner-carousel .swiper-slide {
        height: auto;
    }

    .banner-carousel .slide-content .container {
        height: auto;
    }

    .banner-carousel .swiper-slide-active .banner-image-center {
        height: auto;
    }
    .banner-carousel .swiper-slide-active .banner-image{
        height: auto;
    }

    .banner-carousel .swiper-slide-prev .banner-image,
    .banner-carousel .swiper-slide-next .banner-image {
        height: auto;
    }

    .banner-carousel .swiper-slide-active {
        width: 100% !important;
    }

    .banner-carousel .swiper-slide-prev,
    .banner-carousel .swiper-slide-next {
        display: none;
    }

    .banner-carousel .swiper-button-prev,
    .banner-carousel .swiper-button-next {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .banner-carousel .swiper-button-prev {
        left: 10px !important;
    }

    .banner-carousel .swiper-button-next {
        right: 10px !important;
    }

    .banner-carousel .swiper-button-prev:after,
    .banner-carousel .swiper-button-next:after {
        font-size: 16px;
    }

    .banner-carousel .swiper-pagination {
        bottom: 10px !important;
    }

    .media-nav-section {
        margin-bottom: 30px;
    }

    .media-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .media-content-section {
        margin-bottom: 30px;
    }

    .news-row {
        margin-bottom: 20px;
        gap: 15px;
    }

    .news-row-1,
    .news-row-2,
    .news-row-3 {
        grid-template-columns: 1fr;
    }
    
    .news-card-image {
        height: 180px;
    }

    .news-card-title {
        font-size: 15px;
    }

    .news-card-content {
        padding: 12px;
    }

    .news-card-date,
    .news-card-source {
        font-size: 13px;
    }
    
    /* .news-row-2,.news-row-3{
        display: none;
    } */
    .mobile-news-row{
        display: block;
    }
    .banner-carousel .swiper-slide-next .banner-image img{
        height: auto;
    }
    .banner-carousel .swiper-slide-prev .banner-image img{
        height: auto;
    }
    .banner-carousel .swiper-slide-active .banner-image img{
        height: auto;
    }
}


/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-block {
    animation: fadeInUp 0.6s ease-out;
}

.content-block:nth-child(1) { animation-delay: 0.1s; }
.content-block:nth-child(2) { animation-delay: 0.2s; }
.content-block:nth-child(3) { animation-delay: 0.3s; }

