* {
  box-sizing: border-box;
}

:root {
  --bg: #f4faf8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #13272f;
  --muted: #5d7078;
  --line: rgba(19, 39, 47, 0.1);
  --brand: #13b8a7;
  --brand-strong: #0f8f84;
  --brand-soft: #e3f8f5;
  --accent: #2f6feb;
  --warm: #f08b45;
  --shadow: 0 18px 46px rgba(23, 54, 61, 0.1);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --container: 1180px;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--text);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Source Han Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    linear-gradient(120deg, rgba(19, 184, 167, 0.1), transparent 34%),
    linear-gradient(240deg, rgba(47, 111, 235, 0.08), transparent 30%),
    var(--bg);
}

body::selection {
  background: rgba(19, 184, 167, 0.2);
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  overflow-x: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 39, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 39, 47, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 82%);
}

.topbar,
.hero,
.quick-map,
.steps-layout,
.footer-note {
  position: relative;
  min-width: 0;
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(20, 52, 57, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #102b6b 0%, var(--brand) 100%);
  color: #fff;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
}

.topnav a,
.sidebar-link {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topnav a {
  min-width: 0;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(19, 184, 167, 0.11);
  color: var(--text);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
  padding: 60px 0 28px;
}

.hero-copy,
.hero-visual,
.quick-map,
.step-card,
.footer-panel,
.sidebar-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 560px;
  padding: 52px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 28px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.footer-panel h2 {
  margin: 0;
}

.hero h1 {
  max-width: 10ch;
  font-size: 4.25rem;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.hero-text,
.step-copy p,
.footer-panel p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.78;
}

.hero-text {
  max-width: 56ch;
  margin: 20px 0 28px;
}

.hero-actions,
.action-row,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.hero-actions {
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #0e9f91 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(19, 184, 167, 0.27);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 30px rgba(19, 184, 167, 0.35);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #fff;
}

.hero-points,
.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points {
  display: grid;
  gap: 12px;
  color: #2c4650;
}

.hero-points li,
.bullet-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.72;
}

.hero-points li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transform: translateY(-50%);
}

.hero-points li:nth-child(2)::before,
.bullet-list li:nth-child(2)::before {
  background: var(--warm);
}

.preview-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 22px 46px rgba(17, 48, 56, 0.14);
}

.preview-frame img,
.step-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-main {
  top: 54px;
  right: -22px;
  width: min(92%, 620px);
  aspect-ratio: 1.65;
}

.preview-side {
  left: 24px;
  bottom: 114px;
  width: min(56%, 380px);
  aspect-ratio: 1.66;
}

.preview-note {
  position: absolute;
  right: 30px;
  bottom: 30px;
  max-width: 330px;
  padding: 20px;
  border: 1px solid rgba(19, 184, 167, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(17, 48, 56, 0.1);
}

.preview-note span,
.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-note strong {
  display: block;
  margin: 10px 0 6px;
}

.preview-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.64;
}

.quick-map {
  padding: 30px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 2.8rem;
  line-height: 1.1;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-card {
  min-height: 214px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.flow-card:hover,
.flow-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(19, 184, 167, 0.3);
  background: #fff;
  box-shadow: 0 16px 30px rgba(17, 48, 56, 0.1);
  outline: none;
}

.flow-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.steps-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-panel {
  padding: 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px;
  border-radius: var(--radius-md);
  color: var(--muted);
  cursor: pointer;
}

.sidebar-link span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(19, 39, 47, 0.06);
  color: var(--text);
  font-weight: 800;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.active {
  background: rgba(19, 184, 167, 0.12);
  color: var(--text);
  outline: none;
}

.steps-content {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  scroll-margin-top: 108px;
}

.step-copy {
  min-width: 0;
  padding: 4px;
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.step-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shot-label {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(19, 39, 47, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.step-visual img {
  aspect-ratio: 1.66;
  border-radius: 10px;
}

.footer-note {
  padding: 6px 0 52px;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
}

.footer-panel h2 {
  font-size: 2.55rem;
  line-height: 1.12;
}

.footer-panel p {
  max-width: 68ch;
  margin: 14px 0 0;
}

.cta-actions {
  justify-content: flex-end;
  min-width: 260px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .button,
  .flow-card,
  .reveal {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .hero,
  .steps-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    min-height: auto;
  }

  .hero-copy {
    padding: 36px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 3.65rem;
  }

  .hero-visual {
    min-height: 460px;
  }

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

  .steps-sidebar {
    position: static;
  }

  .sidebar-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    border-radius: 999px;
  }

  .sidebar-panel .eyebrow {
    display: none;
  }

  .sidebar-link {
    min-width: max-content;
    margin-top: 0;
    border-radius: 999px;
  }

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

  .footer-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .quick-map,
  .steps-layout,
  .footer-note {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-left: 10px;
    margin-right: 10px;
    overflow: hidden;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    top: 8px;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
    border-radius: 20px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    gap: 6px;
    overflow: visible;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar,
  .sidebar-panel::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    background: rgba(19, 184, 167, 0.08);
    font-size: 0.84rem;
    text-align: center;
    white-space: normal;
  }

  .hero {
    gap: 16px;
    padding: 34px 0 18px;
  }

  .hero-copy,
  .hero-visual,
  .quick-map,
  .step-card,
  .footer-panel {
    border-radius: var(--radius-lg);
  }

  .hero-copy,
  .quick-map,
  .step-card,
  .footer-panel {
    padding: 20px;
  }

  .hero h1 {
    font-size: 2.25rem;
    word-break: break-all;
  }

  .hero-text,
  .step-copy p,
  .footer-panel p {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
    flex: none;
    max-width: 100%;
    min-height: 48px;
    padding: 0 14px;
  }

  .hero-actions,
  .action-row,
  .cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border-radius: var(--radius-lg);
  }

  .sidebar-link {
    justify-content: center;
    min-width: 0;
    padding: 10px 8px;
    gap: 8px;
    text-align: center;
    white-space: normal;
  }

  .hero-visual {
    min-height: 360px;
    padding: 16px;
  }

  .preview-main {
    top: 24px;
    right: -92px;
    width: 128%;
  }

  .preview-side {
    left: 16px;
    bottom: 94px;
    width: 68%;
  }

  .preview-note {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    padding: 16px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: 0;
    padding: 18px;
  }

  .steps-layout {
    gap: 16px;
    padding-top: 18px;
  }

  .sidebar-panel {
    margin-inline: -2px;
    padding: 10px;
  }

  .sidebar-link {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .sidebar-link span {
    width: 30px;
    height: 30px;
  }

  .step-card {
    gap: 18px;
    scroll-margin-top: 94px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .step-visual {
    padding: 8px;
  }

  .shot-label {
    left: 16px;
    top: 16px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .step-visual img {
    aspect-ratio: 1.38;
    object-position: center top;
  }

  .footer-note {
    padding-bottom: 36px;
  }
}

@media (max-width: 420px) {
  .hero-copy,
  .quick-map,
  .step-card,
  .footer-panel {
    padding: 18px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .preview-side {
    width: 74%;
  }

  .preview-note {
    font-size: 0.92rem;
  }
}
