/* 默认隐藏面板标题和文件部分标题 */
.panel-title,
.doc-section-title {
    display: none;
}

/* 移动端样式 - 小于768px的屏幕 */
@media screen and (max-width: 1268px) {
    /* 基础容器调整 */
    body {
        min-width: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 100%;
        min-width: auto;
        overflow: hidden;
        padding: 0 10px;
        box-sizing: border-box;
        position: relative;
       
    }

    /* 服务导航隐藏 */
    .service-nav {
        display: none;
    }

    .service-content {
        min-width: 100%;
        max-width: 100%;
    }
    /* 服务面板基础调整 */
    .service-panel {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100%;
        height: auto !important;
        overflow: visible !important;
        padding: 10px;
    }

    .service-panel.active {
        display: block;
    }

    /* 面板标题显示 */
    .panel-title {
        display: block;
        font-size: 20px;
        font-weight: bold;
        color: #0066cc;
        padding: 15px;
        margin: -15px -15px 15px -15px;
        background: #fff;
        border-bottom: 2px solid #0066cc;
    }

    /* 文件部分标题显示 */
    .doc-section-title {
        display: block;
        font-size: 16px;
        font-weight: bold;
        color: #0066cc;
        padding: 12px 15px;
        margin: -15px -15px 15px -15px;
        background: #f8f8f8;
        border-bottom: 1px solid #eee;
    }

    /* 政府信息公开布局调整 */
    .gov-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: unset !important;
        max-width: 100%;
        height: auto !important;
        gap: 15px;
        overflow: visible;
    }

    /* 左侧菜单调整 */
    .menu-section {
        width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    /* 菜单项调整 */
    .menu-item {
        margin: 0;
        height: 50px; /* 固定高度 */
        padding: 8px 12px;
        display: flex;
        flex-direction: row; /* 改回横向布局 */
        align-items: center;
        justify-content: flex-start; /* 左对齐 */
        background: #f8f8f8;
        border-radius: 4px;
        text-align: left; /* 文字左对齐 */
    }

    .menu-item .menu-icon {
        width: 24px;
        height: 24px;
        margin: 0 8px 0 0; /* 调整图标右边距 */
        flex-shrink: 0; /* 防止图标被压缩 */
    }

    .menu-item span {
        font-size: 15px;
        line-height: 1.2;
        flex: 1;
        white-space: nowrap; /* 文字不换行 */
        overflow: hidden;
        text-overflow: ellipsis; /* 超出显示省略号 */
    }

    /* 移除之前添加的before伪元素 */
    .menu-item::before {
        display: none;
    }

    /* 右侧内容区域调整 */
    .right-content {
        width: 100%;
        min-width: unset !important;
        height: auto;
        overflow: visible;
    }

    /* 服务内容调整 */
    .service-content {
        width: 100%;
        min-width: unset !important;
        max-width: 100%;
        height: auto !important;
        overflow: visible;
    }

    /* 内容区域调整 */
    .top-content {
        flex-direction: column;
        gap: 15px;
        min-width: unset;
        max-width: 100%;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    /* 中间部分调整 */
    .middle-section {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        height: auto;
        overflow: visible;
    }

    .doc-tabs {
        width: 100%;
        min-width: auto;
        border: none;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    .doc-tabs .tab-header {
        display: none;
    }

    .doc-tabs .tab-item {
        display: block;
        padding: 12px 15px;
        margin: 0;
        font-size: 16px;
        font-weight: bold;
        color: #0066cc;
        background: #f8f8f8;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .doc-tabs .tab-item::after {
        display: none;
    }

    .doc-tabs .more {
        display: none;
    }

    /* 文件内容调整 */
    .doc-tabs .tab-content {
        display: block !important;
        padding: 15px;
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
    }

    .doc-tabs .doc-list {
        margin: 0;
    }

    .doc-tabs .doc-list a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        line-height: 1.5;
        color: #333;
        border-bottom: 1px dashed #eee;
    }

    .doc-tabs .doc-list a:last-child {
        border-bottom: none;
    }

    /* 列表内容调整 */
    .doc-list a,
    .letter-title,
    .interview-title,
    .survey-title {
        white-space: normal;
        line-height: 1.4;
    }

    /* 右侧导航网格调整 */
    .nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        padding: 10px 0;
    }

    .nav-item {
        width: auto;
        min-height: 50px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        background: #f8f8f8;
        border-radius: 4px;
    }

    .nav-item .nav-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .nav-item span {
        font-size: 16px; /* 增大字体 */
        color: #333;
        flex: 1;
        line-height: 1.3;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 政务服务调整 */
    .service-grid {
        width: 95%;
        min-width: unset !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 5px 0;
        margin: 0;
    }

    /* 便民服务网格调整 */
    .service-grid-2 {
        width: 95%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 5px 0;
        margin: 0;
    }

    /* 便民服务项目样式 */
    .service-grid-2 .service-item {
        width: calc(50% - 5px); /* 每行两个，考虑间距 */
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #f8f8f8;
        border-radius: 4px;
        padding: 10px 8px;
        text-decoration: none;
        transition: all 0.3s;
    }

    .service-grid-2 .service-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .service-grid-2 .service-item span {
        font-size: 15px;
        color: #333;
        flex: 1;
        line-height: 1.2;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 便民服务标题样式 */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        margin-bottom: 15px;
        border-bottom: 2px solid #0066cc;
    }

    #gov-interaction {
        display: block;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    
    #gov-service {
        display: block;
    }

    /* 右侧内容区域调整 */
    #gov-service .right-content {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100%;
        overflow-x: hidden !important;
    }

    /* 图片导航调整 */
    .image-nav {
        min-width: unset !important;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 右侧内容区域调整 */
    #gov-public .right-content {
        height: auto !important;
        min-height: unset !important;
        overflow: visible;
    }

    /* 办事服务选项卡调整 */
    .biz-tabs {
        display: none; /* 隐藏PC端的选项卡 */
    }

    /* 办事内容调整 */
    .biz-content {
        display: block !important;
        width: 100%;
        margin: 0 0 15px 0;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 12px 10px;
    }

    /* 服务包装器调整 */
    .service-wrapper {
        width: 100%;
        min-width: unset !important;
        height: auto;
        overflow: visible;
    }

    /* 服务部分调整 */
    .service-section {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: #fff;
        border: none;
    }

    /* 标题和更多链接样式 */
    .biz-section-title {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #0066cc;
        padding: 12px 15px;
        margin: -12px -10px 15px -10px;
        background: #f8f8f8;
        border-bottom: 1px solid #eee;
    }

    /* 更多链接样式 */
    .biz-section-title .more {
        font-size: 15px;
        color: #666;
        text-decoration: none;
        padding: 4px 8px;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .biz-section-title .more::after {
        content: '>';
        margin-left: 4px;
        font-family: "SimSun", serif;
        font-size: 12px;
        color: #999;
    }

    .biz-section-title .more:hover {
        color: #0066cc;
        background: rgba(0, 102, 204, 0.05);
    }

    .biz-section-title .more:active {
        background: rgba(0, 102, 204, 0.1);
    }

    /* 政民互动面板调整 */
    #gov-interaction {
        display: block;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* 市长信箱调整 */
    .mayor-box {
        width: 100%;
        margin-bottom: 15px;
        padding: 0;
        box-sizing: border-box;
    }

    /* 互动右侧内容调整 */
    .interaction-right {
        width: 100%;
        margin-bottom: 15px;
    }

    /* 信箱列表样式 */
    .letter-list {
        width: 100%;
        padding: 0;
    }

    .letter-item {
        width: 100%;
        padding: 8px 0;
        display: flex;
        align-items: center;
        border-bottom: 1px dashed #eee;
        box-sizing: border-box;
    }

    /* 确保内容正确显示 */
    .interaction-section {
        width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
    }

    /* 民意征集和在线调查的特殊处理 */
    .interaction-section:has(.survey-content) {
        border: none;
        padding: 0;
        background: none;
    }

    /* 民意征集和在线调查的section-header特殊处理 */
    .interaction-section:has(.survey-content) .section-header {
        display: none; /* 完全隐藏带有蓝线的section-header */
    }

    /* 调查内容调整 */
    .survey-content {
        display: block !important; /* 强制显示所有survey-content */
        width: 100%;
        margin: 0 0 15px 0;
        box-sizing: border-box;
        background: #fff;
        border: none;
        border-radius: 0;
    }

    /* 调查标题样式 */
    .survey-section-title {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: bold;
        color: #333;
        padding: 8px 0;
        margin: 0 15px 15px 15px;
        border-bottom: 2px solid #0066cc; /* 添加底部蓝线 */
        background: none;
    }

    /* 更多链接样式 */
    .survey-section-title .more {
        font-size: 14px;
        color: #666;
        text-decoration: none;
        padding: 4px 8px;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .survey-section-title .more::after {
        content: '>';
        margin-left: 4px;
        font-family: "SimSun", serif;
        font-size: 12px;
        color: #999;
    }

    .survey-section-title .more:hover {
        color: #0066cc;
        background: rgba(0, 102, 204, 0.05);
    }

    /* 隐藏原有的选项卡和更多链接 */
    .survey-tabs,
    .survey-more,
    .dstitle {
        display: none;
    }

    /* 移除active类的特殊处理，让所有内容都显示 */
    .survey-content.active,
    .survey-content {
        display: block !important;
    }

    /* 调查列表样式 */
    .survey-list {
        width: 100%;
        padding: 0 15px;
    }

    .survey-item {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px dashed #eee;
    }

    .survey-item:last-child {
        border-bottom: none;
    }

    .survey-item .survey-title {
        font-size: 16px;
        color: #333;
        line-height: 1.4;
        margin-bottom: 5px;
        display: block;
        text-decoration: none;
    }

    .survey-item .survey-date {
        font-size: 14px;
        color: #999;
    }

    /* 全局字体大小调整 */
    /* 标题字体 */
    .panel-title {
        font-size: 20px;
    }

    .biz-section-title,
    .section-header span,
    .survey-section-title {
        font-size: 18px;
    }

    /* 内容文字 */
    .menu-item span,
    .nav-item span,
    .nav-banner span,
    .service-grid .service-item span,
    .service-grid-2 .service-item span,
    .doc-tabs .doc-list a,
    .letter-title,
    .interview-title,
    .survey-title,
    .survey-item .survey-title,
    .letter-list a,
    .interview-list a,
    .survey-list a {
        font-size: 16px;
    }

    /* 更多链接文字 */
    .more,
    .biz-section-title .more,
    .section-header .more,
    .survey-section-title .more {
        font-size: 16px;
    }

    /* 日期和状态文字 */
    .letter-status,
    .letter-date,
    .interview-date,
    .survey-date,
    .survey-item .survey-date {
        font-size: 16px;
    }

    /* 超小屏幕下的字体大小保持不变 */
    @media screen and (max-width:1 480px) {
        /* 保持所有文字最小16px */
        .nav-item span,
        .nav-banner span,
        .service-grid .service-item span,
        .letter-title,
        .interview-title,
        .survey-title,
        .letter-status,
        .letter-date,
        .interview-date,
        .survey-date {
            font-size: 16px !important;
        }
    }

    /* 底部区域布局调整 */
    .bottom-section {
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        box-sizing: border-box;
    }

    /* 标题样式统一 */
    .pointtile {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
        padding: 10px;
        margin: -10px -10px 15px -10px;
        background: #f8f8f8;
        border-bottom: 1px solid #eee;
        text-align: center;
        position: relative;
    }

    /* 添加伪元素确保边框显示完整 */
    .pointtile::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: #eee;
    }

    /* 图片导航网格布局统一 */
    .image-nav {
        min-width: unset !important;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px;
        padding: 0;
        box-sizing: border-box;
    }

    /* 导航项目样式统一 */
    .nav-banner {
        width: 100%;
        height: 36px;
        padding: 6px 8px;
        border: none;
        background: #f8f8f8;
        border-radius: 4px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        margin-bottom: 5px;
    }

    .nav-banner img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .nav-banner span {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 头部区域调整 */
    .header {
        position: relative;
        z-index: 1;
    }

    /* 导航菜单调整 */
    .header-mainNav {
        position: relative;
        z-index: 2;
        width: 100%;
        background: #0066cc;
    }
.mainNav
{height:72px;float:left;padding:2px 5px;}
    /* 内容区域调整 */
    .main-content {
        position: relative;
        z-index: 1;
        margin-top: 20px;
    }

    /* 搜索框容器调整 */
    .header-search-container {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }
}

/* 超小屏幕调整 - 小于480px */
@media screen and (max-width: 1480px) {
    .panel-title {
        font-size: 16px;
        padding: 12px;
    }

    .menu-section {
        grid-template-columns: 1fr;
    }

    .service-grid {
        gap: 10px;
    }

    .service-grid-2,
    .nav-grid,
    .image-nav {
        grid-template-columns: 1fr;
    }

    .letter-title,
    .interview-title,
    .survey-title {
        font-size: 14px;
    }

    .letter-status,
    .letter-date,
    .interview-date,
    .survey-date {
        font-size: 12px;
    }

    /* 在超小屏幕下保持两列布局 */
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .nav-item {
        min-height: 45px;
        padding: 8px;
    }

    .nav-item .nav-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .nav-item span {
        font-size: 13px;
    }

    .pointtile {
        font-size: 15px;
        padding: 10px 12px;
        
    }

    /* 保持两列布局 */
    .image-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .nav-banner {
        height: 40px;
        padding: 6px 8px;
    }

    .nav-banner img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

    .nav-banner span {
        font-size: 13px;
    }

    .biz-content {
        width: 100%;
        padding: 12px;
    }

    .service-grid .service-icon {
        width: 28px;
        height: 28px;
    }

    .service-grid .service-item span {
        font-size: 13px;
    }
   .service-grid .service-item{width:100%;}
}

/* 特小屏幕调整 - 小于360px */
@media screen and (max-width: 1360px) {
      .li1{position:absolute;top:-300px;color:#fff;}
        .li2{position:absolute;top:72px;}
        .li3{position:absolute;top:435px;}
        .li4{position:absolute;top:795px;}
     .doc-list a{width:100%;}
     .doc-list .time{width:100%;float:left; text-align:left;}
     .newsList{font-size:16px;}
   .topics-slider{width:115px;}
   .letter-status{display:none;}
     .ldname{font-size:16px; line-height:22px;}
     .newsList h4 a{max-width:220px;}
.jdtitle{width:90%;}
.jdinfo{margin:18px;font-size:16px;width:90%;}
.jdinfo ul li{width:100%;}
.jdinfo ul li a{width:96%;}
.jdrtinfo{top:20px;}
 .grid .jdrt{float:left;width:90.5%;margin-top:-210px;margin-left:16px;padding:10px 0;}

.jdrtinfo{width:90.1%;margin:30px 18px;font-size:16px;}
    .bottom-section {
        margin-top: 8px;
        width: 100%;
        max-width: 340px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        box-sizing: border-box;
    }

    .pointtile {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
        padding: 10px;
        margin: -10px -10px 15px -10px; /* 调整底部margin为15px */
        background: #f8f8f8;
        border-bottom: 1px solid #eee;
        text-align: center;
        position: relative; /* 添加相对定位 */
    }

    /* 添加伪元素确保边框显示完整 */
    .pointtile::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: #eee;
    }

    .image-nav {
        min-width: unset !important;
        width: 100%;
        max-width: 320px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
        box-sizing: border-box;
    }

    .image-nav.grid-template-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .nav-banner {
        width: 100%;
        height: 36px;
        padding: 6px 8px;
        border: none;
        background: #f8f8f8;
        border-radius: 4px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        margin-bottom: 5px;
    }

    .nav-banner img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .nav-banner span {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .biz-content {
        width: 100%;
        padding: 10px;
    }

    .service-grid {
        gap: 8px;
    }

    .service-grid .service-icon {
        width: 24px;
        height: 24px;
    }

    .service-grid .service-item {
        padding: 10px 6px;
        width: 100%;
        gap: 10px;
    }

    .service-grid .service-item span {
        font-size: 12px;
    }
} 