:root {
  --paper: #ffffff;
  --cream: #f5f4fb;
  --blush: #e4f2ed;
  --blush-deep: #abd7c8;
  --ink: #211d2d;
  --muted: #686174;
  --wine: #633dcc;
  --wine-dark: #381f83;
  --rose: #e5634c;
  --gold: #d47a67;
  --gold-light: #d8ccff;
  --sage: #2f8b73;
  --sage-light: #e4f3ed;
  --line: #e2dfec;
  --shadow: 0 24px 70px rgb(48 29 105 / 16%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 90vh;
  padding: 0 max(5vw, 24px) 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgb(130 89 224 / 55%), transparent 32%),
    radial-gradient(circle at 12% 82%, rgb(70 178 148 / 15%), transparent 28%),
    linear-gradient(135deg, var(--wine-dark), var(--wine) 68%, #7048d2);
  color: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 72%) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgb(255 255 255 / 3%),
    0 0 0 84px rgb(255 255 255 / 2%);
  content: "";
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.wordmark {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  gap: 8px;
  transition:
    background 160ms,
    color 160ms,
    transform 160ms;
}

.share-button:hover {
  background: var(--paper);
  color: var(--wine-dark);
  transform: translateY(-2px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
  align-items: center;
  min-height: calc(90vh - 90px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) 0 40px;
  gap: clamp(42px, 8vw, 118px);
}

.date-line {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: clamp(3.6rem, 7.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: #f1b8a8;
}

.hero-intro {
  max-width: 37rem;
  margin: 30px 0 0;
  color: #eeeaf8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  gap: 26px;
  transition:
    filter 160ms,
    transform 160ms;
}

.primary-action:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.text-action {
  color: var(--paper);
  font-size: 0.95rem;
  text-underline-offset: 5px;
}

.route-poster {
  position: relative;
  padding: 30px;
  background: var(--cream);
  box-shadow:
    18px 18px 0 rgb(45 26 111 / 64%),
    var(--shadow);
  color: var(--ink);
  transform: rotate(2.5deg);
}

.route-poster::after {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--wine);
  content: "";
  pointer-events: none;
}

.poster-date {
  padding: 10px 10px 22px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.route-poster ol {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.route-poster li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  gap: 4px 16px;
}

.route-poster li:last-child {
  border-bottom: 1px solid var(--line);
}

.route-poster li span {
  grid-row: 1 / 3;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.route-poster li strong {
  font-family: "Songti SC", STSong, serif;
  font-size: 1.35rem;
}

.route-poster li small {
  color: var(--muted);
}

.route-poster > p {
  margin: 22px 10px 8px;
  color: var(--sage);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.filter-shell {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 249 / 96%);
  backdrop-filter: blur(12px);
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px max(5vw, 24px);
  gap: 24px;
}

.filter-inner > p {
  flex: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.filter-inner > p strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.95rem;
}

.filter-list {
  display: flex;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
}

.filter-list::-webkit-scrollbar {
  display: none;
}

.filter-list button {
  flex: none;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition:
    background 160ms,
    color 160ms,
    transform 160ms;
}

.filter-list button:hover {
  color: var(--wine);
  transform: translateY(-1px);
}

.filter-list button.active {
  background: var(--wine);
  color: var(--paper);
}

.journey {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) max(5vw, 24px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: end;
  margin-bottom: clamp(70px, 9vw, 120px);
  gap: 24px;
}

.section-heading > p,
.team-copy > p:first-child {
  margin: 0;
  color: var(--sage);
  font-weight: 800;
}

.section-heading h2,
.team-copy h2,
footer h2 {
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.days {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.day {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(42px, 7vw, 96px);
}

.day-header {
  position: sticky;
  top: 110px;
  align-self: start;
}

.day-header > p {
  margin: 0 0 32px;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.day-header span {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.day-header h3 {
  margin: 10px 0 18px;
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.day-header div > p {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.event-list {
  position: relative;
  border-top: 1px solid var(--line);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 38px 0;
  gap: 24px;
}

.event + .event:not([hidden]) {
  border-top: 1px solid var(--line);
}

.event-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border: 3px solid var(--wine);
  border-radius: 50%;
  background: var(--paper);
}

.event:not(:last-child) .event-marker::after {
  position: absolute;
  top: 11px;
  left: 4px;
  width: 2px;
  height: calc(100% + 69px);
  background: var(--line);
  content: "";
}

.event-cue {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.event h4 {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.event-location {
  margin: 10px 0 0;
  color: var(--sage);
  font-weight: 800;
}

.event-summary {
  max-width: 60ch;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.8;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

details {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--cream);
}

summary {
  min-height: 48px;
  padding: 15px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

details ul {
  margin: 0;
  padding: 18px 24px 20px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

details li + li {
  margin-top: 7px;
}

.empty-day {
  margin: 0;
  padding: 28px;
  background: var(--cream);
  color: var(--muted);
}

.team-view {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  padding: clamp(90px, 11vw, 150px) max(5vw, calc(50vw - 620px));
  background:
    radial-gradient(circle at 8% 18%, rgb(255 255 255 / 72%), transparent 26%),
    var(--sage-light);
  gap: clamp(70px, 9vw, 120px);
}

.team-copy {
  align-self: center;
}

.team-copy h2 {
  margin: 18px 0 28px;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
}

.team-copy > p:not(:first-child) {
  max-width: 52ch;
  margin: 0;
  color: #315e52;
  line-height: 1.9;
}

.team-copy a {
  display: inline-block;
  margin-top: 32px;
  color: var(--wine);
  font-weight: 800;
  text-underline-offset: 5px;
}

.handoff-map {
  position: relative;
  align-self: center;
  min-height: 590px;
  padding: 36px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 20px 20px 0 var(--blush-deep);
}

.handoff-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.handoff-title span {
  color: var(--muted);
  font-size: 0.8rem;
}

.handoff-title strong {
  color: var(--wine);
}

.handoff-roles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 38px;
  gap: 11px;
}

.handoff-roles::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 72px;
  background: linear-gradient(var(--wine), var(--gold));
  content: "";
  opacity: 0.4;
}

.handoff-roles span {
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  transform: translateX(calc((var(--role-index) - 3) * 1px));
}

.handoff-destination {
  max-width: 270px;
  margin: 72px auto 0;
  padding: 22px;
  border: 1px solid var(--wine);
  text-align: center;
}

.handoff-destination small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.handoff-destination strong {
  color: var(--wine);
  font-family: "Songti SC", STSong, serif;
  font-size: 1.25rem;
}

footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 360px;
  padding: 80px max(5vw, calc(50vw - 620px));
  background:
    radial-gradient(circle at 80% 25%, rgb(99 61 204 / 32%), transparent 32%),
    var(--ink);
  color: var(--paper);
}

footer p {
  margin: 0 0 14px;
  color: var(--gold-light);
}

footer h2 {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.footer-share {
  border-color: rgb(255 255 255 / 35%);
}

.share-toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms,
    transform 180ms;
}

.share-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (width <= 900px) {
  .hero-grid,
  .team-view {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 80px;
  }

  .route-poster {
    justify-self: center;
    width: 90%;
    max-width: 470px;
  }

  .filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-inner > p {
    display: none;
  }

  .filter-list {
    width: 100%;
    max-width: 100%;
  }

  .section-heading,
  .day {
    grid-template-columns: 1fr;
  }

  .day-header {
    position: static;
  }

  .team-view {
    padding-inline: max(5vw, 24px);
  }
}

@media (width <= 620px) {
  .hero {
    padding-bottom: 64px;
  }

  .topbar {
    padding: 16px 0;
  }

  .wordmark {
    font-size: 0.82rem;
  }

  .share-button {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-grid {
    padding-top: 64px;
    gap: 64px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.75rem);
  }

  .hero-intro {
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .route-poster {
    width: calc(100% - 14px);
    padding: 22px;
    box-shadow: 10px 10px rgb(45 26 111 / 64%);
    transform: rotate(1.25deg);
  }

  .route-poster li {
    grid-template-columns: 62px 1fr;
  }

  .route-poster li span {
    font-size: 2.65rem;
  }

  .filter-inner {
    min-height: 64px;
    padding-block: 10px;
  }

  .journey {
    padding-top: 80px;
  }

  .section-heading {
    margin-bottom: 76px;
  }

  .days {
    gap: 90px;
  }

  .day {
    gap: 38px;
  }

  .day-header h3 {
    font-size: 2.8rem;
  }

  .event {
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 30px 0;
    gap: 14px;
  }

  .event h4 {
    font-size: 1.72rem;
  }

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

  .handoff-map {
    min-height: 660px;
    padding: 24px;
    box-shadow: 10px 10px 0 var(--blush-deep);
  }

  .handoff-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .handoff-roles {
    grid-template-columns: 1fr;
  }

  .handoff-destination {
    margin-top: 58px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    min-height: 410px;
    padding-inline: 24px;
    gap: 48px;
  }

  .share-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
