:root {
  --paper: #fbfaf4;
  --surface: #ffffff;
  --cream: #f4f1e8;
  --cream-strong: #ebe6d8;
  --ink: #07343b;
  --ink-deep: #08242a;
  --text: #2d3a40;
  --muted: #647178;
  --line: rgba(7, 52, 59, 0.18);
  --dark: #151922;
  --gold: #f0b90b;
  --green: #20b486;
  --red: #f04864;
  --blue: #087db8;
  --shadow: 0 22px 60px rgba(7, 52, 59, 0.12);
  --shadow-soft: 0 12px 34px rgba(7, 52, 59, 0.08);
  --content: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --display: "Arial Black", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

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

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

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.06;
}

h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5.6vw, 4.9rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 2.9vw, 2.45rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  font-weight: 900;
}

p {
  margin-bottom: 1rem;
}

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

.skip-button {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 80;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: min(var(--content), calc(100% - 2rem));
  min-height: 4.25rem;
  margin: 0 auto;
}

.brand {
  display: inline-grid;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

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

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav button,
.site-nav a,
.route-panel button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav button,
.site-nav a {
  min-height: 2.35rem;
  padding: 0 0.65rem;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav button:hover,
.site-nav a:hover,
.site-nav button:focus-visible,
.site-nav a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 6px 6px 0 var(--gold);
}

.header-cta {
  min-height: 2.35rem;
  white-space: nowrap;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
}

.button-ghost {
  background: var(--cream);
  color: var(--ink);
}

.header-cta:hover,
.button:hover,
.header-cta:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 9px 9px 0 var(--gold);
}

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

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

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

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

.section-rule::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--ink);
  opacity: 0.22;
}

.latest-section {
  margin-top: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

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

.lead-image {
  margin: 0 0 1.3rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.lead-image img {
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

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

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

.hero-lead {
  max-width: 820px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.75vw, 1.26rem);
  font-weight: 650;
}

.quick-answer {
  display: grid;
  gap: 0.4rem;
  max-width: 860px;
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 7px solid var(--gold);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.starter-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.starter-card h2 {
  margin: 0;
}

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

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

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

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

.story-grid,
.trend-grid,
.download-grid,
.info-grid,
.path-grid,
.service-grid,
.summary-points {
  display: grid;
  gap: 1.1rem;
}

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

.story-card,
.trend-card,
.download-card,
.feature-card,
.path-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.story-card,
.trend-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.85rem;
}

.story-card img,
.trend-card img {
  aspect-ratio: 1.35;
  background: var(--cream-strong);
  object-fit: cover;
}

.story-card h2,
.trend-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.18;
}

.story-card button,
.trend-card button,
.route-panel button {
  width: fit-content;
  min-height: 2.3rem;
  padding: 0 0.85rem;
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.story-card button:hover,
.trend-card button:hover,
.route-panel button:hover,
.route-panel button.is-active {
  background: var(--gold);
  color: var(--ink-deep);
  transform: translateY(-1px);
}

.article-section,
.final-cta,
.page-hero,
.service-grid {
  margin-top: clamp(1.4rem, 4vw, 3rem);
}

.priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1rem, 3vw, 1.8rem);
}

.priority-strip article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.priority-strip span {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 950;
}

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

.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: 280px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.route-panel {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

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

.route-panel button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.article-body {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.content-panel,
.page-hero,
.final-cta,
.feature-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.content-panel {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

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

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

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

.summary-points > div,
.info-grid > div {
  display: grid;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
}

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

.note-box {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 1.05rem 1.15rem;
  border-left: 7px solid var(--gold);
  background: #fff8d6;
  color: var(--ink-deep);
}

.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(--ink);
  font-weight: 900;
}

.step-list h3 {
  color: var(--ink);
}

.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(--cream);
}

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

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

.download-card {
  padding: 1.2rem;
  background: var(--cream);
}

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

.guide-visual,
.market-figures figure {
  margin: 1.1rem 0;
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}

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

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

.market-figures img {
  background: var(--dark);
}

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

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

.path-grid article {
  padding: 1.1rem;
  background: var(--cream);
}

.path-grid h3 {
  color: var(--ink);
}

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

.faq-item {
  border: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 950;
  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.6rem, 4vw, 3rem);
  background: var(--cream);
}

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

.page-hero h1 {
  max-width: 820px;
}

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

.feature-card {
  padding: 1.2rem;
}

.feature-card h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

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

.site-footer {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3.5rem) max(1rem, calc((100vw - var(--content)) / 2));
  background: var(--ink);
  color: #eef2f7;
}

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

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

.site-footer a {
  color: #eef2f7;
  font-weight: 900;
}

.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(7, 52, 59, 0.68);
  backdrop-filter: blur(10px);
}

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

.modal-card h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

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

.copy-code {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-deep);
  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) {
  .masthead {
    grid-template-columns: 1fr;
    padding: 0.8rem 0;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .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;
  }

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

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .lead-image img {
    max-height: 360px;
  }

  .story-grid,
  .trend-grid,
  .summary-points,
  .priority-strip,
  .download-grid,
  .info-grid,
  .path-grid,
  .service-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
  }

  .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;
  }
}
