:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  color: #192b39;
  background: #f6f8fb;
  --muted: #586b7b;
  --blue: #1d4fc4;
  --line: #dce3eb;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -0.035em; line-height: 1.24; }
h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
svg { flex: 0 0 auto; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b77900; outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
.symbol-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 10px 18px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; color: var(--blue); }
.brand-text { font-size: 17px; font-weight: 650; letter-spacing: -0.025em; }
.brand-text span { font-weight: 450; color: var(--muted); margin-left: 3px; }
.icon { width: 19px; height: 19px; vertical-align: middle; }
.arrow { width: 19px; height: 19px; transition: transform 180ms ease-out; }
a:hover .arrow { transform: translateX(3px); }
.muted { color: var(--muted); }
.text-link { color: var(--blue); display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 19px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
}
.button:hover { text-decoration: none; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #153e9e; }
.button-secondary { background: #fff; color: #253c4e; border-color: #cdd8e3; }
.button-secondary:hover { background: #eef3f9; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid #d5dee8;
  color: #506477;
  background: #f8fafc;
  border-radius: 5px;
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.portal-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-header nav { display: flex; align-items: center; gap: 29px; font-size: 14px; }
.portal-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
.repo-link { display: inline-flex; gap: 8px; align-items: center; color: #425669; font-size: 14px; min-height: 44px; }
.portal-main { padding-top: 49px; padding-bottom: 48px; }
.portal-intro { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 74px; align-items: center; }
.portal-intro h1 { font-size: clamp(36px, 4.25vw, 58px); font-weight: 650; }
.portal-intro h1 span { color: var(--blue); }
.portal-intro .intro-copy { max-width: 40em; color: #536777; margin-top: 23px; font-size: 16px; line-height: 1.85; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.portal-preparing { display: flex; align-items: center; gap: 8px; color: #5a6b7a; font-size: 12px; margin-top: 17px; }
.portal-map { background: #fff; border: 1px solid #dce4ee; border-radius: 12px; overflow: hidden; }
.portal-map-heading { padding: 20px 23px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5ebf2; }
.portal-map-heading h2 { font-size: 15px; letter-spacing: 0; }
.portal-map-heading span { font-size: 11px; color: #657587; }
.portal-route { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 17px 23px; border-bottom: 1px solid #e9edf3; }
.portal-route:last-child { border-bottom: 0; }
.portal-route:hover { background: #f4f7fc; text-decoration: none; }
.portal-route:focus-visible { outline-offset: -4px; }
.portal-route strong { display: block; font-size: 14px; font-weight: 600; }
.portal-route small { display: block; margin-top: 2px; font-size: 12px; color: #617487; }
.portal-route .arrow { color: #617487; }
.portal-lower { margin-top: 67px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 63px; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 9px; }
.section-description { color: #586b7b; font-size: 14px; margin-bottom: 23px; }
.guide-list { border-top: 1px solid #d9e1eb; }
.guide-link { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d9e1eb; }
.guide-link:hover { text-decoration: none; }
.guide-link:hover .guide-name { color: var(--blue); }
.guide { border-bottom: 1px solid #d9e1eb; }
.guide summary {
  list-style: none;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary:hover .guide-name { color: var(--blue); }
.guide-name { font-size: 16px; font-weight: 600; }
.guide-right { display: flex; align-items: center; gap: 17px; color: #5a6d7f; }
.guide-right small { font-size: 12px; font-weight: 400; }
.guide summary .icon { width: 16px; height: 16px; transition: transform 180ms ease-out; }
.guide[open] summary .icon { transform: rotate(90deg); }
.guide p { max-width: 65ch; color: #586b7b; font-size: 14px; padding: 0 24px 20px 0; }
.guide-tail { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; font-size: 12px; }
.feedback-panel { background: #eaf0fa; border-radius: 11px; padding: 27px 29px; }
.feedback-panel h2 { font-size: 22px; }
.feedback-panel > p { color: #526882; font-size: 14px; margin-top: 11px; }
.feedback-fields { margin: 20px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.feedback-fields li { padding: 5px 10px; border: 1px solid #bfcee5; color: #405b7c; font-size: 12px; border-radius: 4px; }
.feedback-panel .text-link { font-size: 14px; font-weight: 600; }
.privacy-line { margin-top: 37px; padding: 22px 0; border-top: 1px solid #d9e1eb; display: flex; align-items: flex-start; gap: 11px; color: #526575; font-size: 13px; }
.privacy-line .icon { color: #677b8e; margin-top: 3px; }
.portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 13px; color: #607286; font-size: 12px; }
.portal-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.portal-footer .policy-note { display: inline-flex; align-items: center; gap: 16px; }
.error-main { padding-top: 100px; padding-bottom: 60px; }
.error-main h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 650; }
.error-main p { margin-top: 20px; color: var(--muted); }
.error-main .button { margin-top: 28px; }
.docs-main { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 31px; padding-bottom: 55px; }
.docs-navigation { position: sticky; top: 20px; min-width: 0; color: #455d70; }
.docs-navigation summary { min-height: 44px; padding: 9px 12px; font-weight: 600; cursor: pointer; }
.docs-navigation nav { display: grid; gap: 4px; padding-top: 6px; }
.docs-navigation nav a { display: block; min-height: 44px; padding: 9px 12px; border-radius: 5px; font-size: 14px; }
.docs-navigation nav a[aria-current="page"] { color: var(--blue); background: #eaf0fa; font-weight: 600; }
.docs-article { min-width: 0; max-width: 78ch; padding: 34px 38px; background: #fff; border: 1px solid var(--line); border-radius: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.docs-article h1 { font-size: 34px; font-weight: 650; margin-bottom: 23px; color: #17394e; }
.docs-article h2 { margin-top: 37px; margin-bottom: 13px; font-size: 23px; color: #213f55; }
.docs-article h3 { margin-top: 27px; margin-bottom: 10px; font-size: 18px; }
.docs-article p { margin-bottom: 17px; }
.docs-article ul, .docs-article ol { padding-left: 1.5em; margin: 12px 0 22px; }
.docs-article li { margin-bottom: 8px; }
.docs-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.docs-article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.docs-article th, .docs-article td { border: 1px solid #d9e2ed; padding: 11px 14px; text-align: left; vertical-align: top; min-width: 110px; }
.docs-article th { background: #f2f6fa; color: #294b63; }
.docs-article pre { padding: 15px 17px; background: #eef3f9; border: 1px solid #dbe5ef; border-radius: 6px; overflow-x: auto; margin: 17px 0 23px; }
.docs-article code { font: 0.9em/1.7 Consolas, "SFMono-Regular", monospace; }
.docs-article pre code { white-space: pre; }
.docs-article img { max-width: 100%; height: auto; }
.docs-article blockquote { margin: 20px 0; padding: 15px 18px; background: #eef3f9; color: #435e73; border-radius: 6px; }
.docs-article blockquote p:last-child { margin-bottom: 0; }
.docs-footer { margin-top: 37px; border-top: 1px solid var(--line); padding-top: 19px; display: flex; flex-wrap: wrap; gap: 12px 23px; font-size: 12px; }
.docs-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .portal-intro { gap: 36px; }
  .portal-lower { gap: 35px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .portal-header { min-height: 77px; gap: 14px; flex-wrap: wrap; padding-block: 15px; }
  .brand-text { font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .portal-header nav { width: 100%; order: 3; gap: 25px; padding-top: 2px; border-top: 1px solid #e1e7ef; font-size: 13px; }
  .portal-header .repo-link { font-size: 12px; }
  .portal-main { padding-top: 24px; }
  .portal-intro { grid-template-columns: 1fr; gap: 31px; }
  .portal-intro h1 { font-size: clamp(32px, 7.9vw, 48px); }
  .portal-intro .intro-copy { font-size: 14px; margin-top: 17px; }
  .portal-actions { margin-top: 21px; gap: 9px; }
  .portal-actions .button { font-size: 12px; padding-inline: 13px; }
  .portal-map-heading { padding: 16px 19px; }
  .portal-route { padding: 15px 19px; }
  .portal-lower { grid-template-columns: 1fr; gap: 31px; margin-top: 37px; }
  .section-heading h2 { font-size: 22px; }
  .feedback-panel { padding: 23px; }
  .privacy-line { margin-top: 28px; }
  .portal-footer { flex-direction: column; align-items: flex-start; gap: 2px; }
  .portal-footer .policy-note { flex-wrap: wrap; }
  .guide-tail { gap: 8px; font-size: 11px; }
  .guide-tail .text-link { white-space: nowrap; }
  .error-main { padding-top: 60px; }
  .docs-main { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 19px; }
  .docs-navigation { position: static; }
  .docs-navigation nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 7px; }
  .docs-navigation nav a { flex: 0 0 auto; white-space: nowrap; }
  .docs-article { padding: 23px 20px; border-radius: 8px; }
  .docs-article h1 { font-size: 28px; }
  .docs-article h2 { font-size: 21px; }
  .docs-article th, .docs-article td { padding: 9px 11px; }
}

@media (max-width: 360px) {
  .brand-text { font-size: 13px; }
  .portal-header .repo-link span { display: none; }
  .portal-header nav { gap: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root { background: #fff; }
  .wrap { width: 100%; }
  .portal-header, .skip-link { display: none; }
  .portal-main { padding: 0; }
  .docs-navigation, .docs-footer { display: none; }
  .docs-main { display: block; padding: 0; }
  .docs-article { max-width: none; padding: 0; border: 0; }
}
