:root {
  color-scheme: light;
  --bg: #f6efe5;
  --panel: rgba(255, 251, 246, 0.94);
  --panel-soft: rgba(255, 248, 240, 0.78);
  --text: #261711;
  --muted: #71554a;
  --line: rgba(88, 56, 39, 0.12);
  --accent: #a44421;
  --accent-2: #3f6a57;
  --shadow: 0 22px 55px rgba(78, 45, 24, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --safe-bottom: max(24px, env(safe-area-inset-bottom));
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(180deg, #dcc4a4 0%, #f5ede2 22%, #f6efe5 100%);
  color: var(--text);
}

body {
  min-width: 320px;
}

button,
a {
  font: inherit;
}

.app-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 18px 16px calc(var(--safe-bottom) + 32px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(92, 50, 31, 0.95), rgba(150, 77, 43, 0.88)),
    linear-gradient(135deg, #8b3b24, #e0b27c);
  box-shadow: var(--shadow);
  color: #fff7ef;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 166, 0.42), transparent 64%);
}

.hero__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.hero__intro-trigger,
.hero__book-button,
.icon-button,
.place-link {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.hero__intro-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 243, 228, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 239, 0.14);
  color: inherit;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.hero__book-button {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  min-height: 52px;
  border-radius: 16px;
  background: rgba(255, 243, 228, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 239, 0.12);
}

.hero__book-glyph {
  position: relative;
  width: 20px;
  height: 22px;
  border: 1.8px solid rgba(255, 247, 239, 0.92);
  border-radius: 3px 7px 7px 3px;
}

.hero__book-glyph::before,
.hero__book-glyph::after {
  content: "";
  position: absolute;
}

.hero__book-glyph::before {
  top: 2px;
  bottom: 2px;
  left: 4px;
  width: 1.8px;
  background: rgba(255, 247, 239, 0.92);
}

.hero__book-glyph::after {
  inset: 4px 3px auto 8px;
  height: 1.8px;
  background: rgba(255, 247, 239, 0.92);
  box-shadow: 0 5px 0 rgba(255, 247, 239, 0.92);
}

.hero__intro-trigger:hover,
.hero__book-button:hover,
.icon-button:hover,
.place-link:hover,
.day-card:hover {
  transform: translateY(-1px);
}

.hero__intro-trigger:focus-visible,
.hero__book-button:focus-visible,
.icon-button:focus-visible,
.place-link:focus-visible,
.day-card:focus-visible {
  outline: 2px solid rgba(255, 247, 239, 0.72);
  outline-offset: 2px;
}

.page-content {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.panel {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head__kicker,
.modal__eyebrow {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-head h2,
.sheet-modal__header h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.day-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.day-card {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(88, 56, 39, 0.08);
}

.day-card:nth-child(2n) {
  background:
    linear-gradient(180deg, rgba(247, 243, 238, 0.96), rgba(239, 242, 236, 0.94));
}

.day-card__date {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-card__title {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.2;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.day-card__route {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.day-card__tags,
.sheet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-card__tags {
  margin-top: 14px;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(63, 106, 87, 0.12);
  color: var(--accent-2);
  font-size: 12px;
}

.day-card__cta {
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.sheet-modal {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.sheet-modal.is-open {
  z-index: 20;
  opacity: 1;
  pointer-events: auto;
}

.sheet-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 18, 14, 0.42);
  backdrop-filter: blur(6px);
}

.sheet-modal__sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(16px);
  width: min(100%, 480px);
  max-height: min(90vh, 860px);
  overflow: auto;
  padding-bottom: var(--safe-bottom);
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 244, 0.98), rgba(247, 239, 232, 0.98));
  box-shadow: 0 -14px 40px rgba(45, 24, 15, 0.18);
  transition: transform 0.22s ease;
}

.sheet-modal.is-open .sheet-modal__sheet {
  transform: translateX(-50%) translateY(0);
}

.sheet-modal__header,
.sheet-modal__content {
  padding-inline: 18px;
}

.sheet-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(255, 249, 244, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.sheet-modal__content {
  padding-top: 18px;
  padding-bottom: calc(var(--safe-bottom) + 18px);
  display: grid;
  gap: 12px;
}

.sheet-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  backdrop-filter: blur(18px);
}

.sheet-card__title {
  margin: 0;
  font-size: 17px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.sheet-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sheet-copy p {
  margin: 0;
}

.sheet-copy p + p {
  margin-top: 10px;
}

.sheet-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sheet-card__actions {
  margin-top: 12px;
}

.icon-button,
.place-link {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.icon-button {
  background: rgba(164, 68, 33, 0.1);
  color: var(--accent);
}

.place-link {
  background: rgba(164, 68, 33, 0.1);
  color: var(--accent);
}

.body-locked {
  overflow: hidden;
}

@media (min-width: 481px) {
  .app-shell {
    padding-top: 28px;
  }

  .hero__intro-trigger {
    font-size: 18px;
  }

  .sheet-modal__sheet {
    bottom: 20px;
    border-radius: 30px;
  }
}
