:root {
  --header-height: 66px;
  --anchor-gap: 120px;
  --page: #fff8f4;
  --paper: rgba(255, 253, 248, 0.9);
  --paper-strong: rgba(255, 250, 243, 0.96);
  --line: rgba(154, 67, 55, 0.16);
  --line-gold: rgba(203, 154, 78, 0.28);
  --ink: #372620;
  --muted: #765d54;
  --title: #241814;
  --red: #bf4e40;
  --red-deep: #8f342b;
  --pink: #f4a8b6;
  --gold: #d6a653;
  --green: #6f8d73;
  --shadow: 0 12px 32px rgba(111, 50, 38, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --wrap: min(1080px, calc(100vw - 40px));
  --font-ui: "Microsoft YaHei", sans-serif;
  --font-display: "KaiTi", "Microsoft YaHei", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: max(calc(var(--header-height) + 24px), var(--anchor-gap));
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  font: 400 15px/1.76 var(--font-ui);
  background:
    linear-gradient(90deg, rgba(244, 168, 182, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 166, 83, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf6 0%, #fff4f0 44%, #fff9f3 100%);
  background-size: 28px 28px, 28px 28px, auto;
  text-rendering: optimizeLegibility;
}

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

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

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

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 244, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 146px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red-deep);
  background: rgba(244, 168, 182, 0.16);
}

.site-nav a.is-active,
.site-nav a[aria-current="true"] {
  color: var(--red-deep);
  background: rgba(244, 168, 182, 0.22);
  box-shadow: inset 0 -2px 0 rgba(214, 166, 83, 0.72);
}

.nav-toggle {
  display: none;
  min-width: 58px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: auto;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.9) 0%, rgba(255, 250, 246, 0.72) 62%, rgba(255, 244, 239, 0.9) 100%),
    linear-gradient(180deg, #fffaf6 0%, #fff1ed 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 244, 0.92) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 26px;
  align-items: center;
  min-height: 330px;
}

.hero-copy {
  max-width: 560px;
  padding: 0;
}

.hero-copy h1 {
  margin: 0 0 12px;
  color: var(--title);
  font: 700 3rem/1.08 var(--font-display);
}

.hero-summary {
  margin: 0;
  max-width: 36rem;
  color: var(--ink);
  font-size: 1rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-picture {
  position: relative;
  overflow: hidden;
  margin: 0;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
  padding: 10px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-picture::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 6px);
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.34) 46%, transparent 70%);
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 220ms ease, transform 520ms ease;
  pointer-events: none;
}

.hero-picture img {
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
  transition: transform 360ms ease, filter 360ms ease;
}

.hero-picture:hover,
.hero-picture:focus-within {
  transform: translateY(-4px);
  border-color: rgba(203, 154, 78, 0.5);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 42px rgba(111, 50, 38, 0.16);
}

.hero-picture:hover::after,
.hero-picture:focus-within::after {
  opacity: 1;
  transform: translateX(42%);
}

.hero-picture:hover img,
.hero-picture:focus-within img {
  transform: scale(1.018);
  filter: saturate(1.04) brightness(1.02);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--red-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, #d65f4e 0%, #af4236 100%);
  color: #fffaf4;
  box-shadow: 0 8px 18px rgba(172, 61, 47, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #c85143 0%, #97362f 100%);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.78);
  color: var(--red-deep);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.hero-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.62);
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-sprites {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.deco-sprite {
  position: absolute;
  width: 46px;
  height: 46px;
  background-image: url("./img/decor-sprite.svg");
  background-size: 138px 46px;
  opacity: 0.72;
}

.deco-sakura {
  left: max(24px, calc((100vw - 1080px) / 2 + 12px));
  top: 92px;
  background-position: 0 0;
}

.deco-knot {
  right: max(34px, calc((100vw - 1080px) / 2 + 48px));
  top: 132px;
  background-position: -46px 0;
}

.deco-stamp {
  left: max(280px, calc((100vw - 1080px) / 2 + 470px));
  bottom: 78px;
  background-position: -92px 0;
  opacity: 0.52;
}

.section {
  position: relative;
  padding: 34px 0;
  scroll-margin-top: max(calc(var(--header-height) + 24px), var(--anchor-gap));
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--title);
  font: 700 1.8rem/1.2 var(--font-display);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.intro-grid,
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  gap: 16px;
}

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

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

.panel,
.feature-card,
.timeline-item,
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 242, 0.9)),
    var(--paper);
  box-shadow: var(--shadow);
}

.panel,
.feature-card,
.timeline-item {
  padding: 18px;
}

.panel::before,
.feature-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--gold), transparent);
  opacity: 0.7;
}

.panel h3,
.feature-card h3,
.timeline-item h3 {
  margin: 0 0 8px;
  color: var(--title);
  font: 700 1rem/1.32 var(--font-display);
}

.prose p,
.panel p {
  margin: 0 0 11px;
}

.prose p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.highlight-list ul,
.bullet-list,
.number-list {
  margin: 10px 0 0;
  padding-left: 1.15rem;
}

.highlight-list li,
.bullet-list li,
.number-list li {
  margin: 0 0 7px;
}

.feature-card {
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  background-image: url("./img/decor-sprite.svg");
  background-size: 72px 24px;
  background-position: 0 0;
  opacity: 0.22;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.role-panel dl {
  margin: 0;
}

.role-panel dl div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.role-panel dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

dt {
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
}

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

.gallery-item {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.gallery-item-wide {
  grid-column: span 12;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 249, 244, 0.76);
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.012);
}

.route-order {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 248, 232, 0.8);
  color: var(--red-deep);
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding-left: 28px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 168, 182, 0.28);
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  overflow: clip;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: var(--title);
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.footer-title {
  margin: 0 0 5px;
  color: var(--title);
  font: 700 1rem/1.2 var(--font-display);
}

.footer-inner p {
  margin-top: 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  :root {
    --anchor-gap: 120px;
  }

  html {
    scroll-padding-top: max(calc(var(--header-height) + 24px), var(--anchor-gap));
  }

  .header-inner {
    min-height: 62px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .brand-logo {
    width: 128px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 0 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .hero-picture img {
    max-height: none;
  }

  .intro-grid,
  .story-layout,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .deco-knot,
  .deco-stamp {
    display: none;
  }

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

@media (max-width: 640px) {
  :root {
    --anchor-gap: 120px;
  }

  html {
    scroll-padding-top: max(calc(var(--header-height) + 24px), var(--anchor-gap));
  }

  body {
    font-size: 14px;
  }

  .wrap {
    width: min(100vw - 22px, 1080px);
  }

  .hero {
    padding: 22px 0 30px;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-summary {
    font-size: 0.94rem;
  }

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

  .section {
    padding: 26px 0;
  }

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

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

  .gallery-item,
  .gallery-item-wide {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
