/*
 * WGACA Frontend - Header Styles
 * 头部导航样式
 */

/* 手机导航遮罩层 */
.header .shoujizhezhao {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.header .shoujizhezhao.zhankai {
  opacity: 1;
  visibility: visible;
}

/* 手机导航侧边栏 */
.header .shoujidaohang {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 280px;
  height: 100%;
  background-color: #fff;
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.header .shoujidaohang.zhankai {
  transform: translateX(0);
  opacity: 1;
}

.header .shoujilogo {
  padding: 15px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.header .shoujilogo img {
  height: 40px;
  width: auto;
}

/* 手机导航项目 */
.header .shoujidaohang1 {
  border-bottom: 1px solid #eee;
}

.header .shoujidaohang1 > a,
.header .shoujidaohang1 .js-hasdrop {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.header .shoujidaohang1 .js-hasdrop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .shoujidaohang1 .js-hasdrop i {
  transition: transform 0.3s;
}

.header .shoujidaohang1 .js-hasdrop.active i {
  transform: rotate(90deg);
}

.header .shoujidaohang1 .dropdown {
  display: none;
  padding-left: 15px;
}

.header .shoujidaohang1 .dropdown a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #f5f5f5;
}

.header .shoujidaohang1 .dropdown a:hover {
  color: var(--style-color);
}

/* 主导航容器 */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header.shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .daohangzong {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
.header .daohang1 {
  flex-shrink: 0;
}

.header .daohang1 img {
  height: 40px;
  width: auto;
}

/* 桌面导航 */
.header .daohang2 {
  display: none;
  flex: 1;
  justify-content: center;
}

.header .daohang2-1 {
  position: relative;
}

.header .daohang2-1 > a {
  display: flex;
  align-items: center;
  padding: 25px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}
.header .daohang2-1:hover > a {
  color: #fff;
}
.header .daohang2-1:hover{
  background: var(--style-color);
}

.header .daohang2-1.active:hover > a {
  color: #fff;
}

.header .daohang2-1.active > a {
  background: var(--style-color);
  color: #fff;
}

.header .daohang2-1 .pulldown-a i {
  margin-left: 5px;
  font-size: 12px;
}

/* 下拉菜单 */
.header .pulldown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.header .daohang2-1:hover .pulldown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header .pulldown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s;
}

.header .pulldown a:last-child {
  border-bottom: none;
}

.header .pulldown a:hover {
  background: var(--style-color);
  color: #fff;
}

/* 右侧功能区 */
.header .daohang3 {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .daohang3-1 {
  cursor: pointer;
  padding: 5px;
}

.header .daohang3-1 i {
  font-size: 20px;
  color: #333;
}

.header .daohang3-2 a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
}

.header .daohang3-2 a:hover {
  color: var(--style-color);
}

/* ── daohang3-2 登录状态切换 ── */

/* 用户信息区（已登录） */
.daohang3-user {
  display: flex;
  align-items: center;
  gap: 4px;
}

.daohang3-account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.daohang3-account:hover {
  color: var(--style-color);
}

/* 头像字母 */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* 退出按钮 */
.daohang3-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: #999;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.daohang3-logout:hover {
  color: #c00;
  background: #fdf0f0;
}

/* 未登录：Login + Register */
.daohang3-login,
.daohang3-register {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.daohang3-login:hover,
.daohang3-register:hover {
  color: var(--style-color);
}

.daohang3-sep {
  color: #ddd;
  margin: 0 2px;
  font-size: 13px;
  user-select: none;
}

/* 汉堡菜单按钮 */
.header .daohang4 {
  cursor: pointer;
  padding: 5px;
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 24px;
  height: 2px;
  background-color: #333;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  bottom: -7px;
}

.hamburger.is-active .hamburger-inner {
  background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* 搜索框 */
.header .sousuo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.header .sousuo.active {
  display: flex;
}

.header .sousuoguan {
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  color: #fff;
  font-size: 30px;
}

.header .sousuo1 {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.header .sousuo1 form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #fff;
}

.header .search-text {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  font-size: 18px;
  color: #fff;
  outline: none;
}

.header .search-text::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header .sousuo1-1 {
  padding: 15px;
  cursor: pointer;
  color: #fff;
}

/* 桌面端响应式 */
@media (min-width: 992px) {
  .header .daohangzong {
    height: 80px;
    padding: 0 40px;
  }

  .header .daohang1 img {
    height: 45px;
  }

  .header .daohang2 {
    display: flex;
  }

  .header .daohang2-1 > a {
    padding: 30px 20px;
    font-size: 14px;
  }

  .header .daohang4 {
    display: none;
  }

  .header .daohang3-2 {
    display: block;
  }
}

@media (min-width: 1200px) {
  .header .daohang2-1 > a {
    padding: 30px 25px;
    font-size: 15px;
  }

  .header .pulldown {
    min-width: 250px;
  }

  .header .pulldown a {
    padding: 15px 25px;
  }
}

@media (min-width: 1440px) {
  .header .daohangzong {
    padding: 0 60px;
  }

  .header .daohang2-1 > a {
    padding: 30px 30px;
  }
}

/* ===========================================
   Mega Menu - 奢华全屏下拉菜单
   =========================================== */
.header .mega-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #f0f0f0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  pointer-events: none;
}

.header .daohang2-1:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header .mega-menu .mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 50px;
}

/* 左侧大图区 */
.header .mega-menu .mega-feature {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 380px;
  background: #f5f5f5;
}

.header .mega-menu .mega-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.header .mega-menu .mega-feature:hover img {
  transform: scale(1.05);
}

.header .mega-menu .mega-feature .mega-feature-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
}

.header .mega-menu .mega-feature .mega-feature-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.header .mega-menu .mega-feature .mega-feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Georgia', serif;
}

.header .mega-menu .mega-feature .mega-feature-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

/* 中部分类列 */
.header .mega-menu .mega-col {
  display: flex;
  flex-direction: column;
}

.header .mega-menu .mega-col-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.header .mega-menu .mega-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header .mega-menu .mega-col-list li {
  margin-bottom: 0;
}

.header .mega-menu .mega-col-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
}

.header .mega-menu .mega-col-list a:hover {
  color: var(--style-color);
  padding-left: 8px;
}

.header .mega-menu .mega-col-list a i {
  font-size: 11px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
}

.header .mega-menu .mega-col-list a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* 热门标签 */
.header .mega-menu .mega-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.header .mega-menu .mega-tags a {
  padding: 6px 14px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.header .mega-menu .mega-tags a:hover {
  background: var(--style-color);
  color: #fff;
}

/* 右下小图卡片 */
.header .mega-menu .mega-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header .mega-menu .mega-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.header .mega-menu .mega-card:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.header .mega-menu .mega-card-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}

.header .mega-menu .mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header .mega-menu .mega-card-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.header .mega-menu .mega-card-info p {
  font-size: 11px;
  color: #999;
  margin: 0;
}

/* 隐藏默认下拉 */
.header .pulldown {
  display: none !important;
}

/* ===========================================
   Breadcrumb - 面包屑导航
   =========================================== */
.breadcrumb {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #999;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--style-color);
}

.breadcrumb .sep {
  color: #ccc;
  margin: 0 6px;
  font-size: 11px;
}

.breadcrumb .home-icon {
  margin-right: 4px;
  font-size: 13px;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 面包屑响应式 */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 10px 0;
  }
  .breadcrumb .container {
    font-size: 12px;
  }
  .breadcrumb .current {
    max-width: 200px;
  }
}


