@font-face {
  font-family: "NT Display";
  src: url("/assets/fonts/FKDisplay-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #f7f7f3;
  --white: #ffffff;
  --acid: #f1ff4e;
  --wine: #6e2035;
  --line: rgba(17, 17, 17, 0.16);
  --muted: #5f625d;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 243, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell,
.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.language-switcher {
  position: relative;
}

.language-menu-trigger {
  min-width: 82px;
  height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.language-menu-trigger:hover,
.language-menu-trigger:focus-visible,
.language-menu-trigger[aria-expanded="true"] {
  background: var(--acid);
  outline: none;
}

.language-menu-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.language-menu-trigger[aria-expanded="true"] .language-menu-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-menu-list {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 60;
  width: 76px;
  padding: 6px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.14);
}

.language-menu-list[hidden] {
  display: none;
}

.language-menu-list a {
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.language-menu-list a:hover,
.language-menu-list a:focus-visible {
  background: var(--acid);
  outline: none;
}

.language-menu-list a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.language-menu-option-code {
  opacity: 1;
}

.brand img {
  width: 174px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.button.is-light {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.button.is-outline {
  background: transparent;
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

.hero {
  padding: 64px 0 74px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.eyebrow,
.section-label,
.fact-label {
  margin: 0 0 18px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "NT Display", Arial, sans-serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(52px, 8vw, 112px);
}

h2 {
  max-width: 920px;
  font-size: clamp(40px, 5.5vw, 72px);
}

h3 {
  font-size: clamp(28px, 3vw, 42px);
}

html[lang="zh-Hans"] body,
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html[lang="zh-Hans"] h1 {
  font-size: clamp(54px, 7vw, 94px);
  line-height: 1.06;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-aside {
  border-top: 5px solid var(--acid);
  padding-top: 22px;
}

.hero-aside p {
  margin: 0 0 22px;
}

.hero-aside ul,
.check-list,
.faq-list,
.footer-links,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-aside li,
.check-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.answer-band {
  padding: 42px 0;
  background: var(--acid);
}

.answer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1.65fr);
  gap: 40px;
}

.answer-grid p {
  max-width: 900px;
  margin: 0;
  font-size: clamp(21px, 2.4vw, 31px);
  line-height: 1.36;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.55fr);
  gap: 42px;
  margin-bottom: 52px;
}

.section-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.grid-2,
.grid-3,
.related-grid,
.case-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

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

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

.panel,
.related-card,
.case-card {
  min-width: 0;
  padding: 30px;
  background: var(--paper);
}

.panel h3,
.related-card h3,
.case-card h3 {
  margin-bottom: 18px;
}

.panel p,
.related-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
}

.panel-index {
  display: block;
  margin-bottom: 42px;
  color: var(--wine);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.related-card,
.case-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.related-card:hover,
.case-card:hover {
  background: var(--white);
}

.related-card span,
.case-card span {
  margin-top: 28px;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.media-band {
  min-height: 520px;
  background: var(--ink);
}

.media-band img {
  width: 100%;
  height: min(66vw, 690px);
  object-fit: cover;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-step {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step strong {
  display: block;
  margin-bottom: 18px;
  color: var(--wine);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
}

.process-step h3 {
  margin-bottom: 16px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.faq-list summary {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  gap: 30px;
  font-family: "NT Display", Arial, sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: Arial, sans-serif;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
}

.case-card {
  padding: 0;
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card-body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.cta-band {
  padding: 84px 0;
  background: var(--ink);
  color: var(--white);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  align-items: end;
  gap: 50px;
}

.cta-grid p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.site-footer {
  padding: 54px 0 30px;
  background: var(--wine);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.6fr);
  gap: 40px;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-title {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .answer-grid,
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand img {
    width: 148px;
  }

  .nav-shell > .button {
    min-height: 40px;
    padding: 9px 12px;
  }

  .hero {
    padding: 42px 0 56px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  html[lang="zh-Hans"] h1 {
    font-size: 48px;
    line-height: 1.08;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .related-grid,
  .case-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding-right: 0;
    border-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
