/* 全局基础样式（保持原有） */
* {
  box-sizing: border-box;
}

/* 容器样式（关键！） */
.container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  position: relative;
}

/* 电脑端（≥769px）：导航栏固定左侧 */
@media (min-width: 769px) {
  .region-sidebar-first {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    min-width: 200px;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;
    padding-left:50px ;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    z-index: 100; /* 确保导航栏在最上层 */
  }

  .section {
    flex: 1;
    padding: 20px 23%;
  }
  .block-region.region-content {
      padding: 0 170px;
  }
}

/* 移动端（≤768px）：导航栏固定顶部 */
@media (max-width: 768px) {
  .region-sidebar-first {
    position: fixed;    /* 固定定位 */
    top: 0;             /* 顶部对齐窗口 */
    left: 0;            /* 左侧对齐窗口 */
    width: 100%;        /* 占满宽度 */
    height: 60px;       /* 导航栏高度（根据需求调整） */
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;       /* 确保在最上层 */
  }

  /* 移动端菜单按钮样式（调整位置） */
  .mobile-menu-toggle {
    position: absolute;
    top: 50%;           /* 垂直居中 */
    right: 20px;        /* 右侧间距 */
    transform: translateY(-50%); /* 垂直居中 */
    width: 40px;
    height: 40px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
  }

  /* 移动端菜单内容（展开后显示在导航栏下方） */
  .chenxi-menu {
    display: none;
    position: absolute;
    top: 100%;          /* 位于导航栏下方 */
    left: 0;
    width: 100%;
    max-height: calc(100vh - 60px); /* 最大高度为视口高度 - 导航栏高度 */
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;   /* 内容过长时滚动 */
  }

  /* 主内容区偏移（避免被导航栏遮挡） */
  .section {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 80px;   /* 导航栏高度（60px） + 顶部间距（20px） */
  }
}

/* 图片自适应（保持原有） */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
}

/* 主导航样式（保持原有） */
.chenxi-menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
  font-weight: 300;
}


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

.submenu {
  padding-left: 20px !important;
}

.chenxi-menu li {
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 4px;
}

.chenxi-menu li a {
  color: #333;
  text-decoration: none;
}

.chenxi-menu li a:hover,
.chenxi-menu li a:active {
  font-weight: 100;
  text-decoration: none;
  transition: font-weight 0.3s ease;
}

/* 淡入动画（保持原有） */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.field-item {
  text-align: center;
}



