:root {
  --ink: #13262c;
  --ink-soft: #3d545b;
  --map: #0f2c34;
  --map-mid: #16424c;
  --sea: #1b5560;
  --paper: #f7f2e8;
  --card: #fffdf8;
  --line: #d9cfc0;
  --route: #2bb8a0;
  --route-deep: #1a8a78;
  --pin: #e25b3a;
  --gold: #d4a017;
  --focus: #1a6b8a;
  --shadow: 0 14px 36px rgba(19, 38, 44, 0.12);
  --radius: 18px;
  --wrap: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--route-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.topbar {
  background: var(--map);
  color: #d7ece8;
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 232, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(19, 38, 44, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--route);
}

.brand small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.nav-panel ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: #efe6d4;
}

.nav-panel .cta {
  background: var(--pin);
  color: #fff;
}

.nav-panel .cta:hover,
.nav-panel .cta[aria-current="page"] {
  background: #c4472c;
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0 1.2rem;
}

.hero-copy {
  position: relative;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #e7f6f2;
  color: var(--route-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag.alt {
  background: #fde8e2;
  color: var(--pin);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button {
  background: var(--pin);
  color: #fff;
}

.button:hover {
  background: #c4472c;
  color: #fff;
}

.button-alt {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.05rem;
}

.metric span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.hero-art {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 44, 52, 0.08), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(27, 85, 96, 0.08) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(27, 85, 96, 0.08) 24px),
    #dfece8;
  border-radius: 28px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 10% auto auto;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(43, 184, 160, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(43, 184, 160, 0.08);
  pointer-events: none;
}

.hero-art img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.map-label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  color: var(--map);
  font-size: 0.82rem;
  font-weight: 700;
}

.compass {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  z-index: 2;
}

.compass circle {
  fill: var(--card);
  stroke: var(--line);
}

.pin {
  width: 22px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
}

.route-board {
  margin: 0.4rem 0 2rem;
  background: var(--map);
  color: #e8f4f1;
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}

.route-board figcaption {
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.86rem;
}

.route-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.route-legend .c1 { background: var(--gold); }
.route-legend .c2 { background: var(--route); }
.route-legend .c3 { background: #7ec8ff; }
.route-legend .c4 { background: var(--pin); }

.route-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--route), #7ec8ff, var(--pin));
  border-radius: 999px;
}

.route-stop a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  min-height: 148px;
  padding: 0.85rem 0.8rem 0.95rem;
  border-radius: 16px;
  background: var(--map-mid);
  color: inherit;
  text-decoration: none;
}

.route-stop a:hover,
.route-stop.is-here a {
  background: #1d5a66;
}

.route-code {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--map);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-stop.is-here .route-code {
  background: var(--pin);
  color: #fff;
}

.route-name {
  font-weight: 800;
}

.route-hint {
  font-size: 0.82rem;
  color: #c9e0db;
}

.here-flag {
  display: none;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffd2c6;
}

.route-stop.is-here .here-flag {
  display: inline-flex;
}

section {
  padding: 2.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-head p {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.9rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.seo-card,
.platform,
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.seo-card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.seo-card:hover,
.card:focus-within {
  border-color: var(--route);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--route-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin);
  display: inline-block;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.figure {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(27, 85, 96, 0.05) 13px),
    #e7efe9;
  border-radius: 22px;
  padding: 0.85rem;
}

.figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.checklist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--route);
}

.page-hero {
  padding: 2rem 0 0.4rem;
}

.crumbs {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.warn,
.note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.warn {
  background: #fde8e2;
  color: #7a2d1d;
}

.note {
  background: #e7f6f2;
  color: #145247;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
}

.faq details p {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
}

footer {
  background: var(--map);
  color: #dcecea;
  padding: 2.4rem 0 1.4rem;
  margin-top: 1rem;
}

footer a {
  color: #b7ece0;
}

footer h3 {
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.2rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.logo-block img {
  width: 40px;
  height: 40px;
}

.legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #b7c8c4;
}

@media (max-width: 980px) {
  .hero,
  .detail,
  .grid-4,
  .footer-grid,
  .route-line {
    grid-template-columns: 1fr 1fr;
  }

  .metrics,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .route-line::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 6px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-panel ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .detail,
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics,
  .footer-grid,
  .route-line,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
