/* Shared header only; page content and footer retain their existing styles. */
#yk-portal-v2 .yp-header-refresh {
  --yh-paper: #fff;
  --yh-soft: #f4f7fa;
  --yh-ink: #182d47;
  --yh-muted: #768397;
  --yh-secondary: #52657c;
  --yh-line: #e5ebf1;
  --yh-blue: #2863d6;
  --yh-blue-soft: #edf4ff;
  position: relative;
  z-index: 80;
  color: var(--yh-ink);
  background: var(--yh-paper);
  border-bottom: 1px solid var(--yh-line);
  box-shadow: 0 5px 20px #1838560d;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
#yk-portal-v2 .yp-header-refresh *,
#yk-portal-v2 .yp-header-refresh *::before,
#yk-portal-v2 .yp-header-refresh *::after { box-sizing: border-box; }
#yk-portal-v2 .yp-header-refresh [hidden] { display: none !important; }
#yk-portal-v2 .yp-header-refresh a { text-decoration: none; }
#yk-portal-v2 .yp-header-refresh .yp-utility { background: var(--yh-soft); color: var(--yh-muted); border-bottom: 1px solid var(--yh-line); font-size: 11px; letter-spacing: .1px; }
#yk-portal-v2 .yp-header-refresh .yp-utility .yp-wrap { align-items: center; min-height: 33px; padding-top: 5px; padding-bottom: 5px; }
#yk-portal-v2 .yp-header-refresh .yp-header-specialist { display: inline-flex; align-items: center; gap: 7px; }
#yk-portal-v2 .yp-header-refresh .yp-header-specialist::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--yh-blue); }
#yk-portal-v2 .yp-header-refresh .yp-utility-links { align-items: center; gap: 19px; }
#yk-portal-v2 .yp-header-refresh .yp-utility-links a { color: var(--yh-muted); }
#yk-portal-v2 .yp-header-refresh .yp-utility-links a:hover { color: var(--yh-blue); }
#yk-portal-v2 .yp-header-refresh .yp-utility-links > span { padding-left: 19px; border-left: 1px solid var(--yh-line); }
#yk-portal-v2 .yp-header-refresh .yp-masthead { background: var(--yh-paper); }
#yk-portal-v2 .yp-header-refresh .yp-masthead-inner { display: grid; grid-template-columns: 235px minmax(0, 560px) minmax(122px, 185px); justify-content: space-between; align-items: center; gap: 26px; min-height: 0; padding-top: 24px; padding-bottom: 23px; }
#yk-portal-v2 .yp-header-refresh .yp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--yh-ink); }
#yk-portal-v2 .yp-header-refresh .yp-logo { display: block; width: 51px; height: 51px; padding: 0; flex-shrink: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; }
#yk-portal-v2 .yp-header-refresh .yp-brand > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#yk-portal-v2 .yp-header-refresh .yp-brand strong { margin: 0; font-size: 25px; font-weight: 500; line-height: 1.3; letter-spacing: 1px; color: var(--yh-ink); white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-brand small { display: block; margin: 0; font-size: 11px; line-height: 1.5; font-weight: 400; letter-spacing: .5px; color: var(--yh-muted); white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-search-stack { width: 100%; min-width: 0; max-width: none; margin: 0; order: 0; grid-column: auto; }
#yk-portal-v2 .yp-header-refresh .yp-search { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--yh-line); border-radius: 10px; background: var(--yh-soft); box-shadow: none; }
#yk-portal-v2 .yp-header-refresh .yp-search:focus-within { border-color: var(--yh-blue); background: var(--yh-paper); box-shadow: 0 0 0 3px var(--yh-blue-soft); }
#yk-portal-v2 .yp-header-refresh .yp-search > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--yh-muted); margin: 0; }
#yk-portal-v2 .yp-header-refresh .yp-search input { flex: 1; width: 100%; min-width: 0; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--yh-ink); font-family: inherit; font-size: 13px; font-weight: 400; line-height: 20px; box-shadow: none; }
#yk-portal-v2 .yp-header-refresh .yp-search input::placeholder { color: var(--yh-muted); opacity: 1; }
#yk-portal-v2 .yp-header-refresh .yp-search button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 69px; min-height: 36px; margin: 0; padding: 7px 16px; border: 0; border-radius: 7px; background: var(--yh-blue); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: 1px; cursor: pointer; }
#yk-portal-v2 .yp-header-refresh .yp-search button:hover { background: #2059c7; }
#yk-portal-v2 .yp-header-refresh .yp-account { justify-self: end; max-width: 100%; z-index: 40; }
#yk-portal-v2 .yp-header-refresh .yp-member-button,
#yk-portal-v2 .yp-header-refresh .yp-account-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; margin: 0; padding: 10px 13px; border: 1px solid var(--yh-line); border-radius: 9px; background: var(--yh-paper); color: var(--yh-secondary); font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-account-trigger { max-width: 185px; padding: 6px 10px; }
#yk-portal-v2 .yp-header-refresh .yp-member-button:hover,
#yk-portal-v2 .yp-header-refresh .yp-account-menu[open] .yp-account-trigger { color: var(--yh-blue); background: var(--yh-blue-soft); border-color: var(--yh-blue-soft); }
#yk-portal-v2 .yp-header-refresh .yp-member-button svg { display: block; width: 17px; height: 17px; flex-shrink: 0; }
#yk-portal-v2 .yp-header-refresh .yp-account-trigger .yp-user-avatar { width: 27px; height: 27px; background: var(--yh-blue-soft); color: var(--yh-blue); }
#yk-portal-v2 .yp-header-refresh .yp-account-trigger .yp-user-avatar svg { width: 16px; height: 16px; }
#yk-portal-v2 .yp-header-refresh .yp-user-name { font-size: 12px; font-weight: 500; }
#yk-portal-v2 .yp-header-refresh .yp-account-panel { border-color: var(--yh-line); background: var(--yh-paper); color: var(--yh-ink); box-shadow: 0 14px 35px #233c5626; }
#yk-portal-v2 .yp-header-refresh .yp-account-heading strong { font-weight: 500; }
#yk-portal-v2 .yp-header-refresh .yp-nav { position: relative; z-index: 30; padding-bottom: 16px; border: 0; background: var(--yh-paper); }
#yk-portal-v2 .yp-header-refresh .yp-nav-inner { position: relative; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 9px; min-height: 59px; padding: 7px; margin: 0; border: 0; border-radius: 11px; background: linear-gradient(105deg, #142d4c, #1e3c5b); color: #d3deed; box-shadow: 0 7px 14px #18385612; }
#yk-portal-v2 .yp-header-refresh .yp-category-menu { position: static; flex: 0 0 157px; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; z-index: auto; }
#yk-portal-v2 .yp-header-refresh .yp-nav-category { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-width: 0; min-height: 45px; height: 100%; margin: 0; padding: 10px 13px; border: 0; border-radius: 7px; background: #2b4668; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer; list-style: none; white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-nav-category > svg { width: 17px; height: 17px; }
#yk-portal-v2 .yp-header-refresh .yp-category-chevron { margin-left: 3px; }
#yk-portal-v2 .yp-header-refresh .yp-category-chevron svg { width: 13px; height: 13px; }
#yk-portal-v2 .yp-header-refresh .yp-header-links { display: flex; flex: 1; flex-wrap: wrap; min-width: 0; align-items: stretch; gap: 2px; }
#yk-portal-v2 .yp-header-refresh .yp-header-link { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; flex: 1 1 auto; width: auto; min-width: 0; min-height: 45px; margin: 0; padding: 10px 9px; border: 0; border-radius: 6px; background: transparent; color: #d3deed; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-header-link:hover { color: #fff; background: #2b4668; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.active { color: #fff; background: transparent; font-weight: 500; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.active::after { content: ""; position: absolute; height: 2px; width: 20px; top: auto; bottom: 1px; left: calc(50% - 10px); right: auto; border-radius: 2px; background: #fff; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.yp-nav-vip { color: #edcf92; gap: 6px; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.yp-nav-vip.active { color: #edcf92; background: transparent; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.yp-nav-vip svg { width: 15px; height: 15px; }
#yk-portal-v2 .yp-header-refresh .yp-header-link.yp-nav-vip.active::after { background: #edcf92; }
#yk-portal-v2 .yp-header-refresh .yp-mobile-toggle,
#yk-portal-v2 .yp-header-refresh .yp-mobile-utilities { display: none; }
#yk-portal-v2 .yp-header-refresh .yp-category-panel { position: absolute; z-index: 50; left: 0; right: auto; top: calc(100% + 9px); width: 670px; max-width: 100%; margin: 0; padding: 21px; border: 1px solid var(--yh-line); border-radius: 12px; background: var(--yh-paper); color: var(--yh-ink); box-shadow: 0 14px 35px #233c5626; }
#yk-portal-v2 .yp-header-refresh .yp-category-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 17px; }
#yk-portal-v2 .yp-header-refresh .yp-category-panel-heading strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--yh-ink); }
#yk-portal-v2 .yp-header-refresh .yp-category-panel-heading span { display: block; margin-top: 3px; font-size: 11px; color: var(--yh-muted); }
#yk-portal-v2 .yp-header-refresh .yp-category-close { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--yh-muted); cursor: pointer; }
#yk-portal-v2 .yp-header-refresh .yp-category-close:hover { background: var(--yh-soft); }
#yk-portal-v2 .yp-header-refresh .yp-category-close svg { width: 16px; height: 16px; }
#yk-portal-v2 .yp-header-refresh .yp-category-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#yk-portal-v2 .yp-header-refresh .yp-category-options > a { display: flex; flex: none; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; min-width: 0; padding: 14px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--yh-soft); color: var(--yh-ink); text-align: left; white-space: normal; }
#yk-portal-v2 .yp-header-refresh .yp-category-options > a:hover,
#yk-portal-v2 .yp-header-refresh .yp-category-options > a[aria-current="page"] { background: var(--yh-blue-soft); border-color: var(--yh-line); color: var(--yh-blue); }
#yk-portal-v2 .yp-header-refresh .yp-category-options .yp-category-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 0; background: transparent; color: var(--yh-blue); }
#yk-portal-v2 .yp-header-refresh .yp-category-options .yp-category-icon svg { width: 22px; height: 22px; }
#yk-portal-v2 .yp-header-refresh .yp-category-options strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
#yk-portal-v2 .yp-header-refresh .yp-category-options small { display: block; margin-top: 3px; color: var(--yh-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
#yk-portal-v2 .yp-header-refresh .yp-category-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--yh-line); font-size: 11px; color: var(--yh-muted); }
#yk-portal-v2 .yp-header-refresh .yp-category-panel .yp-category-all { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--yh-blue); font-size: 12px; font-weight: 400; line-height: 1.5; }
#yk-portal-v2 .yp-header-refresh .yp-category-all svg { width: 14px; height: 14px; }
#yk-portal-v2 .yp-header-refresh :is(a, button, input, summary):focus-visible { outline: 2px solid #76a7ff; outline-offset: 3px; }
@media (max-width: 1000px) {
  #yk-portal-v2 .yp-header-refresh .yp-masthead-inner { grid-template-columns: 211px minmax(0, 1fr) minmax(111px, 145px); gap: 19px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand { gap: 10px; }
  #yk-portal-v2 .yp-header-refresh .yp-logo { width: 46px; height: 46px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand strong { font-size: 23px; }
  #yk-portal-v2 .yp-header-refresh .yp-account-trigger { max-width: 145px; }
  #yk-portal-v2 .yp-header-refresh .yp-member-button { padding-left: 10px; padding-right: 10px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-menu { flex-basis: 145px; }
  #yk-portal-v2 .yp-header-refresh .yp-nav-category { gap: 7px; padding-left: 10px; padding-right: 10px; }
  #yk-portal-v2 .yp-header-refresh .yp-nav-inner { gap: 5px; }
  #yk-portal-v2 .yp-header-refresh .yp-header-link { padding-left: 6px; padding-right: 6px; font-size: 12px; }
}
@media (max-width: 720px) {
  #yk-portal-v2 .yp-header-refresh .yp-wrap { padding-left: 16px; padding-right: 16px; }
  #yk-portal-v2 .yp-header-refresh .yp-utility { display: none; }
  #yk-portal-v2 .yp-header-refresh .yp-masthead-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 20px; padding-bottom: 17px; gap: 19px 10px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand { grid-column: 1; grid-row: 1; }
  #yk-portal-v2 .yp-header-refresh .yp-logo { width: 42px; height: 42px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand strong { font-size: 22px; letter-spacing: .5px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand small { display: block; font-size: 11px; letter-spacing: 0; }
  #yk-portal-v2 .yp-header-refresh .yp-account { grid-column: 2; grid-row: 1; }
  #yk-portal-v2 .yp-header-refresh .yp-member-button { min-height: 44px; padding: 8px 0 8px 8px; border-color: transparent; gap: 5px; font-size: 12px; }
  #yk-portal-v2 .yp-header-refresh .yp-account-trigger { max-width: 128px; padding: 5px 0 5px 5px; border-color: transparent; gap: 5px; }
  #yk-portal-v2 .yp-header-refresh .yp-account-trigger .yp-user-avatar { width: 27px; height: 27px; }
  #yk-portal-v2 .yp-header-refresh .yp-search-stack { grid-column: 1 / -1; grid-row: 2; order: 0; }
  #yk-portal-v2 .yp-header-refresh .yp-search { gap: 8px; padding-left: 12px; }
  #yk-portal-v2 .yp-header-refresh .yp-search input { font-size: 16px; }
  #yk-portal-v2 .yp-header-refresh .yp-search input::placeholder { font-size: 12px; }
  #yk-portal-v2 .yp-header-refresh .yp-search button { min-width: 60px; padding-left: 13px; padding-right: 13px; }
  #yk-portal-v2 .yp-header-refresh .yp-nav { padding-bottom: 14px; }
  #yk-portal-v2 .yp-header-refresh .yp-nav-inner { flex-wrap: wrap; min-height: 54px; padding: 5px; gap: 0; border-radius: 10px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-menu { flex: 1 1 auto; width: auto; min-width: 0; }
  #yk-portal-v2 .yp-header-refresh .yp-nav-category { justify-content: flex-start; width: 100%; min-width: 0; min-height: 44px; padding-left: 12px; background: transparent; }
  #yk-portal-v2 .yp-header-refresh .yp-category-chevron { margin-left: 4px; }
  #yk-portal-v2 .yp-header-refresh.yp-nav-ready .yp-mobile-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; min-height: 44px; margin: 0; padding: 8px 12px; border: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 400; gap: 7px; cursor: pointer; }
  #yk-portal-v2 .yp-header-refresh .yp-mobile-toggle svg { width: 17px; height: 17px; }
  #yk-portal-v2 .yp-header-refresh .yp-header-links { display: grid; flex: 0 0 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 10px 2px 5px; border-top: 1px solid #36506d; margin-top: 5px; }
  #yk-portal-v2 .yp-header-refresh.yp-nav-ready .yp-header-links:not(.is-open) { display: none; }
  #yk-portal-v2 .yp-header-refresh .yp-header-link { width: auto; min-height: 44px; padding: 10px 3px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  #yk-portal-v2 .yp-header-refresh .yp-header-link.active { background: #2b4668; }
  #yk-portal-v2 .yp-header-refresh .yp-header-link.yp-nav-vip.active { background: #2b4668; }
  #yk-portal-v2 .yp-header-refresh .yp-header-link.active::after { display: none; }
  #yk-portal-v2 .yp-header-refresh .yp-mobile-utilities { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 24px; margin-top: 8px; padding-top: 5px; border-top: 1px solid #36506d; }
  #yk-portal-v2 .yp-header-refresh .yp-mobile-utilities a { flex: 0 1 auto; width: auto; min-height: 44px; padding: 9px 0; font-size: 11px; color: #d3deed; font-weight: 400; }
  #yk-portal-v2 .yp-header-refresh .yp-category-panel { width: 100%; max-width: 100%; padding: 17px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options > a { padding: 13px 8px; gap: 6px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options .yp-category-icon { flex-basis: 27px; width: 27px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options .yp-category-icon svg { width: 19px; height: 19px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options strong { font-size: 12px; }
}
@media (max-width: 360px) {
  #yk-portal-v2 .yp-header-refresh .yp-brand { gap: 8px; }
  #yk-portal-v2 .yp-header-refresh .yp-logo { width: 38px; height: 38px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand strong { font-size: 21px; }
  #yk-portal-v2 .yp-header-refresh .yp-brand small { letter-spacing: -.4px; }
  #yk-portal-v2 .yp-header-refresh .yp-account-trigger { max-width: 110px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-panel { padding: 13px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options > a { gap: 3px; padding-left: 6px; padding-right: 6px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-options .yp-category-icon { width: 23px; flex-basis: 23px; }
}
@media (pointer: coarse) {
  #yk-portal-v2 .yp-header-refresh .yp-search input { font-size: 16px; }
  #yk-portal-v2 .yp-header-refresh .yp-search button,
  #yk-portal-v2 .yp-header-refresh .yp-category-close,
  #yk-portal-v2 .yp-header-refresh .yp-category-panel .yp-category-all { min-height: 44px; }
  #yk-portal-v2 .yp-header-refresh .yp-category-close { width: 44px; flex-basis: 44px; }
  #yk-portal-v2 .yp-header-refresh .yp-utility-links a { padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #yk-portal-v2 .yp-header-refresh .yp-category-chevron,
  #yk-portal-v2 .yp-header-refresh .yp-user-chevron { transition: none; }
}
