/* Shared homepage/help header. Legacy page headers keep their own styles. */
#new-home, .site-header {
    --home-max-width: 1280px;
    --home-sidebar-width: 140px; --home-column-gap: 22px;
    --home-blue: #1769d2; --home-bg: #f3f5f7; --home-white: #fff;
    --home-ink: #27394b; --home-secondary: #4e6073; --home-muted: #5e6f82; --home-line: #e7edf3;
    --home-soft: #edf6ff;
}
.site-header { margin: 0; color: var(--home-ink); text-align: left; color-scheme: light; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
.site-header * { box-sizing: border-box; }
.site-header a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-header a:hover { color: var(--home-blue); }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 3px; border-radius: 3px; }
.site-header button, .site-header input { font: inherit; margin: 0; }
.site-header button { cursor: pointer; }
.site-header img { max-width: 100%; }
.site-header .home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.site-header { background: var(--home-white); border-bottom: 1px solid var(--home-line); }
.site-header .home-header-inner { max-width: var(--home-max-width); min-height: 72px; padding: 12px 28px; margin: 0 auto; display: flex; align-items: center; gap: var(--home-column-gap); }
.site-header .home-logo { flex: none; display: flex; align-items: center; width: var(--home-sidebar-width); min-height: 40px; }
.site-header .home-logo img { width: 106px; height: auto; display: block; }
.site-header .home-top-nav { display: flex; align-items: center; gap: 23px; white-space: nowrap; font-size: 13px; }
.site-header .home-top-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 0; position: relative; color: var(--home-secondary); font-weight: 500; }
.site-header .home-top-nav [aria-current=page] { color: var(--home-blue); font-weight: 600; }
.site-header .home-top-nav [aria-current=page]::after { content: ""; position: absolute; height: 2px; background: var(--home-blue); bottom: 0; left: 0; right: 0; border-radius: 2px; }
.site-header .home-search { margin-left: auto; display: flex; flex: 1; align-items: center; max-width: 310px; min-width: 140px; border: 1px solid var(--home-line); border-radius: 7px; background: #f6f8fa; padding: 0 10px; }
.site-header .home-search:focus-within { border-color: var(--home-blue); background: var(--home-white); box-shadow: 0 0 0 2px #1769d21a; }
.site-header .home-search input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 9px 0; color: var(--home-ink); font-size: 13px; }
.site-header .home-search input:focus { outline: none; box-shadow: none; }
.site-header .home-search input::placeholder { color: var(--home-muted); opacity: 1; }
.site-header .home-search button { border: 0; background: transparent; color: var(--home-blue); padding: 9px 2px 9px 8px; font-size: 12px; font-weight: 600; flex: none; }
.site-header .home-search button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 2px; border-radius: 3px; }
.site-header .home-top-nav .home-agent { gap: 5px; padding-inline: 10px; border-radius: 6px; background: #e8f1ff; color: var(--home-blue); font-weight: 600; }
.site-header .home-top-nav .home-agent:hover { color: #125bbb; background: #dceaff; }
.site-header .home-agent>span { color: var(--home-blue); font-size: 17px; line-height: 1; }
.site-header .home-agent>.home-external-mark { font-size: 11px; }
.site-header .home-auth { display: flex; align-items: center; gap: 18px; flex: none; font-size: 13px; }
.site-header .home-auth>a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; white-space: nowrap; }
.site-header .home-primary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; background: var(--home-blue); color: #fff; border-radius: 6px; padding: 9px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-header .home-primary:hover { color: #fff; background: #125bbb; }
.site-header .home-account { position: relative; flex: none; font-size: 12px; }
.site-header .home-account-toggle { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: inherit; }
.site-header .home-avatar { display: grid; place-items: center; flex: none; overflow: hidden; background: var(--home-soft); color: var(--home-blue); width: 30px; height: 30px; border-radius: 50%; }
.site-header .home-avatar img { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.site-header .home-account nav { position: absolute; top: calc(100% + 5px); right: 0; width: 154px; border: 1px solid var(--home-line); border-radius: 8px; background: var(--home-white); padding: 5px; box-shadow: 0 12px 32px #263e5924; z-index: 10; }
.site-header .home-account nav[hidden] { display: none; }
.site-header .home-account nav::before { content: ""; position: absolute; top: -6px; right: 0; width: 100%; height: 6px; pointer-events: none; }
.site-header .home-account nav a { display: block; padding: 9px 11px; border-radius: 4px; }
.site-header .home-account nav a:hover { background: var(--home-soft); }
@media (max-width: 1100px) {
    #new-home, .site-header { --home-sidebar-width: 118px; --home-column-gap: 18px; }
    .site-header .home-top-nav { gap: 16px; }
}
@media (max-width: 900px) {
    #new-home, .site-header { --home-sidebar-width: 110px; --home-column-gap: 16px; }
    .site-header .home-header-inner { flex-wrap: wrap; gap: 10px 18px; padding: 12px 20px; }
    .site-header .home-top-nav { order: 6; flex-basis: 100%; border-top: 1px solid var(--home-line); padding-top: 7px; padding-left: calc(var(--home-sidebar-width) + var(--home-column-gap)); gap: 25px; }
}
@media (max-width: 760px) {
    .site-header .home-logo { width: auto; }
    .site-header .home-top-nav { padding-left: 0; }
}
@media (max-width: 560px) {
    .site-header .home-header-inner { padding: 11px 15px; gap: 9px 8px; }
    .site-header .home-logo img { width: 97px; }
    .site-header .home-agent>span { font-size: 14px; }
    .site-header .home-auth, .site-header .home-account { margin-left: auto; }
    .site-header .home-auth { gap: 12px; font-size: 12px; }
    .site-header .home-auth>a { min-width: 44px; min-height: 44px; }
    /* 蓝色底块为 32px，链接保留 44px 点击高度。 */
    .site-header .home-auth .home-primary { padding: 0; background: transparent; }
    .site-header .home-auth .home-primary:hover { background: transparent; }
    .site-header .home-signup-label { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border-radius: 5px; background: var(--home-blue); }
    .site-header .home-primary:hover .home-signup-label { background: #125bbb; }
    .site-header .home-search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
    .site-header .home-search input { font-size: 16px; }
    .site-header .home-search input::placeholder { font-size: 13px; }
    .site-header .home-top-nav { flex-wrap: nowrap; justify-content: space-between; gap: 8px; font-size: 12px; }
    .site-header .home-top-nav .home-agent { gap: 4px; padding-inline: 7px; }
    .site-header .home-primary { font-size: 12px; padding: 9px 13px; }
}
@media (pointer: coarse) {
    .site-header .home-primary, .site-header .home-agent, .site-header .home-top-nav a, .site-header .home-search button,
    .site-header .home-auth>a, .site-header .home-account-toggle, .site-header .home-account nav a { min-height: 44px; }
    .site-header .home-account-toggle { min-width: 44px; }
}
