

body.hiwawa-device-pc {
  --hiwawa-nav-accent: #0f172a;
  --hiwawa-nav-active: #ff6b35;
  --hiwawa-nav-active-2: #ff9f1c;
  --hiwawa-nav-muted: #64748b;
  --hiwawa-nav-text: #0f172a;
}

body.hiwawa-device-pc .hiwawa-pc-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--hiwawa-nav-text);
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

body.hiwawa-device-pc .hiwawa-pc-header__inner {
  box-sizing: border-box;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--page-gutter-x, 12px);
  min-height: var(--header-h);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
}

body.hiwawa-device-pc .hiwawa-pc-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  max-width: 100%;
  color: var(--hiwawa-nav-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

body.hiwawa-device-pc .hiwawa-pc-header__brand:hover,
body.hiwawa-device-pc .hiwawa-pc-header__brand:focus-visible {
  color: var(--hiwawa-nav-accent);
  outline: none;
}

body.hiwawa-device-pc .hiwawa-pc-header__logo {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

body.hiwawa-device-pc .hiwawa-pc-header__site-name {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(320px, 46vw);
}

body.hiwawa-device-pc .hiwawa-pc-header__nav {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px 8px;
  min-width: 0;
  /* 下拉菜单在 nav 内绝对定位，不能用 overflow:hidden 裁剪整块 nav */
  overflow: visible;
}

/* 仅裁剪普通链接行，「关于我们」下拉在 scroll 外侧，菜单可正常溢出显示 */
body.hiwawa-device-pc .hiwawa-pc-header__nav-scroll {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 2px 8px;
  overflow: hidden;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a {
  position: relative;
  color: var(--hiwawa-nav-muted);
  text-decoration: none;
  padding: 10px 12px 12px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease 0s;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1) 0s;
  pointer-events: none;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a:hover {
  color: var(--hiwawa-nav-active);
  transition: color 0.15s ease 0s;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a:hover::after {
  transform: scaleX(1);
  transition-delay: 0s;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a.is-active {
  color: var(--hiwawa-nav-active);
  font-weight: 600;
  transition: color 0.2s ease 0s;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a.is-active::after {
  transform: scaleX(1);
  height: 2px;
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
  transition-delay: 0s;
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a.is-active:hover::after {
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
}

body.hiwawa-device-pc .hiwawa-pc-header__nav a:focus-visible {
  outline: 2px solid rgba(255, 107, 53, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  flex-shrink: 0;
}

/* 按钮与菜单之间的「搭桥」，避免鼠标经过空隙时误判为离开 */
body.hiwawa-device-pc .hiwawa-pc-nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
  z-index: 210;
  pointer-events: auto;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--hiwawa-nav-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease 0s;
  z-index: 1;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1) 0s;
  pointer-events: none;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover,
body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-open {
  color: var(--hiwawa-nav-active);
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover:not(.is-open) {
  transition: color 0.15s ease 0s;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover::after,
body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-open::after {
  transform: scaleX(1);
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover:not(.is-open)::after {
  transition-delay: 0s;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-open {
  transition: color 0.2s ease 0s;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-active {
  color: var(--hiwawa-nav-active);
  font-weight: 600;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
  transition-delay: 0s;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-active:hover::after,
body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-active.is-open::after {
  background: linear-gradient(90deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger i {
  font-size: 0.62rem;
  transition: transform 0.2s ease;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger.is-open i {
  transform: rotate(180deg);
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  z-index: 220;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu[hidden] {
  display: none !important;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hiwawa-nav-muted);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu a:hover,
body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu a:focus-visible {
  color: var(--hiwawa-nav-active);
  background: transparent;
  outline: none;
}

body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__menu a.is-active {
  color: var(--hiwawa-nav-active);
  font-weight: 600;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.hiwawa-device-pc .hiwawa-pc-header__nav a,
  body.hiwawa-device-pc .hiwawa-pc-header__nav a:hover,
  body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger,
  body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover {
    transition-delay: 0s !important;
  }

  body.hiwawa-device-pc .hiwawa-pc-header__nav a::after,
  body.hiwawa-device-pc .hiwawa-pc-header__nav a:hover::after,
  body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger::after,
  body.hiwawa-device-pc .hiwawa-pc-nav-dropdown__trigger:hover::after {
    transition-duration: 0.08s;
    transition-delay: 0s !important;
  }
}

body.hiwawa-device-pc .hiwawa-pc-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions .btn {
  min-width: 58px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.25;
  padding: 9px 16px;
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions .btn--ghost {
  background: #fff;
  color: var(--hiwawa-nav-text);
  border: 1px solid #f66600;
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions .btn--ghost:hover {
  background: rgba(246, 102, 0, 0.06);
  border-color: #e65c00;
  color: #c45500;
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions .btn--primary {
  background: linear-gradient(135deg, #f66600 0%, #ff8533 48%, #ffb366 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(246, 102, 0, 0.28);
}

body.hiwawa-device-pc .hiwawa-pc-header .site-header__guest-actions .btn--primary:hover {
  background: linear-gradient(135deg, #e65c00 0%, #f66600 45%, #ff9f4d 100%);
  box-shadow: 0 4px 14px rgba(246, 102, 0, 0.35);
}

body.hiwawa-device-pc .user-actions-mobile {
  display: none !important;
}

body.hiwawa-device-pc .hiwawa-pc-header__user-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

body.hiwawa-device-pc .hiwawa-pc-header__vip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px 10px;
  margin: 0 0 0 -6px;
  background: transparent;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #d4a017;
  transition: color 0.15s ease;
}

body.hiwawa-device-pc .hiwawa-pc-header__vip-link:hover,
body.hiwawa-device-pc .hiwawa-pc-header__vip-link:focus-visible {
  color: #f0c52e;
  outline: none;
}

/* ---- PC 导航搜索 ---- */

body.hiwawa-device-pc .hiwawa-pc-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
}

body.hiwawa-device-pc .hiwawa-pc-search__form {
  display: flex;
  align-items: center;
  height: 36px;
}

body.hiwawa-device-pc .hiwawa-pc-search__input {
  width: 0;
  height: 36px;
  padding: 0;
  border: 1.5px solid transparent;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #f5f6fa;
  color: var(--hiwawa-nav-text, #222);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              border-color 0.2s ease;
}

body.hiwawa-device-pc .hiwawa-pc-search.is-open .hiwawa-pc-search__input {
  width: 220px;
  padding: 0 12px;
  border-color: rgba(15, 23, 42, 0.12);
  opacity: 1;
}

body.hiwawa-device-pc .hiwawa-pc-search__input:focus {
  border-color: var(--hiwawa-nav-active);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

body.hiwawa-device-pc .hiwawa-pc-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  background: transparent;
  color: var(--hiwawa-nav-muted);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, border-radius 0.3s ease;
}

body.hiwawa-device-pc .hiwawa-pc-search.is-open .hiwawa-pc-search__btn {
  background: linear-gradient(135deg, var(--hiwawa-nav-active), var(--hiwawa-nav-active-2));
  color: #fff;
  border-color: transparent;
  border-radius: 0 8px 8px 0;
}

body.hiwawa-device-pc .hiwawa-pc-search__btn:hover {
  color: var(--hiwawa-nav-active);
}

body.hiwawa-device-pc .hiwawa-pc-search.is-open .hiwawa-pc-search__btn:hover {
  color: #fff;
  opacity: 0.88;
}

body.hiwawa-device-pc .user-dropdown--pc {
  display: inline-block;
  vertical-align: middle;
  width: 118px;
  position: relative;
}

body.hiwawa-device-pc .user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: #fff;
  color: var(--hiwawa-nav-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
}

body.hiwawa-device-pc .user-dropdown__identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.hiwawa-device-pc .user-dropdown__avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #fff;
}

body.hiwawa-device-pc .user-dropdown__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

body.hiwawa-device-pc .user-dropdown__trigger:hover,
body.hiwawa-device-pc .user-dropdown__trigger:focus-visible {
  border-color: rgba(15, 23, 42, 0.22);
  outline: none;
}

body.hiwawa-device-pc .user-dropdown__trigger.is-open {
  border-color: rgba(15, 23, 42, 0.28);
}

body.hiwawa-device-pc .user-dropdown__name {
  display: inline-block;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

body.hiwawa-device-pc .user-dropdown__caret {
  font-size: 0.55rem;
  line-height: 1;
  opacity: 0.95;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.hiwawa-device-pc .user-dropdown__trigger.is-open .user-dropdown__caret {
  transform: rotate(180deg);
}

body.hiwawa-device-pc .user-dropdown__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 200;
}

body.hiwawa-device-pc .user-dropdown__menu[hidden] {
  display: none !important;
}

body.hiwawa-device-pc .user-dropdown__menu:not([hidden]) {
  display: block;
}

body.hiwawa-device-pc .user-dropdown__menu a {
  display: block;
  padding: 8px 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  line-height: 1.35;
  word-break: keep-all;
}

body.hiwawa-device-pc .user-dropdown__menu a:hover,
body.hiwawa-device-pc .user-dropdown__menu a:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: var(--hiwawa-nav-text);
  outline: none;
}

body.hiwawa-device-pc .user-dropdown__sep {
  height: 1px;
  margin: 6px 8px;
  padding: 0;
  background: #ececf0;
  list-style: none;
}
