/* ============================================
   移动端导航样式 - Mobile Navigation
   ============================================ */

/* 移动端动态页面标题 - 默认隐藏 */
.et-page-title-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.05rem;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  /* 修复下伸字母（g,j,p,q,y）底部被裁剪：增加行高 + 底部padding + 移除overflow裁剪 */
  line-height: 1.3;
  padding: 2px 0 5px 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, color 0.3s ease, text-shadow 0.3s ease;
  transition-delay: 0s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  max-width: calc(100% - 100px);
  /* overflow: hidden; */  /* 注释掉，避免裁剪下伸部 */
  /* text-overflow: ellipsis; */  /* 注释掉，因为依赖overflow */
  white-space: nowrap;
}

/* 移动端标题logo */
.et-mobile-title-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 导航栏固定时的标题颜色 */
.et-hero-tabs-container--top .et-page-title-mobile {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 只有在--top且非滑出状态时，才显示移动端标题 */
.et-hero-tabs-container--top:not(.et-hero-tabs-container--slide-out) .et-page-title-mobile {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.15s; /* 延迟显示，在滑入动画快完成时才淡入 */
}

/* 汉堡菜单按钮 - 默认隐藏 */
.et-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  transition-delay: 0s;
}

.et-hamburger:active {
  transform: translateY(-50%) scale(0.95);
}

/* 汉堡菜单的三条横线 */
.et-hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* 只有在--top且非滑出状态时，才显示汉堡菜单 */
.et-hero-tabs-container--top:not(.et-hero-tabs-container--slide-out) .et-hamburger {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.15s; /* 延迟显示，在滑入动画快完成时才淡入 */
}

/* 导航栏固定时的汉堡菜单颜色 */
.et-hero-tabs-container--top .et-hamburger-line {
  background-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 汉堡菜单激活状态（变为X） */
.et-hamburger.active .et-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.et-hamburger.active .et-hamburger-line:nth-child(2) {
  opacity: 0;
}

.et-hamburger.active .et-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端侧边抽屉容器 */
.et-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002 !important;
  pointer-events: none;
}

/* 抽屉打开状态 */
.et-mobile-drawer.open {
  pointer-events: auto;
}

/* 抽屉遮罩层 */
.et-mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.et-mobile-drawer.open .et-mobile-drawer-overlay {
  opacity: 1;
}

/* 抽屉内容区域 */
.et-mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15); */ /* 已移除阴影 */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* 不支持毛玻璃的降级方案 */
.no-backdrop-filter .et-mobile-drawer-content {
  background: rgba(255, 255, 255, 0.95);
}

.et-mobile-drawer.open .et-mobile-drawer-content {
  transform: translateX(0);
}

/* 抽屉头部 */
.et-mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(102, 177, 241, 0.2);
  background: rgba(102, 177, 241, 0.08);
}

.et-mobile-drawer-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.05rem;
}

/* 抽屉关闭按钮 */
.et-mobile-drawer-close {
  width: 40px;
  height: 40px;
  background: rgba(102, 177, 241, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #66B1F1;
  transition: all 0.3s ease;
}

.et-mobile-drawer-close:hover {
  background: rgba(102, 177, 241, 0.2);
  color: #4A90E2;
  transform: rotate(90deg);
}

.et-mobile-drawer-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* 抽屉导航列表 */
.et-mobile-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.et-mobile-drawer-nav li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.et-mobile-drawer-nav li:last-child {
  border-bottom: none;
}

/* 抽屉导航项 */
.et-mobile-nav-item {
  display: block;
  padding: 18px 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 导航项hover效果 */
.et-mobile-nav-item:hover {
  background: rgba(102, 177, 241, 0.15);
  color: #66B1F1;
  padding-left: 32px;
}

/* 导航项激活效果 */
.et-mobile-nav-item:active {
  background: rgba(102, 177, 241, 0.25);
}

/* 导航项左侧指示条 */
.et-mobile-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #66B1F1;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.et-mobile-nav-item:hover::before {
  transform: scaleY(1);
}
