/* ===== 基础 ===== */
.web-home {
  width: 100%;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 15px;
}

.banner-image {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}

.banner-image img {
  width: 100%;
  display: block;
  height: auto;
}

/* ===== 新闻公告 ===== */
.news {
  padding: 50px 0;
  background: #f5f5f5;
}

.news .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.news-left {
  width: 40%;
  position: relative;
  flex-shrink: 0;
}

.news-left img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 4px;
}

.news-tabs {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 0 20px;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.news-right {
  width: 58%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.news-tabs-header {
  display: flex;
  background: #f0f0f0;
}

.news-tabs-header button {
  flex: 1;
  padding: 15px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  font-size: 16px;
  color: #666;
}

.news-tabs-header button.active {
  background: #1890ff;
  color: #fff;
}

.news-tabs-header button:hover:not(.active) {
  background: #e6e6e6;
}

.news-list {
  padding: 20px;
}

.news-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: color 0.3s;
}

.news-list li:hover {
  color: #1890ff;
}

.news-list li .date {
  flex-shrink: 0;
  margin-left: 10px;
  color: #999;
  font-size: 14px;
}

/* ===== 科室介绍 ===== */
.departments {
  padding: 20px 0;
  background: #fff;
}

.dept-container {
  display: flex;
  gap: 30px;
}

.dept-nav {
  width: 200px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.dept-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 15px;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 75px;
}

.dept-icon:not(:last-child) {
  border-bottom: 1px solid #c9c9c9;
}

.dept-icon img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.dept-icon p {
  margin-left: 10px;
  height: 75px;
  line-height: 75px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.dept-icon.active {
  background: linear-gradient(135deg, #e8f4ff, #d4ecff);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.2);
  transform: translateY(-2px);
}

.dept-icon.active p {
  color: #409eff;
  font-weight: 600;
}

.dept-icon:hover {
  background: #f5f7fa;
  transform: translateY(-2px);
}

.dept-content {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dept-item {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: all 0.3s;
  text-align: center;
  background: #fff;
}

.dept-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dept-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.dept-item h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.dept-item p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

/* ===== 专家团队 ===== */
.experts {
  padding: 50px 0;
  background: #f5f5f5;
}

.experts-customer {
  width: 100%;
  margin-bottom: 30px;
}

.experts-customer img {
  width: 100%;
  display: block;
  height: auto;
}

.experts-wrapper {
  position: relative;
}

.experts-content {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 60px);
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-controls .control-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #333;
  font-size: 20px;
}

.slider-controls .control-btn:hover:not(:disabled) {
  background: #1890ff;
  color: #fff;
  transform: scale(1.05);
}

.slider-controls .control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-controls .control-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.experts-content:hover .slider-controls {
  opacity: 1;
}

/* 自定义滚动条（替代 el-scrollbar） */
.expert-scrollbar {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c0c4cc #f1f1f1;
}

.expert-scrollbar::-webkit-scrollbar {
  height: 6px;
}

.expert-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.expert-scrollbar::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
}

.expert-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #909399;
}

.expert-slider {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 10px 0;
}

.expert-item {
  text-align: center;
  width: 220px;
  flex-shrink: 0;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: all 0.3s;
  background: #fff;
  cursor: pointer;
}

.expert-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.expert-item .expert-image-wrapper {
  width: 180px;
  height: 200px;
  margin: 0 auto 15px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f7fa;
  border: 3px solid #1890ff;
}

.expert-item .expert-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-item .expert-name {
  margin: 5px 0;
  color: #333;
  font-weight: bold;
  font-size: 16px;
}

.expert-item .expert-title {
  color: #666;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
}

.image-slot {
  width: 180px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  color: #909399;
  font-size: 30px;
  border: 3px solid #1890ff;
  border-radius: 4px;
  margin: 0 auto 15px;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .dept-container {
    flex-direction: column;
  }

  .dept-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .dept-nav .dept-icon {
    flex: 1;
    min-width: 100px;
    padding: 0 15px;
    justify-content: center;
  }

  .dept-nav .dept-icon p {
    height: 50px;
    line-height: 50px;
    margin-left: 8px;
  }
}

@media (max-width: 992px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expert-item {
    width: 180px;
    padding: 15px;
  }

  .expert-item .expert-image-wrapper {
    width: 150px;
    height: 170px;
  }

  .image-slot {
    width: 150px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  .news .container {
    flex-direction: column;
  }

  .news-left,
  .news-right {
    width: 100%;
  }

  .news-left img {
    height: 200px;
  }

  .news-right {
    margin-top: 20px;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .dept-nav .dept-icon {
    min-width: 80px;
    padding: 10px;
  }

  .dept-nav .dept-icon p {
    font-size: 14px;
  }

  .expert-item {
    width: 150px;
    padding: 12px;
  }

  .expert-item .expert-image-wrapper {
    width: 120px;
    height: 140px;
  }

  .image-slot {
    width: 120px;
    height: 140px;
  }

  .expert-slider {
    gap: 16px;
  }

  .experts-content {
    padding: 20px;
  }

  .slider-controls {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .slider-controls .control-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .news-tabs-header button {
    font-size: 14px;
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .news-left img {
    height: 150px;
  }

  .expert-item {
    width: 130px;
    padding: 10px;
  }

  .expert-item .expert-image-wrapper {
    width: 100px;
    height: 120px;
  }

  .expert-item .expert-name {
    font-size: 14px;
  }

  .expert-item .expert-title {
    font-size: 12px;
  }

  .image-slot {
    width: 100px;
    height: 120px;
  }

  .slider-controls .control-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .dept-nav .dept-icon {
    min-width: 60px;
    padding: 8px;
  }

  .dept-nav .dept-icon img {
    width: 24px;
    height: 24px;
  }

  .dept-nav .dept-icon p {
    font-size: 12px;
    height: 40px;
    line-height: 40px;
  }
}