/* src/app/modules/travel/web/components/nav-web-menu/nav-web-menu.component.css */

/* 基础样式 */
.web-nav {
  background: linear-gradient(90deg, #2F7DAD, #5B8C5A);
  height: 80px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.web-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  // background: url('mountain-silhouette.png') bottom center repeat-x;
  opacity: 0.2;
  z-index: 1;
}

.web-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* 品牌样式 */
.web-nav-brand .logo {
  font-family: "赣锋体", serif;
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* 菜单样式 */
.web-nav-menu {
  flex-grow: 1;
}

.web-nav-list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.web-nav-item {
  position: relative;
}

.web-nav-item a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.web-nav-item a:hover {
  background-color: rgba(255,255,255,0.2);
}

.web-nav-item a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #D4B16A;
  transition: width 0.3s ease;
}

.web-nav-item a:hover::after {
  width: 70%;
}

/* 活动菜单项样式 */
.web-nav-item a.active {
  font-weight: 500;
}

.web-nav-item a.active::after {
  width: 70%;
  background-color: #D4B16A;
}

/* 用户操作区域样式 */
.web-nav-actions {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.web-nav-action {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
  padding: 5px;
  transition: all 0.3s ease;
}

.web-nav-action:hover {
  transform: scale(1.1);
}

/* 内容区域样式 */
.web-content {
  max-width: 1600px;
  margin: 20px auto;
  padding: 0 5%;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .web-nav {
    height: auto;
    padding: 1rem;
  }
  
  .web-nav-container {
    flex-direction: column;
  }
  
  .web-nav-menu {
    width: 100%;
    margin-top: 1rem;
  }
  
  .web-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .web-nav-actions {
    margin-left: 0;
    margin-top: 1rem;
  }
}