:root {
  color-scheme: light;
  --ink: #182321;
  --muted: #66736d;
  --line: #dbe5df;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --forest: #1f7a5a;
  --river: #3487a7;
  --sun: #d98b2b;
  --stone: #78847e;
  --shadow: 0 18px 50px rgba(28, 48, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background: #0f1715;
  color: white;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-splash.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-splash.playing .intro-overlay {
  background: linear-gradient(180deg, rgba(8, 16, 14, 0.08), rgba(8, 16, 14, 0.34));
}

.intro-splash.playing .intro-overlay h1,
.intro-splash.playing .intro-overlay p:not(.eyebrow):not(.intro-status),
.intro-splash.playing .intro-overlay .eyebrow {
  opacity: 0;
  pointer-events: none;
}

.intro-video,
.intro-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-video {
  z-index: 1;
}

.intro-fallback {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 21, 0.12), rgba(15, 23, 21, 0.88)),
    radial-gradient(circle at 30% 32%, rgba(194, 231, 220, 0.26), transparent 24%),
    linear-gradient(135deg, #173d35 0%, #7b8d75 38%, #d7c08a 54%, #2d6673 100%);
}

.intro-fallback::before,
.intro-fallback::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 80vw;
  height: 48vh;
  background: linear-gradient(145deg, transparent 20%, rgba(11, 37, 31, 0.82) 21% 44%, transparent 45%);
  filter: blur(1px);
}

.intro-fallback::after {
  left: auto;
  right: -18vw;
  width: 78vw;
  height: 62vh;
  opacity: 0.72;
  transform: scaleX(-1);
}

.intro-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: clamp(28px, 6vw, 82px);
  background: linear-gradient(90deg, rgba(8, 16, 14, 0.78), rgba(8, 16, 14, 0.2) 58%, rgba(8, 16, 14, 0.54));
}

.intro-overlay h1 {
  max-width: 860px;
  color: white;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.intro-overlay p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.intro-actions .secondary-action {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.intro-actions .secondary-action.ready {
  background: white;
  border-color: white;
  color: var(--ink);
}

.intro-actions .sound-btn.ready {
  background: #f0c76d;
  border-color: #f0c76d;
  color: #182321;
}

.intro-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.intro-splash.playing .intro-status {
  opacity: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(24, 35, 33, 0.08);
  background: rgba(246, 248, 245, 0.88);
  backdrop-filter: blur(14px);
}

.sync-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px clamp(18px, 4vw, 54px);
  background: #e6f2ed;
  color: #275446;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.install-btn {
  min-height: 32px;
  border: 1px solid rgba(31, 122, 90, 0.28);
  border-radius: 8px;
  background: white;
  color: var(--forest);
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}

.install-btn.ready {
  background: var(--forest);
  color: white;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.language-box {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.language-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.language-select {
  min-width: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: clamp(28px, 5vw, 70px) clamp(18px, 4vw, 54px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
}

.hero-copy > p:not(.eyebrow),
.contact-section > div > p {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action,
.full-action,
.icon-text-btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action,
.full-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: white;
}

.secondary-action,
.icon-text-btn {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.map-panel {
  position: relative;
  min-height: 520px;
}

.map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.66), rgba(255,255,255,0.22)),
    radial-gradient(circle at 22% 70%, rgba(52, 135, 167, 0.26), transparent 24%),
    radial-gradient(circle at 78% 25%, rgba(31, 122, 90, 0.24), transparent 26%),
    linear-gradient(120deg, #dfeadf, #f7f4e8 45%, #d9e7e2);
  box-shadow: var(--shadow);
}

.map-bg::before,
.map-bg::after {
  content: "";
  position: absolute;
  border-radius: 45%;
  background: rgba(31, 122, 90, 0.12);
  transform: rotate(-24deg);
}

.map-bg::before {
  width: 360px;
  height: 180px;
  left: 30px;
  top: 58px;
}

.map-bg::after {
  width: 390px;
  height: 210px;
  right: -28px;
  bottom: 42px;
}

.route-lines {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  fill: none;
  stroke: rgba(31, 122, 90, 0.56);
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-width: 4;
}

.map-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 8px 20px rgba(24, 35, 33, 0.28);
  cursor: pointer;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 2px;
  height: 18px;
  background: rgba(24, 35, 33, 0.32);
}

.pin-forest { left: 42%; top: 48%; background: var(--forest); }
.pin-tianmen { left: 19%; top: 72%; background: var(--river); }
.pin-canyon { left: 78%; top: 74%; }
.pin-cave { left: 72%; top: 27%; background: #b56f3a; }
.pin-lake { left: 27%; top: 25%; background: #287a9b; }
.pin-phoenix { left: 82%; top: 38%; background: #8c5b9d; }
.pin-hongjiang { left: 70%; top: 86%; background: #9a6632; }

.map-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 16px;
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(24, 35, 33, 0.12);
}

.planner,
.recommended,
.video-upload-section,
.contact-section {
  padding: 54px clamp(18px, 4vw, 54px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.control-block,
.spots-list,
.route-summary,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.control-block {
  padding: 16px;
}

.control-block label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented,
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.checks label,
.spot-card,
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.segmented button {
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}

.segmented button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.spots-list,
.route-summary {
  padding: 18px;
}

.spot-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.spot-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}

.spot-card.active {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(31, 122, 90, 0.14);
}

.spot-thumb {
  min-height: 76px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.46)),
    var(--thumb);
}

.spot-card p,
.route-card p,
.route-steps,
.tips-box p {
  color: var(--muted);
  line-height: 1.55;
}

.spot-card p,
.route-card p {
  margin: 6px 0 0;
  font-size: 14px;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.route-badge {
  align-self: start;
  border-radius: 999px;
  background: rgba(31, 122, 90, 0.1);
  color: var(--forest);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.route-steps {
  margin: 18px 0;
  padding-left: 22px;
}

.route-steps li {
  margin-bottom: 8px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-metrics div,
.tips-box {
  border-radius: 8px;
  background: #f1f6f3;
  padding: 12px;
}

.summary-metrics small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.tips-box {
  margin-bottom: 14px;
}

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

.route-card {
  padding: 16px;
}

.route-card button {
  width: 100%;
  margin-top: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(20px, 5vw, 60px);
  align-items: start;
  background: #e8f0eb;
}

.video-upload-section {
  background: #f9faf6;
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
}

.upload-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.review-flow {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.review-flow span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--ink);
  font-weight: 800;
}

.video-form input[type="file"] {
  background: white;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-methods a {
  border: 1px solid rgba(31, 122, 90, 0.24);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}

.lead-form .wide,
.lead-form button,
.form-result {
  grid-column: 1 / -1;
}

.form-result {
  min-height: 22px;
  margin: 0;
  color: var(--forest);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .upload-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .map-panel {
    min-height: 420px;
  }

  .controls-grid,
  .route-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .language-select {
    width: 100%;
  }

  .language-box {
    justify-items: stretch;
  }

  .language-box small {
    text-align: left;
  }

  .sync-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .icon-text-btn {
    width: 100%;
    justify-content: center;
  }

  .spot-cards,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .spot-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}
