:root {
  --paper: #f4f4f1;
  --surface: #ffffff;
  --ink: #050505;
  --text: #202124;
  --muted: #60646c;
  --line: #050505;
  --soft-line: #d8d8d2;
  --accent: #f0b90b;
  --accent-soft: #fff3bd;
  --link: #006b55;
  --content: 1180px;
  --radius: 0;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", Arial, sans-serif;
  --display: "Arial Black", Impact, "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 {
  scroll-behavior: auto;
}

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

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

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: 3.75rem;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #000000;
  color: #ffffff;
  border-bottom: 1px solid #000000;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.masthead {
  position: relative;
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 1rem;
  text-align: center;
}

.brand {
  display: inline-grid;
  gap: 0.15rem;
  color: #ffffff;
  text-decoration: none;
}

.brand-text {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 1.05rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  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.88rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav button,
.site-nav a {
  color: #ffffff;
}

.site-nav button:hover,
.site-nav button.is-active,
.site-nav a:hover {
  color: var(--accent);
}

.header-actions {
  position: absolute;
  right: 0;
  top: 1.5rem;
}

.header-cta,
.button {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.header-cta {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

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

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

.button-ghost {
  background: transparent;
}

.button:hover,
.header-cta:hover,
.button:focus-visible,
.header-cta:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

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

.section-block {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

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

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.section-rule {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  margin-bottom: 1rem;
  border-top: 3px solid var(--line);
}

.section-rule span {
  padding-top: 0.5rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.story-meta,
.eyebrow,
.card-index,
.meta-line {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 1.6rem;
  align-items: start;
}

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

.lead-image {
  margin: 0 0 1rem;
  overflow: hidden;
  background: #111111;
}

.lead-image img {
  height: 410px;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms ease;
}

.lead-story:hover .lead-image img,
.story-card:hover img,
.trend-card:hover img {
  transform: scale(1.025);
}

.hero-lead {
  max-width: 760px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0.8rem;
}

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

.story-card,
.trend-card,
.feature-card,
.download-card,
.info-grid div,
.path-grid article {
  min-width: 0;
}

.story-card img,
.trend-card img {
  height: 150px;
  object-fit: cover;
  background: #111111;
  margin-bottom: 0.7rem;
}

.story-card h2,
.trend-card h2 {
  font-size: 1.18rem;
  line-height: 1.12;
}

.story-card button,
.trend-card button,
.route-panel button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.story-card button:hover,
.trend-card button:hover,
.route-panel button:hover,
.route-panel button.is-active {
  color: var(--link);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.trend-card img {
  height: 138px;
}

.category-section h2 {
  max-width: 1000px;
  margin-bottom: 0;
  font-size: 3.7rem;
  line-height: 1.06;
}

.black-panel {
  display: grid;
  justify-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding: 3.5rem 1.5rem;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.black-panel h2 {
  max-width: 780px;
  color: #ffffff;
  font-size: 2.25rem;
}

.black-panel p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.black-panel .button-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

.black-panel .button-secondary {
  border-color: #ffffff;
}

.article-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  border-top: 3px solid var(--line);
}

.route-panel {
  position: sticky;
  top: 8.4rem;
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem 0;
}

.route-heading {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--line);
}

.route-heading span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

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

.article-body {
  max-width: 850px;
  min-width: 0;
}

.content-panel {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--soft-line);
}

.content-panel:first-child {
  padding-top: 1.2rem;
}

.content-panel p,
.content-panel li,
.feature-card p,
.download-card p,
.path-grid p,
.page-hero p,
.service-grid p {
  color: var(--text);
}

.content-panel a {
  color: var(--link);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

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

.summary-points div,
.feature-card,
.download-card,
.info-grid div,
.path-grid article {
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.summary-points strong,
.summary-points span,
.note-box strong,
.note-box span,
.inline-cta strong,
.inline-cta span {
  display: block;
}

.summary-points strong {
  color: var(--ink);
  font-weight: 950;
}

.note-box,
.inline-cta,
.mini-guide {
  margin-top: 1.2rem;
  padding: 1rem;
  border-left: 6px solid var(--ink);
  background: var(--accent-soft);
}

.guide-visual {
  margin: 1.1rem 0 1.2rem;
  border: 2px solid var(--ink);
  background: #050505;
}

.guide-visual img {
  max-height: 430px;
  object-fit: contain;
}

.check-list,
.step-list,
.mini-guide ol {
  display: grid;
  gap: 0.75rem;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ink);
}

.step-list {
  padding-left: 0;
  list-style: none;
  counter-reset: guide-step;
}

.step-list li {
  position: relative;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--soft-line);
  counter-increment: guide-step;
}

.step-list li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 900;
}

.inline-cta,
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item {
  padding: 1rem 0;
  border-top: 2px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

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

.final-cta {
  margin-bottom: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.page-hero {
  max-width: 900px;
}

.page-hero h1 {
  font-size: 3.2rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: none;
  width: 100%;
  padding: 3.2rem max(1rem, calc((100vw - var(--content)) / 2));
  background: #000000;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer strong {
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 950;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.site-footer a:hover {
  color: var(--accent);
}

.modal[hidden] {
  display: none;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.4rem;
  background: var(--surface);
  animation: modal-in 160ms ease both;
}

.modal-close {
  float: right;
  min-height: 2.2rem;
  padding: 0 0.7rem;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.copy-code {
  display: block;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--link);
  font-family: var(--mono);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.copy-status {
  min-height: 1.5rem;
  color: var(--link);
  font-weight: 900;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1020px) {
  h1 {
    font-size: 3rem;
  }

  .brand-text {
    font-size: 3.1rem;
  }

  .header-actions {
    position: static;
    margin-top: 1rem;
  }

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

  .route-panel {
    position: static;
    border-top: 3px solid var(--line);
    border-bottom: 3px solid var(--line);
  }

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

  .article-body {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2,
  .black-panel h2 {
    font-size: 1.65rem;
  }

  .brand-text {
    font-size: 2.35rem;
  }

  .section-block {
    width: min(100% - 1rem, var(--content));
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

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

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

  .lead-image img {
    height: 320px;
  }

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

  .category-section h2 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .inline-cta,
  .final-cta,
  .site-footer,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .step-list li {
    padding-left: 0;
    padding-top: 3.3rem;
  }
}
