/* ===== 基础样式重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== 修复所有li标签 ===== */
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ===== Header主容器 ===== */
.header-main {
  /* position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
  background-color: rgba(255, 255, 255, 0);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  /* background: white; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  transition: transform 0.3s ease;
  z-index: 1000;
  /* display: flex;
        align-items: center;
        justify-content: center; */
}

/* 滚动后的Header样式 - 白色背景 */
.header-main.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* #mainHeader:hover {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
#mainHeader:hover .nav-link {
  color: #333;
  text-shadow: none;
}
#mainHeader:hover .nav-link.active {
  color: #007bff;
}
#mainHeader:hover .nav-link::after {
  background-color: #007bff;
}
#mainHeader:hover .header-logo-text {
  color: #333;
  text-shadow: none;
}
#mainHeader:hover .line {
  background: #333;
  text-shadow: none;
} */

/* Header内部容器 */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ===== Logo区域 ===== */
.header-logo {
  flex-shrink: 0;
  z-index: 1001;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}
.line {
  height: 40px;
  width: 2px;
  background: #333;
}
.header-main:not(.scrolled) .line {
  background: #fff;
}
.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 36px;
  width: auto;
  margin-right: 20px;
}

/* 透明状态下Logo变白 */
.header-main:not(.scrolled) .logo-img {
  /* filter: brightness(0) invert(1); */
}

.header-logo-text {
  transition: color 0.3s ease;
  margin-left: 20px;
  line-height: 1.3;
}

.header-main:not(.scrolled) .header-logo-text {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== 主要导航菜单 ===== */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: end;
}

/* 导航列表 */
.nav-list {
  display: flex;
  gap: 0px;
}

/* 导航项 */
.nav-item {
  /* position: relative; */
}

/* 导航链接 */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

/* 透明状态下导航链接变白 */
.header-main:not(.scrolled) .nav-link {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link:hover,
.nav-link.active {
  color: #007bff;
}

.header-main:not(.scrolled) .nav-link:hover,
.header-main:not(.scrolled) .nav-link.active {
  color: white;
}

/* 导航链接下划线效果 */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-main:not(.scrolled) .nav-link::after {
  background-color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

/* 下拉箭头 */
.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

/* 悬停时正确旋转180度 */
.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== 全屏宽度下拉菜单 ===== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 下拉菜单内容容器 */
.dropdown-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

/* 下拉菜单侧边栏 */
.dropdown-sidebar {
  flex: 0 0 250px;
  position: relative;
}
.dropdown-sidebar::before {
  content: ""; /* 伪元素必须有content属性 */
  position: absolute;
  right: 0; /* 靠左侧区域右侧对齐 */
  top: 50%; /* 垂直居中 */
  transform: translateY(-50%); /* 精准垂直居中 */
  width: 1px; /* 竖线宽度 */
  height: 100%; /* 竖线高度，可根据需要调整 */
  background-color: #e0e0e0; /* 竖线颜色（浅灰色，贴合原图） */
}
.dropdown-sidebar h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.dropdown-sidebar p {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.view-all {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.arrow-right {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.view-all:hover .arrow-right {
  transform: translateX(5px);
}

/* 下拉菜单内容区域 */
.dropdown-content {
  flex: 1;
  display: flex;
  gap: 60px;
}
.dropdown-content img {
  width: 300px;
}
.dropdown-column {
  width: 300px;
  margin-left: 45px;
}

.dropdown-column h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 下拉子列表 */
.dropdown-sublist {
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
  font-size: 14px;
}

.dropdown-sublist a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: #999;
  transition: all 0.3s ease;
  /* padding-left: 26px; */
  line-height: 1.5;
  position: relative;
}
.dropdown-sublist a:hover {
  padding-left: 26px;
  color: #007bff;
}
.dropdown-sublist a:hover::before {
  /* color: #007bff;
  border-bottom-color: #007bff;
  transform: translateX(5px); */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transition: all 0.3s ease;
  transform: translateY(-50%);
  width: 15px;
  height: 1px;
  background-color: #007bff;
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.badge.original {
  background: #ffd700;
  color: #333;
}

.badge.secure {
  background: #28a745;
  color: white;
}

.badge.ai {
  background: #007bff;
  color: white;
}

.badge.count {
  background: #007bff;
  color: white;
}

.badge.system {
  background: #6f42c1;
  color: white;
}

.badge.highlight {
  background: #fd7e14;
  color: white;
}

.badge.reputation {
  background: #20c997;
  color: white;
}

/* 下拉预览区域 */
.dropdown-preview {
  flex: 0 0 250px;
}

.preview-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

.preview-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-link:hover img {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-link:hover .preview-overlay {
  opacity: 1;
}

/* 鼠标悬停显示下拉菜单 */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== 右侧功能区 ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1001;
}

/* 菜单切换按钮（移动端） */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-line {
  height: 2px;
  background: #333;
  transition: all 0.3s ease;
}

.header-main:not(.scrolled) .menu-line {
  background: white;
}

/* VR入口 */
.vr-section {
  position: relative;
}

.vr-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(200, 10, 20, 0.1);
  transition: all 0.3s ease;
}

.header-main:not(.scrolled) .vr-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.vr-link:hover {
  background: rgba(200, 10, 20, 0.2);
  transform: translateY(-2px);
}

.vr-link img {
  height: 20px;
  margin-right: 8px;
}

.vr-text {
  font-size: 14px;
  font-weight: 500;
}

/* 联系区域 */
.contact-section {
  text-align: right;
}

.contact-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.header-main:not(.scrolled) .contact-label {
  color: rgba(255, 255, 255, 0.8);
}

.contact-label img {
  height: 16px;
}

.phone-number {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-main:not(.scrolled) .phone-number {
  color: white;
}

.phone-number:hover {
  color: #007bff;
}

/* ===== 移动端菜单 ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: white;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo img {
  height: 30px;
}

.mobile-close-btn {
  font-size: 20px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.mobile-close-btn:hover {
  color: #007bff;
}

.mobile-menu-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: white;
}

/* 移动端导航项 */
.mobile-nav-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background-color: white;
}

.mobile-dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.mobile-nav-item.active .mobile-dropdown-menu {
  max-height: 1000px;
}

.mobile-dropdown-menu a {
  display: block;
  padding: 10px 0 10px 20px;
  text-decoration: none;
  color: #666;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  background-color: white;
}

.mobile-dropdown-menu a:hover {
  color: #007bff;
  border-left-color: #007bff;
  padding-left: 25px;
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
}

.mobile-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #0f83ff, #007bff);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

/* ===== 页面内容区域 ===== */
.main-content {
  /* padding-top: 70px; */
  min-height: 200vh;
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: white;
  color: #007bff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .dropdown-container {
    gap: 30px;
  }

  .dropdown-content {
    gap: 40px;
  }

  .dropdown-preview {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .header-main {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .header-main:not(.scrolled) {
    background-color: white;
  }

  .header-main:not(.scrolled) .logo-img {
    filter: none;
  }

  .header-main:not(.scrolled) .header-logo-text,
  .header-main:not(.scrolled) .nav-link,
  .header-main:not(.scrolled) .vr-link,
  .header-main:not(.scrolled) .phone-number,
  .header-main:not(.scrolled) .contact-label {
    color: #333;
  }

  .header-main:not(.scrolled) .vr-link {
    background: rgba(200, 10, 20, 0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .vr-text {
    display: none;
  }

  .contact-label span {
    display: none;
  }

  .phone-number {
    font-size: 16px;
  }

  .dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 20px;
    background-color: white;
  }

  .nav-item.active .dropdown-menu {
    display: block;
  }

  .dropdown-container {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .dropdown-content {
    flex-direction: column;
    gap: 20px;
  }

  .dropdown-preview {
    display: none;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-main {
  /* animation: fadeInDown 0.5s ease both; */
}

/* ===== 滚动进度条 ===== */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-main.scrolled .scroll-progress {
  opacity: 1;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #087efc, #007bff);
  transition: width 0.1s ease;
}

/* ===== 图标样式 ===== */
.icon {
  margin-right: 8px;
  font-size: 14px;
}
/* Header基本样式 */
.header-main {
  /* position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center; */
}

/* Header隐藏状态 */
.header-main.hidden {
  transform: translateY(-100%);
}
.searchform {
  width: 100%;
  display: flex;
}
.searchform input {
  background: none;
  outline: none;
  color: #333;
  border: 1px solid #999;
  border-radius: 25px;
}
.searchform .text {
  width: 0;
  flex: 1;
  padding: 15px;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.searchform .but {
  padding: 15px;
  border-left: none;
  color: #666;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
