/*
  原站首页 `index.html` head 内联样式（fullPage-nav 定制）
  放到 public/static 下，避免被 webpack 当作模块资源解析
*/

#fullPage-nav {
  font-size: 12px;
}

#fullPage-nav li {
  width: 90px;
  height: 21px;
  margin: 10px 0 0;
  vertical-align: middle;
}

#fullPage-nav li a {
  float: right;
  width: 21px;
  height: 21px;
  color: #8f9da4;
  text-decoration: none;
  text-align: right;
  background: url('../new-images/dot.png') 8px 8px no-repeat;
}

#fullPage-nav li .active {
  position: relative;
  background: url('../new-images/bluedot.png') 8px 8px no-repeat;
}

#fullPage-nav li .active::before {
  content: '';
  background: url('../new-images/active.png');
  width: 25px;
  height: 26px;
  position: absolute;
  left: -1px;
  animation: mouseActive 1s 2;
}

@keyframes mouseActive {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

#fullPage-nav .el-anchor__marker {
  display: none;
}

#fullPage-nav .el-anchor__list {
  margin: 0;
  padding: 0;
}

#fullPage-nav .el-anchor__item {
  list-style: none;
  width: 90px;
  height: 21px;
  margin: 10px 0 0;
  vertical-align: middle;
}

#fullPage-nav .el-anchor__link {
  float: right;
  width: 21px;
  height: 21px;
  position: relative;
  text-decoration: none;
  text-align: right;
  /* 隐藏 AnchorLink 默认文本（我们用 hover tooltip 展示标题） */
  font-size: 0;
  /* 重要：Element Plus 默认给 link 设置了 overflow:hidden，会把绝对定位的 tooltip 裁掉 */
  overflow: visible;
  /* 清掉默认 padding，避免 hover 区域与圆点错位 */
  padding: 0;
  background: url('../new-images/dot.png') 8px 8px no-repeat;
}

#fullPage-nav .el-anchor__link.is-active {
  position: relative;
  background: url('../new-images/bluedot.png') 8px 8px no-repeat;
}

#fullPage-nav .el-anchor__link.is-active::before {
  content: '';
  background: url('../new-images/active.png');
  width: 25px;
  height: 26px;
  position: absolute;
  left: -1px;
  animation: mouseActive 1s 2;
}

#fullPage-nav .el-anchor__link-title {
  display: none;
}

/* Element Plus Anchor 默认样式会有 padding/背景，这里清掉，保持原站纯圆点 */
#fullPage-nav .el-anchor,
#fullPage-nav .el-anchor__list {
  background: transparent;
  padding: 0;
}

/* hover 时展示标题（仿 fullPage-tooltip） */
#fullPage-nav .fp-anchor-tooltip {
  position: absolute;
  right: 10px;
  top: 0;
  height: 21px;
  line-height: 21px;
  margin: 0 28px;
  font-size: 12px;
  color: #666666;
  /* background: rgba(255, 255, 255, 0.9); */
  /* 覆盖 jquery.fullPage.css 的 `#fullPage-nav span { border: 1px solid #000; }`，避免 tooltip 出现黑边框 */
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

#fullPage-nav .el-anchor__link:hover .fp-anchor-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/*
  仅隐藏原 fullPage / Element Plus 默认生成的 span 文本，
  不要误伤我们自定义的 hover tooltip：.fp-anchor-tooltip
*/
#fullPage-nav span:not(.fp-anchor-tooltip) {
  display: none;
}

#fullPage-nav::after {
  content: '';
  /* background: url('../new-images/slide.png'); */
  position: absolute;
  width: 2px;
  height: 69px;
  right: 8px;
  top: 200px;
}

.fullPage-tooltip {
  float: left;
  top: 0;
  margin-right: 5px;
  font: 12px 'Microsoft Yahei';
  color: #666666;
  line-height: 21px;
}

/*
  首页 section4（我们的优势）布局修正：
  - `.section4 .body` 是 absolute 定位，不占文档流
  - `.detail` 在文档流中会顶到标题区域，导致“圆圈内容”和上方文案重叠
*/
#fullpage .section4 .detail {
  padding-top: 18vw;
}

