/* ============================================
   * 导航栏组件样式
   ============================================ */

.nav-container {
  background-color: var(--theme-color);
}

.custom-navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  height: 70px;
}

.custom-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.custom-nav-item {
  flex: 1;
  text-align: center;
}

.custom-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none;
  height: 70px;
  padding: 0 10px;
  position: relative;
  transition: background-color 0.3s ease;
}

.custom-nav-link:hover {
  background-color: var(--hover-color);
  text-decoration: none;
}

/* 下滑白线效果 - 纯CSS实现 */
.custom-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.custom-nav-link:hover::after {
  width: 80%;
  opacity: 1;
}

/* 当前页面高亮 */
.custom-nav-link.active::after {
  width: 80%;
  opacity: 1;
  background-color: #ffcc00;
}

/* 首页高亮 */
.nav-home .custom-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: #ffcc00;
  transform: translateX(-50%);
  opacity: 1;
}

/* 新闻动态高亮 */
.nav-news .custom-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: #ffcc00;
  transform: translateX(-50%);
  opacity: 1;
}

/* 科室导航高亮 */
.nav-dept .custom-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: #ffcc00;
  transform: translateX(-50%);
  opacity: 1;
}