.site-header {
  width: 100%;
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-black-alpha-5);
  backdrop-filter: blur(2px);
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 55px;
}

.site-header__left {
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
  display: flex;
}

.site-header__logo-wrap {
  justify-content: flex-start;
  align-items: flex-end;
  display: flex;
  text-decoration: none;
  color: inherit;
}

a.site-header__nav-item {
  text-decoration: none;
  color: inherit;
}

.site-header__logo {
  display: block;
  width: auto;
  height: 28px;
}

@media (min-width: 769px) {
  .site-header__logo-wrap {
    order: -1;
  }

  .site-header__nav {
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    border: none;
    box-shadow: none;
  }

  /* Desktop: hide mobile drawer chrome, keep horizontal nav */
  .site-header__drawer-backdrop,
  .site-header__drawer-top,
  .site-header__drawer-footer {
    display: none;
  }

  .site-header__drawer-main {
    display: flex;
    align-items: center;
    gap: 50px;
  }
}

.site-header__nav-item {
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
}

.site-header__nav-item--wide {
  width: 50px;
}

.site-header__nav-text {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.site-header__nav-text--active {
  color: var(--color-primary-500);
}

.site-header__dropdown-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.site-header__nav-dropdown.is-open .site-header__dropdown-icon {
  transform: rotate(180deg);
}

.site-header__nav-dropdown {
  position: relative;
}

.site-header__nav-trigger {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.site-header__nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 108px;
  display: none;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid var(--color-neutral-50);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 110;
}

.site-header__nav-dropdown.is-open .site-header__nav-menu {
  display: flex;
}

/* PC 悬浮展开:在触发器与面板之间的 10px 间隙铺一层透明悬浮桥,鼠标下移时 hover 不断开 */
@media (min-width: 769px) and (hover: hover) {
  .site-header__nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
  }
}

.site-header__nav-menu-item {
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
}

.site-header__nav-menu-item:hover {
  background: var(--color-neutral-50);
}

.site-header__nav-menu-item--active {
  color: var(--color-primary-500);
  font-weight: 500;
}

.site-header__nav-menu-item + .site-header__nav-menu-item {
  border-top: 1px solid var(--color-neutral-50);
}

/* 活动中心下拉「我的资产」:标签是裸文本节点、资产块是 inline-flex,
   按基线排会让标签比图标/数值低 3~4px,整行改 flex 居中对齐并留出标签间距。
   图标对齐设计稿 39262:28479,四个图标原始宽高不一,只锁高度、宽度自适应 */
.site-header__nav-menu-item--assets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-header__nav-menu-assets {
  display: inline-flex;
  align-items: center;
}

/* hidden 属性会被上面的 display 规则压掉,必须显式兜回来 */
.site-header__nav-menu-assets[hidden] {
  display: none;
}

.site-header__nav-asset {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.site-header__nav-asset + .site-header__nav-asset {
  margin-left: 8px;
}

.site-header__nav-asset-icon {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.site-header__right {
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  display: flex;
}

.site-header__search {
  width: 400px;
  padding: 10px 18px;
  background: var(--surface-input);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid var(--color-black-alpha-5);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.site-header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  /* ≥16px:iPadOS 桌面模式同样会触发聚焦放大 */
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 20px;
}

.site-header__search-input::placeholder {
  color: var(--text-placeholder);
}

.site-header__search-input::-webkit-search-cancel-button {
  display: none;
}

/* 清除按钮用 visibility 而非 display 切换:搜索条宽度受内容影响,
   按 display 切换会在输入第一个字时整条突然变宽 24px(16px 图标 + 8px 间距) */
.site-header__search-clear {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  margin-right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.site-header__search-clear.is-visible {
  visibility: visible;
}

.site-header__search-clear--layer,
.site-header__search-clear--layer.is-visible {
  display: none;
  margin-right: 0;
}

.site-header__search-clear-icon {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.site-header__search-submit {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header__search-trigger--h5 {
  display: none;
}

.site-header__search-overlay {
  display: none;
}

.site-header__search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: none;
}

.site-header__search-icon--h5 {
  display: none;
}

.site-header__avatar--guest {
  background: var(--color-primary-alpha-10);
  position: relative;
}

.site-header__avatar--guest::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 8px;
  height: 9px;
  background: var(--color-primary-500);
  border-radius: 6px 1px 6px 6px;
}

.site-header__avatar--guest::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 17px;
  width: 16px;
  height: 7px;
  background: var(--color-primary-500);
  border-radius: 9999px;
}

.site-header__avatar--guest .site-header__avatar-img {
  display: none;
}

.site-header__divider {
  width: 1px;
  height: 12px;
  background: var(--color-black-alpha-10);
}

.site-header__user {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
  text-decoration: none;
}

.site-header__avatar {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 999px;
  flex-shrink: 0;
}

.site-header__avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-header__user-name {
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
}

.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__toggle-icon {
  display: block;
}

/* H5 left drawer navigation */

@media (max-width: 768px) {
  body.site-header-drawer-open {
    overflow: hidden;
  }

  .site-header__drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.site-header--open .site-header__drawer-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 260;
    width: min(303px, 81vw);
    padding: 60px 36px;
    box-sizing: border-box;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0, var(--surface-foreground) 160px),
      linear-gradient(90deg, #ffd8df, #fef6ce),
      var(--surface-foreground);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    border: none;
    box-shadow: none;
  }

  body.site-header--open .site-header__nav {
    transform: translateX(0);
  }

  .site-header__drawer-top {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .site-header__drawer-close {
    position: absolute;
    top: 26px;
    right: 10px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .site-header__drawer-close-icon {
    display: block;
    width: 14px;
    height: 14px;
  }

  .site-header__drawer-logo {
    height: 36px;
    width: auto;
    display: block;
  }

  .site-header__drawer-main {
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 11px;
  }

  .site-header__drawer-main > .site-header__nav-item,
  .site-header__drawer-main > .site-header__nav-dropdown > .site-header__nav-trigger {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 9px;
    border: 1px solid var(--color-black-alpha-5);
    background: var(--surface-foreground);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
  }

  .site-header__drawer-main > .site-header__nav-dropdown > .site-header__nav-trigger {
    justify-content: space-between;
  }

  .site-header__drawer-main > .site-header__nav-item.site-header__nav-item--active,
  .site-header__drawer-main > .site-header__nav-dropdown--active > .site-header__nav-trigger {
    padding-left: 23px;
    padding-right: 23px;
  }

  .site-header__drawer-main > .site-header__nav-item {
    text-decoration: none;
    color: inherit;
  }

  .site-header__drawer-main .site-header__nav-item--wide {
    width: 100%;
  }

  .site-header__drawer-main .site-header__nav-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--text-primary);
  }

  .site-header__drawer-main .site-header__nav-text--active {
    color: var(--color-primary-500);
    font-weight: 500;
  }

  .site-header__drawer-main .site-header__dropdown-icon {
    display: block;
    width: 12px;
    height: 8px;
    content: url('/static/images/tringle_down_grey.svg');
  }

  .site-header__drawer-main > .site-header__nav-dropdown {
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
  }

  .site-header__drawer-main .site-header__nav-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 11px 12px 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .site-header__drawer-main .site-header__nav-dropdown.is-open .site-header__nav-menu {
    display: flex;
  }

  .site-header__drawer-main .site-header__nav-menu-item {
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-header__drawer-main .site-header__nav-menu-item--active {
    color: var(--color-primary-500);
    font-weight: 500;
  }

  .site-header__drawer-main .site-header__nav-menu-item + .site-header__nav-menu-item {
    border-top: none;
  }

  .site-header__drawer-footer {
    display: flex;
    width: 100%;
    margin-top: auto;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .site-header__drawer-contacts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 12px;
    opacity: 0.8;
    color: var(--text-primary);
    font-size: 14px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
  }
  .site-header__drawer-contacts span a {
    color: var(--text-primary);
  }

  .site-header__drawer-social {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .site-header__drawer-social-icon img {
    width: 24px;
    height: 24px;
    display: block;
  }

  .site-header__drawer-social-divider {
    width: 1px;
    height: 15px;
    background: var(--color-black-alpha-20);
  }

  .site-header {
    height: 48px;
    min-height: 48px;
    background: var(--surface-foreground);
    backdrop-filter: none;
    border-bottom: none;
    overflow: hidden;
    display: block;
    position: sticky;
    top: 0;
  }

  .site-header__inner {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 12px;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
    gap: 0;
  }

  .site-header__left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    gap: 0;
  }

  .site-header__drawer-backdrop,
  .site-header__nav {
    position: fixed;
  }

  body:not(.site-header--open) .site-header__nav {
    transform: translateX(-100%);
  }

  .site-header__toggle {
    display: flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 0;
  }

  .site-header__toggle-icon {
    width: 24px;
    height: 24px;
  }

  .site-header__logo-wrap {
    flex: none;
    /* 绝对定位到 inner 中线:space-between 两翼不等宽,静态流会让 logo 偏左 */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 4px;
  }

  .site-header__logo {
    width: 74px;
    height: 24px;
    display: block;
    object-fit: contain;
  }

  .site-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: none;
    gap: 12px;
  }

  .site-header__search-icon--pc {
    display: none;
  }

  .site-header__search-icon--h5 {
    display: block;
    width: 24px;
    height: 24px;
  }

  .site-header__search-input--pc,
  .site-header__search-submit--pc,
  .site-header__search-clear--pc,
  .site-header__search-clear--pc.is-visible {
    display: none;
  }

  /* 同 PC:浮层里也常驻占位,只切 visibility(基础规则已给 hidden/visible) */
  .site-header__search-clear--layer,
  .site-header__search-clear--layer.is-visible {
    display: inline-flex;
  }

  .site-header__search-trigger--h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }

  .site-header__search {
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-header__search-icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  .site-header__search-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.site-header-search-open .site-header__search-overlay {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }

  body.site-header-search-open {
    overflow: hidden;
  }

  .site-header__search-backdrop {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .site-header__search-panel {
    position: absolute;
    top: 56px;
    left: 16px;
    right: 16px;
    z-index: 1;
  }

  .site-header__search-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface-foreground);
    border-radius: 36px;
    overflow: hidden;
  }

  .site-header__search-layer-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    /* ≥16px:iOS Safari 聚焦 <16px 输入框会自动放大页面 */
    font-size: 16px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
  }

  .site-header__search-layer-input::placeholder {
    color: #757575;
  }

  .site-header__search-layer-input::-webkit-search-cancel-button {
    display: none;
  }

  .site-header__search-layer-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary-500);
    color: rgba(0, 0, 0, 0.9);
    font-size: 12px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
    white-space: nowrap;
  }

  .site-header__divider {
    display: none;
  }

  .site-header__user {
    flex-shrink: 0;
    gap: 0;
  }

  .site-header__avatar {
    width: 24px;
    height: 24px;
  }

  .site-header__avatar--guest::before {
    left: 9px;
    top: 5.25px;
    width: 6px;
    height: 6.75px;
  }

  .site-header__avatar--guest::after {
    left: 6px;
    top: 12.75px;
    width: 12px;
    height: 5.25px;
  }

  .site-header__user-name {
    display: none;
  }
}

/* 中间宽度带(769-1450px):压缩间距与搜索框,防止内容超出视口被两侧裁切 */
@media (min-width: 769px) and (max-width: 1450px) {
  .site-header__inner {
    justify-content: space-between;
    gap: clamp(12px, 1.5vw, 55px);
  }

  .site-header__left {
    gap: clamp(14px, 2.5vw, 60px);
    flex-shrink: 0;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: clamp(12px, 2vw, 50px);
  }

  .site-header__nav-text {
    font-size: clamp(14px, 1.15vw, 16px);
  }

  .site-header__right {
    min-width: 0;
    gap: clamp(8px, 1.5vw, 24px);
  }

  .site-header__search {
    width: auto;
    flex: 1 1 clamp(120px, 24vw, 400px);
    max-width: 400px;
    min-width: 0;
  }

  .site-header__user-name {
    max-width: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .site-header__divider,
  .site-header__user-name {
    display: none;
  }
}

/* PC:导航新增「活动中心」后防溢出 —— 项间距回归设计稿 32px,搜索框可收缩,窄视口分级缩距 */
@media (min-width: 769px) {
  /* 头部内容与版心对齐:左右不再多留白,logo 左缘/头像右缘正好压在页面内容的两侧边界上
     (底色与下边框仍是通栏,只有内容收进版心) */
  .site-header__inner {
    max-width: calc(var(--layout-max-width) + 2 * var(--layout-padding-x));
    margin: 0 auto;
    justify-content: space-between;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: 32px;
  }

  .site-header__search {
    width: auto;
    flex: 0 1 400px;
    min-width: 220px;
  }

  .site-header__search-input--pc {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header__logo-wrap {
    flex-shrink: 0;
  }

  .site-header__user {
    flex-shrink: 0;
  }

  .site-header__user-name {
    max-width: 6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1680px) {
  .site-header__inner {
    gap: 32px;
  }

  .site-header__left {
    gap: 32px;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1360px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-header__left {
    gap: 20px;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: 16px;
  }

  .site-header__search {
    min-width: 180px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .site-header__left {
    gap: 14px;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: 12px;
  }

  .site-header__search {
    min-width: 140px;
  }

  .site-header__right {
    gap: 14px;
  }
}

/* 活动中心下拉:资产数值仅 PC 展示(PC 稿 39327:125404 带数值,H5 侧边菜单稿 39070:49247 仅「我的资产」) */
@media (max-width: 768px) {
  .site-header__nav-menu-assets {
    display: none;
  }
}

/* 769-950px:完整搜索框 + 全部导航项放不下(实测 769px 需要 848px,右侧头像被裁)。
   搜索收成图标、点开复用 H5 那套搜索浮层,并按此档收紧各处间距。
   导航项由接口下发,项数变多时优先继续压这一档的 gap。 */
@media (min-width: 769px) and (max-width: 950px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__left {
    gap: 10px;
  }

  .site-header__right {
    gap: 10px;
  }

  .site-header__nav,
  .site-header__drawer-main {
    gap: 8px;
  }

  /* 导航项按内容取宽:字号与箭头一并压小,给接口后续新增分类留余量 */
  .site-header__nav-text {
    font-size: 14px;
  }

  .site-header__nav-item--wide {
    width: auto;
  }

  .site-header__dropdown-icon {
    width: 14px;
    height: 14px;
  }

  .site-header__logo {
    height: 24px;
  }

  .site-header__divider,
  .site-header__user-name {
    display: none;
  }

  .site-header__search {
    flex: none;
    width: 24px;
    min-width: 0;
    height: 24px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    justify-content: center;
    cursor: pointer;
  }

  .site-header__search-input--pc,
  .site-header__search-submit--pc,
  .site-header__search-clear--pc,
  .site-header__search-clear--pc.is-visible,
  .site-header__search-icon--pc {
    display: none;
  }

  .site-header__search-trigger--h5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }

  .site-header__search-icon--h5 {
    display: block;
    width: 24px;
    height: 24px;
  }

  /* 搜索浮层:PC 头部 90px 高,浮层挂在其下方,面板限宽居中(H5 是通栏) */
  .site-header__search-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.site-header-search-open .site-header__search-overlay {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }

  body.site-header-search-open {
    overflow: hidden;
  }

  .site-header__search-backdrop {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .site-header__search-panel {
    position: absolute;
    top: 106px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    z-index: 1;
  }

  .site-header__search-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-foreground);
    border-radius: 36px;
    overflow: hidden;
  }

  .site-header__search-layer-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    /* ≥16px:iOS Safari 聚焦 <16px 输入框会自动放大页面 */
    font-size: 16px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
  }

  .site-header__search-layer-input::placeholder {
    color: #757575;
  }

  .site-header__search-layer-input::-webkit-search-cancel-button {
    display: none;
  }

  /* 同 PC:浮层里也常驻占位,只切 visibility(基础规则已给 hidden/visible) */
  .site-header__search-clear--layer,
  .site-header__search-clear--layer.is-visible {
    display: inline-flex;
  }

  .site-header__search-layer-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary-500);
    color: rgba(0, 0, 0, 0.9);
    font-size: 13px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
    white-space: nowrap;
  }
}
