.VPNav {
  display: none;
}
.VPLocalNav {
  top: 59px !important;
}

.VPDoc {
  padding-top: 80px !important;
}

.vp-doc strong {
  color: #000;
}
/* ==================== 导航栏容器 ==================== */

.fp-header {
  width: 100%;
  height: 60px;
  background-color: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-header-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== Logo样式 ==================== */
.fp-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.fp-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.fp-logo-img {
  height: 30px;
  width: 110px;
  display: block;
}

/* ==================== 主导航菜单 ==================== */
.fp-nav-menu {
  flex: 1;
  margin-left: 40px;
}

.fp-nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.fp-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.fp-nav-item > a, .fp-nav-item > span {
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: auto;
  height: 60px;
  padding: 0 15px; /* 增加左右内边距 */
  transition: color 0.2s ease;
  position: relative;
  justify-content: center;
}

.fp-nav-item > a:hover, .fp-nav-item > span:hover {
  color: #fff;
}

/* ==================== 下拉菜单系统 ==================== */
/* 主菜单下拉箭头 - 增加间距 */
.fp-nav-item.has-dropdown > a,
.fp-dropdown-toggle {
  padding-right: 32px; /* 从28px增加到32px */
}

.fp-nav-item.has-dropdown > a::after,
.fp-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 0px; /* 从12px增加到16px */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
  transition: transform 0.3s ease;
}

.fp-nav-item.has-dropdown > a.fp-active::after,
.fp-dropdown-toggle.fp-active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 下拉菜单面板 */
.fp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
}

.fp-dropdown-menu.fp-show {
  display: block;
}

.fp-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: rgba(117,117,117,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  line-height: normal;
}

.fp-dropdown-item:hover, .fp-nav-item:hover .fp-dropdown-toggle {
  cursor: pointer;
  background-color: rgba(255,255,255,.2);
  /*text-decoration: underline;*/
  text-decoration-color: #fff; /* 与品牌色一致 */
  text-underline-offset: 4px; /* 下划线距离文字间距 */
  transition: text-decoration 0.2s ease; /* 平滑过渡效果 */
}

.fp-nav-item > a.fp-dropdown-toggle, .fp-nav-item > span.fp-dropdown-toggle {
  padding-right: 30px;
}

.fp-nav-item > a.fp-dropdown-toggle::after, .fp-nav-item > span.fp-dropdown-toggle::after {
  right: 15px;
}

.fp-dropdown-menu .fp-dropdown-item:hover {
  text-decoration-color: #999;
  background-color: #f5f5f5;
}

.fp-dropdown-item-status {
  display: inline-block;
  border-radius: 8px;
  color: #f6f6f6;
  font-size: 12px;
  font-weight: 600;
  padding: 7px;
  margin-left: 10px;
  line-height: 1;
}
.fp-dropdown-item-status.item-hot {
  background: rgb(255, 103, 103)
}

.fp-dropdown-item-status.item-new {
  background: linear-gradient(90deg, rgb(47, 203, 203) 1%, rgb(139, 61, 255) 100%);
}

.fp-dropdown-menu-grouped {
  padding: 15px;
  width: max-content;
  max-height: 700px;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start;
  flex-direction: column;
  transform: translateX(-45%);
  overflow-y: hidden;
  overflow-x: auto;
  max-width: calc(100vw - 100px);
}
.fp-dropdown-menu-grouped::-webkit-scrollbar {
  display: none;
}
.fp-dropdown-menu.fp-dropdown-menu-grouped.fp-show {
  display: flex;
}

.fp-dropdown-submenu {
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 300px;
}

.fp-dropdown-submenu-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.group-break-column {
  break-after: column;
}

.fp-dropdown-group-title {
  color: #666;
  padding: 5px 15px;
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  font-weight: bold;
}

/* 用户菜单特殊样式 - 增加间距 */
.fp-user-menu .fp-dropdown-toggle {
  padding-right: 28px; /* 从24px增加到28px */
}

.fp-user-menu .fp-dropdown-menu {
  right: 0;
  left: auto;
}

/* ==================== 语言选择器 ==================== */
.fp-language-item {
  margin-left: 10px;
}

.fp-language-switcher {
  position: relative;
}

.fp-language-select {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 24px 6px 12px;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.fp-language-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.fp-language-select option {
  color: #000;
}

/* ==================== 移动端适配 ==================== */
/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  .fp-nav-menu {
    position: fixed;
    top: 60px; /* 从顶部开始，紧贴导航栏 */
    right: 0;
    width: 60%;
    height: calc(100vh - 60px); /* 减去导航栏高度 */
    background-color: #000;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0; /* 移除内边距，使菜单紧贴顶部 */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%)
  }

  .fp-nav-menu.fp-active {
    transform: translateX(0)
  }

  .fp-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 0;
    padding-top: 0; /* 移除顶部内边距 */
  }

  .fp-nav-item {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* 添加分割线 */
  }

  .fp-nav-item > a {
    padding: 16px 24px; /* 增加垂直内边距 */
    height: auto;
    justify-content: space-between; /* 文字和箭头分居两侧 */
  }

  /* 移动端下拉箭头调整 */
  .fp-nav-item.has-dropdown > a::after,
  .fp-dropdown-toggle::after {
    right: 24px;
    transform: translateY(-50%) rotate(0deg); /* 初始状态箭头朝下 */
  }

  .fp-nav-item.has-dropdown > a.fp-active::after,
  .fp-dropdown-toggle.fp-active::after {
    transform: translateY(-50%) rotate(180deg); /* 激活状态箭头朝上 */
  }

  /* 下拉菜单面板 - 移动端样式 */
  .fp-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0,0,0,0.2); /* 更深的背景色 */
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1003;
  }

  .fp-dropdown-menu.fp-show {
    max-height: 2000px; /* 足够大的值确保展开 */
    background-color: #f5f5f5;
    gap: 10px;
  }

  .fp-dropdown-menu-grouped {
    transform: translateX(0);
  }

  .fp-dropdown-item {
    color: #333;
    padding: 14px 32px;
    border-top: 1px solid rgba(255,255,255,0.05); /* 子菜单项分割线 */
  }

  /* 二级菜单特殊处理 - 在右侧展示 */
  .fp-dropdown-submenu > .fp-dropdown-menu {
    position: static;
    width: 90%; /* 稍微缩进 */
    margin-left: 10%;
    background-color: rgba(0,0,0,0.3); /* 更深一级的背景色 */
  }

  .fp-dropdown-submenu > a::after {
    border-left-color: #fff;
    right: 24px;
    transform: translateY(-50%) rotate(90deg); /* 初始状态箭头朝右 */
  }

  .fp-dropdown-submenu > a.fp-active::after {
    transform: translateY(-50%) rotate(270deg); /* 激活状态箭头朝下 */
  }

  .fp-dropdown-group-title {
    border-bottom: 1px solid #ccc;
    padding: 14px 32px;
  }

  /* 语言选择器调整 */
  .fp-language-item {
    margin-left: 0;
  }

  .fp-language-select {
    width: 100%;
    max-width: 150px;
    padding: 8px 36px 8px 16px;
  }
}

/* ==================== 积分 ==================== */
.fp-points-wrap {
  display: flex;
  color: #fb713c;
  font-size: 16px;
  gap: 8px;
  background-color: #fff;
  padding: 0 16px;
  border-radius: 16px;
  margin-left: 10px;
  font-weight: 500;
  display: none;
}

.fp-points-wrap.fp-active {
  display: flex;
}

.fp-points-icon {
  width: 22px;
}

/* ==================== 移动菜单按钮动画优化 ==================== */
.fp-mobile-menu-btn {
  transition: transform 0.3s ease;
}

.fp-mobile-menu-btn.fp-active {
  transform: rotate(90deg);
}

.fp-mobile-menu-btn span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 移动菜单按钮 ==================== */
.fp-mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fp-mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.fp-mobile-menu-btn.fp-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.fp-mobile-menu-btn.fp-active span:nth-child(2) {
  opacity: 0;
}

.fp-mobile-menu-btn.fp-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .fp-mobile-menu-btn {
    display: flex;
  }
  
  body.fp-mobile-menu-open {
    overflow: hidden;
  }
}

/* 用户菜单特殊样式 */
.fp-user-menu-item .fp-dropdown-toggle {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-user-menu-item .fp-user-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

