/* ==========================================================================
   Datasea 2026 全站导航（按设计稿 V0.7 重做）
   结构：深色顶部工具条 + 白色吸顶主导航（文字 logo + 右对齐菜单 + 白色下拉卡）
   全部类名收敛在 .nv26- 前缀下，不影响 style.css / newNav.css 的全局规则。
   纯 CSS 实现：桌面 hover 下拉，移动端 burger（checkbox 开关）。
   ========================================================================== */

/* ===== 顶部工具条 ===== */
.nv26-utilbar {
  background: #00030a;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.nv26-utilbar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 24px;
  height: 34px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  font-size: 11.5px;
  letter-spacing: .1em;
}

.nv26-utilbar-in a,
.nv26-top-dd>span {
  color: #c3cbdd;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.nv26-utilbar-in a:hover {
  color: #fff;
}

.nv26-top-dd {
  position: relative;
}

.nv26-top-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 3, 10, .12);
  padding: 8px;
  min-width: 180px;
  z-index: 60;
}

.nv26-top-dd:hover .nv26-top-menu {
  display: block;
}

.nv26-top-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #212121;
  border-radius: 4px;
  letter-spacing: .02em;
}

.nv26-top-menu a:hover {
  background: #f2f5fa;
  color: #4776e6;
}

/* ===== 固定定位容器（工具条 + 主导航一起吸顶）=====
   模板 .page 上有 overflow:hidden，position:sticky 会失效，故整块用 fixed。 */
.nv26-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1500;
}

/* 占位块：把 fixed 脱离文档流让出的高度补回来（= 工具条 34px + 主导航 74px） */
.nv26-spacer {
  height: 108px;
}

/* ===== 主导航 ===== */
header.nv26 {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 0 #e2e6ec, 0 6px 24px rgba(0, 3, 10, .06);
}

.nv26-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.nv26-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.nv26-logo b {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #00030a;
  letter-spacing: .02em;
  font-weight: 700;
}

.nv26-logo span {
  font-size: 11px;
  color: #5f6570;
  letter-spacing: .14em;
}

.nv26-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  line-height: normal;
}

.nv26-menu li {
  position: relative;
  list-style: none;
}

.nv26-top {
  display: block;
  padding: 22px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #212121;
  text-decoration: none;
  text-transform: uppercase;
  line-height: normal;
  cursor: pointer;
}

.nv26-top:hover,
.nv26-menu li:hover .nv26-top {
  color: #4776e6;
}

/* 下拉卡 */
.nv26-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 3, 10, .12);
  padding: 8px;
  z-index: 60;
}

.nv26-menu li:hover .nv26-sub {
  display: block;
}

.nv26-sub a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #212121;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.5;
}

.nv26-sub a:hover {
  background: #f2f5fa;
  color: #4776e6;
}

/* burger（仅移动端显示） */
.nv26-burger {
  display: none;
  font-size: 22px;
  color: #212121;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  user-select: none;
}

/* ===== 移动端 ===== */
@media (max-width: 960px) {
  .nv26-utilbar {
    display: none;
  }

  /* 工具条隐藏后只剩主导航高度 */
  .nv26-spacer {
    height: 66px;
  }

  .nv26-nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 66px;
    padding: 10px 16px;
  }

  .nv26-logo {
    flex: 1;
    min-width: 0;
  }

  .nv26-logo span {
    display: none;
  }

  .nv26-burger {
    display: block;
  }

  .nv26-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 4px 0 12px;
  }

  .nv26-burger-cb:checked~.nv26-menu {
    display: flex;
  }

  .nv26-top {
    padding: 12px 6px;
  }

  .nv26-sub {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
  }
}
