* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { max-width: 100%; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 25px; font-weight: 600; line-height: 1.5; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
h4 { font-size: 14px; font-weight: 600; line-height: 1.5; }
p, h1, h2, h3, h4, dt, dd { overflow-wrap: anywhere; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid #507aa5; outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { color: #002b56; background: #dce9f6; }
.app { min-height: 100svh; }
.site-header {
  min-height: 69px;
  padding: 0 max(28px, calc((100% - var(--content-max)) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--blue); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 32px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.2px; }
.brand small, .brand-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.primary-nav { display: flex; align-items: stretch; justify-content: center; gap: 28px; margin-left: auto; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 2px 0 0;
  border-bottom: 2px solid transparent;
  color: #555d68;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); text-decoration: none; border-bottom-color: #c8d6e4; }
.nav-link[aria-current]:not([aria-current="false"]), .nav-link.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.site-header > .text-button { flex-shrink: 0; }
.page-shell { width: 100%; max-width: 1164px; margin: 0 auto; padding: 36px 32px 64px; }
.page-head { margin-bottom: 28px; }
.page-head p, .page-description { max-width: 72ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.page-head .row { margin-top: 16px; }
.section + .section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 18px; }
.section-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.row-between, .row--between { justify-content: space-between; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.small { font-size: 12px; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-page { display: flex; align-items: flex-start; justify-content: center; min-height: calc(100svh - 69px); padding: 70px 24px 64px; }
.auth-card { width: 100%; max-width: 520px; margin: 0 auto; padding: 0; background: #fff; }
.auth-card .page-head { margin-bottom: 30px; }
.auth-card .form-actions { margin-top: 24px; }
.auth-card > .notice { margin-top: 24px; }
.page-shell:has(> .auth-page) { max-width: none; padding: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 4px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-footer { width: calc(100% - 64px); max-width: var(--content-max); margin: 0 auto; padding: 12px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .site-header { padding: 0 22px; gap: 20px; }
  .primary-nav { gap: 20px; }
  .page-shell { padding: 28px 22px 48px; }
  h1 { font-size: 23px; }
  .auth-page { padding: 48px 22px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 64px; flex-wrap: wrap; gap: 0 16px; padding: 0 20px; }
  .brand { min-height: 63px; }
  .brand-name { font-size: 19px; }
  .site-header > .text-button { margin-left: auto; }
  .primary-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: 28px; margin: 0; }
  .nav-link { min-height: 46px; font-size: 14px; }
  .page-shell { padding: 26px 20px 44px; }
  .site-footer { width: calc(100% - 40px); }
  .page-head { margin-bottom: 24px; }
  .page-head p { font-size: 13px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section + .section { margin-top: 26px; padding-top: 24px; }
  .auth-page { min-height: calc(100svh - 64px); padding: 40px 20px 48px; }
}
@media (max-width: 370px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .primary-nav { justify-content: space-between; gap: 12px; }
  .page-shell { padding-left: 16px; padding-right: 16px; }
  .site-footer { width: calc(100% - 32px); }
  .auth-page { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Header typography stays quiet while the primary destination reads clearly. */
.site-header .brand-name { font-size: 22px; letter-spacing: -.35px; }
.site-header .brand-logo { width: 32px; height: 34px; }
.site-header .primary-nav { gap: 32px; }
.site-header .nav-link { font-size: 15px; }
.site-header > .text-button { color: #687586; font-size: 13px; }
@media (max-width: 760px) {
  .site-header .primary-nav { gap: 22px; }
  .site-header .nav-link { font-size: 14px; }
}
@media (max-width: 600px) {
  .site-header .brand-name { font-size: 20px; }
  .site-header .brand-logo { width: 29px; height: 31px; }
  .site-header .primary-nav { gap: 28px; }
}
@media (max-width: 370px) {
  .site-header .primary-nav { gap: 12px; }
}

/* A distinct local serif wordmark, separate from readable Chinese UI text. */
.site-header .brand-name { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 27px; font-weight: 400; line-height: 1.2; letter-spacing: -.5px; }
@media (max-width: 600px) {
  .site-header .brand-name { font-size: 25px; }
}

.site-header:not(:has(.primary-nav)) > .text-button { margin-left: auto; }
