:root {
  --bg-top: #fff5ea;
  --bg-bottom: #f8e2d0;
  --surface: rgba(255, 250, 244, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(120, 71, 45, 0.14);
  --text: #2f1b13;
  --muted: #7a5d50;
  --accent: #bc462d;
  --accent-deep: #902d1b;
  --accent-soft: rgba(188, 70, 45, 0.1);
  --gold: #efb75d;
  --success: #2f855a;
  --success-soft: rgba(47, 133, 90, 0.11);
  --shadow: 0 22px 55px rgba(78, 38, 21, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 234, 197, 0.9), transparent 36%),
    radial-gradient(circle at top right, rgba(224, 100, 59, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.22;
}

button, input { font: inherit; }

.app-shell {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 14px 80px;
}

.hero, .panel, .page-footer { animation: fade-up 0.6s ease both; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 226, 0.85));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 183, 93, 0.3), rgba(239, 183, 93, 0));
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  font-size: 0.77rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1, .section-head h2, .activity-copy h3 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.06;
}

.hero-copy, .overview-card p, .booking-card p, .extra-card p, .guide-card p {
  line-height: 1.65;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.stat-card, .overview-card, .booking-card, .extra-card, .guide-card {
  padding: 16px;
  border: 1px solid rgba(144, 45, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-deep);
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.hero-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
}

.hero-actions .ghost-btn {
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  border: 1px solid rgba(144, 45, 27, 0.14);
}

.save-note { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }

.quick-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 248, 241, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.quick-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quick-nav-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.back-top-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  z-index: 100;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  padding: 20px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
}

.sidebar-content {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  overflow-y: auto;
  height: calc(100vh - 60px);
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-section-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(144, 45, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nav-chip.day-chip {
  background: rgba(239, 183, 93, 0.16);
}

.nav-chip.sub-chip {
  padding: 0 12px;
  min-height: 34px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(144, 45, 27, 0.08);
}

.nav-chip.sub-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.sidebar-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  transform: scale(1.08);
  background: var(--accent-deep);
}

.sidebar-toggle:active {
  transform: scale(0.96);
}

.sidebar-toggle.active .toggle-icon {
  transform: rotate(45deg);
}

.sidebar-toggle.active .toggle-icon::before {
  transform: rotate(90deg);
  top: 0;
}

.sidebar-toggle.active .toggle-icon::after {
  opacity: 0;
  transform: rotate(-90deg);
}

.toggle-icon {
  display: block;
  width: 24px;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  left: 0;
  transition: transform 0.2s ease;
}

.toggle-icon::before {
  top: -8px;
}

.toggle-icon::after {
  top: 8px;
}

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

.panel {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.4rem; }

.overview-grid, .booking-grid, .extra-grid, .guide-grid, .day-stack {
  display: grid;
  gap: 12px;
}

.overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-card strong, .booking-card strong, .extra-card strong, .guide-card strong { display: block; }
.booking-card .meta-line { margin-top: 10px; font-size: 0.92rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(96, 50, 27, 0.07);
  font-size: 0.85rem;
}

.chip.accent { background: var(--accent-soft); color: var(--accent-deep); }
.chip.gold { background: rgba(239, 183, 93, 0.22); }
.chip.success { background: var(--success-soft); color: var(--success); }

.day-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.day-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

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

.day-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-title { display: grid; gap: 4px; }
.day-title span { color: var(--muted); font-size: 0.92rem; }

.progress-pill {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(47, 133, 90, 0.08);
  color: var(--success);
}

.progress-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(96, 50, 27, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.22s ease;
}

.day-content {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.activity-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.activity-card.completed {
  border-color: rgba(47, 133, 90, 0.3);
  background: linear-gradient(180deg, rgba(47, 133, 90, 0.08), rgba(255, 255, 255, 0.94));
}

.activity-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.check-control {
  position: relative;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.check-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.check-ui {
  display: block;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(144, 45, 27, 0.28);
  border-radius: 9px;
  background: #fff;
}

.check-control input:checked + .check-ui {
  border-color: var(--success);
  background: linear-gradient(180deg, #58b07a, #2f855a);
  box-shadow: 0 8px 18px rgba(47, 133, 90, 0.22);
}

.check-control input:checked + .check-ui::after {
  content: "";
  display: block;
  width: 7px;
  height: 13px;
  margin: 4px 0 0 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.activity-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.activity-time { margin: 0; color: var(--accent-deep); font-size: 0.88rem; }
.activity-copy h3 { margin: 8px 0 0; font-size: 1.04rem; }
.activity-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

.activity-route {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 183, 93, 0.14);
  color: #784719;
  font-size: 0.9rem;
}

.activity-details {
  margin-top: 12px;
  border-top: 1px dashed rgba(120, 71, 45, 0.18);
  padding-top: 12px;
}

.activity-details summary { cursor: pointer; color: var(--accent-deep); font-size: 0.92rem; }
.activity-details ul, .guide-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.page-footer {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 248, 241, 0.8);
  color: var(--muted);
}

.noscript-note {
  margin: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff4ee;
  color: var(--accent-deep);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
  .app-shell { padding: 28px 20px 100px; }
  .hero { padding: 32px 28px; }
  .quick-nav { padding: 18px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel { padding: 22px 20px; }
  .overview-grid, .booking-grid, .extra-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-content { padding: 0 16px 16px; }
}

@media (max-width: 719px) {
  .overview-grid { grid-template-columns: 1fr; }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
  transform: scale(1.08);
  background: var(--accent-deep);
}

.back-to-top:active {
  transform: scale(0.96);
}

.back-to-top-icon {
  font-size: 1.4rem;
}
