/*
 * 肿瘤医院响应式CSS文件 - 清理优化版
 * 创建时间: 2025-01-13
 * 说明: 移除重复代码，优化结构，提供更好的移动端体验
 */

/* ===== 全局基础设置 ===== */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 默认隐藏移动端专用元素 - 只在PC端隐藏 */
@media screen and (min-width: 769px) {

  .mobile-menu-toggle,
  .mobile-nav-menu,
  .mobile-overlay {
    display: none !important;
  }
}

/* ===== 基础响应式设置 ===== */
@media screen and (max-width: 1200px) {
  .width1200 {
    width: 95%;
    max-width: 1200px;
    padding: 0 15px;
  }

  body {
    min-width: auto;
  }
}

/* ===== 平板端适配 (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {

  .header-logo,
  .header-logo2 {
    height: 120px;
    background-size: contain;
  }

  .header {
    height: 70px;
  }

  .header-left {
    width: 250px;
    height: 70px;
  }

  .header-right {
    width: auto;
    margin-top: 15px;
  }

  .symenu li {
    width: 90px;
    height: 40px;
    line-height: 40px;
  }

  .symenu li a {
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }

  /* 轮播图适配 */
  .mainSwiper {
    height: 600px;
  }

  .content-overlay {
    margin-top: 600px;
  }

  .header-top2 {
    margin-top: 620px;
  }

  /* 新闻区域适配 */
  .hospitalNew {
    flex-direction: column;
  }

  .syhospitalNew-left {
    width: 100%;
    margin-bottom: 30px;
  }

  .syhospitalNew-right {
    width: 100%;
    height: auto;
    padding: 25px 30px;
  }
}

/* ===== 手机端适配 (最大宽度 768px) ===== */
@media screen and (max-width: 768px) {

  /* 基础布局 */
  .width1200 {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
  }

  body {
    font-size: 14px;
    line-height: 1.6;
  }

  /* 字体大小优化 */
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  h5 {
    font-size: 14px;
  }

  h6 {
    font-size: 12px;
  }
.header .width1200{
  height: auto;
}
  /* 头部区域 */
  .header-top {
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
  }

  .header-top.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }

  .header-logo,
  .header-logo2 {
    height: auto;
    background: #fff;
    box-shadow: none;
  }

  .header {
    height: auto;
    flex-direction: column;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
  }

  .header-left {
    width: auto;
    height: 44px;
    float: none;
    display: flex;
    align-items: center;
  }

  .header-left img {

    width: auto;
    max-width: 95%;
    object-fit: contain;
  }

  /* 隐藏PC端元素 */
  .header-right,
  .english-bg {
    display: none !important;
  }

  /* 移动端菜单按钮 */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
 
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    transition: background-color 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(45, 137, 236, 0.1);
  }

  .mobile-menu-toggle:active {
    background-color: rgba(45, 137, 236, 0.2);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #2D89EC;
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #2D89EC;
  }

  /* 移动端导航菜单 */
  .mobile-nav-menu {
    display: block !important;
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100dvh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav-menu.active {
    left: 0;
  }

  .mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-menu>ul>li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
  }

  .mobile-nav-menu>ul>li:last-child {
    border-bottom: none;
  }

  .mobile-nav-menu>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }

  .mobile-nav-menu>ul>li>a:hover,
  .mobile-nav-menu>ul>li>a:active {
    background: #f8f9fa;
    color: #2D89EC;
    padding-left: 28px;
  }

  /* 健康科普列表链接基础样式 */
  .polular-list li a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
  }

  .polular-list li a:hover {
    color: #2D89EC !important;
  }

  .mobile-nav-menu>ul>li>a::after {
    content: '›';
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
  }

  .mobile-nav-menu>ul>li.has-submenu>a::after {
    content: '▼';
    font-size: 12px;
    transform: rotate(0deg);
  }

  .mobile-nav-menu>ul>li.has-submenu.active>a::after {
    transform: rotate(180deg);
    color: #2D89EC;
  }

  /* 二级菜单样式 - 修复显示问题 */
  .mobile-nav-menu ul ul {
    display: none;
    background: #f5f5f5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-nav-menu ul ul.active {
    display: block !important;
    max-height: 500px;
    opacity: 1;
  }

  .mobile-nav-menu .has-submenu.active>ul {
    display: block !important;
    max-height: 500px;
    opacity: 1;
  }

  .mobile-nav-menu ul ul li {
    border-bottom: 1px solid #eee;
    width: 100%;
    float: none;
  }

  .mobile-nav-menu ul ul li:last-child {
    border-bottom: none;
  }

  .mobile-nav-menu ul ul li a {
    display: block !important;
    padding: 12px 20px 12px 40px !important;
    color: #666 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    background: transparent;
  }

  .mobile-nav-menu ul ul li a:hover,
  .mobile-nav-menu ul ul li a:active {
    background: #eee !important;
    color: #2D89EC !important;
  }

  /* 强制显示激活的二级菜单 - 调试用 */
  .mobile-nav-menu li.has-submenu.active>ul {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  /* 遮罩层 */
  .mobile-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* 无障碍按钮 */
  .shilaohua {
           justify-content: end;
    z-index: 1001 !important;
    display: flex !important;
    gap: 5px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
  }

  .wuzhangai,
  .guanhuaiban {
    padding: 0 !important;
    font-size: 14px !important;
    background: none !important;
    color: #333 !important;
    text-decoration: none !important;
    border: none !important;
    line-height: 1.2 !important;
    text-align: right !important;
    display: block !important;
    width: auto !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
  }
  .guanhuaiban{
    color: red !important;
  }

  .wuzhangai:hover,
  .guanhuaiban:hover {
    background: none !important;
    color: #2D89EC !important;
    text-decoration: underline !important;
  }

  /* 轮播图优化 */
  /*   .parallax-banner {
    height: 280px !important;
    position: relative !important;
  } */

  .mainSwiper {
    height: 280px;
  }

  .mainSwiper .swiper-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 40px 20px 20px;
    z-index: 10;
  }

  .mainSwiper .swiper-title h1 {
    font-size: 20px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .mainSwiper .swiper-pagination {
    bottom: 15px;
    z-index: 15;
    position: absolute;
    text-align: center;
  }

  .mainSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    /* background: rgba(255, 255, 255, 0.5) ; */
    opacity: 1;
  }

  .mainSwiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
  }

  /* 快捷服务区域 */
  .banner-services {
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 15px 0 0 0 !important;
    padding: 0 15px;
  }

  .banner-services .width1200 {
    display: block !important;
  }

  .banner_a {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 15px;
  }

  .swiper-ul ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-left: 0 !important;
  }

  .swiper-ul ul li {
    width: 100% !important;
    height: 80px !important;
    padding-top: 15px !important;
  }

  .swiper-ul ul li i {
    font-size: 28px !important;
  }

  .swiper-ul ul li h2 {
    font-size: 12px !important;
    height: 30px !important;
    line-height: 15px !important;
  }

  /* 内容区域适配 */
  .content-overlay {
    margin-top: 0 !important;
    position: static !important;
  }

  .header-top2 {
    margin-top: 0 !important;
    position: static !important;
  }

  .header-logo2 {
    position: static !important;
    height: 60px;
    box-shadow: none;
    display: none;
    /* 隐藏第二个头部 */
  }

  /* 新闻区域重构 */
  .hospitalNew {
    display: block !important;
    padding: 20px 0;
  }

  .syhospitalNew-left {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }

  .syhospitalNew-right {
    width: 100%;
    float: none;
    height: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
  }
  .meti{
    width: 100%;
  }
  .notice-main{
    height:auto;
    padding: 10px;
  }

  /* 右侧固定按钮适配 */
  .fixed_right {
    position: fixed !important;
    right: 15px !important;
    top: auto !important;
    bottom: 20px !important;
    width: 60px !important;
    height: auto !important;
    transform: none !important;
  }

  .fixed_right ul li {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
    border-radius: 50%;
    padding-top: 10px !important;
  }

  .fixed_right ul li i {
    font-size: 20px !important;
  }

  .fixed_right ul li h2 {
    font-size: 10px !important;
    height: 20px !important;
    line-height: 10px !important;
  }

  /* 触摸优化 */
  .mobile-nav-menu a,
  .mobile-menu-toggle,
  .wuzhangai,
  .guanhuaiban {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* 触摸反馈效果 */
  .mobile-nav-menu>ul>li>a:active {
    background: #e3f2fd !important;
    transform: scale(0.98);
  }

  .mobile-nav-menu ul ul li a:active {
    background: #bbdefb !important;
    transform: scale(0.98);
  }

  /* 滚动优化 */
  .mobile-nav-menu {
    scroll-behavior: smooth;
  }

  .mobile-nav-menu::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .mobile-nav-menu::-webkit-scrollbar-thumb {
    background: rgba(45, 137, 236, 0.3);
    border-radius: 2px;
  }

  .mobile-nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 137, 236, 0.5);
  }

  /* 防止页面滚动 */
  body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* ===== 底部区域适配 ===== */
  .syfooter {
    display: none;
    padding: 30px 0 !important;
  }

  .syfooter .width1200 {
    display: block !important;
  }

  .syfooter-left {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px;
    text-align: center;
  }

  .syfooter-title h1 {
    font-size: 20px !important;
  }

  .syfooter-title h2 {
    font-size: 14px !important;
  }

  .syfooter-add {
    margin-top: 15px;
  }

  .syfooter-add p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px;
  }

  .syfooter-right {
    width: 100% !important;
    float: none !important;
  }

  .syfooter-right ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .syfooter-right ul li {
    width: 100% !important;
    float: none !important;
    text-align: center;
  }

  .syfooter-right ul li h1 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .syfooter-right ul li h2 {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  .footer-ewm {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
  }

  .footer-ewm img {
    width: 100% !important;
    height: 100% !important;
  }

  /* syfooter2区域适配 */
  .syfooter2 {
    padding: 20px 0 !important;
    display: flex;
    height:auto;
  }

  .syfooter2 .width1200 {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 10px;
  }

  .syfooter2-left {
    width: 100% !important;
    float: none !important;
    margin-bottom: 15px;
  }

  .syfooter2-left p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px;
  }

  .syfooter2-right {
    width: 100% !important;
    display: flex;
    float: none !important;
    justify-content: center;
  }

  .syfooter2-right select {
    margin-top: 0;
    width: 100% !important;
    max-width: 300px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  /* ===== 门诊排班日历区域适配 ===== */
  .schedual {
    height: auto !important;
    padding: 30px 0 !important;
  }

  .schedual-title {
    height: auto !important;
    margin-bottom: 20px;
  }

  .schedual-title h1 {
    font-size: 24px !important;
  }

  .schedual-title p {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  .schedual-main {
    display: block !important;
    margin-top: 20px !important;
  }

  .schedual-left {
    width: 100% !important;
    float: none !important;
    margin-bottom: 30px;
  }

  /* 日历容器适配 */
  .schedual-left>div {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  #rili {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }
  .width1200{
    width: 100% !important;
  }

  #calendar {
    width: 100% !important;
    font-size: 12px;
  }

  /* 日历表格适配 */
  #calendar table {
    width: 100% !important;
    font-size: 12px;
  }

  #calendar th,
  #calendar td {
    padding: 8px 4px !important;
    font-size: 12px !important;
  }

  .c-month-top {
    margin-top: 0;
  }

  .c-grid-title {
    display: flex;
    align-items: center;
    padding-left: 10px;
  }

  .c-previous,
  .c-next {
    bottom: 0px;
    transform: translate(-50%, -50%);
  }

  .shilaohua-detail {
    padding-bottom: 0 !important;
    padding-top: 20px;
  }

  .shilaohua-detail {

    display: block !important;
  }

  .schedual-cards {
    order: -9999;
  }

  .shilaohua-detail p {
    color: #3d3d3d;
    font-size: 14px !important;
  }

  .schedual-detail {
    display: none;
  }

  .c-month-center {
    margin-left: 10px;
    font-size: 22px;
  }

  .schedual-right {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    float: none !important;
  }

  .schedual-detail {
    padding-bottom: 20px !important;
    text-align: center;
  }

  .schedual-detail p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .schedual-detail p span {
    font-size: 14px !important;
    display: block !important;
    margin-top: 5px;
  }

  /* 适老化版本的详情 */
  .shilaohua-detail {
    /* padding-bottom: 20px !important; */
    text-align: center;
  }

  .shilaohua-detail p {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  .shilaohua-detail p span {
    font-size: 16px !important;
    display: block !important;
    margin-top: 8px;
  }

  /* 门诊卡片区域 */
  .schedual-cards {
    padding: 30px 15px !important;
    background: #E7EBF3 !important;
  }

  .schedual-cards ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    justify-content: center;
  }

  .schedual-cards ul li {
    width: 100% !important;
    float: none !important;
    text-align: center;
  }

  .schedual-icon {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    margin: 0 auto 10px !important;
  }

  .schedual-icon i {
    font-size: 24px !important;
    line-height: 50px !important;
  }

  .schedual-cards ul li a h1 {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  /* ===== 健康科普区域适配 ===== */
  .polular {
    height: auto !important;
    padding: 30px 0 !important;
    background-position: initial;
    /* background: #f8f9fa !important; */
    /* 去掉背景图，使用浅灰色背景 */
  }
  .polular .swiper-pagination-bullet {
    background: #fff !important;
  }
  .videobg{
    height: auto !important;
  }

  .polular-div {
    display: flex;
    flex-direction: column-reverse;
  
  }

  .polular-cards .polular-list li:nth-child(3) {
    display: none !important;
  }

  .polular-cards {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    background: #fff !important;
    /* 去掉背景图，使用白色背景 */
    padding: 20px 15px;
    margin-bottom: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .polular-cards .polular-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .polular-cards .polular-list li {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    display: block !important;
    min-height: 60px;
  }

  .polular-cards .polular-list li a {
    display: block !important;
    padding: 15px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    height: auto !important;
    background: #f8f9fa !important;
    /* 浅灰色背景 */
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
  }

  .polular-cards .polular-list li a:hover {
    background: #e9ecef !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .polular-cards .polular-list li.li-width a,
  .polular-cards .polular-list li.li-width2 a {
    padding: 15px !important;
  }

  .polular-div .schedual-title {
    width: 100% !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    text-align: center;
  }

  .polular-div .schedual-title .title-top {
    justify-content: center;
  }

  .polular-div .title-text {
    font-size: 24px !important;
  }
.civilization{
  height: auto;
  padding-bottom: 30px;
}
  .polular-video {
    display: flex ;
            flex-direction: column-reverse;
            gap: 10px;
  }

  .polular-left {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-bottom: 20px;
  }

  .polular-left .swiper {
    height: 250px !important;
  }

  .polular-left .swiper-slide {
    height: 250px !important;
  }

  .polular-left .swiper-slide a {
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .polular-left .swiper-p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 15px 15px;
  }

  .polular-left .swiper-p h1 {
    width: 100% !important;
    color: #fff !important;
    font-size: 16px !important;
    margin: 0 !important;
  }
  .headerlogo2{
    width: 6.14rem;
  }
  .zyheader{
    display: none;
  }
.zyheader .width1200{
  justify-content: left;
}
  .polular-right {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    background: #fff !important;
    /* 去掉背景图，使用白色背景 */
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .polular-right .polular-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .polular-right .polular-list li {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    display: block !important;
    min-height: 60px;
  }

  .polular-right .polular-list li a {
    display: block !important;
    padding: 15px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    height: auto !important;
    background: #f8f9fa !important;
    /* 浅灰色背景 */
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
  }

  .polular-right .polular-list li a:hover {
    background: #e9ecef !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .polular-right .polular-list li.li-width a {
    padding: 15px !important;
  }

  /* ===== 快速入口区域适配 ===== */
  .quick {
    margin-top: 30px !important;
    padding: 0 15px;
  }

  .quick .schedual-title {
    margin-bottom: 20px;
  }

  .quick .title-text {
    font-size: 24px !important;
  }

  .quick-icon-list {
    margin-top: 20px !important;
  }

  .quick-icon-list ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    justify-content: center;
  }

  .quick-icon-list ul li {
    width: 100% !important;
    height: auto !important;
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .quick-icon-list ul li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .quick-icon-list ul li a {
    display: block !important;
    text-decoration: none;
  }

  .icon-img {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 15px !important;
    overflow: hidden;
  }

  .icon-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .quick-icon-list ul li:hover .icon-img img {
    transform: scale(1.1);
  }

  .quick-icon-list ul li a h1 {
    font-size: 16px !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
    color: #333 !important;
    transition: color 0.3s ease;
  }

  .quick-icon-list ul li:hover a h1 {
    color: #2D89EC !important;
  }
}

/* ===== 小屏幕手机适配 (最大宽度 480px) ===== */
@media screen and (max-width: 480px) {
  .width1200 {
    padding: 0 8px;
  }

  .header {
    padding: 0 10px;
  }



  .mobile-menu-toggle {
    width: 25px;
    height: 25px;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px 0;
  }

  /* 无障碍按钮小屏幕优化 */
/*   .shilaohua {
    right: 10px !important;
    top: 65px !important;
  } */

  .wuzhangai,
  .guanhuaiban {
    font-size: 13px !important;
  }

  /* 小屏幕轮播图调整 */
  .parallax-banner {
    height: auto !important;
    position: relative;
    /* background: #000; */
  }

  .banner_a h1 {
    font-size: 18px;
    color: #1D3A69;
  }

  .mainSwiper {
    height: 240px;
  }

  .mainSwiper .swiper-title h1 {
    font-size: 18px;
  }

  .mainSwiper .swiper-title {
    padding: 30px 15px 15px;
  }

  .banner-services {
    padding: 0 10px;
  }

  .swiper-ul ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .swiper-ul ul li {
    height: 70px !important;
    display: flex;
    padding-top: 12px !important;
  }

  .swiper-ul ul li a {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .newstopbg {
    background: url(../images/year1.png) no-repeat center;
  }

  .syul-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .syul-list>li {
    width: 100%;
    height: auto;
    display: flex;
    margin-bottom: 10px;
    justify-content: center;
  }

  .synews-div h2 {
    white-space: normal;
    overflow: hidden;
    height: auto;
    line-height: auto;
  }

  .synews-div h2 a {
    height: auto;
    font-size: 16px;
    white-space: normal;
    overflow: initial;
    line-height: 30px;
  }

  .synews-div {
    height: auto;
    padding-top: 0;
  }

  .synews-div p {
    display: none;
  }

  .synews-pic {
    width: 100%;
    height: auto;
  }

  .syul-list>li:nth-of-type(2n) {
    margin-left: 0;
  }

  .syul-list>li:nth-of-type(5) {
    order: -9999;
  }

  .synews-pic img {
    height: 200px;
    object-fit: cover;
  }

  .swiper-ul ul li i {
    font-size: 24px !important;
  }

  .swiper-ul ul li h2 {
    font-size: 14px !important;
    /* height: 25px !important; */
    /* line-height: 12px !important; */
  }

  /* 右侧固定按钮优化 */
  .fixed_right {
    right: 10px !important;
    bottom: 15px !important;
  }

  .fixed_right ul li {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 8px !important;
    padding-top: 8px !important;
  }

  .fixed_right ul li i {
    font-size: 18px !important;
  }

  .fixed_right ul li h2 {
    font-size: 9px !important;
    height: 18px !important;
    line-height: 9px !important;
  }

  /* 小屏幕日历优化 */
  .schedual {
    padding: 20px 0 !important;
  }

  .schedual-title h1 {
    font-size: 20px !important;
  }

  .schedual-detail p {
    font-size: 14px !important;
  }

  .schedual-detail p span {
    font-size: 12px !important;
  }

  .shilaohua-detail p {
    font-size: 16px !important;
  }

  .shilaohua-detail p span {
    font-size: 14px !important;
  }

  .schedual-cards {
    padding: 20px 10px !important;
  }

  .schedual-cards ul {
    gap: 15px !important;
  }

  .schedual-icon {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
  }

  .schedual-icon i {
    font-size: 20px !important;
    line-height: 45px !important;
  }

  .schedual-cards ul li a h1 {
    font-size: 16px !important;
  }

  /* 小屏幕健康科普优化 */
  .polular {
    padding: 20px 0 !important;
  }

  .polular-div .title-text {
    font-size: 20px !important;
  }

  .polular-cards .polular-list li a {
    font-size: 14px !important;
    padding: 12px !important;
  }

  .polular-left .swiper {
    height: 200px !important;
  }

  .polular-left .swiper-slide {
    height: 200px !important;
  }

  .polular-left .swiper-p h1 {
    font-size: 14px !important;
  }

  .polular-right .polular-list li a {
    font-size: 14px !important;
    padding: 12px !important;
  }

  /* 小屏幕快速入口优化 */
  .quick {
    margin-top: 20px !important;
    padding: 0 10px;
  }

  .quick .title-text {
    font-size: 20px !important;
  }

  .quick-icon-list ul {
    gap: 15px !important;
  }

  .quick-icon-list ul li {
    padding: 15px 8px;
  }

  .icon-img {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 10px !important;
  }

  .quick-icon-list ul li a h1 {
    font-size: 14px !important;
  }

  .c-event-top {
    width: 100%;
    height: 50px;
  }

  /* 日历表格小屏幕优化 */
  #calendar th,
  #calendar td {
    padding: 6px 2px !important;
    font-size: 11px !important;
  }
}

/* ===== 横屏模式适配 ===== */
@media screen and (max-width: 768px) and (orientation: landscape) {
  /*   .parallax-banner {
    height: 180px !important;
  } */

  .mainSwiper {
    height: 180px;
  }

  /* .mobile-nav-menu {
    height: calc(100vh - auto);
  } */

  .fixed_right {
    display: none;
    /* 横屏时隐藏右侧按钮 */
  }
}

/* ===== 触摸设备优化 ===== */
@media (hover: none) and (pointer: coarse) {
  .mobile-nav-menu>ul>li>a {
    padding: 18px 20px;
    font-size: 17px;
  }

  .swiper-ul ul li {
    min-height: 80px;
  }
}

/* ===== 打印样式 ===== */
@media print {

  .mobile-nav-menu,
  .mobile-overlay,
  .mobile-menu-toggle,
  .fixed_right,
  .swiper-pagination,
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }

  .header-top {
    position: static !important;
    box-shadow: none !important;
  }

  .parallax-banner {
    position: static !important;
    height: auto !important;
  }

  .content-overlay {
    margin-top: 0 !important;
  }
}

/* ===== info页面移动端样式 ===== */
@media screen and (max-width: 768px) {

  /* 主容器适配 */
  .container-main {
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    min-height: auto !important;
  }

  /* 内容详情区域 */
  .content-detail {
    overflow: visible !important;
    min-height: auto !important;
    padding: 20px 15px !important;
  }

  /* 内容区域 */
  .content_con {
    color: #333 !important;
    line-height: 1.8 !important;
    margin: 20px 0 !important;
    font-size: 16px !important;
    min-height: auto !important;
  }

  .content_con p {
    color: #333 !important;
    line-height: 1.8 !important;
    margin: 15px 0 !important;
    font-size: 16px !important;
  }

  .content_con h1,
  .content_con h2,
  .content_con h3,
  .content_con h4,
  .content_con h5,
  .content_con h6 {
    color: #2D89EC !important;
    font-weight: bold !important;
    margin: 20px 0 15px 0 !important;
  }

  .content_con h1 { font-size: 24px !important; }
  .content_con h2 { font-size: 22px !important; }
  .content_con h3 { font-size: 20px !important; }
  .content_con h4 { font-size: 18px !important; }
  .content_con h5 { font-size: 16px !important; }
  .content_con h6 { font-size: 14px !important; }

  /* 链接样式 */
  .content_con a {
    color: #2D89EC !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
  }

  .content_con a:hover {
    color: #1a5bb8 !important;
    background-color: #f0f8ff !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
  }

  /* 列表样式 */
  .content_con ul,
  .content_con ol {
    margin: 15px 0 !important;
    padding-left: 25px !important;
  }

  .content_con li {
    margin: 8px 0 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
  }

  /* 表格样式 */
  .content_con table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
  }

  .content_con table th,
  .content_con table td {
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
    line-height: 1.6 !important;
    min-width: 80px !important;
  }

  .content_con table th {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    color: #2D89EC !important;
    position: sticky !important;
    top: 0 !important;
  }

  /* 图片样式 */
  .content_con img {
    max-width: 100% !important;
    height: auto !important;
    margin: 15px 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  /* 分享按钮移动端优化 */
  #Share {
    width: 50px !important;
    min-height: 300px !important;
    position: fixed !important;
    top: 30% !important;
    right: 15px !important;
    z-index: 1000 !important;
  }

  #Share ul li {
    width: 50px !important;
    height: 40px !important;
    margin: 0 auto !important;
    margin-bottom: 12px !important;
  }

  #Share ul li a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    line-height: 40px !important;
    border-radius: 6px !important;
    position: relative !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
  }

  #Share ul li a:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  #Share ul li a i {
    color: #fff !important;
    font-size: 16px !important;
  }

  #Share ul li.share-top {
    height: 50px !important;
  }

  #Share ul li.share-top a {
    background: #2D89EC !important;
    line-height: 20px !important;
    color: #fff !important;
  }

  #Share ul li.share-top a i {
    color: #fff !important;
    font-size: 14px !important;
  }

  #Share ul li.share-top a h2 {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: bold !important;
  }

  /* 强化对比度 */
  .content_con strong,
  .content_con b {
    color: #2D89EC !important;
    font-weight: bold !important;
    background-color: #fff3cd !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
  }

  /* 引用样式 */
  .content_con blockquote {
    border-left: 4px solid #2D89EC !important;
    background-color: #f8f9fa !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    font-style: italic !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  /* 内容区域滚动优化 */
  .content_con {
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
  }

  /* 代码块样式 */
  .content_con pre,
  .content_con code {
    background-color: #f4f4f4 !important;
    padding: 10px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    overflow-x: auto !important;
    margin: 10px 0 !important;
  }

  .content_con code {
    padding: 2px 4px !important;
    display: inline !important;
  }
}

/* ===== info页面小屏幕优化 ===== */
@media screen and (max-width: 480px) {

  .content-detail {
    padding: 15px 10px !important;
  }

  .content_con {
    font-size: 14px !important;
  }

  .content_con p {
    font-size: 14px !important;
    margin: 12px 0 !important;
  }

  .content_con h1 { font-size: 20px !important; }
  .content_con h2 { font-size: 18px !important; }
  .content_con h3 { font-size: 16px !important; }
  .content_con h4 { font-size: 15px !important; }
  .content_con h5 { font-size: 14px !important; }
  .content_con h6 { font-size: 13px !important; }

  .content_con li {
    font-size: 14px !important;
  }

  .content_con table {
    font-size: 12px !important;
  }

  .content_con table th,
  .content_con table td {
    padding: 6px !important;
    min-width: 60px !important;
  }

  #Share {
    width: 45px !important;
    right: 10px !important;
  }

  #Share ul li {
    width: 45px !important;
    height: 35px !important;
    margin-bottom: 10px !important;
  }

  #Share ul li a {
    line-height: 35px !important;
    font-size: 12px !important;
  }

  #Share ul li a i {
    font-size: 14px !important;
  }

  #Share ul li.share-top {
    height: 45px !important;
  }

  #Share ul li.share-top a h2 {
    font-size: 9px !important;
  }
}

/* ===== 移动端头部布局样式 ===== */
@media screen and (max-width: 768px) {

  /* 移动端头部容器 */
  .mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0 15px;
    box-sizing: border-box;
  }
 #neibanner{
  height: 2.6rem !important;
 }
 .top{
  height: auto;
 }
  /* 左侧菜单按钮 */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;

    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background: rgba(45, 137, 236, 0.1);
    border-radius: 6px;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #2D89EC;
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #2D89EC;
  }

  /* 右侧Logo */
  .mobile-logo {
    height: 40px;
    display: flex;
    align-items: center;
  }

  .mobile-logo a {
    display: block;
    height: 100%;
  }

  .mobile-logo img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
  }

  /* 移动端遮罩层 */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* 主导航容器 - 侧边栏样式 */
  #zymenu {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 320px !important;
    height: 100vh !important;
    background: #fff !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* 侧边栏顶部Logo */
  #zymenu > img {
    display: block !important;
    width: 80% !important;
    max-width: 200px !important;
    height: auto !important;
    margin: 20px auto 30px auto !important;
    object-fit: contain !important;
  }

  #zymenu.active {
    left: 0 !important;
  }

  /* 菜单顶部间距 */
  #zymenu {
    padding-top: 20px !important;
  }

  /* 页面内容顶部间距 */
  /* body {
    padding-top: 60px !important;
  } */

  /* 重置所有菜单样式 */
  #zymenu * {
    box-sizing: border-box !important;
  }

  #zymenu ul {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  /* 一级菜单项 */
  #zymenu > ul > li {
    width: 100% !important;
    float: none !important;
    display: block !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clear: both !important;
  }

  #zymenu > ul > li:last-child {
    border-bottom: none !important;
  }

  /* 一级菜单链接 */
  #zymenu > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #zymenu > ul > li > a:hover,
  #zymenu > ul > li > a:active {
    background: #f8f9fa !important;
    color: #2D89EC !important;
    padding-left: 28px !important;
  }

  /* 隐藏原有的em元素 */
  #zymenu em {
    display: none !important;
  }

  /* 为有子菜单的项目添加箭头 */
  #zymenu > ul > li.has-submenu > a::after {
    content: '▼' !important;
    font-size: 12px !important;
    color: #999 !important;
    transition: all 0.3s ease !important;
    transform: rotate(0deg) !important;
  }

  #zymenu > ul > li.has-submenu.active > a::after {
    transform: rotate(180deg) !important;
    color: #2D89EC !important;
  }

  /* 二级菜单容器 - 稳定版 */
  #zymenu ul ul {
    background: #f8f9fa !important;
    width: 100% !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
  }

  #zymenu ul ul.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 强制显示激活的二级菜单 */
  #zymenu li.has-submenu.active > ul {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* 二级菜单项 */
  #zymenu ul ul li {
    width: 100% !important;
    float: none !important;
    display: block !important;
    border-bottom: 1px solid #e9ecef !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
  }

  #zymenu ul ul li:last-child {
    border-bottom: none !important;
  }

  /* 二级菜单链接 */
  #zymenu ul ul li a {
    display: block !important;
    padding: 12px 20px 12px 40px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    position: relative !important;
  }

  #zymenu ul ul li a::before {
    content: '•' !important;
    position: absolute !important;
    left: 28px !important;
    color: #ccc !important;
    font-size: 16px !important;
  }

  #zymenu ul ul li a:hover,
  #zymenu ul ul li a:active {
    background: #e9ecef !important;
    color: #2D89EC !important;
    padding-left: 44px !important;
  }

  #zymenu ul ul li a:hover::before,
  #zymenu ul ul li a:active::before {
    color: #2D89EC !important;
    left: 32px !important;
  }

  /* 首页链接特殊样式 */
  #zymenu > ul > li:first-child > a {
    background: #2D89EC !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  #zymenu > ul > li:first-child > a:hover {
    background: #1a5bb8 !important;
    color: #fff !important;
  }

  /* 触摸优化 */
  #zymenu a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  }

  /* 触摸反馈效果 */
  #zymenu > ul > li > a:active {
    background: #e3f2fd !important;
    transform: scale(0.98) !important;
  }

  #zymenu ul ul li a:active {
    background: #bbdefb !important;
    transform: scale(0.98) !important;
  }

  /* 布局稳定性增强 */
  #zymenu::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }

  #zymenu > ul::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }

  #zymenu ul ul::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }
}

/* ===== 移动端小屏幕优化 ===== */
@media screen and (max-width: 480px) {

  .mobile-header {
    height: 56px !important;
    padding: 0 12px !important;
  }

  .mobile-logo {
    height: 36px !important;
  }

  .mobile-menu-toggle {
    width: 0.72rem !important;
    height: 0.72rem !important;
  }

  .mobile-menu-toggle span {
    width: 20px !important;
    height: 2px !important;
    margin: 3px 0 !important;
  }

  #zymenu {
    width: 280px !important;
    left: -280px !important;
    /* padding-top: 60px !important; */
  }

  #zymenu > ul > li > a {
    padding: 14px 18px !important;
    font-size: 15px !important;
  }

  #zymenu > ul > li > a:hover,
  #zymenu > ul > li > a:active {
    padding-left: 22px !important;
  }

  #zymenu ul ul li a {
    padding: 10px 15px 10px 35px !important;
    font-size: 13px !important;
  }

  #zymenu ul ul li a::before {
    left: 23px !important;
    font-size: 14px !important;
  }

  #zymenu ul ul li a:hover,
  #zymenu ul ul li a:active {
    padding-left: 39px !important;
  }

  #zymenu ul ul li a:hover::before,
  #zymenu ul ul li a:active::before {
    left: 27px !important;
  }

 /*  body {
    padding-top: 56px !important;
  } */
}

