/* ============================================
   首页样式文件 - pages/home.css
   包含：首页特有的样式
   ============================================ */

/* 新闻标题内容 */
.news-title-content {
    text-align: center;
    font-family: 'GovWF_FZ', "Microsoft YaHei", "SimHei", Arial, sans-serif;
    color: #115A94;
}

.news-title-content h1 {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
}

.news-title-content p {
    font-size: 20px;
    padding-top: 16px;
    line-height: 1.4;
}

/* Hero轮播区域 */
.hero-section {
    background-color: #fff;
    padding: 40px 0 24px;
}

.hero-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.block-content{
    padding-top: 0;
}
.block-title{
    padding: 20px 0;
}
.block-title h3{
    font-size: 26px;
    line-height: 1;
    color: #333;
}
.block-title a:hover{
    color: #115A94;
}
.hero-carousel-wrapper {
    flex: 0 0 650px;
    width: 650px;
    height: 432px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    background-color: #e5e5e5;
}

.hero-caption {
    /* position: absolute; */
    bottom: 0;
    left: 0;
    right: 0;
    color: #333;
    padding: 0 20px;
    font-size: 20px;
    text-align: center;
    margin-top: 8px;
}

.hero-sidebar {
    width: 350px;
    flex: 1;
    padding: 0 0 0 20px;
    min-height: 400px;
}

.news-tabs {
    display: flex;
    margin-bottom: 16px;
    gap: 20px;
}

.news-list ul {
    /* margin-bottom: 15px; */
}

.news-list li {
    padding: 9px 0;
    line-height: 1.6;
}

.news-list a {
    color: #333;
    font-size: 20px;
    transition: color 0.3s;
    /* display: block; */
}

.news-list a:hover {
    color: #115A94;
}

/* Swiper轮播样式 */
.hero-carousel  .swiper-pagination {
    bottom: initial !important;
    top: 320px;
    left: initial !important;
    right: 20px !important;
    width: auto !important;
}

.hero-carousel .swiper-pagination-bullet {
    background: #fff;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    opacity: 1;
}
.hero-carousel .swiper-pagination-bullet-active {
    width: 30px;
    background: #115A94;
    border-radius: 100px;
}

.hero-carousel .swiper-button-prev,
.hero-carousel .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 20px;
    height: 40px;
    margin-top: -37px;
    transform: translateY(-50%);
}

.hero-carousel .swiper-button-prev {
    left: 0px;
}

.hero-carousel .swiper-button-next {
    right: 0px;
}

.hero-carousel .swiper-button-prev:after,
.hero-carousel .swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-carousel .swiper-button-prev:hover,
.hero-carousel .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* 主要内容区域 */
.main-content {
    padding: 38px 0;
    background: #fff;
}

.content-grid {
    display: flex;
    justify-content: space-between;
}

.content-left,
.content-center,
.content-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 320px;
}

.content-center {
    flex: 1;
}
.content-block{
    margin-bottom: 20px;
}
/* 新闻列表 */
.news-item-list li {
    padding: 11px 0;
    font-size: 20px;
    line-height: 25px;
}
.news-item-list li:first-child {
    padding-top: 0;
}
.news-item-list li:last-child {
    padding-bottom: 0;
}
.news-item-list a {
    color: #333;
    line-height: 1.2;
    transition: color 0.3s;
}

.news-item-list a:hover {
    color: #115A94;
}

/* 日期默认隐藏，仅在关怀版显示 */
.date {
    display: none;
}
.earphone,.more-link {
    display: none;
}

.more-link img{
    margin-left: 6px;
}

.status-badge {
    color: #C70D0D;
    margin-right: 5px;
}

/* 政务服务 */
.service-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 20px;
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 20px;
}

.service-header h3 {
    color: #333;
    font-size: 26px;
    margin-right: 0;
}

.service-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 20px;
}

.service-tabs .tab-btn {
    position: relative;
    padding: 0 20px;
    font-size: 20px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.service-tabs .tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #333;
}

.service-tabs .tab-btn.active {
    color: #125B94;
    /* font-weight: bold; */
}

.service-tabs .tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #125B94;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap:40px 110px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.service-icon {
    width: 100px;
    /* height: 80px; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-item span {
    font-size: 18px;
    color: #333;
    line-height: 1.2;
}
.service-item:hover span {
    color: #115A94;
}

/* 政策解读 */
.policy-search-section {
    margin-top: 20px;
}

.policy-search-box {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 12px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.policy-search-box input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.policy-search-box .policy-search-btn {
    padding: 5px 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    margin-left: 5px;
}

.policy-search-box .policy-search-btn:hover {
    opacity: 0.7;
}

.policy-search-box .policy-search-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.policy-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 10px;
    margin-top: 20px;
}

.policy-tabs .policy-tab-btn {
    position: relative;
    padding: 0 20px;
    font-size: 20px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.policy-tabs .policy-tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #d2d2d2;
}

.policy-tabs .policy-tab-btn.active {
    color: #125B94;
    /* font-weight: bold; */
}

/* 新闻发布会 */
.live-broadcast .broadcast-card {
    position: relative;
}
.broadcast-card img{
    width: 100%;
}

.broadcast-status {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 10px;
}

.live-badge {
    color: #fff;
    font-size: 18px;
    padding-left: 14px;
    position: relative;
    /* background: rgba(0, 0, 0, 0.1); */
    border-radius: 50px;
}

.live-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #EB0D0D;
    border-radius: 50%;
}

/* 在线访谈 */
.online-interview .interview-card {
    display: flex;
    gap: 20px;
}

.interview-image {
    flex: 0 0 120px;
    border-radius: 4px;
    overflow: hidden;
}

.interview-image img {
    width: 100%;
    /* height: 150px; */
    object-fit: cover;
    background-color: #e5e5e5;
}

.interview-content {
    flex: 1;
}

.interview-content h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #000;
}

.interview-name {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 5px;
}

.interview-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.interview-date {
    font-size: 12px;
    color: #999;
}

/* 预警提示 */
.warning-section .news-item-list{
padding-top: 26px;
}
.block-content-image{
    width: 100%;
}
.block-content-image img{
    width: 100%;
}
.warning-section .warning-banner {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.warning-icon {
    flex: 0 0 48px;
    color: #fff;
}

.warning-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.warning-alert {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-badge {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.alert-badge.red {
    background-color: #ff4444;
    color: #fff;
}

.alert-time {
    font-size: 14px;
}

.warning-list ul {
    margin-top: 15px;
}

.warning-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.warning-list a {
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.warning-list a:hover {
    color: #0066cc;
}

/* 专题专栏 */
.special-column .special-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    position: relative;
}
.special-column .hero-carousel .swiper-button-prev,
.special-column .hero-carousel .swiper-button-next {
    margin-top: 0;
}
.special-card h4 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 20px;
}

.special-icon {
    margin: 20px 0;
    color: #0066cc;
}

.special-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #0066cc;
    background: #fff;
    color: #0066cc;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #0066cc;
    color: #fff;
}

/* 问题列表 */
.question-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.question-list a {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.3s;
}

.question-list a:hover {
    color: #0066cc;
}

/* 多媒体区域 */
.multimedia-section {
    margin-top: 30px;
}

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

.multimedia-group {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
}


.multimedia-horizontal-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.multimedia-item {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;

}

.multimedia-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 57.7%; /* 16:9 比例，横向图片 */
    overflow: hidden;
    background-color: #e5e5e5;
}

.multimedia-image[data-orientation="portrait"] {
    padding-bottom: 133.33%; /* 3:4 比例，竖屏图片 */
}

.multimedia-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.overlay-label {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.overlay-title {
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.image-overlay-bottom {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
}

.image-overlay-bottom span {
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.image-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.info-likes {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-duration {
    color: #fff;
    font-size: 14px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.multimedia-item:hover .play-btn {
    opacity: 1;
}

.multimedia-content {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #252632;
}

.multimedia-content h4 {
    font-size: 15px;
    font-weight: normal;
    color: #ddd;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 3px 0;
}
.multimedia-content-text{
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.multimedia-content-text h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.multimedia-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
}

.multimedia-source {
    color: #999;
}

.multimedia-date {
    color: #999;
}
.care-hide-image img{
    width: 100%;
}
@media screen and (min-width: 1025px) {
    .block-content-image{
        min-height: 312px;
    }
    .care-hide-image .block-content-image{
        min-height: auto;
    }
    #industry-services{
        min-height: 328px;
        gap: initial;
    }
    #industry-services .service-icon{
        width: auto;
    }
}
/* 响应式设计 - 平板 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    .news-title-content h1{
        font-size: 38px;
    }
    .tab-btn,.service-header h3{
        font-size: 24px;
    }
    .news-list a{
        font-size: 18px;
    }
    .news-list li{
        padding: 6px 0;
    }
    .hero-sidebar{
        min-height: 200px;
    }
    .content-center {
        flex: 0 0 100%;
        /* order: 3; */
    }
    .content-left,
    .content-center,
    .content-right {
        max-width: 288px;
    }
    .hero-content {
        /* flex-direction: column; */
    }
    .news-item-list li{
        padding: 8px 0;
    }
    .news-item-list li a{
        font-size: 18px;
    }
    .policy-tabs .policy-tab-btn{
        padding: 0 10px;
    }
    .hero-carousel-wrapper {
        flex: 0 0 517px;
        width: 517px;
        height: 320px;
    }
    .hero-caption{
        font-size: 20px;
    }
    .hero-section{
        padding-top: 36px;
    }
    .block-title h3{
        font-size: 24px;
    }

    
    .multimedia-grid {
        /* grid-template-columns: 1fr; */
        gap: 16px;
    }
    
    .multimedia-group {
        /* grid-template-columns: 1fr 1fr; */
        gap: 16px;
    }
    .multimedia-content h4{
        font-size: 12px;
    }
    .multimedia-content{
        padding: 6px;
    }
    .multimedia-meta{
        font-size: 10px;
    }
    
    
    .multimedia-horizontal-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 40px;
    }
    .footer-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }
    .service-section,.multimedia-section,.footer-nav{
        display: none;
    }
    .main-content{
        padding-bottom: 0;
    }
    .earphone,.more-link {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .more-link{
        color: #333;
        font-size: 20px;
    }
    .news-list{
        border-top: 1px solid #e3e3e3;
    }
    .earphone{
        display: none;
        position: absolute;
        right: 0;
        bottom: 20px;
    }
    .news-list li,.news-item-list li{
        position: relative;
        padding: 16px 0;
        border-bottom: 1px solid #e3e3e3;
    }
    .news-item-list li:last-child{
        padding-bottom: 16px;
    }
    .news-item-list a{
        line-height: 1.6;
        font-size: 18px;
    }
    .hero-content {
        flex-direction: column;
    }
    .hero-carousel-wrapper{
        width: 100%;
        height: auto;
        flex: initial;
    }
    .hero-caption {
        position: initial;
        font-size: 18px;
        padding-top: 6px;
    }
    .news-title-content p{
        display: none;
    }
    .hero-section{
        padding-top: 20px;
    }
    .news-title-content h1 {
        font-size: 28px;
    }
    .news-title-content p {
        font-size: 16px;
    }
    .top-bar {
        display: none;
    }

    .search-section {
        width: 100%;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0066cc;
        flex-direction: column;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }


    .hero-sidebar {
        min-height: auto;
        padding-left: 0;
        width: auto;
        min-width: 100%;
    }

    .content-left,
    .content-center,
    .content-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-grid {
        flex-direction: column;
    }

    .multimedia-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .multimedia-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .multimedia-item.portrait-item {
        grid-row: span 1;
    }
    
    .multimedia-horizontal-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom .container {
        text-align: center;
    }

    .assistant-title {
        font-size: 16px;
    }

    .assistant-desc {
        font-size: 13px;
    }
    .footer-content-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .footer-right{
        display: none;
    }

    .audio-player-modal {
        min-width: 300px;
        padding: 8px 10px;
    }
    
    .audio-player-title {
        font-size: 16px;
    }
    
    .control-btn img {
        width: 12px;
        height: 12px;
    }
    
    .tab-btn,.service-header h3{
        font-size: 24px;
    }
    .block-title h3{
        font-size: 24px;
    }
    .news-list a{
        font-size: 18px;
    }
    .policy-tabs{
        justify-content: center;
    }
    .policy-search-section{
        display: none;
    }
}

/* 音频播放器弹出框 */
.audio-player-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    box-shadow: 2px 0px 8px 0px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 10px 20px;
    min-width: 330px;
}
.audio-player-modal button{
    border: none;
    background: none;
}
.audio-player-modal.show {
    display: block;
}

.audio-player-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.audio-player-title {
    font-size: 18px;
    color: #333;
    font-weight: normal;
    width: 216px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.audio-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

/* 暂停按钮图标控制 */
.pause-btn img[alt="继续播放"] {
    display: none;
}

.pause-btn img[alt="暂停"] {
    display: block;
}