:root {
  --bg: #efe6d6;
  --paper: #fffaf1;
  --ink: #1b1611;
  --muted: #6d6256;
  --line: #e4d8c6;
  --terracotta: #c24b1a;
  --terracotta-deep: #8d3010;
  --sage: #2d6a55;
  --sage-soft: #d7ebe2;
  --sky: #dceaf3;
  --gold: #e3b35a;
  --plum: #6b3d5a;
  --shadow: 0 18px 40px rgba(55, 36, 16, 0.08);
  --radius: 22px;
  --sidebar: 248px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #f7ead3 0, transparent 28%),
    radial-gradient(circle at 92% 0, #e7f1ea 0, transparent 24%),
    var(--bg);
  letter-spacing: 0.01em;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  padding: 28px 22px;
  border-right: 1px solid rgba(28, 22, 17, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--terracotta);
  color: #fff8ee;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.brand strong { display: block; font-size: 18px; }
.brand span { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item, .tab {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
}
.nav-item.is-active, .tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.sidebar-demo {
  margin-top: auto;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.sidebar-demo strong { color: var(--ink); display: block; margin-bottom: 6px; }

.main { padding: 28px 36px 80px; max-width: 1180px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.topbar h1, .panel h2, .hero-copy h2, .detail h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}
.topbar h1 { font-size: 32px; line-height: 1.25; }

.ghost-btn, .primary-btn, .chip, .soft-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
}
.ghost-btn, .soft-btn { background: #fff; border: 1px solid var(--line); }
.primary-btn { background: var(--terracotta); color: #fff8ee; }
.primary-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.soft-btn.danger { color: var(--terracotta-deep); }

.view { display: grid; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; }
.stack { display: grid; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards.triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel, .card, .hero, .filter-bar, .stat {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel, .hero, .filter-bar { padding: 20px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }

.filter-bar { display: grid; gap: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-size: 13px; font-weight: 700; min-width: 52px; }
.chip {
  background: #f3ece0;
  color: var(--ink);
  font-size: 13px;
}
.chip.is-on { background: var(--ink); color: #fff8ee; }
.range-wrap { display: flex; align-items: center; gap: 12px; flex: 1; }
input[type="range"] { width: 180px; accent-color: var(--terracotta); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  min-height: 250px;
}
.hero-copy { padding: 8px 8px 8px 4px; }
.hero-copy p { margin: 10px 0 16px; color: var(--muted); line-height: 1.7; }
.hero-art {
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 70% 20%, #f3d7a4, transparent 32%),
    linear-gradient(180deg, #c45c2a, #7c3a16);
  color: #fff8ee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-art span { font-size: 13px; opacity: 0.86; }
.hero-art strong { font-family: var(--serif); font-size: 28px; line-height: 1.3; }

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-align: left;
}
.card-cover {
  height: 112px;
  padding: 16px;
  color: #fff8ee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cover-exhibition { background: linear-gradient(135deg, #c24b1a, #8d3010); }
.cover-market { background: linear-gradient(135deg, #d0892d, #a85b12); }
.cover-show { background: linear-gradient(135deg, #6b3d5a, #3d2234); }
.cover-hike { background: linear-gradient(135deg, #2d6a55, #1d4336); }
.cover-cafe { background: linear-gradient(135deg, #8a5a38, #523318); }
.cover-walk { background: linear-gradient(135deg, #b26157, #7a3a34); }
.cover-museum { background: linear-gradient(135deg, #355a7c, #1f364c); }
.cover-food { background: linear-gradient(135deg, #b4532a, #7a2e12); }
.cover-park { background: linear-gradient(135deg, #3f7a4e, #1f4630); }
.ticket-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255,248,238,0.2);
  font-size: 11px;
  font-weight: 800;
}
.badge {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.match {
  background: #fff8ee;
  color: var(--terracotta-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}
.card-body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.35; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.why { font-size: 13px; color: var(--sage); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }

.stat { padding: 16px; }
.stat b { display: block; font-size: 28px; font-family: var(--serif); }
.weather-pills { display: flex; gap: 10px; }
.weather-pill {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.weather-pill.is-best { border-color: var(--sage); background: var(--sage-soft); }
.weekend-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.weekend-switch .chip { font-size: 12px; padding: 8px 12px; }
.clue-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--terracotta-deep);
  margin-bottom: 6px;
}
.more-wrap { display: grid; justify-items: center; }
.more-btn {
  min-width: 180px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--muted);
}
.ticket-box {
  background: #f6eee1;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.seats { display: flex; flex-wrap: wrap; gap: 8px; }

.list-card {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
}
.thumb {
  width: 86px; height: 72px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.progress {
  height: 8px; background: #efe4d4; border-radius: 99px; overflow: hidden; margin-top: 8px;
}
.progress > i { display: block; height: 100%; background: var(--sage); }

.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.form textarea { min-height: 110px; resize: vertical; }

.timeline { display: grid; gap: 12px; border-left: 2px solid var(--line); padding-left: 16px; }
.checkin-item {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.checkin-item::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
  position: absolute;
  left: -22px; top: 18px;
}

.overlay {
  position: fixed; inset: 0;
  background: rgba(27, 22, 17, 0.38);
  display: grid; place-items: center;
  padding: 24px;
  z-index: 20;
}
.overlay.hidden { display: none; }
.modal {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.detail-cover { height: 160px; padding: 22px; color: #fff8ee; display: flex; align-items: flex-end; }
.detail { padding: 22px; display: grid; gap: 14px; }
.detail p { line-height: 1.75; color: var(--muted); }
.tips { display: grid; gap: 8px; }
.tips li { list-style: none; background: #f6eee1; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

.wizard {
  width: min(640px, 100%);
  background: var(--paper);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 18px;
}
.wizard h2 { font-family: var(--serif); font-size: 28px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 99px; background: #eadfcf; }
.steps i.is-on { background: var(--terracotta); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff8ee;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.tabbar { display: none; }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 20px 16px 96px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar h1 { font-size: 26px; max-width: 16em; }
  .grid-2, .hero, .cards, .cards.triple { grid-template-columns: 1fr; }
  .toast { bottom: 86px; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(255,250,241,0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .tab { text-align: center; padding: 14px 0 18px; font-size: 13px; border-radius: 0; }
}
