/* 统一平台页头：首页（pnh--home）/ 普通页（pnh--page）双主题 — Nuxt 与 public 目录各保留一份 */

.platform-nav-header {
  /* 优先跟随时时主题 --color；无 theme 时回退默认主题色（与 $--color-primary 一致） */
  --pnh-brand:#5A70E6;
  --pnh-brand-dark: #4453B8;
  --pnh-text-on-dark: #ffffff;
  --pnh-text-on-light: #333333;
  --pnh-nav-inactive: #1A394D;
  --pnh-text-muted: #666666;
  --pnh-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  --pnh-header-height: 70px;
  position: relative;
  width: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  z-index: 1000;
  overflow: visible;
}

.pnh__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--pnh-header-height);
  gap: 77px;
  overflow: visible;
}

/* 桌面：抽屉节点不生成盒模型，子项直接参与 .pnh__inner 横排 */
.pnh__drawer {
  display: contents;
}

/* 抽屉标题栏仅窄屏展示，避免参与桌面横排 */
.pnh__drawer-header {
  display: none;
}

.pnh__logo {
  order: 1;
  flex-shrink: 0;
}

.pnh__nav {
  order: 2;
  position: relative;
  display: flex;
  align-items: center;
  /* 占满剩余空间，可被压缩；宽度由父级 flex 决定，不再死卡 600 */
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  margin-right: 5%;
  overflow: hidden;
}

/* PC：横向裁剪视口；窄屏抽屉内由下方 media 还原 */
.pnh__nav-viewport {
  /* basis 0：宽度跟父级走，而不是跟菜单内容走，才能出现横向滚动 */
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pnh__nav-viewport::-webkit-scrollbar {
  display: none;
}

/*
 * 溢出滚动箭头：仅当前可点的一侧进入文档流占位。
 * 禁止用 invisible 占住左侧——那会把整段菜单顶向右，临界宽度下再裁出箭头。
 */
.pnh__nav-more {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6B7A9F;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.pnh__nav-more--prev {
  margin-right: 2px;
}

.pnh__nav-more--next {
  margin-left: 2px;
}

.pnh__nav-more:not([hidden]) {
  display: inline-flex;
}

.pnh__nav-more-icon {
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask: var(--pnh-nav-more-icon) center / contain no-repeat;
  -webkit-mask: var(--pnh-nav-more-icon) center / contain no-repeat;
}

/* arrow.svg 默认朝上 → 右/左 */
.pnh__nav-more--next .pnh__nav-more-icon {
  transform: rotate(90deg);
}

.pnh__nav-more--prev .pnh__nav-more-icon {
  transform: rotate(-90deg);
}

.pnh__nav-more:hover {
  color: var(--pnh-brand);
  background: rgb(90 112 230 / 8%);
}

.pnh__nav-more:active {
  background: rgb(90 112 230 / 12%);
}

.pnh__bar-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pnh__drawer-actions {
  order: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 48px;
}

.pnh__drawer-actions:empty {
  display: none;
}

/*
 * 桌面：站点中英切换已放在顶栏 bar-actions，drawer-actions 通常为空；
 * 由 bar-actions 承担右侧留白，避免登录/语言区贴边。
 */
@media (min-width: 1025px) {
  .pnh__bar-actions {
    padding-right: 48px;
  }
}

.pnh__menu-toggle {
  order: 5;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pnh__menu-toggle-icon,
.pnh__menu-toggle-icon::before,
.pnh__menu-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pnh__menu-toggle-icon {
  position: relative;
}

.pnh__menu-toggle-icon::before,
.pnh__menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.pnh__menu-toggle-icon::before {
  top: -6px;
}

.pnh__menu-toggle-icon::after {
  top: 6px;
}

.platform-nav-header--drawer-open .pnh__menu-toggle-icon {
  background: transparent;
}

.platform-nav-header--drawer-open .pnh__menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.platform-nav-header--drawer-open .pnh__menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.pnh__drawer-backdrop {
  display: none;
}

/* 抽屉打开时锁定页面滚动（html 上挂 class） */
html.pnh-drawer-lock {
  overflow: hidden;
}

.pnh__logo a {
  display: flex;
  align-items: center;
  height: 48px;
}

.pnh__logo picture {
  display: flex;
  align-items: center;
  height: 100%;
}

.pnh__logo img {
  display: block;
  object-fit: contain;
  width: auto;
  height: auto;
  max-height: 100%;
}

/* 英文页头：logo 固定高度 60px（不影响中文） */
.pnh--en .pnh__logo a {
  height: 60px;
}

.pnh--en .pnh__logo picture {
  height: 100%;
}

.pnh--en .pnh__logo img {
  height: 60px;
  width: auto;
  max-width: none;
  max-height: 60px;
}

/* 仅桌面：中文普通页 / 首页分别放开 logo 限高；英文一律走上方 .pnh--en 的 60px */
@media (min-width: 1025px) {
  .pnh--page:not(.pnh--en) .pnh__logo a {
    height: auto;
    max-height: var(--pnh-header-height);
  }

  .pnh--page:not(.pnh--en) .pnh__logo picture {
    height: auto;
  }

  .pnh--page:not(.pnh--en) .pnh__logo img {
    width: 400px;
    max-width: 400px;
    max-height: none;
  }

  /* 中文首页桌面：勿被 .pnh__logo a { height:48px } 压矮，按 logo_home 实际尺寸展示 */
  .pnh--home:not(.pnh--en) .pnh__logo a {
    height: auto;
  }

  .pnh--home:not(.pnh--en) .pnh__logo picture {
    height: auto;
  }

  .pnh--home:not(.pnh--en) .pnh__logo img {
    max-height: none;
  }
}

.pnh__menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  gap: 28px;
  /* 菜单短于视口时水平居中；溢出时 auto 塌成 0，仍从左侧起滚 */
  margin: 0 auto;
  padding: 0;
  list-style: none;
  --pnh-top-menu-height: 36px;
}

.pnh__menu > .pnh__menu-item {
  height: var(--pnh-top-menu-height);
}

.pnh__menu > .pnh__menu-item > .pnh__menu-link,
.pnh__menu > .pnh__menu-item > .pnh__menu-link--label {
  display: inline-grid;
  place-items: center;
  height: var(--pnh-top-menu-height);
  min-height: 0;
  /* padding: 0 12px; */
  line-height: 1;
  font-size: 16px;
}

.pnh__menu > .pnh__menu-item .pnh__menu-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 1;
  font-size: 16px;
  font-weight: normal;
}

.pnh__menu > .pnh__menu-item > .pnh__menu-link--active .pnh__menu-text,
.pnh__menu > .pnh__menu-item--active > .pnh__menu-link .pnh__menu-text,
.pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label .pnh__menu-text {
  font-size: 20px;
  font-weight: 600;
  transform: translateY(-1px);
}

.pnh__menu-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pnh__menu-item--has-children:hover {
  z-index: 200;
}

.pnh__menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  min-height: 34px;
  /* padding: 6px 12px; */
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* border-radius: 16px; */
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
}

/* url 为空的父级菜单：仅展开下拉，不可点击（对齐旧 FE PeriodicalGroupHeader） */
.pnh__menu-link--label {
  cursor: default;
}

.pnh__submenu {
  display: none;
  position: absolute;
  /* 紧贴触发项，避免空隙导致 hover 断开 */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--pnh-shadow);
  z-index: 201;
}

/*
 * PC 一级下拉：fixed + CSS 变量定位，脱出 .pnh__nav / viewport 的 overflow 裁剪。
 * --pnh-submenu-top / left 由 bindSubmenuFlyout 在 pointerenter 时写入。
 * 未写入前落到视口外，避免先闪到 (0,0)。
 */
@media (min-width: 1025px) {
  .pnh__menu > .pnh__menu-item--has-children > .pnh__submenu {
    position: fixed;
    top: var(--pnh-submenu-top, -9999px);
    left: var(--pnh-submenu-left, -9999px);
    transform: translateX(-50%);
    z-index: 1200;
  }
}

.pnh__submenu--nested {
  top: 0;
  left: 100%;
  margin-left: 4px;
  transform: none;
}

/* 嵌套菜单与三级菜单之间的透明命中区 */
.pnh__submenu > .pnh__menu-item--has-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 12px;
  height: 100%;
  z-index: 200;
}

.pnh__menu-item--has-children:hover > .pnh__submenu {
  display: block;
}

.pnh__submenu .pnh__menu-item {
  width: 100%;
}

.pnh__submenu .pnh__menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 100%;
  min-height: 40px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--pnh-text-on-light);
  border-radius: 0;
  max-width: none;
  text-align: left;
  box-sizing: border-box;
}

.pnh__submenu .pnh__menu-item:hover > .pnh__menu-link,
.pnh__submenu .pnh__menu-item:hover > .pnh__menu-link--label {
  background: #f5f7fa;
  color: var(--pnh-brand);
}

.pnh__menu > .pnh__menu-item > .pnh__menu-link--active,
.pnh__menu > .pnh__menu-item--active > .pnh__menu-link,
.pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label {
  color: var(--pnh-brand);
}

.pnh__submenu .pnh__menu-link--active,
.pnh__submenu .pnh__menu-item--active > .pnh__menu-link,
.pnh__submenu .pnh__menu-item--active > .pnh__menu-link--label {
  color: var(--pnh-text-on-light);
  font-size: 16px;
  font-weight: normal;
  background: transparent;
}

.pnh__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 48px;
  overflow: visible;
}

/* 兼容旧类名：桌面横排时由 .pnh__bar-actions + .pnh__drawer-actions 承担 */
.pnh__bar-actions .pnh__auth,
.pnh__actions .pnh__auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pnh__extra {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0;
}

.pnh__extra:empty {
  display: none;
}

.pnh__search-mount {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pnh__btn--search {
  gap: 6px;
  box-sizing: border-box;
  min-width: 90px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  background: transparent;
  border: 1px solid currentColor;
  line-height: 1;
  color: var(--pnh-brand);
}

.pnh__btn--search .pnh__btn-icon {
  mask: var(--pnh-search-icon) center / contain no-repeat;
  -webkit-mask: var(--pnh-search-icon) center / contain no-repeat;
}

/* 悬浮与默认态一致，避免外部项目全局样式或 .pnh__btn:hover 导致变色 */
.pnh__btn--search:hover {
  opacity: 1;
  background: transparent;
  border-color: var(--pnh-brand);
  color: var(--pnh-brand);
}

.pnh-header-search--open .pnh__btn--search {
  background: #eef1fc;
  border-color: var(--pnh-brand);
  color: var(--pnh-brand);
}

.pnh-header-search--open .pnh__btn--search:hover {
  opacity: 1;
  background: #eef1fc;
  border-color: var(--pnh-brand);
  color: var(--pnh-brand);
}

.pnh-header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1002;
}

.pnh-header-search__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 1001;
  width: 600px;
  max-width: min(680px, calc(100vw - 24px));
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 8px 24px rgb(26 32 54 / 12%);
  transform-origin: right top;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
}

.pnh-header-search--open .pnh-header-search__panel {
  transform: scaleX(1);
  opacity: 1;
  pointer-events: auto;
}

/* 页头搜索下拉面板（与 JournalListSearchSection layout=panel 对齐） */
.journal-list-search--panel {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 14px 16px 16px;
  overflow: visible;
  z-index: auto;
  background-image: none;
  background-color: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 12px;
  box-sizing: border-box;
}

.journal-list-search--panel .journal-list-search__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.journal-list-search--panel .journal-list-search__types {
  display: flex;
  align-items: center;
  column-gap: 20px;
  padding-left: 0;
  height: auto;
  flex-wrap: wrap;
  row-gap: 6px;
}

.journal-list-search--panel .journal-list-search__type {
  display: flex;
  align-items: center;
  column-gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.journal-list-search--panel .journal-list-search__type span:last-child {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1;
}

.journal-list-search--panel .journal-list-search__type--active span:last-child,
.journal-list-search--panel .journal-list-search__type:hover span:last-child {
  color: var(--pnh-brand);
}

.journal-list-search--panel .journal-list-search__type-svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #9ca3af;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.journal-list-search--panel .journal-list-search__type--active .journal-list-search__type-svg,
.journal-list-search--panel .journal-list-search__type:hover .journal-list-search__type-svg {
  color: var(--pnh-brand);
}

.journal-list-search--panel .journal-list-search__type-svg--video {
  width: 18px;
}

.journal-list-search--panel .journal-list-search__bar {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
  flex-wrap: nowrap;
  gap: 8px 12px;
  position: relative;
  z-index: 1;
}

.journal-list-search--panel .journal-list-search__input-wrap {
  width: auto;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 2px;
  border-radius: 22px;
  background: #f4f5f7;
  border: 1px solid #e4e8f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  box-shadow: none;
}

.journal-list-search--panel .journal-list-search__input-wrap--dropdown-open {
  overflow: visible;
}

.journal-list-search--panel .journal-list-search__field-tab {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  z-index: 4;
}

.journal-list-search--panel .journal-list-search__field-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.journal-list-search--panel .journal-list-search__field-current svg {
  width: 10px;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.journal-list-search--panel .journal-list-search__field-tab--open .journal-list-search__field-current svg {
  transform: rotate(180deg);
}

.journal-list-search--panel .journal-list-search__field-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 72px;
  padding: 6px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}

.journal-list-search--panel .journal-list-search__field-item {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.journal-list-search--panel .journal-list-search__field-item:hover,
.journal-list-search--panel .journal-list-search__field-item--active {
  color: #1835d0;
  background: rgb(24 53 208 / 6%);
}

.journal-list-search--panel.journal-list-search--dropdown-open {
  overflow: visible;
  z-index: 2;
}

.journal-list-search--panel.journal-list-search--dropdown-open .journal-list-search__bar {
  z-index: 3;
}

.journal-list-search--panel.journal-list-search--dropdown-open .journal-list-search__input-wrap {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.journal-list-search--panel.journal-list-search--dropdown-open .journal-list-search__advanced {
  position: relative;
  z-index: 1;
}

.journal-list-search--panel .journal-list-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.journal-list-search--panel .journal-list-search__input::placeholder {
  color: #aaa;
}

.journal-list-search--panel .journal-list-search__input-wrap--without-tab .journal-list-search__input {
  padding-left: 16px;
}

.journal-list-search--panel .journal-list-search__submit {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.journal-list-search--panel .journal-list-search__submit svg {
  width: 38px;
  height: 38px;
}

.journal-list-search--panel .journal-list-search__advanced {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 6px;
  column-gap: 0;
}

.journal-list-search--panel .journal-list-search__advanced button {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--pnh-brand);
  cursor: pointer;
  white-space: nowrap;
}

.journal-list-search--panel .journal-list-search__advanced button:hover {
  color: #4453b8;
}

.journal-list-search--panel .journal-list-search__advanced-sep {
  display: none;
}

.pnh__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 17px;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}

.pnh__btn:hover {
  opacity: 0.9;
}

.pnh__btn--login {
  gap: 6px;
  box-sizing: border-box;
  width: 90px;
  min-width: 90px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  background: transparent;
  border: 1px solid currentColor;
  line-height: 1;
}

.pnh__btn-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask: var(--pnh-login-icon) center / contain no-repeat;
  -webkit-mask: var(--pnh-login-icon) center / contain no-repeat;
}

.pnh__btn-text {
  font-size: 14px;
}

.pnh__user-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnh__user-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask: var(--pnh-user-arrow-icon) center / contain no-repeat;
  -webkit-mask: var(--pnh-user-arrow-icon) center / contain no-repeat;
  /* arrow.svg 默认朝上，旋转 180deg 作为下拉箭头 */
  transform: rotate(180deg);
}

.pnh__user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  z-index: 1;
}

.pnh__user-menu:hover {
  z-index: 200;
}

.pnh__user-menu--open {
  z-index: 200;
}

.pnh__user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 6px;
  height: 34px;
  max-width: 180px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: transparent;
  color: var(--pnh-brand);
  cursor: pointer;
  line-height: 1;
}

.pnh__user-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: max(100%, 120px);
  min-width: 120px;
  height: 12px;
  transform: translateX(-50%);
}

.pnh__user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 120px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  transform: translateX(-50%);
  z-index: 201;
}

.pnh__user-menu:hover .pnh__user-dropdown {
  display: block;
}

.pnh__user-menu--open .pnh__user-dropdown {
  display: block;
}

.pnh__user-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pnh-text-on-light);
  text-decoration: none;
  white-space: nowrap;
}

.pnh__user-dropdown-link:hover {
  background: #f5f7fa;
  color: var(--pnh-brand);
}

.pnh__lang {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  overflow: hidden;
  color: #fff;
}

.pnh__lang-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
  line-height: 28px;
  color: inherit;
  z-index: 1;
}

.pnh__lang-btn:not(.pnh__lang-btn--active):hover {
  color: var(--pnh-brand);
}

.pnh__lang-btn--active {
  font-weight: 500;
  z-index: 2;
}

.pnh__lang-btn--active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pnh__lang-btn--zh.pnh__lang-btn--active::before {
  right: -8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.pnh__lang-btn--en.pnh__lang-btn--active::before {
  left: -8px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.platform-nav-header.pnh--home {
  background: transparent;
  box-shadow: none;
}

.pnh--home .pnh__nav {
  margin-right: 5%;
}

.pnh--home .pnh__nav-more {
  color: #C5CBEB;
}

.pnh--home .pnh__nav-more:hover {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.pnh--home .pnh__nav-more:active {
  background: rgb(255 255 255 / 16%);
}

.pnh--home .pnh__menu-link,
.pnh--home .pnh__menu-link--label {
  color: #C5CBEB;
}

.pnh--home .pnh__menu-link:hover,
.pnh--home .pnh__menu-link--label:hover {
  color: #fff;
  background: transparent;
}

.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link,
.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label,
.pnh--home .pnh__menu > .pnh__menu-item > .pnh__menu-link--active {
  color: #fff;
  background: transparent;
}

.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link .pnh__menu-text,
.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label .pnh__menu-text,
.pnh--home .pnh__menu > .pnh__menu-item > .pnh__menu-link--active .pnh__menu-text {
  font-weight: 600;
}

.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link:hover,
.pnh--home .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label:hover,
.pnh--home .pnh__menu > .pnh__menu-item > .pnh__menu-link--active:hover {
  color: #fff;
}

.pnh--home .pnh__submenu .pnh__menu-link,
.pnh--home .pnh__submenu .pnh__menu-link--label {
  color: var(--pnh-brand);
}

.pnh--home .pnh__submenu .pnh__menu-item:hover > .pnh__menu-link,
.pnh--home .pnh__submenu .pnh__menu-item:hover > .pnh__menu-link--label {
  color: var(--pnh-brand);
}

.pnh--home .pnh__btn--login {
  width: 90px;
  min-width: 90px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid #fff;
  color: #fff;
}

.pnh--home .pnh__btn--search {
  border: 1px solid #fff;
  color: #fff;
}

.pnh--home .pnh__btn--search:hover {
  opacity: 1;
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.pnh--home .pnh-header-search--open .pnh__btn--search {
  background: rgb(255 255 255 / 16%);
  border-color: #fff;
  color: #fff;
}

.pnh--home .pnh-header-search--open .pnh__btn--search:hover {
  opacity: 1;
  background: rgb(255 255 255 / 16%);
  border-color: #fff;
  color: #fff;
}

/* 首页页头：中英切换保持白底样式，悬停不改色 */
.pnh--home .pnh__lang {
  color: #fff;
}

.pnh--home .pnh__lang-btn:not(.pnh__lang-btn--active):hover {
  color: inherit;
}

.pnh--home .pnh__lang-btn--active {
  color: var(--pnh-brand);
}

.pnh--home .pnh__lang-btn--active::before {
  background: #fff;
}

.pnh--home .pnh__user-trigger {
  border-color: #fff;
  color: #fff;
}

.pnh--home .pnh__user-name {
  color: inherit;
}

.platform-nav-header.pnh--page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: var(--pnh-shadow);
}

.pnh--page .pnh__menu-link,
.pnh--page .pnh__menu-link--label {
  color: var(--pnh-nav-inactive);
  font-size: 16px;
}

.pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link,
.pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label,
.pnh--page .pnh__menu > .pnh__menu-item > .pnh__menu-link--active {
  color: var(--pnh-brand);
}

.pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link .pnh__menu-text,
.pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label .pnh__menu-text,
.pnh--page .pnh__menu > .pnh__menu-item > .pnh__menu-link--active .pnh__menu-text {
  font-size: 20px;
  font-weight: 600;
  transform: translateY(-2px);
}

.pnh--page .pnh__menu-link:hover {
  color: var(--pnh-brand);
}

.pnh--page .pnh__btn--login {
  width: 90px;
  min-width: 90px;
  height: 34px;
  border-radius: 5px;
  background: var(--pnh-brand);
  border: none;
  color: #fff;
}

.pnh--page .pnh__btn--register {
  background: transparent;
  color: var(--pnh-brand);
  border: 1px solid var(--pnh-brand);
}

.pnh--page .pnh__lang {
  color: #8E9AB5;
}

.pnh--page .pnh__lang-btn--active {
  color: #fff;
  font-weight: 600;
}

.pnh--page .pnh__lang-btn--active::before {
  background: var(--pnh-brand);
}

.pnh--page .pnh__user-trigger {
  border-color: var(--pnh-brand);
  color: var(--pnh-brand);
}

.pnh--page .pnh__user-name {
  color: inherit;
}

/* 桌面中等宽度：压缩间距与 logo，避免顶栏被裁切 */
@media (min-width: 1025px) and (max-width: 1399px) {
  .pnh__inner {
    gap: 24px;
    padding: 0 16px;
  }

  .pnh__nav {
    margin-right: 0;
  }

  .pnh--page:not(.pnh--en) .pnh__logo img {
    width: min(400px, 32vw);
    max-width: min(400px, 32vw);
  }
}

@media (max-width: 1024px) {
  .pnh__inner {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    gap: 8px;
  }

  .pnh__logo {
    flex: 1;
    min-width: 0;
    order: 1;
  }

  /* 窄屏 logo_mobile：沿用 48px 锚点高度等比缩放（与加 picture 后、改 PC 宽前一致） */
  .pnh__logo a {
    height: 48px;
  }

  .pnh__logo picture {
    height: 100%;
  }

  .pnh__logo img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
  }

  .pnh--en .pnh__logo a {
    height: 60px;
  }

  .pnh--en .pnh__logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    max-height: 60px;
  }

  .pnh__bar-actions {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    gap: 8px;
  }

  .pnh__bar-actions .pnh__auth {
    gap: 8px;
  }

  /* 文献语言等扩展位：顶栏登录右侧，不进抽屉 */
  .pnh__bar-actions .pnh__extra {
    width: auto;
    max-width: min(120px, 28vw);
    margin-right: 0;
  }

  /* 窄屏顶栏：搜索/登录仅展示图标，节省横向空间 */
  .pnh__bar-actions .pnh__btn--search,
  .pnh__bar-actions .pnh__btn--login {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .pnh__bar-actions .pnh__btn--search .pnh__btn-text,
  .pnh__bar-actions .pnh__btn--login .pnh__btn-text {
    display: none;
  }

  .pnh__bar-actions .pnh__user-trigger {
    max-width: 120px;
    height: 40px;
    padding: 0 10px;
  }

  .pnh__bar-actions .pnh__user-name {
    max-width: 72px;
  }

  /* 触屏 :hover 粘滞，禁用 hover 展开，改由 .pnh__user-menu--open 控制 */
  .pnh__user-menu:hover .pnh__user-dropdown {
    display: none;
  }

  .pnh__user-menu--open .pnh__user-dropdown,
  .pnh__user-menu--open:hover .pnh__user-dropdown {
    display: block;
  }

  .pnh__menu-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
  }

  .pnh__nav {
    order: unset;
    display: block;
    flex: 1;
    max-width: none;
    width: 100%;
    margin-right: 0;
  }

  .pnh__nav-viewport {
    overflow: visible;
  }

  .pnh__nav-more {
    display: none !important;
  }

  .pnh__drawer-actions {
    order: unset;
    padding-right: 0;
  }

  .pnh__drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(336px, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 16px 0 0 16px;
    /* box-shadow: -12px 0 40px rgb(26 32 54 / 18%); */
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .platform-nav-header--drawer-open .pnh__drawer {
    transform: translateX(0);
  }

  .pnh__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: var(--pnh-header-height);
    padding: 0 16px 0 20px;
    border-bottom: 1px solid #eef1f8;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  }

  .pnh__drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #141929;
    letter-spacing: 0.02em;
  }

  .pnh__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #eef1fc;
    color: #6b7a9f;
    cursor: pointer;
  }

  .pnh__drawer-close:active {
    background: #e2e7f8;
  }

  .pnh__drawer-close-icon,
  .pnh__drawer-close-icon::before {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }

  .pnh__drawer-close-icon {
    position: relative;
    transform: rotate(45deg);
  }

  .pnh__drawer-close-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: rotate(90deg);
  }

  .pnh__drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(20 25 41 / 42%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .pnh__drawer-backdrop[hidden] {
    display: none;
  }

  .pnh__nav {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 12px 12px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }

  .pnh__nav-viewport {
    width: 100%;
    overflow: visible;
  }

  .pnh__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    --pnh-top-menu-height: 48px;
  }

  .pnh__menu > .pnh__menu-item {
    width: 100%;
    height: auto;
    min-height: var(--pnh-top-menu-height);
    justify-content: flex-start;
  }

  .pnh__menu > .pnh__menu-item > .pnh__menu-link,
  .pnh__menu > .pnh__menu-item > .pnh__menu-link--label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: var(--pnh-top-menu-height);
    padding: 0 14px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .pnh__menu > .pnh__menu-item .pnh__menu-text {
    justify-content: flex-start;
    font-size: 16px;
    line-height: 1.4;
  }

  .pnh__menu > .pnh__menu-item > .pnh__menu-link--active,
  .pnh__menu > .pnh__menu-item--active > .pnh__menu-link,
  .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label {
    background: linear-gradient(90deg, rgba(90, 112, 230, 0.12) 0%, rgba(90, 112, 230, 0.04) 100%);
    box-shadow: inset 3px 0 0 var(--pnh-brand);
  }

  .pnh__menu > .pnh__menu-item > .pnh__menu-link--active .pnh__menu-text,
  .pnh__menu > .pnh__menu-item--active > .pnh__menu-link .pnh__menu-text,
  .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label .pnh__menu-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--pnh-brand);
    transform: none;
  }

  /*
   * 触屏会「粘住」:hover，展开非当前路由项时像高亮，收起后还不消失。
   * 窄屏菜单禁用 hover 变色；真正路由高亮仍走 --active。
   */
  .pnh--page .pnh__menu-link:hover,
  .pnh--page .pnh__menu-link--label:hover,
  .pnh--home .pnh__drawer .pnh__menu-link:hover,
  .pnh--home .pnh__drawer .pnh__menu-link--label:hover {
    color: inherit;
  }

  .pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link:hover,
  .pnh--page .pnh__menu > .pnh__menu-item--active > .pnh__menu-link--label:hover,
  .pnh--page .pnh__menu > .pnh__menu-item > .pnh__menu-link--active:hover {
    color: var(--pnh-brand);
  }

  .pnh__submenu .pnh__menu-item:hover > .pnh__menu-link,
  .pnh__submenu .pnh__menu-item:hover > .pnh__menu-link--label {
    background: transparent;
    color: inherit;
  }

  /* 展开中的非路由项：仅浅底提示「已打开」，不要品牌高亮条 */
  .pnh__menu > .pnh__menu-item--has-children.pnh__menu-item--expanded:not(.pnh__menu-item--active) > .pnh__menu-link,
  .pnh__menu > .pnh__menu-item--has-children.pnh__menu-item--expanded:not(.pnh__menu-item--active) > .pnh__menu-link--label {
    background: #f4f6fc;
    box-shadow: none;
    color: var(--pnh-nav-inactive);
  }

  .pnh__menu > .pnh__menu-item--has-children.pnh__menu-item--expanded:not(.pnh__menu-item--active) > .pnh__menu-link .pnh__menu-text,
  .pnh__menu > .pnh__menu-item--has-children.pnh__menu-item--expanded:not(.pnh__menu-item--active) > .pnh__menu-link--label .pnh__menu-text {
    color: var(--pnh-nav-inactive);
    font-weight: 600;
  }

  .pnh__menu-link {
    max-width: none;
  }

  /* 有子菜单的项：右侧展开箭头 */
  .pnh__menu-item--has-children > .pnh__menu-link,
  .pnh__menu-item--has-children > .pnh__menu-link--label {
    padding-right: 36px;
    position: relative;
  }

  /*
   * 菜单项默认 display:flex（横排）。嵌套子菜单改为 static 后会变成
   * 与标题并排的 flex 子项（截图里「文献」挤在左侧）。窄屏强制纵向手风琴。
   */
  .pnh__menu > .pnh__menu-item--has-children,
  .pnh__submenu > .pnh__menu-item--has-children {
    flex-direction: column;
    align-items: stretch;
  }

  .pnh__menu-item--has-children > .pnh__menu-link::after,
  .pnh__menu-item--has-children > .pnh__menu-link--label::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #8b95c8;
    border-bottom: 2px solid #8b95c8;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .pnh__menu-item--has-children.pnh__menu-item--expanded > .pnh__menu-link::after,
  .pnh__menu-item--has-children.pnh__menu-item--expanded > .pnh__menu-link--label::after {
    transform: translateY(-20%) rotate(-135deg);
  }

  /* 窄屏禁用 hover 展开，改由 .pnh__menu-item--expanded 控制 */
  .pnh__menu-item--has-children:hover > .pnh__submenu {
    display: none;
  }

  /* 关闭桌面用的透明 hover 桥接区，避免误占位 */
  .pnh__menu > .pnh__menu-item--has-children::before,
  .pnh__submenu > .pnh__menu-item--has-children::before {
    display: none;
  }

  .pnh__menu-item--has-children.pnh__menu-item--expanded > .pnh__submenu {
    display: block;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px;
    padding: 6px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: #f4f6fc;
  }

  .pnh__submenu > .pnh__menu-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pnh__submenu > .pnh__menu-item > .pnh__menu-link,
  .pnh__submenu > .pnh__menu-item > .pnh__menu-link--label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
  }

  .pnh__submenu > .pnh__menu-item--has-children:hover > .pnh__submenu {
    display: none;
  }

  .pnh__submenu > .pnh__menu-item--has-children.pnh__menu-item--expanded > .pnh__submenu {
    display: block;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    margin: 4px 0;
    padding: 4px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: #e9eefb;
  }

  .pnh__submenu--nested {
    top: auto;
    left: auto;
    margin-left: 0;
    transform: none;
  }

  .pnh__drawer-actions {
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    border-top: 1px solid #eef1f8;
    background: #fafbff;
  }

  .pnh__drawer-actions:empty {
    display: none;
  }

  .pnh__lang {
    justify-content: flex-start;
  }

  .pnh-header-search {
    width: auto;
  }

  .pnh-header-search__panel {
    position: fixed;
    top: calc(var(--pnh-header-height) + 8px);
    right: 12px;
    width: calc(100vw - 20px);
    max-width: none;
    transform-origin: top center;
  }

  .pnh--home .pnh__menu-toggle {
    color: var(--pnh-text-on-dark);
  }

  .pnh--page .pnh__menu-toggle {
    color: var(--pnh-brand);
  }

  .pnh--home .pnh__drawer {
    background: #fff;
    color: var(--pnh-text-on-light);
  }

  .pnh--home .pnh__drawer .pnh__menu-link,
  .pnh--home .pnh__drawer .pnh__menu-link--label {
    color: var(--pnh-nav-inactive);
  }
}
