:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --soft: #f7f4f2;
  --ink: #222831;
  --text: #34383f;
  --muted: #6b717c;
  --line: #e2e4e8;
  --red: #c91524;
  --red-dark: #9f111c;
  --blue: #2859c9;
  --gold: #f0b90b;
  --green: #18a978;
  --dark: #171b23;
  --sidebar: 286px;
  --content: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

[id] {
  scroll-margin-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5.7rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 850;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.14rem;
  font-weight: 850;
}

p,
li {
  color: var(--text);
}

h1,
h2,
h3,
p,
li,
a,
span,
button,
code {
  overflow-wrap: anywhere;
}

.skip-button {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 90;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.skip-button:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  background: var(--red);
  color: #fff;
  box-shadow: 18px 0 45px rgba(34, 40, 49, 0.12);
}

.masthead {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.brand {
  display: grid;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
}

.brand-text {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  max-width: 190px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 760;
}

.site-nav {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.site-nav button,
.site-nav a,
.route-panel button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 820;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.site-nav button,
.site-nav a {
  min-height: 2.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  transition: color 180ms ease, padding-left 180ms ease;
}

.site-nav button:hover,
.site-nav a:hover,
.site-nav button:focus-visible,
.site-nav a:focus-visible {
  color: #fff;
  padding-left: 0.35rem;
}

.header-actions {
  align-self: end;
  margin-top: auto;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid currentColor;
  border-radius: 0;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-cta {
  width: 100%;
  border-color: #fff;
  background: #fff;
  color: var(--red);
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button-secondary {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.button-ghost {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.header-cta:hover,
.button:hover,
.header-cta:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 rgba(34, 40, 49, 0.16);
}

main,
.site-footer {
  margin-left: var(--sidebar);
}

.section-block {
  width: min(var(--content), calc(100% - 3rem));
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.latest-section {
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.6rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.lead-story {
  min-width: 0;
}

.story-meta,
.eyebrow,
.meta-line {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.story-meta,
.eyebrow {
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 790px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  font-weight: 640;
}

.quick-answer {
  display: grid;
  gap: 0.35rem;
  max-width: 820px;
  margin: 1.25rem 0 0;
  padding: 1rem 0 1rem 1.15rem;
  border-left: 6px solid var(--red);
  background: transparent;
}

.quick-answer strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.starter-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.starter-card h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.starter-card ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.2rem;
}

.starter-card li::marker {
  color: var(--red);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0;
}

.meta-line {
  margin: 0;
  color: var(--ink);
}

.priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.priority-strip article {
  min-width: 0;
  padding: 1.3rem 1rem;
  border-right: 1px solid var(--line);
  background: #fff;
}

.priority-strip article:last-child {
  border-right: 0;
}

.priority-strip span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 900;
}

.priority-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.priority-strip p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.article-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
  margin-top: clamp(1.8rem, 4vw, 3rem);
}

.route-panel {
  position: sticky;
  top: 1.2rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 4px solid var(--red);
}

.route-heading {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.route-heading strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.route-panel button {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 180ms ease, padding-left 180ms ease;
}

.route-panel button:hover,
.route-panel button.is-active {
  color: var(--red);
  padding-left: 0.35rem;
}

.article-body {
  display: grid;
  gap: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.content-panel,
.page-hero,
.final-cta,
.feature-card {
  background: var(--surface);
}

.content-panel {
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.content-panel p,
.content-panel li {
  font-size: 1.04rem;
}

.content-panel > p:not(.eyebrow) {
  max-width: 880px;
}

.summary-points,
.info-grid,
.wiki-layout,
.download-grid,
.path-grid,
.service-grid {
  display: grid;
  gap: 1rem;
}

.summary-points,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.summary-points > div,
.info-grid > div,
.wiki-layout article,
.download-card,
.path-grid article,
.feature-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.summary-points strong,
.info-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.profile-panel h3 {
  color: var(--red);
}

.wiki-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.timeline-box {
  margin-top: 1rem;
  padding: 1.2rem;
  border-left: 6px solid var(--red);
  background: #fff7f7;
}

.timeline-box h3 {
  color: var(--ink);
}

.timeline-box ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
}

.note-box {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-left: 6px solid var(--gold);
  background: #fff9dc;
  color: var(--ink);
}

.check-list,
.step-list,
.mini-guide ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.25rem;
}

.check-list li::marker,
.step-list li::marker,
.mini-guide li::marker {
  color: var(--red);
  font-weight: 900;
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.inline-cta > div {
  display: grid;
  gap: 0.25rem;
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.mini-guide {
  margin-top: 1.2rem;
}

.guide-visual,
.market-figures figure {
  margin: 1.1rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--dark);
}

.guide-visual img {
  aspect-ratio: 1.58;
  object-fit: cover;
}

.market-figures {
  display: grid;
  gap: 1.1rem;
  margin-top: 1rem;
}

.market-figures figcaption {
  padding: 0.85rem 1rem;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: #fff;
}

.faq-item summary {
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

.loading-text {
  color: var(--muted);
}

.final-cta,
.page-hero {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 3rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3.5rem) max(1.5rem, calc((100vw - var(--content) - var(--sidebar)) / 2));
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 40, 49, 0.7);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.32);
}

.modal-card h2 {
  color: var(--red);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.copy-code {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.copy-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 0px;
  }

  .site-header {
    position: sticky;
    inset: auto;
    width: 100%;
  }

  .masthead {
    min-height: auto;
    padding: 1rem;
  }

  .site-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .site-nav button,
  .site-nav a {
    border-bottom: 0;
    padding-right: 0.8rem;
  }

  .header-actions {
    margin-top: 0;
  }

  main,
  .site-footer {
    margin-left: 0;
  }

  .lead-layout,
  .article-section {
    grid-template-columns: 1fr;
  }

  .route-panel {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-heading {
    grid-column: 1 / -1;
  }

  .priority-strip,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .section-block {
    width: min(calc(100% - 1rem), var(--content));
  }

  .latest-section {
    padding-top: 1.4rem;
  }

  .priority-strip,
  .summary-points,
  .download-grid,
  .info-grid,
  .wiki-layout,
  .path-grid,
  .service-grid,
  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .priority-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-panel {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
