/* 移动端适配样式 */

/* ============ 移动端菜单按钮 ============ */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10001;
  position: relative;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ============ 侧边栏菜单 ============ */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 侧边栏导航菜单 */
.mobile-sidebar-nav {
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.mobile-nav-item.has-dropdown > a::after {
  content: "›";
  font-size: 20px;
  transition: transform 0.3s;
}

.mobile-nav-item.has-dropdown.active > a::after {
  transform: rotate(90deg);
}

/* 移动端下拉菜单 */
.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  background-color: #f8f9fa;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
  max-height: 500px;
}

.mobile-dropdown a {
  display: block;
  padding: 12px 20px 12px 40px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-top: 1px solid #e0e0e0;
}

.mobile-dropdown a:hover {
  background-color: #e9ecef;
  color: #075aa6;
}

@media (max-width: 768px) {
  .top-header-content,
  .nav-container,
  .accordion-container,
  .title-all,
  .xw-all,
  .px-container,
  .xm-container,
  .wp {
    width: 94%;
    margin: 0 auto;
  }
  /* ============ 顶部栏 ============ */
  .top-header {
    height: 70px;
    padding: 10px 15px;
    position: relative;
    z-index: 100;
  }

  .top-header-content {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo区域 */
  .logo-section {
    width: auto;
  }

  .logo {
    width: 240px;
    height: auto;
  }

  /* 隐藏PC端的顶部右侧内容 */
  .top-right {
    display: none;
  }

  /* 显示移动端菜单按钮 */
  .mobile-menu-btn {
    display: flex;
  }

  /* ============ 主导航栏 ============ */
  /* 隐藏PC端导航 */
  .main-nav {
    display: none;
  }

  /* ============ 轮播图 ============ */
  .banner {
    height: auto;
    width: 100%;
    margin-top: 0;
  }

  .dg-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    max-height: 400px;
  }

  .dg-wrapper {
    width: 100%;
    height: 100%;
  position: relative;
    top: 0px;
  }

  .dg-wrapper a {
    width: 100%;
    height: 100%;
  }

  .dg-wrapper a .mask {
    width: 100%;
    height: 100%;
  }

  .dg-wrapper a .mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 轮播标题 */
  .dg-wrapper a .mask .title {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 90%;
    max-width: none;
    height: auto;
    padding: 10px;
  }

  .dg-wrapper a .mask .title p {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
  }

  /* 轮播按钮 */
  .dg-container .dg-prev,
  .dg-container .dg-next {
    width: 40px;
    height: 100%;
    opacity: 0.7;
  }

  /* 轮播导航点 */
  .dg-container .nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  /* 防止body滚动（当侧边栏打开时） */
  body.mobile-menu-open {
    overflow: hidden;
  }

  .title-all {
    margin: 10px auto;
  }

  .left-title {
    gap: 10px;
  }

  .left-title span {
    font-size: 32px;
  }

  .list-box,
  .xw-all {
    gap: 0;
  }
.colum1{
      width: 100% !important;
}
  .news-list {
    padding: 0;
  }

  .notice-list {
    gap: 10px;
  }

  .px-container .news-item {
    min-width: 0 !important;
    padding: 20px 16px !important;
  }

  .px-container .left-section {
    width: 100%;
    height: 240px;
    background-size: 100% 100%;
  }

  .px-container .left-section img {
    width: 100%;
    height: 200px;
  }

  .news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
  }

  /* 底部footer */
  .fix {
    display: none;
  }

  .fix-mobile {
    display: block;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 30px;
  }

  .fix-mobile p {
    font-family: Source Han Sans CN;
    font-weight: 300;
    font-size: 12px;
    color: #f7f7f7;
    line-height: 20px;
  }

  /* 精品项目 */
  .top-section {
    flex-direction: column; /* 竖向排列 */
    align-items: center;
    margin-bottom: 20px;
  }

  /* 图片放在文字上方 */
  .top-image-wrapper {
    order: -1;
    width: 100%;
    height: 220px; /* ✅ 保留轮播用的固定高度 */
    flex: none;
    position: relative;
    overflow: hidden;
  }

  .top-image {
    width: 100%;
    height: 100%;
  }

  .top-text {
    padding: 20px;
    min-height: 260px;
  }

  .top-description {
    -webkit-line-clamp: 3;
  }

  .top-title {
    margin-bottom: 10px;
  }

  .moreImg {
    right: 20px;
    bottom: 20px;
  }

  .date-badge {
    position: relative;
    top: 0px;
    left: 0px;
  width: 50px;
  }

  .xmcarousel-wrapper {
    width: calc(50% * 2 + 10px); /* 一次显示2个 */
    max-width: 100%;
    overflow: hidden;
  }

  .carousel-item img {
    width: 100%;
    height: 120px;
  }

  .carousel-arrows {
    display: none !important;
  }

  /* 手风琴 */
  /* 顶部图片展示区域 */
  .accordion-mobile-header {
    width: 94%;
    height: 240px;
    display: block;
    margin: 0 auto;
  }

  .mobile-expanded-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}
