:root {
  --pb-head-h: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  color: #243047;
  font-family: 'Source Han Sans CN VF', sans-serif;
  background: #fffaf2;
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ========== 头部容器 ========== */
.pb-head-box a:focus,
.pb-head-box a:active {
  outline: none;
}

.pb-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pb-head-h);
  z-index: 999;
  padding: 0 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pb-head.pb-head-bg {
  background: #ffffff99;
  box-shadow: 0 2px 8px rgba(51, 57, 64, 0.08);
  backdrop-filter: blur(40px);
}

.pb-head-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.pb-head a {
  text-decoration: none;
}

.pb-head ul {
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

.pb-head li {
  list-style: none;
  cursor: pointer;
  position: static;
}

/* ========== Logo ========== */
.pb-head-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
}

.pb-head-logo img {
  width: auto;
  height: 28px;
}

/* ========== 导航 ========== */
.pb-head-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.pb-head-nav .pb-head-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #160211;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.pb-head-nav a:hover {
  color: #4c4cef;
}

.pb-head-nav-item-active {
  color: #4c4cef !important;
}

.pb-head-nav .pb-head-nav-item span {
  margin-right: 4px;
}

.pb-head-submenu-trigger {
  position: relative;
}

.pb-head-submenu-trigger:hover .pb-head-nav-item {
  color: #4c4cef;
}

/* ========== 下拉菜单 ========== */
.pb-head-submenu-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  width: 640px;
  padding: 20px;
  visibility: hidden;
  border-radius: 6px;
  border: 1px solid #eaecf0;
  background: #fff;
  box-shadow: 0 0 15px 0 #0000001a;
}

.pb-head-submenu-active,
.pb-head-submenu-clickshow {
  visibility: visible !important;
}

.pb-head-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.pb-head-product-item:hover {
  background: #f8f5ff;
}

.pb-head-product-item img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}

.pb-head-product-title {
  color: #211d35;
  font-size: 15px;
  font-weight: 700;
}

.pb-head-product-desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ========== 右侧区域 ========== */
.pb-head-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pb-head-login-box {
  display: block;
}

/* ========== 按钮 ========== */
.pb-head-sec-btn,
.pb-head-primary-btn {
  height: 36px;
  border-radius: 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.pb-head-sec-btn {
  color: #160211;
  background: transparent;
  border: 1px solid #160211;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pb-head-sec-btn:hover {
  background: #160211;
  color: #ffffff;
}

.pb-head-primary-btn {
  color: #ffffff;
  background: #000000;
  border: none;
  transition: background-color 0.2s ease;
}

.pb-head-primary-btn:hover {
  background: #262626;
}

.pb-head-do-login {
  display: none;
  align-items: center;
  gap: 12px;
}

.pb-head-is-logged-in .pb-head-do-login {
  display: flex;
}

.pb-head-is-logged-in .pb-head-donot-login {
  display: none;
}

.pb-head-donot-login {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pb-head-donot-login .pb-head-login-btn {
  cursor: pointer;
}

/* ========== 头像 ========== */
.pb-head-avatar {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  flex: none;
  order: 1;
  flex-grow: 0;
}
.pb-head-avatar:hover {
  background: #f0edff;
}


/* ========== 左侧折叠菜单触发按钮 ========== */
.pb-head-toggle-menu {
  display: none;
  align-items: center;
  height: 100%;
  cursor: pointer;
}

.pb-head-toggle-icon-show,
.pb-head-toggle-icon-close {
  display: none;
  line-height: 0;
}

.pb-head-toggle-icon-show svg,
.pb-head-toggle-icon-close svg {
  display: block;
}

.pb-head-menu-isshow .pb-head-toggle-icon-show {
  display: none;
}

.pb-head-menu-isshow .pb-head-toggle-icon-close {
  display: block;
}

.pb-head-toggle-menu:not(.pb-head-menu-isshow) .pb-head-toggle-icon-show {
  display: block;
}

.pb-head-toggle-menu:not(.pb-head-menu-isshow) .pb-head-toggle-icon-close {
  display: none;
}

/* ========== 折叠菜单面板 ========== */
#pb-head-collapsible-menu {
  display: none;
  padding: 12px 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 28px rgba(95, 72, 41, 0.08);
}

#pb-head-collapsible-menu.pb-open {
  display: block;
}

.pb-colmenu-item {
  cursor: pointer;
}

.pb-colmenu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: #344054;
  font-size: 16px;
  border-bottom: 1px solid #f1eadf;
}

.pb-colmenu-arrow {
  transition: transform 0.2s ease;
}

.pb-colmenu-active .pb-colmenu-arrow {
  transform: rotate(180deg);
}

.pb-col-submenu {
  display: none;
  padding: 6px 0 8px 16px;
}

.pb-sub-open {
  display: block;
}

.pb-col-submenu-item {
  display: block;
  padding: 10px 0;
  color: #667085;
  font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 920px) {
  .pb-head-nav {
    display: none;
  }

  .pb-head-wrap {
    justify-content: flex-start;
    gap: 12px;
  }

  .pb-head-right {
    margin-left: auto;
  }

  .pb-head-toggle-menu {
    display: flex;
  }
}

@media (max-width: 600px) {
  .pb-head {
    padding: 0 10px;
  }

  .pb-head-right {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .pb-head-do-login .pb-head-primary-btn,
  .pb-head-donot-login .pb-head-primary-btn {
    display: none;
  }
}
