/* 800px及以下移动端样式 */
@media (max-width: 800px) {

    /* 基础样式调整 */
    body {
        overflow-x: hidden;
        /* 防止侧边菜单导致横向滚动 */
    }

    .container {
        max-width: 100%;
        position: relative;
        /* 为绝对定位的汉堡菜单按钮提供参考 */
    }

    /* 顶部样式调整 */
    .top-header .slhdbdh {
        width: 100%;
    }

    .top-header .tq>div>div {
        width: 100%;
        padding-right: .1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .welcome-text {
        width: 100%;
        text-align: center;
        margin-bottom: .1rem;
    }

    .social-icons {
        margin-top: .1rem;
    }

    .top-header {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* 汉堡菜单按钮样式 - 放在hero-banner右侧中间 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: .35rem;
        height: .28rem;
        cursor: pointer;
        z-index: 100;
        padding: .06rem;
        border-radius: .04rem;
        position: absolute;
        right: .15rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: .03rem;
        background-color: #232323;
        border-radius: .015rem;
        transition: all 0.3s ease;
    }

    /* 汉堡菜单按钮动画效果 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(.075rem) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-.075rem) rotate(-45deg);
    }

    /* 侧边导航菜单样式 */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -50%;
        width: 50%;
        height: 100%;
        background-color: #fff;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .15rem;
        background-color: #af0b0b;
        color: white;
    }

    .mobile-logo {
        font-weight: bold;
        line-height: 1.3;
        flex: 1;
        text-align: center;
    }

    .mobile-menu-close {
        cursor: pointer;
        padding: 0 .08rem;
    }

    .mobile-search {
        display: flex;
        padding: .1rem;
        border-bottom: .01rem solid #eee;
    }

    .mobile-search input {
        flex: 1;
        padding: .08rem;
        border: .01rem solid #ddd;
        border-right: none;
        font-size: .16rem;
        width: 50%;
    }

    .mobile-search button {
        padding: 0 .12rem;
        background-color: #af0b0b;
        color: white;
        border: none;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-link {
        padding: .15rem;
        border-bottom: .01rem solid #eee;
        color: #333;
    }

    .mobile-nav-link:hover {
        background-color: #f5f5f5;
    }

    /* 遮罩层样式 */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* 导航菜单调整 - 在移动端隐藏原导航 */
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        /* 隐藏原导航链接 */
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: .1rem 0;
        width: 33.33%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .search-box {
        display: none;
        /* 隐藏原搜索框 */
        width: 100%;
        padding: .1rem 0 .1rem .3rem;
        margin-top: .1rem;
        background-position: left center;
    }

    .search-input {
        width: 60%;
    }

    /* 轮播图调整 */
    .hero-banner .container img {
        width: 100%;
    }

    .carousel-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .swiper-pagination {
        bottom: .1rem !important;
    }

    .swiper {
        height: 2.5rem;
    }

    .swiper-slide {
        height: 2.5rem;
    }

    .carousel-overlay {
        padding: .1rem;
    }



    /* 轮播图控制按钮 */
    .red-card-next,
    .red-card-prev {
        background-size: .28rem !important;
    }



    .red-card-pagination {
        height: .2rem;
    }

    .red-card-pagination .swiper-pagination-bullet {
        width: .06rem !important;
        height: .06rem !important;
        margin: 0 .02rem !important;
    }

    /* 内容布局调整 */

    .content-row {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: .2rem;
        width: 100%;
        overflow: hidden;
    }

    .content-row>* {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .notice-service-row {
        flex-direction: column;
        gap: .16rem;
    }

    .notice-service-row .notice-section,
    .notice-service-row .service-hall {
        flex: none;
        width: 100%;
    }

    .culture-units-row {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: .16rem;
    }

    .news-section {
        margin-top: 0;
        width: 100%;
    }

    /* 标签页样式调整 */
    .tab-headers {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: .05rem;
    }

    .tab-header {
        padding: .06rem .12rem;
    }

    .more-link {
        padding: .06rem;
    }

    .news-item {
        margin-bottom: .08rem;
    }


    /* 服务卡片调整 */
    .service-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .1rem;
    }

    .service-cards .service-card {
        width: 100%;
    }

    .service-cards img {
        width: 100%;
        height: auto;
    }

    /* 通知与服务大厅行调整 */
    .notice-service-row {
        flex-direction: column;
        gap: .16rem;
    }

    .notice-service-row .notice-section,
    .notice-service-row .service-hall {
        flex: none;
        width: 100%;
    }

    .section-header>div {
        margin-bottom: -.02rem;
    }

    /* 服务大厅样式调整 */
    .service-hall {
        width: 100%;
    }

    .service-buttons {
        background: none;
        display: flex;
        flex-direction: row;
        height: auto;
        justify-content: space-between;
        margin: .1rem 0;
    }

    .service-buttons a {
        flex: 1;
        margin: 0 .06rem;
        padding: .12rem .1rem;
        background: #af0b0b;
        border-radius: .08rem;
        color: #fff;
        text-align: center;
        text-decoration: none;
        font-size: .14rem;
        font-weight: 500;
        -webkit-border-radius: .08rem;
        -moz-border-radius: .08rem;
        -ms-border-radius: .08rem;
        -o-border-radius: .08rem;
    }



    .platform-cards {
        display: flex;
    }

    .platform-cards a {
        flex: 1;
        margin: .06rem;
    }

    .platform-cards img {
        width: 100%;
    }



    /* 设置卡片高度 */
    .promo-card {
        height: 1.6rem;
    }

    /* 调整专题卡片 */
    .zhuanti {
        width: 100%;
        background-size: 100% 100%;
    }

    .zhuanti a {
        left: auto;
        right: 10%;
        top: 60%;
        font-size: .16rem;
    }

    /* 红卡轮播图调整 */
    .red-card-swiper .swiper-slide img {
        width: 100%;
    }

    .red-card-swiper .swiper-slide a {
        width: 100%;
    }

    .blue img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gov>div>img {
        width: 100% !important;
    }

    /* 政府按钮区域调整 */
    .gov {
        padding: .1rem;
    }

    .gov-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: .1rem;
    }

    .gov-btn {
        width: 48%;
    }

    .gov-btn img {
        width: 100%;
    }

    .gov>img {
        width: 100%;
    }

    /* 文化旅游区域调整 */
    .culture-title {
        padding: .2rem .16rem;
    }

    .culture-units-row {
        grid-template-columns: 1fr;
        gap: .16rem;
    }

    .vertical-tabs {
        width: 100%;
        height: auto;
        min-height: 4.5rem;
        background-size: 100% 100%;
    }

    .tabs-content-container {
        flex-direction: column;
        margin: .1rem;
    }

    .tab-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .tab-nav>div {
        width: 32%;
        margin-bottom: .06rem;

        height: .35rem;
        line-height: .35rem;
    }

    .vertical-tab {
        height: auto !important;
        line-height: inherit !important;
    }

    .vertical-tab:not(:first-child) {
        margin-top: 0;
    }

    .tab-content-area {
        margin-top: .15rem;
        padding-left: 0;
    }

    .culture-news-item {
        padding: .03rem 0;
        width: auto !important;
    }

    .culture-tab-content table {
        width: 100% !important;
    }

    #tourism-directory table a {
        display: flex;
        justify-content: center;
    }

    #tourism-directory table img {
        margin-left: 0 !important;
    }

    /* 下属单位调整 */


    .section-header-red {
        background: none;
        height: auto;
        padding: .1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .units-content {
        flex-direction: row;
        border: none;
        flex-wrap: wrap;
    }

    .units-content a {
        margin: .06rem;
        width: 47%;
    }

    .units-content img {
        width: 100%;
    }

    .interaction-btn {
        display: none !important;
    }



    /* 页脚调整 */
    .footer {
        height: auto;
        padding: .1rem 0 1rem;
        background-repeat: repeat;
    }

    footer table {
        width: 100% !important;
    }

    footer table tr {
        display: flex;
        justify-content: center;
    }

    footer table tr:first-child td:first-child,
    footer table tr:first-child td:last-child,
    footer table tr:last-child td:last-child {
        position: absolute;
        bottom: -.8rem;
    }

    footer table tr:first-child td:first-child {
        left: 8%;
    }

    footer table tr:first-child td:last-child {
        left: 46%;
        bottom: -.9rem;
    }

    footer table tr:last-child td:last-child {
        right: 8%;
        bottom: -.7rem;
    }

    /* 在移动端重新排列蓝色卡片到下属单位区域 */
    .promo-card.blue {
        display: none;
        /* 在原位置隐藏 */
    }

    .zhuanti,
    .section-header-red {
        display: none !important;
    }

    .ztbd,
    .xsdw {
        display: flex !important;
    }

    .notice-section .card .news-list {
        padding: .1rem 0;
    }


    .slhzcxs,
    .slgycxs {
        display: none;
    }

    .promo-cards .promo-card:nth-of-type(3) {
        margin-right: 0 !important;
    }

    .news-item a,
    .culture-news-item a {
        white-space: nowrap;
        /* 不换行 */
        overflow: hidden;
        /* 隐藏溢出内容 */
        text-overflow: ellipsis;
        /* 显示省略号 */
        display: block;
    }

    .culture-tab-content {
        min-height: 2.86rem !important;
    }

    .gengduo {
        display: block !important;
    }

}

/* 当屏幕宽度低于505px时的额外调整 */
@media (max-width: 505px) {
    .nav-link {
        width: 50%;
    }



    .swiper {
        height: 2rem;
    }

    .swiper-slide {
        height: 2rem;
    }

    .mobile-menu-toggle {
        width: .3rem;
        height: .24rem;
        padding: .05rem;
        right: .1rem;
    }

    /* 小屏幕下宣传卡片改为单列 */
    .promo-cards {
        grid-template-columns: 1fr;
    }



    /* 调整卡片高度适应小屏幕 */
    .promo-card {
        height: 1.4rem;
    }
}

/* 针对更小屏幕的调整 */
@media (max-width: 375px) {


    .swiper {
        height: 1.8rem;
    }

    .swiper-slide {
        height: 1.8rem;
    }



    .mobile-menu-toggle {
        width: .28rem;
        height: .22rem;
        padding: .04rem;
    }
}