* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a0a14; color: #e8e8f0; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; max-width: 480px; margin: 0 auto; }

.page { display: none; flex-direction: column; min-height: 100vh; padding-bottom: 70px; }
.page.active { display: flex; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; background: #0a0a14; z-index: 10; }
.back { font-size: 26px; cursor: pointer; color: #a78bfa; background: none; border: none; line-height: 1; }
.nav span { font-size: 16px; font-weight: 600; }
.nav span:last-child { width: 30px; }

.scroll { flex: 1; padding: 0 16px; overflow-y: auto; }
.footer-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: #0a0a14; border-top: 1px solid #1a1a3a; z-index: 20;
}
.price { font-size: 22px; font-weight: 700; color: #a78bfa; white-space: nowrap; }

.btn {
  flex: 1; padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  border: none; transition: 0.2s; text-align: center;
}
.btn:active { opacity: 0.85; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-lg { padding: 16px; font-size: 17px; }

/* Hero */
.hero { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a0533 0%, #0f1a3a 50%, #0a2a1a 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 80%, rgba(167,139,250,0.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(52,211,153,0.1) 0%, transparent 50%); }
.hero-content { position: relative; text-align: center; padding: 0 20px; }
.hero-badge { display: inline-block; padding: 4px 16px; border-radius: 20px; background: rgba(167,139,250,0.2); color: #a78bfa; font-size: 12px; margin-bottom: 16px; border: 1px solid rgba(167,139,250,0.3); }
.hero-title { font-size: 30px; font-weight: 800; margin-bottom: 10px; background: linear-gradient(135deg, #a78bfa, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 13px; color: #888; line-height: 1.6; }

/* Filter */
.filter-bar { display: flex; gap: 8px; padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.tag { white-space: nowrap; padding: 6px 16px; border-radius: 20px; font-size: 13px; background: #14142a; color: #888; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.tag.active { background: rgba(167,139,250,0.2); color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); }

/* Camp List */
.list { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.card {
  display: flex; gap: 14px; background: #12122a; border-radius: 16px; padding: 14px;
  cursor: pointer; transition: 0.2s; border: 1px solid #1a1a3a;
}
.card:active { transform: scale(0.98); border-color: rgba(167,139,250,0.3); }
.card-cover { width: 110px; height: 140px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.card-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 16px; font-weight: 700; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag { padding: 2px 10px; border-radius: 12px; font-size: 11px; background: #1a1a3a; color: #888; }
.card-desc { font-size: 12px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { font-size: 18px; font-weight: 700; color: #a78bfa; }
.card-price small { font-size: 12px; font-weight: 400; color: #666; }
.card-rating { font-size: 12px; color: #fbbf24; }

/* Detail */
.banner { height: 220px; border-radius: 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.section { margin-bottom: 20px; }
.section h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.section h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: #ccc; }
.section p { font-size: 13px; line-height: 1.8; color: #999; }
.row { display: flex; gap: 16px; font-size: 13px; color: #888; margin-bottom: 12px; }
.highlights { display: flex; gap: 10px; overflow-x: auto; }
.highlights::-webkit-scrollbar { display: none; }
.hl-item { min-width: 90px; padding: 12px 8px; border-radius: 12px; background: #12122a; text-align: center; }
.hl-icon { font-size: 28px; margin-bottom: 4px; }
.hl-label { font-size: 11px; color: #888; }

/* Session */
.session {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-radius: 12px; background: #12122a; margin-bottom: 10px;
  cursor: pointer; border: 2px solid transparent; transition: 0.2s;
}
.session:active { border-color: rgba(167,139,250,0.3); }
.session.sel { border-color: #7c3aed; background: rgba(124,58,237,0.08); }
.session.sold { opacity: 0.35; cursor: not-allowed; }
.s-date { font-size: 15px; font-weight: 600; }
.s-days { font-size: 12px; color: #888; margin-top: 2px; }
.s-right { text-align: right; }
.s-left { font-size: 14px; color: #34d399; font-weight: 600; }
.s-left-0 { color: #666; }
.s-label { font-size: 11px; color: #555; }
.s-price { font-size: 16px; font-weight: 700; color: #a78bfa; }

/* Book form */
.form-card { background: #12122a; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.form-title { font-size: 14px; font-weight: 600; color: #ccc; margin-bottom: 10px; }
.input { width: 100%; padding: 12px 14px; border-radius: 10px; background: #1a1a3a; border: 1px solid #2a2a4a; color: #e8e8f0; font-size: 14px; margin-bottom: 10px; }
.input::placeholder { color: #555; }
.input:focus { border-color: #7c3aed; outline: none; }
.qty { display: flex; align-items: center; justify-content: center; gap: 24px; background: #12122a; border-radius: 30px; padding: 12px 24px; margin: 10px 0; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #1a1a3a; color: #e8e8f0; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:active { background: #7c3aed; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-num { font-size: 22px; font-weight: 700; min-width: 40px; text-align: center; }
.subtotal { display: flex; justify-content: space-between; font-size: 13px; color: #888; padding: 8px 0; }

/* Confirm */
.co-card { background: #12122a; border-radius: 14px; padding: 16px; margin: 16px 0; }
.co-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #1a1a3a; }
.co-row:last-child { border-bottom: none; }
.co-row span:first-child { color: #888; font-size: 14px; }
.co-row span:last-child { font-size: 14px; font-weight: 500; text-align: right; max-width: 55%; }
.co-total span:last-child { font-size: 22px; font-weight: 700; color: #a78bfa; }

.pay-methods { display: flex; gap: 10px; }
.pay-item { flex: 1; display: flex; align-items: center; gap: 8px; padding: 14px 12px; background: #12122a; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.pay-item.active { border-color: #7c3aed; }
.pay-item input { display: none; }
.pay-icon { font-size: 20px; }
.pay-item span:last-child { font-size: 13px; }

/* Success */
.success-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; flex: 1; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-wrap h2 { font-size: 24px; }
.success-sub { font-size: 14px; color: #888; margin: 8px 0 24px; }
.success-card { width: 100%; max-width: 360px; background: #12122a; border-radius: 14px; padding: 16px; }
.success-card .co-row { border-bottom-color: #1a1a3a; }

/* Toast */
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: #2d2d4a; color: #e8e8f0; padding: 10px 24px; border-radius: 24px; font-size: 14px; z-index: 999; opacity: 0; transition: 0.3s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; }

@media (min-width: 481px) { body { border-left: 1px solid #1a1a3a; border-right: 1px solid #1a1a3a; } }
