:root {
  color-scheme: light;
  --paper: #f9faf5;
  --hero: #eef1e6;
  --panel: #eef2e9;
  --lime: #d7e9a8;
  --ink: #18382c;
  --body: #2e4538;
  --forest: #153f30;
  --deep: #102e24;
  --white: #ffffff;
  --wrap: 79rem;
  --gutter: clamp(1.25rem, 5.4vw, 5rem);
  --cut: 0.5rem;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 700; line-height: 1.16; }
h2 { font-size: clamp(2rem, 3.25vw, 3.125rem); letter-spacing: -0.04em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; }
p { color: var(--body); }
[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 3px solid #286c53; outline-offset: 4px; }

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.5rem 1rem;
  color: var(--deep);
  background: var(--lime);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); }

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.brand img { width: 2.625rem; height: 2.625rem; border-radius: 0.375rem; }

.primary-nav { display: flex; gap: clamp(1.125rem, 3vw, 2.875rem); }
.primary-nav a, .contact-link { font-weight: 600; text-decoration: none; }
.primary-nav a { padding-block: 0.45rem; text-underline-offset: 0.44em; }
.primary-nav a:hover, .primary-nav [aria-current] { text-decoration: underline 0.12em; }

.contact-link {
  flex: 0 0 auto;
  padding: 0.6rem 1.05rem;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.contact-link:hover { background: #dce8d9; }
.contact-link:focus-visible, .button:focus-visible { outline-offset: -5px; }

.hero { background: var(--hero); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.75rem, 4.2vw, 4.25rem);
  padding-block: clamp(2.25rem, 4.15vw, 4.125rem);
}

.hero h1 {
  color: var(--deep);
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  letter-spacing: -0.065em;
}

.hero h1 span { display: block; }
.hero-copy p {
  margin-block: 1.25rem 1.65rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  text-wrap: balance;
}

.button {
  display: inline-grid;
  justify-items: center;
  align-items: center;
  min-height: 3.125rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  color: var(--white);
  background: var(--forest);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.button:hover { background: #225841; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline-color: var(--lime); }

.hero-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.53;
  overflow: hidden;
  background: #c5c9ab;
  clip-path: polygon(0 0, calc(100% - 2.2rem) 0, 100% 2.2rem, 100% 100%, 0 100%);
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.guide-nav { color: var(--white); background: var(--forest); }
.guide-nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-nav a {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 7.75rem;
  gap: 0.18rem;
  padding: 1rem 1.6rem 1rem 1.25rem;
  text-decoration: none;
}
.guide-nav a:nth-child(even) { background: #194735; }
.guide-nav a:hover { background: #225841; }
.guide-nav a::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.25rem);
  right: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: rotate(45deg);
}
.guide-nav a:focus-visible { outline-color: var(--lime); outline-offset: -5px; }
.guide-nav strong { font-size: 1.25rem; font-weight: 650; }
.guide-nav a span { color: #deeadf; font-size: 0.9rem; }

.section { padding-block: clamp(3.75rem, 7.4vw, 7rem); }

.guide-section, .about {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 8vw, 8rem);
}
.section-intro p { margin-top: 1.125rem; }
.section-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
}
.guide-image { margin-top: 1.4rem; aspect-ratio: 2.2; }
.guide-list { display: grid; align-content: start; gap: 0.65rem; }
.guide { background: var(--panel); }

.guide summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.125rem, 3vw, 1.75rem);
  list-style: none;
  cursor: pointer;
}
.guide summary:hover { background: #e1eade; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary:focus-visible { outline-offset: -5px; }
.disclosure {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.guide[open] .disclosure { margin-top: 0.3rem; transform: rotate(225deg); }
.guide:not([open]) .guide-body { display: none; }
.guide-body { padding: 0 1.75rem 1.25rem; }
.guide-body .note { font-size: 0.875rem; }
.carrier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}
.carrier-links a { display: inline-block; padding-block: 0.3rem; text-underline-offset: 0.25em; font-weight: 650; }
.tips { margin: 0; padding-left: 1.2rem; color: var(--body); }
.tips li + li { margin-top: 0.55rem; }

.scenes { background: #e6eee0; }
.scenes h2 { margin-bottom: clamp(1.4rem, 4vw, 2.5rem); }
.scene-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.375rem;
  margin-bottom: 0.6rem;
}
.scene-tabs button {
  min-height: 3rem;
  padding: 0.475rem 0.25rem;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  font-weight: 650;
  cursor: pointer;
}
.scene-tabs button:hover { background: #d7e6d6; }
.scene-tabs button[aria-selected="true"] { color: var(--white); background: var(--forest); }
.scene-tabs button:focus-visible { outline-offset: -4px; }
.scene-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--lime); }

.scene-panels { display: grid; gap: 0.75rem; }
.scene-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.73fr) minmax(0, 1.27fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: var(--paper);
  min-height: 12rem;
}
.scene-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.scene-panel p { margin-top: 0.5rem; }
.scene-panel ol { margin: 0; padding-left: 1.4rem; color: var(--body); }
.scene-panel li { padding-left: 0.25rem; }
.scene-panel li + li { margin-top: 0.45rem; }
.scene-panel li::marker { font-weight: 700; color: var(--forest); }

.about { align-items: center; }
.about-image { aspect-ratio: 1.9; }
.about-lead {
  margin-top: 1.15rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 650;
  text-wrap: balance;
}
.about p + p { margin-top: 0.75rem; }

.contact {
  color: var(--white);
  background: var(--deep);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}
.contact p { color: #e0e9e1; margin-block: 0.9rem 1.15rem; }
.contact p span { white-space: nowrap; }
.contact .button { color: var(--deep); background: var(--lime); }
.contact .button:hover { background: #e2f0bd; }
.contact .button:focus-visible { outline-color: var(--deep); }
.copy-status { display: block; min-height: 1.5rem; margin-top: 0.55rem; }
.qr {
  width: fit-content;
  margin-right: clamp(0rem, 4vw, 3.25rem);
  padding: 0.75rem;
  color: var(--ink);
  background: var(--white);
  text-align: center;
}
.qr img { width: 9.375rem; height: auto; image-rendering: pixelated; }
.qr figcaption { margin-top: 0.35rem; font-size: 0.9rem; }

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
}
.footer .brand img { width: 2rem; height: 2rem; }
.footer .brand { font-size: 1.125rem; }
.footer > a:last-child { justify-self: end; text-underline-offset: 0.25em; }

@media (max-width: 56rem) {
  .hero-inner { gap: 1.5rem; }
  .guide-nav a { padding-inline: 0.8rem 1.25rem; }
  .guide-nav a::after { right: 0.65rem; }
}

@media (max-width: 44rem) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    row-gap: 0.3rem;
    padding-block: 0.65rem 0.2rem;
  }
  .brand { font-size: 1.25rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .contact-link { grid-column: 2; grid-row: 1; font-size: 0.9rem; }
  .primary-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9375rem;
  }
  .primary-nav a { min-height: 2.75rem; padding-block: 0.6rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; padding-block: 2.25rem 1.4rem; }
  .hero h1 { font-size: clamp(2.125rem, 10.3vw, 3.75rem); }
  .hero-copy p { margin-block: 0.9rem 1.15rem; }
  .hero-media { min-height: 0; clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%); }
  .guide-nav-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-nav a { min-height: 5.75rem; }
  .guide-nav a:nth-child(3) { background: #194735; }
  .guide-nav a:nth-child(4) { background: transparent; }
  .guide-nav a:hover { background: #225841; }
  .guide-nav strong { font-size: 1.1rem; }
  .guide-nav a span { font-size: 0.8125rem; }
  .guide-section, .about { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .section-intro p { margin-top: 0.65rem; }
  .guide-image { margin-top: 1rem; }
  .guide-body { padding-inline: 1.125rem; }
  .scene-panel { grid-template-columns: minmax(0, 1fr); gap: 0.875rem; min-height: 0; }
  .scene-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scene-tabs button { font-size: 0.875rem; }
  .scene-tabs button:last-child { grid-column: span 2; }
  .contact-inner { gap: 1.1rem; }
  .qr { margin: 0; padding: 0.45rem; }
  .qr img { width: 7.5rem; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; }
  .footer p { grid-row: 2; }
  .footer > a:last-child { grid-column: 2; grid-row: 1; font-size: 0.9rem; }
}

@media (max-width: 22rem) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .copy-status { min-height: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-copy p, .hero-copy .button { animation: arrive 0.55s ease-out both; }
  .hero-copy p { animation-delay: 0.07s; }
  .hero-copy .button { animation-delay: 0.14s; }
  .hero-media img { animation: settle 0.8s ease-out both; }
  .guide-nav a > * { animation: arrive 0.55s ease-out 0.18s both; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(0.6rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes settle {
    from { opacity: 0.45; transform: scale(1.045); }
    to { opacity: 1; transform: scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active { transform: none; }
}
