/* ============================================
   导航栏样式 - Navigation
   ============================================ */

/* 导航栏渐变动画（已禁用 - 改为全局毛玻璃效果） */
/* 渐变流动动画 - 从左至右的柔和流动效果（已禁用） */
/* @-webkit-keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@-moz-keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
} */

.et-hero-tabs-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 70px;
  background: transparent; /* 首页时透明背景 */
  border-radius: 0; /* 首页时取消圆角 */
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
  /* 滑动渐隐渐显动画 */
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, border-radius 0.15s ease;
}

/* 滑出动画状态 - 向上移出屏幕的同时渐隐 */
.et-hero-tabs-container--slide-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-100px) !important;
}


/* 导航栏占位符 - 防止切换为 fixed 定位时页面跳动 */
.et-hero-tabs-placeholder {
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

/* Canvas 毛玻璃背景样式 */
.et-hero-tabs-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 当容器固定在顶部时显示 Canvas 背景 */
.et-hero-tabs-container--top .et-hero-tabs-canvas {
  opacity: 1;
}

/* 优先使用 CSS backdrop-filter 作为主要方案（渐变不透明度背景） */
.et-hero-tabs-container--top {
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.5), rgba(245, 245, 245, 0.35));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
  -o-backdrop-filter: blur(20px);
  -ms-backdrop-filter: blur(20px);
  border-radius: 0; /* 取消圆角，紧贴顶部 */
}

/* 边框效果使用发散度小的阴影实现，已整合到 box-shadow 中 */

/* 首页渐变动画背景（已禁用 - 改为全局毛玻璃效果） */
/* .et-hero-tabs-container--gradient {
  background: linear-gradient(
    90deg,
    rgba(173, 216, 230, 0.5) 0%,
    rgba(216, 191, 216, 0.5) 33%,
    rgba(175, 238, 238, 0.5) 66%,
    rgba(173, 216, 230, 0.5) 100%
  );
  background-size: 200% 200%;
  -webkit-animation: gradientFlow 5s ease-in-out infinite;
  animation: gradientFlow 5s ease-in-out infinite;
  box-shadow: 0 2px 15px rgba(173, 216, 230, 0.15);
  will-change: background-position;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.et-hero-tabs-container--gradient.et-hero-tabs-container--top {
  background: rgba(245, 245, 245, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: none;
  -webkit-animation: none;
} */

/* 降级方案：当 Canvas 不可用时使用 CSS backdrop-filter */
.et-hero-tabs-container--top.no-canvas-support {
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.5), rgba(245, 245, 245, 0.20));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* 对于不支持 backdrop-filter 的浏览器，使用半透明渐变背景 */
.et-hero-tabs-container--top.no-blur-support {
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.5), rgba(245, 245, 245, 0.20));
}

/* Canvas 毛玻璃背景样式 - 降级方案 */
.et-hero-tabs-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 当容器固定在顶部且使用Canvas时显示 Canvas 背景 */
.et-hero-tabs-container--top.using-canvas .et-hero-tabs-canvas {
  opacity: 1;
}

/* 当使用 backdrop-filter 时隐藏 Canvas */
.et-hero-tabs-container--top.using-backdrop-filter .et-hero-tabs-canvas {
  display: none;
}

/* 导航栏顶部固定样式 */
.et-hero-tabs-container--top {
  /* 位置固定已在基础样式中设置 */
}

/* ============================================
   首页顶栏Header - 独立全宽组件
   ============================================ */
.et-hero-header {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, calc(80vw * 1.2));
  height: 70px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 30px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transition-delay: 0.2s; /* 滚回首页时延迟显示 */
  pointer-events: auto;
  overflow: visible;
}

/* 其他页面隐藏首页Header */
.et-hero-header.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
  transition: opacity 0.125s ease, visibility 0.125s ease, transform 0.125s ease;
  transition-delay: 0s; /* 滚动离开首页时立即开始渐隐 */
}

/* 首页Logo区域 */
.et-hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding-left: 30px;
}

.et-hero-logo-img {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.et-hero-logo-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.et-hero-logo-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #333;
  letter-spacing: 1.45rem;
  line-height: 1.2;
}

.et-hero-logo-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.05rem;
  line-height: 1.4;
}

/* 首页顶栏右侧区域 - 包含下载按钮和版本信息 */
.et-hero-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: visible;
}

/* 首页顶栏内的下载按钮样式 */
.et-hero-header .et-download-btn {
  position: static;
  padding: 12px 32px;
  font-size: 15px;
  margin: 0;
  order: 0;
}

/* 首页顶栏内下载按钮的 hover 动效 */
.et-hero-header .et-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102, 177, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(135deg, rgba(102, 177, 241, 1) 0%, rgba(153, 102, 255, 1) 100%);
}

/* 首页顶栏内下载按钮的 active 动效 */
.et-hero-header .et-download-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 177, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* 首页顶栏内支持车型按钮保持原样 */
.et-hero-header .et-download-btn-outline:hover {
  transform: translateY(-2px);
}

.et-hero-header .et-download-btn-outline:active {
  transform: translateY(-1px);
}

/* 首页顶栏右侧版本信息 */
.et-hero-version {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  overflow: visible;
}

/* 版本号与更新日志按钮同一行显示 */
.et-hero-version-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;           /* 移除滚动条的前提：不滚动 */
  white-space: nowrap;        /* 内容不换行，避免出现横向滚动 */
  -ms-overflow-style: none;   /* IE/Edge 隐藏滚动条 */
  scrollbar-width: none;      /* Firefox 隐藏滚动条 */
}
.et-hero-version-row::-webkit-scrollbar {
  display: none;              /* Chrome/Safari 隐藏滚动条 */
}

.et-hero-version-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.05rem;
}

.et-hero-version-date {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.02rem;
}

/* 移动端版本信息（首页内容区域） */
.et-hero-version-mobile {
  display: none; /* PC端默认隐藏 */
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 1vh;
  order: 4; /* 与下载按钮同order，但HTML在后，所以会显示在下载按钮之后 */
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.et-hero-version-mobile .et-hero-version-number,
.et-hero-version-mobile .et-hero-version-date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 导航标签区域 */
.et-hero-tabs-nav {
  display: none; /* 首页默认隐藏 */
  flex-direction: row;
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  transition-delay: 0s;
}

/* 其他页面显示导航标签 - 但仅在非滑出状态时 */
.et-hero-tabs-container--top .et-hero-tabs-nav {
  display: flex;
}

/* 只有在--top且非滑出状态时，才显示导航标签 */
.et-hero-tabs-container--top:not(.et-hero-tabs-container--slide-out) .et-hero-tabs-nav {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.15s; /* 延迟显示，在滑入动画快完成时才淡入 */
}

.et-hero-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  color: #000;
  letter-spacing: 0.1rem;
  transition: all 0.5s ease;
  font-size: 1.056rem; /* 首页字号增加32% (0.8rem * 1.32) */
  font-weight: 700;
}

.et-hero-tab:hover {
  color: #333;
  background: rgba(173, 216, 230, 0.35); /* 浅蓝色 hover 背景 */
  transition: all 0.5s ease;
}

.et-hero-tab-slider {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 6px;
  background: #66B1F1;
  transition: left 0.3s ease, opacity 0.3s ease;
}

/* 当导航栏固定到顶部时，隐藏条状指示器 */
.et-hero-tabs-container--top .et-hero-tab-slider {
  opacity: 0;
}

/* 其他页面时恢复原字号（增加10%） */
.et-hero-tabs-container--top .et-hero-tab {
  font-size: 1.32rem;
}

/* 激活标签的文字发光效果（仅在导航栏固定时显示） */
.et-hero-tabs-container--top .et-hero-tab--active {
  color: white;
  font-weight: 900;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3);
  transition: all 0.5s ease;
}

/* hover状态优化 - 在固定状态下避免与激活状态冲突 */
.et-hero-tabs-container--top .et-hero-tab:hover:not(.et-hero-tab--active) {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}
