/* 搜索框样式 */
.leader-search-box {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

.leader-search-input {
  width: 300px;
  height: 32px;
  padding: 0 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.leader-search-btn {
  height: 34px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 2px;
  margin-left: 8px;
  width: 70px;
  font-size: 16px;
  cursor: pointer;
}

/* 标签页样式 */
.leader-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Firefox 显示细滚动条 */
  width: 100%;
  /* 可选：设置最大宽度 */
  /* max-width: 100vw; */
}

.leader-tabs::-webkit-scrollbar {
  height: 6px;
  background: #eee;
}

.leader-tabs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.leader-tab-active {
  background: #2366b4;
  color: #fff;
  padding: 8px 24px;
  font-size: 18px;
  border-radius: 4px 4px 0 0;
}

.leader-tab {
  background: #f5f5f5;
  color: #333;
  padding: 8px 24px;
  font-size: 18px;
  border-radius: 4px 4px 0 0;
  margin-left: 8px;
  /* border-bottom: 2px solid #2366b4; */
  cursor: pointer;
}

/* 领导列表网格 */
.leader-list {
  width: 100%;
}

.leader-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  justify-content: flex-start;
}

.leader-item {
  width: 120px;
  text-align: center;
}

.leader-photo-bg {
  /* background: #1890ff; */
  border-radius: 4px;
  padding: 6px 0 0 0;
  height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.leader-photo-bg img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 2px;
}

.leader-name {
  margin-top: 8px;
  font-size: 18px;
}

.news-container-right {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  align-items: flex-start;
}

.leader-tab,
.leader-tab-active {
  flex: 0 0 auto;
  min-width: 90px;
  text-align: center;
  margin-bottom: -1px;
  /* 增加间距让内容更容易溢出 */
  margin-right: 12px;
}

.org-section {
  background: #fff;
  border-radius: 4px;
  padding: 0 0 24px 0;
  margin-top: 24px;
}

.org-title {
  background: #2366b4;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px 4px 0 0;
}

.org-desc {
  color: #888;
  font-size: 15px;
  padding: 16px 24px 8px 24px;
}

.org-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 2%;
  padding: 0 24px;
}

.org-item {
  background: #f5f5f5;
  border-radius: 4px;
  flex: 0 0 18%;
  /* 5列，间距2% */
  min-width: 120px;
  text-align: center;
  font-size: 16px;
  margin-bottom: 8px;
  box-sizing: border-box;
  cursor: pointer;
}

.org-item a {
  display: block;
  padding: 14px 0;
}

@media (max-width: 900px) {
  .org-item a {
    display: block !important;
    padding: 14px 0 !important;
    height: auto !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .org-list {
    padding: 0 !important;
  }

  .leader-list-grid {
    justify-content: flex-start;
  }

  .org-item {
    flex: 0 0 48% !important;

    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {

  /* 搜索框移动端适配 */
  .leader-search-box {
    margin: 15px 0;
    flex-direction: column;
    gap: 10px;
  }

  .leader-search-input {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }

  .leader-search-btn {
    width: 100%;
    height: 40px;
    font-size: 14px;
    margin-left: 0;
  }

  /* 标签页移动端适配 */
  .leader-tabs {
    margin-bottom: 15px;
    gap: 5px;
  }

  .leader-tab,
  .leader-tab-active {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 70px;
    margin-right: 5px;
  }

  /* 领导列表移动端适配 */
  .leader-list-grid {
    gap: 20px 15px;
    justify-content: flex-start;
  }

  .leader-item {
    width: 22%;
  }

  .leader-photo-bg {
    height: 100px;
  }

  .leader-photo-bg img {
    width: 75px;
    height: 90px;
  }

  .leader-name {
    font-size: 14px;
    margin-top: 6px;
  }

  /* 右侧容器移动端适配 */
  .news-container-right {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .leader-search-box {
    margin: 10px 0;
  }

  .leader-search-input {
    height: 35px;
    font-size: 13px;
  }

  .leader-search-btn {
    height: 35px;
    font-size: 13px;
  }

  .leader-tab,
  .leader-tab-active {
    padding: 6px 8px;
    font-size: 12px;
    min-width: 60px;
  }

  .leader-list-grid {
    gap: 15px 10px;
  }

  .leader-item {
    width: 22%;
  }

  .leader-photo-bg {
    height: 80px;
  }

  .leader-photo-bg img {
    width: 60px;
    height: 70px;
  }

  .leader-name {
    font-size: 12px;
    margin-top: 5px;
  }

  .news-container-right {
    padding: 10px;
  }
}

@media screen and (max-width: 360px) {
  .leader-search-input {
    height: 32px;
    font-size: 12px;
  }

  .leader-search-btn {
    height: 32px;
    font-size: 12px;
  }

  .leader-tab,
  .leader-tab-active {
    padding: 5px 6px;
    font-size: 11px;
    min-width: 50px;
  }

  .leader-list-grid {
    gap: 12px 8px;
  }

  .leader-item {
    width: 70px;
  }

  .leader-photo-bg {
    height: 70px;
  }

  .leader-photo-bg img {
    width: 50px;
    height: 60px;
  }

  .leader-name {
    font-size: 11px;
    margin-top: 4px;
  }
}