:root { --shared-header-height: 72px; }
html.theme-transitioning { pointer-events: none; }
html.theme-transitioning::view-transition-old(root), html.theme-transitioning::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-transitioning::view-transition-old(root) { z-index: 1; }
html.theme-transitioning::view-transition-new(root) { z-index: 2; clip-path: circle(0 at var(--theme-transition-x) var(--theme-transition-y)); animation: shared-theme-circle-reveal .78s cubic-bezier(.76, 0, .24, 1) both; will-change: clip-path; }
@keyframes shared-theme-circle-reveal { to { clip-path: circle(var(--theme-transition-radius) at var(--theme-transition-x) var(--theme-transition-y)); } }
@media (prefers-reduced-motion: reduce) { html.theme-transitioning::view-transition-new(root) { animation: none; clip-path: none; } }
.theme-transition-mask { position: fixed; inset: 0; z-index: 2147483647; pointer-events: none; clip-path: circle(0 at var(--theme-transition-x) var(--theme-transition-y)); opacity: 1; transition: clip-path .78s cubic-bezier(.76, 0, .24, 1), opacity .16s ease; will-change: clip-path, opacity; }
.theme-transition-mask.is-revealing { clip-path: circle(var(--theme-transition-radius) at var(--theme-transition-x) var(--theme-transition-y)); }
.theme-transition-mask.is-finishing { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .theme-transition-mask { display: none; } }
.shared-header { position: sticky; top: 0; z-index: 30; width: 100%; height: var(--shared-header-height); border-bottom: 1px solid #ececed; background: rgba(255,255,255,.97); }
.shared-header .shared-header-inner { width: min(1730px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 38px; }
.shared-header .shared-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: #1f2023; text-decoration: none; white-space: nowrap; }
.shared-header .shared-brand-symbol { width: 42px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.shared-header .shared-brand-symbol svg { width: 22px; height: 22px; fill: currentColor; }
.shared-header .shared-brand-symbol img { width: 42px; height: 30px; display: block; object-fit: contain; }
.shared-header .shared-brand-name { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.shared-header .shared-nav { min-width: 0; height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 1.55vw, 32px); }
.shared-header .shared-nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0; color: #68696d; background: transparent; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.shared-header .shared-nav-link:hover, .shared-header .shared-nav-link.active { color: #1f2023; }
.shared-header .shared-nav-link.active { font-weight: 500; }
.shared-header .shared-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: #1f2023; }
.shared-header .shared-nav-icon { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; }
.shared-header .shared-nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shared-header .shared-nav-image { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; overflow: hidden; mix-blend-mode: darken; }
.shared-header .shared-nav-image img { width: 18px; height: 18px; display: block; object-fit: contain; }
.shared-header .shared-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.shared-header .shared-header-button { width: 20px; height: 28px; min-width: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: transparent; color: #303136; font-size: 14px; box-shadow: none; }
.shared-header .shared-header-button:hover { color: #000; background: transparent; }
.shared-header .shared-header-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shared-header .shared-header-button.language { width: 20px; font-size: 16px; font-weight: 700; }
.shared-header .moon-icon { display: none; }
body.dark .shared-header { border-color: #343434; background: rgba(31,31,31,.97); }
body.dark .shared-header .shared-brand, body.dark .shared-header .shared-nav-link.active, body.dark .shared-header .shared-header-button { color: #f2f2f2; }
body.dark .shared-header .shared-nav-link { color: #aaaeb4; }
body.dark .shared-header .shared-nav-link.active::after { background: #f2f2f2; }
body.dark .shared-header .shared-nav-image { mix-blend-mode: screen; }
body.dark .shared-header .shared-nav-image img { filter: invert(1); }
body.dark .shared-header .sun-icon { display: none; }
body.dark .shared-header .moon-icon { display: block; }
@media (max-width: 1250px) { .shared-header .shared-header-inner { width: calc(100% - 36px); gap: 24px; } .shared-header .shared-nav { gap: 16px; } .shared-header .shared-nav-link { gap: 5px; font-size: 13px; } .shared-header .shared-header-actions { gap: 12px; } }
@media (max-width: 920px) { :root { --shared-header-height: 64px; } .shared-header .shared-header-inner { width: calc(100% - 28px); gap: 15px; } .shared-header .shared-brand-name { font-size: 15px; } .shared-header .shared-nav { flex: 1; overflow-x: auto; scrollbar-width: none; } .shared-header .shared-nav::-webkit-scrollbar { display: none; } .shared-header .shared-nav-link { font-size: 12px; } .shared-header .shared-nav-icon, .shared-header .shared-nav-icon svg { width: 15px; height: 15px; } .shared-header .shared-header-actions { gap: 8px; } }
@media (max-width: 920px) { .shared-header .shared-nav-image, .shared-header .shared-nav-image img { width: 15px; height: 15px; } }
@media (max-width: 620px) { .shared-header .shared-header-inner { gap: 10px; } .shared-header .shared-brand-symbol, .shared-header .shared-brand-symbol svg { width: 32px; height: 23px; } .shared-header .shared-brand-name { display: none; } .shared-header .shared-nav { gap: 15px; } .shared-header .shared-nav-link span:last-child { display: none; } .shared-header .shared-nav-link { min-width: 21px; justify-content: center; } .shared-header .shared-nav-icon, .shared-header .shared-nav-icon svg { width: 19px; height: 19px; } .shared-header .shared-header-actions { margin-left: 0; } .shared-header .shared-header-button:first-child, .shared-header .shared-header-button:nth-child(2) { display: none; } }
@media (max-width: 620px) { .shared-header .shared-brand-symbol img { width: 32px; height: 23px; } }
@media (max-width: 620px) { .shared-header .shared-nav-image, .shared-header .shared-nav-image img { width: 19px; height: 19px; } }

/* Authentication entry points and modal */
.shared-header .shared-auth-trigger { height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: #45474b; font-size: 13px; white-space: nowrap; }
.shared-header .shared-auth-trigger:hover { color: #161719; background: #f5f5f5; }
.shared-header .shared-auth-register { color: #fff; background: #202124; border-color: #202124; }
.shared-header .shared-auth-register:hover { color: #fff; background: #000; }
.shared-header .shared-account[hidden], .shared-account-menu[hidden] { display: none; }
.shared-header .shared-account { position: relative; display: flex; align-items: center; }
.shared-header .shared-auth-user { display: inline-flex; align-items: center; gap: 5px; padding-right: 7px; }
.shared-header .shared-account-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.shared-header .shared-auth-user[aria-expanded="true"] .shared-account-chevron { transform: rotate(180deg); }
.shared-account-menu { position: absolute; top: calc(100% + 13px); right: 0; z-index: 60; width: 236px; padding: 8px; border: 1px solid #e6e7e9; border-radius: 8px; background: #fff; box-shadow: 0 16px 42px rgba(26,28,32,.15); }
.shared-account-menu::before { content: ""; position: absolute; top: -14px; right: 0; width: 110px; height: 14px; }
.shared-account-summary { display: flex; align-items: center; gap: 10px; padding: 9px 8px 11px; }
.shared-account-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #242629; font-size: 14px; font-weight: 700; }
.shared-account-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shared-account-copy strong, .shared-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-account-copy strong { color: #25272a; font-size: 13px; font-weight: 650; }
.shared-account-copy small { color: #96999e; font-size: 11px; }
.shared-account-divider { height: 1px; margin: 0 5px 6px; background: #eeeeef; }
.shared-account-item { width: 100%; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; color: #414348; background: transparent; text-decoration: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.shared-account-item:hover { color: #17181a; background: #f5f5f6; }
.shared-account-item svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shared-account-logout { color: #8b3e3e; }
.shared-account-logout:hover { color: #a12929; background: #fff3f3; }
body.dark .shared-header .shared-auth-trigger { color: #e5e7ea; }
body.dark .shared-header .shared-auth-trigger:hover { background: #292c30; }
body.dark .shared-header .shared-auth-register { color: #141517; background: #f2f3f4; border-color: #f2f3f4; }
body.dark .shared-account-menu { border-color: #393c41; background: #202327; box-shadow: 0 16px 42px rgba(0,0,0,.35); }
body.dark .shared-account-copy strong { color: #f0f1f2; }
body.dark .shared-account-copy small { color: #969ba2; }
body.dark .shared-account-divider { background: #35383d; }
body.dark .shared-account-item { color: #d7d9dc; }
body.dark .shared-account-item:hover { color: #fff; background: #2c3035; }
body.dark .shared-account-logout { color: #efaaaa; }
body.dark .shared-account-logout:hover { color: #ffc1c1; background: #3a282b; }

.auth-modal[hidden] { display: none; }
.auth-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .48); backdrop-filter: blur(6px); }
.auth-dialog { position: relative; width: min(456px, 100%); max-height: min(760px, calc(100vh - 30px)); overflow-y: auto; padding: 35px 36px 28px; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.23); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .18s ease, transform .18s ease; }
.auth-dialog.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.auth-close { position: absolute; top: 13px; right: 16px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #8a8d92; background: transparent; font-size: 25px; line-height: 1; }
.auth-close:hover { color: #1e2023; background: #f2f3f4; }
.auth-kicker { color: #a7aaae; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.auth-dialog h2 { margin: 10px 0 8px; color: #191a1d; font-size: 27px; letter-spacing: -.04em; }
.auth-subtitle { margin: 0; color: #85888d; font-size: 13px; line-height: 1.6; }
.auth-flow-switch, .auth-type-switch { display: grid; gap: 6px; padding: 4px; border-radius: 9px; background: #f3f4f5; }
.auth-flow-switch { grid-template-columns: 1fr 1fr; margin-top: 24px; }
.auth-type-switch { grid-template-columns: 1fr 1fr; margin-top: 16px; background: transparent; padding: 0; gap: 10px; }
.auth-flow-switch button, .auth-type-switch button { height: 38px; border: 0; border-radius: 7px; color: #74777c; background: transparent; font-size: 14px; font-weight: 600; }
.auth-flow-switch button.active { color: #242629; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-type-switch button { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e4e5e7; background: #fff; }
.auth-type-switch button.active { color: #222428; border-color: #25272a; box-shadow: inset 0 0 0 1px #25272a; }
.auth-type-icon { color: #8b8e93; font-size: 15px; }
.auth-form { margin-top: 22px; }
.auth-label { display: block; margin: 0 0 7px; color: #4b4e53; font-size: 13px; font-weight: 600; }
.auth-label + .auth-label { margin-top: 15px; }
.optional { color: #a4a7ab; font-weight: 400; }
.auth-input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dfe1e4; border-radius: 8px; outline: none; color: #25272b; background: #fff; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-input::placeholder { color: #b5b8bd; }
.auth-input:focus { border-color: #dfe1e4; box-shadow: none; }
.auth-input:focus-visible { outline: none; }
.auth-password-wrap, .auth-code-wrap { position: relative; }
.auth-password-wrap .auth-input, .auth-code-wrap .auth-input { padding-right: 78px; }
.password-toggle, .code-button { position: absolute; top: 0; right: 0; height: 46px; padding: 0 13px; border: 0; color: #6e7278; background: transparent; font-size: 12px; }
.password-toggle:hover, .code-button:hover:not(:disabled) { color: #1e2023; }
.code-button { min-width: 88px; color: #3f5963; font-weight: 600; font-variant-numeric: tabular-nums; }
.code-button:disabled { color: #b0b3b7; cursor: wait; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.auth-sms-hint { margin: 8px 0 0; color: #7b848a; font-size: 12px; line-height: 1.5; }
.auth-agreement { margin-top: 14px; line-height: 1.5; }
.auth-agreement input { flex: 0 0 auto; margin-top: 2px; accent-color: #27292c; }
.auth-check { display: inline-flex; align-items: center; gap: 6px; color: #85888d; font-size: 12px; }
.auth-check input { accent-color: #27292c; }
.auth-link-button { padding: 0; border: 0; color: #596f79; background: transparent; font-size: 12px; }
.auth-link-button:hover { text-decoration: underline; }
.auth-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.auth-two-col .auth-label { margin-top: 0; }
.auth-submit { width: 100%; height: 48px; margin-top: 22px; border: 0; border-radius: 8px; color: #fff; background: #202124; font-size: 15px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.auth-submit:hover { background: #000; transform: translateY(-1px); }
.auth-feedback { margin-top: 12px; padding: 9px 12px; border: 1px solid #d9e5df; border-radius: 7px; color: #345548; background: #f4faf7; font-size: 12px; line-height: 1.5; text-align: center; }
.auth-feedback[hidden] { display: none; }
.auth-footnote { margin: 17px 0 0; color: #a4a7ab; font-size: 11px; line-height: 1.6; text-align: center; }
.auth-footnote::first-letter { color: inherit; }
body.auth-open { overflow: hidden; }
body.dark .auth-dialog { border-color: #3e4248; background: #1d2024; }
body.dark .auth-dialog h2 { color: #f2f3f4; }
body.dark .auth-subtitle, body.dark .auth-kicker, body.dark .auth-footnote { color: #9ca1a8; }
body.dark .auth-flow-switch { background: #292c31; }
body.dark .auth-flow-switch button.active { color: #1e2024; background: #f3f4f5; }
body.dark .auth-type-switch button { color: #b8bdc4; border-color: #3d4248; background: #1d2024; }
body.dark .auth-type-switch button.active { color: #f2f3f4; border-color: #e3e6e9; box-shadow: inset 0 0 0 1px #e3e6e9; }
body.dark .auth-label { color: #c7cbd0; }
body.dark .auth-sms-hint { color: #9ca1a8; }
body.dark .auth-feedback { border-color: #3f5a4e; color: #c5e5d5; background: #203129; }
body.dark .auth-input { color: #f0f1f2; border-color: #464b52; background: #15181b; }
body.dark .auth-input:focus { border-color: #464b52; }
body.dark .auth-close:hover { color: #f0f1f2; background: #30343a; }
body.dark .auth-submit { color: #17191c; background: #f2f3f4; }
@media (max-width: 760px) { .shared-header .shared-auth-trigger { height: 30px; padding: 0 7px; font-size: 12px; } .shared-header .shared-header-button[aria-label="通知"], .shared-header .shared-header-button[aria-label="设置"] { display: none; } }
@media (max-width: 520px) { .auth-dialog { padding: 30px 20px 22px; border-radius: 14px; } .auth-dialog h2 { font-size: 24px; } .auth-two-col { grid-template-columns: 1fr; gap: 0; } .auth-two-col > div + div { margin-top: 15px; } }
