:root {
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-strong: #ece3d2;
  --ink: #1d2523;
  --muted: #5f6a65;
  --line: #d8d0c3;
  --accent: #0f766e;
  --accent-strong: #0a4f4a;
  --accent-soft: #d5ece6;
  --sun: #d97706;
  --night: #18243a;
  --radius: 8px;
  --shadow: 0 18px 50px rgb(29 37 35 / 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgb(15 118 110 / 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgb(15 118 110 / 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  left: 16px;
  position: fixed;
  top: -80px;
  z-index: 20;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header,
.site-footer,
.hero,
.section,
.breadcrumbs,
.content-layout {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.site-nav,
.hero__actions,
.keyword-row,
.inline-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--night);
  color: white;
  font-size: 0.78rem;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px 12px;
}

.site-nav a:hover {
  border-color: var(--line);
  background: rgb(255 255 255 / 0.6);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: stretch;
  padding: 46px 0 28px;
}

.hero--home {
  min-height: calc(100vh - 180px);
  align-items: center;
}

.hero--article {
  padding-top: 28px;
}

.hero__copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero p,
.section__heading p,
.article-section p,
.guide-card p,
.site-footer p {
  color: var(--muted);
}

.hero__copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.08rem;
}

.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  font-weight: 800;
}

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

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

.route-map {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
  box-shadow: var(--shadow);
}

.route-map__asset {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.route-map__node,
.city-visual,
.comparison-table,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.route-map__node {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.route-map__node strong {
  font-size: 1.4rem;
}

.route-map__node span {
  color: var(--muted);
}

.route-map__node--primary {
  border-left: 6px solid var(--accent);
}

.route-map__node--accent {
  border-left: 6px solid var(--sun);
}

.route-map__line {
  width: 2px;
  height: 34px;
  margin-left: 24px;
  background: var(--line);
}

.section {
  padding: 56px 0;
}

.section--tinted {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: rgb(255 253 248 / 0.64);
  border-block: 1px solid var(--line);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.guide-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  min-height: 210px;
}

.guide-card__visual {
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgb(24 36 58 / 0.92), rgb(15 118 110 / 0.88)),
    var(--night);
  color: white;
  font-weight: 900;
  padding: 18px;
  text-align: center;
}

.guide-card__visual span {
  overflow-wrap: anywhere;
}

.guide-card__body {
  padding: 20px;
}

.keyword-row {
  margin: 14px 0;
}

.keyword-row span,
.inline-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  padding: 6px 10px;
}

.keyword-row--large span {
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs span {
  display: inline-flex;
  gap: 8px;
}

.city-visual {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgb(15 118 110 / 0.16), rgb(217 119 6 / 0.18)),
    var(--surface);
}

.city-visual--dark {
  background:
    linear-gradient(145deg, rgb(24 36 58 / 0.94), rgb(15 118 110 / 0.8)),
    var(--night);
  color: white;
}

.city-visual span {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.city-visual strong {
  font-size: 1.3rem;
}

.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  align-self: center;
  background: var(--line);
}

.comparison-table div {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
}

.comparison-table strong {
  font-size: 1.6rem;
}

.comparison-table span {
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 22px 0 64px;
}

.article-body,
.side-panel {
  min-width: 0;
}

.article-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.article-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.article-section li {
  margin: 8px 0;
}

.side-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.side-panel .guide-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.side-panel .guide-card__visual {
  min-height: 84px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 18px;
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.inline-links {
  align-items: stretch;
}

.inline-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

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

.site-footer nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .content-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero--home {
    min-height: auto;
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0 8px;
  }

  .hero,
  .section {
    width: min(var(--max), calc(100% - 24px));
  }

  .grid--two,
  .comparison-table {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: 1fr;
  }

  .guide-card__visual {
    min-height: 116px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .city-visual {
    min-height: 230px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
