:root {
  --sea-900: #073447;
  --sea-700: #0d6e8c;
  --lagoon: #1aa6a1;
  --palm: #227052;
  --coral: #ef6f4a;
  --sun: #f5bf45;
  --sand: #f6f1e7;
  --mist: #edf8f7;
  --ink: #14252c;
  --muted: #62737a;
  --line: #d6e2e2;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(7, 52, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.14;
}

h1 {
  font-size: clamp(46px, 8vw, 90px);
}

h2 {
  color: var(--sea-900);
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  color: var(--sea-900);
  font-size: 21px;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4.5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(214, 226, 226, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sea-900);
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--sea-700), var(--palm));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sea-900);
  background: var(--mist);
}

.nav-links .language-link {
  color: var(--sea-900);
  border: 1px solid rgba(13, 110, 140, 0.26);
  background: rgba(237, 248, 247, 0.72);
}

.nav-links .language-link:hover {
  color: var(--white);
  background: var(--sea-700);
}

.hero,
.subhero {
  position: relative;
  color: var(--white);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before,
.subhero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 52, 71, 0.86), rgba(7, 52, 71, 0.48), rgba(7, 52, 71, 0.08)),
    linear-gradient(0deg, rgba(7, 52, 71, 0.32), rgba(7, 52, 71, 0.12));
}

.home-hero {
  min-height: clamp(560px, 78svh, 760px);
  display: grid;
  align-content: center;
  gap: clamp(32px, 6vw, 76px);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 84px) clamp(28px, 5vw, 56px);
  background-image: url("assets/hero-sanya-bay.jpg");
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.subhero .eyebrow {
  color: var(--sun);
}

.hero-copy {
  width: min(650px, 100%);
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: var(--sea-900);
  background: var(--sun);
  box-shadow: 0 12px 28px rgba(245, 191, 69, 0.28);
}

.btn.primary.dark {
  color: var(--white);
  background: var(--sea-700);
  box-shadow: 0 12px 28px rgba(13, 110, 140, 0.18);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.1);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.hero-notes span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(7, 52, 71, 0.2);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 84px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
  background: var(--mist);
}

.intro-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

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

.intro-grid article,
.plain-card,
.note-grid article,
.option-grid article,
.timeline article,
.day-strip article,
.food-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-grid article {
  min-height: 260px;
  padding: 22px;
}

.intro-grid strong,
.day-strip span,
.timeline span,
.food-list span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
}

.intro-grid p,
.card-body p,
.plain-card p,
.note-grid p,
.option-grid p,
.timeline p,
.day-strip p,
.food-list p,
.feature-copy p,
.facts dd,
.checklist p {
  color: var(--muted);
}

.intro-grid h3,
.plain-card h3,
.note-grid h3,
.option-grid h3,
.timeline h3,
.day-strip h3,
.food-list h3 {
  margin-bottom: 10px;
}

.image-band,
.stay-guide,
.checklist-section {
  background: var(--white);
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-body p {
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  color: var(--sea-900);
  background: rgba(245, 191, 69, 0.28);
  border: 1px solid rgba(245, 191, 69, 0.42);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.route-preview {
  background: linear-gradient(180deg, var(--sand), #ffffff);
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.day-strip article,
.timeline article,
.option-grid article,
.note-grid article,
.plain-card,
.food-list article {
  padding: 22px;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--sea-700);
  font-weight: 900;
  border-bottom: 2px solid var(--coral);
}

.split-feature,
.slow-route {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: var(--sea-900);
  color: var(--white);
}

.split-feature.compact {
  background: var(--mist);
  color: var(--ink);
}

.feature-image img {
  width: 100%;
  height: min(520px, 58vw);
  min-height: 340px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-copy {
  max-width: 720px;
}

.feature-copy h2,
.split-feature h2,
.slow-route h2 {
  color: inherit;
}

.feature-copy p:not(.eyebrow) {
  margin: 18px 0 26px;
  font-size: 18px;
}

.subhero {
  min-height: clamp(360px, 48svh, 520px);
  display: grid;
  align-items: end;
  padding: clamp(76px, 10vw, 124px) clamp(20px, 6vw, 84px) clamp(42px, 7vw, 76px);
}

.subhero > div {
  width: min(780px, 100%);
}

.subhero p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

.attractions-hero {
  background-image: url("assets/yalong-bay.jpg");
}

.itinerary-hero {
  background-image: url("assets/sanya-bay.jpg");
}

.food-hero {
  background-image: url("assets/wenchang-chicken.jpg");
  background-position: center 58%;
}

.attraction-list {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
}

.feature-row.reverse img {
  order: 2;
}

.feature-row img {
  width: 100%;
  height: min(460px, 48vw);
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-row p {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 18px;
}

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

.facts div {
  padding: 14px;
  border-left: 4px solid var(--lagoon);
  background: var(--mist);
}

.facts dt {
  color: var(--sea-900);
  font-weight: 900;
}

.facts dd {
  margin: 4px 0 0;
}

.note-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  background: var(--sand);
}

.note-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 18px;
  counter-reset: day;
}

.timeline article {
  display: grid;
  grid-template-columns: 116px minmax(0, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline span {
  margin-bottom: 0;
}

.timeline p {
  font-size: 17px;
}

.slow-route {
  align-items: start;
  background: var(--sea-900);
}

.slow-route .option-grid article {
  background: rgba(255, 255, 255, 0.94);
}

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

.checklist p {
  min-height: 150px;
  padding: 20px;
  border-top: 4px solid var(--coral);
  background: var(--mist);
}

.checklist strong {
  color: var(--sea-900);
}

.food-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

.food-layout > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.plain-card {
  min-height: 230px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--sea-900);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

@media (max-width: 1100px) {
  .card-grid.four,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .split-feature,
  .slow-route,
  .food-layout,
  .note-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .home-hero {
    min-height: 72svh;
    padding-top: 62px;
  }

  .intro-grid,
  .day-strip,
  .note-grid,
  .option-grid,
  .food-list {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse img {
    order: 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-row img,
  .feature-image img,
  .food-layout > img {
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 580px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 14px;
  }

  .home-hero {
    min-height: 70svh;
    padding: 56px 18px 28px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .feature-copy p:not(.eyebrow),
  .feature-row p {
    font-size: 16px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .section,
  .subhero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-grid.four,
  .checklist,
  .facts {
    grid-template-columns: 1fr;
  }

  .image-card img {
    height: 220px;
  }
}
