:root {
  color-scheme: light;
  --bg: #f6fbf9;
  --surface: #ffffff;
  --text: #12211f;
  --muted: #637471;
  --soft: #e4efed;
  --line: #d6e5e1;
  --teal: #0b766f;
  --blue: #1e75b8;
  --green: #5f9f61;
  --deep-green: #2f7b3f;
  --sand: #f6efe4;
  --shadow: 0 18px 45px rgba(18, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(30, 117, 184, 0.12), transparent 320px),
    radial-gradient(circle at 92% 18%, rgba(95, 159, 97, 0.14), transparent 320px),
    linear-gradient(180deg, rgba(228, 239, 237, 0.75) 0, rgba(247, 251, 250, 0) 390px),
    var(--bg);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

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

.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px 16px 42px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 10px 0 28px;
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%),
    linear-gradient(145deg, var(--blue), var(--teal) 56%, var(--green));
  box-shadow: 0 14px 28px rgba(11, 118, 111, 0.22);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

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

h1 {
  font-size: clamp(32px, 11vw, 54px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero-copy {
  max-width: 34rem;
  color: #38534f;
  font-size: 17px;
  line-height: 1.75;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dceae8;
  box-shadow: var(--shadow);
  border: 1px solid rgba(214, 229, 225, 0.9);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: inherit;
  z-index: 2;
}

.tour-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(58svh, 660px);
  background: #dceae8;
  object-fit: contain;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 0 0;
}

.feature-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--deep-green);
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.feature-item svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(18, 33, 31, 0.08);
}

.wechat-bubble {
  display: none;
}

.contact-label,
.info-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.contact-copy h2 {
  max-width: 18rem;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 800;
}

.wechat-id {
  margin-top: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.save-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: 13px;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--deep-green));
  box-shadow: 0 10px 22px rgba(47, 123, 63, 0.25);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.save-button:focus-visible {
  outline: 3px solid rgba(11, 118, 111, 0.35);
  outline-offset: 3px;
}

.wechat-qr {
  width: 118px;
  height: 151px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--soft);
}

.info-band {
  display: grid;
  gap: 12px;
  padding: 10px 0 28px;
}

.gallery-section {
  padding: 6px 0 34px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  margin-top: 16px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dceae8;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(18, 33, 31, 0.07);
  align-self: start;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(18, 33, 31, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.info-item {
  padding: 17px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(18, 33, 31, 0.05);
}

.info-item strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}

.info-item p,
.section-heading p,
.qr-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.section-heading {
  max-width: 620px;
}

.section-heading h2 {
  font-size: 26px;
  line-height: 1.16;
  font-weight: 800;
}

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

.qr-card {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 12px 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(18, 33, 31, 0.05);
}

.qr-card img {
  width: min(100%, 172px);
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}

.qr-card img.wechat-card-qr {
  aspect-ratio: auto;
  height: 220px;
  object-fit: contain;
}

.qr-card h3 {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
}

@media (min-width: 760px) {
  .page-shell {
    padding: 34px 28px 64px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(320px, 0.92fr) minmax(330px, 1fr);
    grid-template-areas:
      "brand media"
      "copy media"
      "features media"
      "contact media";
    align-items: center;
    gap: 18px 24px;
    padding: 22px 0 48px;
  }

  .brand-row {
    grid-area: brand;
    align-self: end;
  }

  .hero-copy {
    grid-area: copy;
  }

  .feature-row {
    grid-area: features;
    padding: 8px 0 0;
  }

  .media-frame {
    grid-area: media;
  }

  .contact-panel {
    grid-area: contact;
    align-self: start;
    grid-template-columns: 52px 1fr 124px;
    padding: 18px;
  }

  .wechat-bubble {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #3ead47, #24833a);
  }

  .wechat-bubble svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
  }

  .tour-video {
    aspect-ratio: 3 / 4;
    max-height: 740px;
  }

  .info-band {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 44px;
  }

  .gallery-section {
    padding-bottom: 48px;
  }

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

  .gallery-card-wide {
    grid-column: span 1;
  }

  .qr-pair {
    max-width: 540px;
  }
}

@media (max-width: 390px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .wechat-qr {
    width: min(100%, 230px);
    height: auto;
    justify-self: center;
  }

  .feature-item {
    font-size: 12px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .info-band {
    display: none;
  }

  .print-board {
    border: 0;
    padding: 0;
  }

  .qr-card {
    break-inside: avoid;
  }
}
