:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --bg: #f7f7f7;
  --card: #fff;
  --text: #1a1a1a;
  --sub: #888;
  --border: #ebebeb;
  --red: #fa5151;
  --orange: #ff9f0a;
  --blue: #576b95;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
button { font-family: inherit; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 10px; width: 100%; outline: none; background: #fff; }
input:focus, textarea:focus { border-color: var(--green); }

.page { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 70px; position: relative; }
.navbar { position: sticky; top: 0; z-index: 20; background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.navbar .back { font-size: 20px; color: var(--text); background: none; padding: 0 6px; }
.navbar .title { font-size: 17px; font-weight: 600; flex: 1; }
.navbar .right { font-size: 13px; color: var(--sub); }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 640px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid var(--border); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 6px; color: var(--sub); text-decoration: none; font-size: 10px; }
.tabbar a .ic { font-size: 20px; display: block; margin-bottom: 2px; }
.tabbar a.on { color: var(--green); font-weight: 600; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card + .card { margin-top: 0; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.muted { color: var(--sub); font-size: 12px; }
.danger { color: var(--red); }
.success { color: var(--green); }
.warning { color: var(--orange); }

.banner { position: relative; margin: 12px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #07c160, #0a9c52); color: #fff; padding: 28px 18px; min-height: 110px; }
.banner h2 { font-size: 20px; margin-bottom: 6px; }
.banner p { font-size: 13px; opacity: .9; }
.banner .badge { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.25); font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.home-poster { position: relative; margin: 12px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); cursor: pointer; }
.home-poster img { display: block; width: 100%; max-height: 68vh; object-fit: cover; }
.home-poster .poster-cta { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); min-width: 160px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.section-title { padding: 8px 14px 0; font-size: 15px; font-weight: 600; color: var(--text); }

.search { margin: 12px 12px 0; display: flex; gap: 8px; }
.search input { flex: 1; border-radius: 20px; background: #fff; }
.search button { background: var(--green); color: #fff; border-radius: 20px; padding: 0 18px; font-size: 14px; }

.filters { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; }
.filters button { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--text); white-space: nowrap; }
.filters button.on { background: var(--green); color: #fff; border-color: var(--green); }

.activity-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); margin: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.activity-card h3 { font-size: 16px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.activity-card .tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; height: 20px; line-height: 16px; }
.tag.ongoing { background: #e8f8ef; color: var(--green); }
.tag.closed { background: #f2f2f2; color: var(--sub); }
.tag.full { background: #fff3e0; color: var(--orange); }
.tag.offline { background: #fdeaea; color: var(--red); }
.activity-card .row { display: flex; gap: 6px; align-items: center; color: var(--sub); font-size: 13px; margin-top: 6px; }
.activity-card .row .ic { font-size: 15px; }
.activity-card .progress { margin-top: 10px; height: 4px; border-radius: 2px; background: #f0f0f0; overflow: hidden; }
.activity-card .progress i { display: block; height: 100%; background: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; border-radius: 24px; padding: 12px 24px; font-size: 15px; font-weight: 500; width: 100%; }
.btn:active { background: var(--green-dark); }
.btn.plain { background: #fff; color: var(--green); border: 1px solid var(--green); }
.btn.gray { background: #f2f2f2; color: var(--sub); }
.btn.danger { background: var(--red); }
.btn.small { width: auto; padding: 6px 14px; font-size: 13px; border-radius: 16px; }
.btn:disabled { background: #c8c8c8; }
.btn-fixed { position: fixed; bottom: 0; left: 0; right: 0; max-width: 640px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; z-index: 25; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }

.form-item { margin-bottom: 12px; }
.form-item label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.form-item .req { color: var(--red); }
.form-row { display: flex; gap: 10px; }
.form-row > div { flex: 1; }

.topic-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 8px; }
.topic-item:last-child { border-bottom: none; }
.topic-item.selected { background: #e8f3ff; box-shadow: inset 3px 0 var(--blue); }
.topic-item .name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.topic-item .desc { font-size: 12px; color: var(--sub); margin-top: 3px; }
.topic-item .price { color: var(--red); font-size: 16px; font-weight: 600; }
.topic-item .price small { font-size: 11px; font-weight: 400; color: var(--sub); }
.topic-radio { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #ccc; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.topic-radio.on { border-color: var(--green); }
.topic-radio.on::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.package-card { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.package-card.on { border-color: var(--blue); background: #e8f3ff; box-shadow: inset 0 0 0 1px var(--blue); }
.package-name { font-weight: 600; line-height: 1.5; }
.package-price { margin-top: 8px; color: var(--red); font-weight: 700; font-size: 17px; }
.package-price small { color: var(--sub); font-size: 11px; font-weight: 400; }
.cascade-title { display: flex; align-items: center; gap: 9px; margin-top: 2px; color: var(--text); }
.cascade-title > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cascade-title b { font-size: 14px; }
.cascade-title small { color: var(--sub); font-size: 11px; line-height: 1.4; }
.cascade-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.cascade-divider { height: 1px; margin: 14px 0; background: var(--border); }
.level2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.level2-card { min-height: 68px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.level2-card span { color: var(--sub); font-size: 12px; }
.level2-card b { font-size: 14px; line-height: 1.35; }
.level2-card small { color: var(--blue); font-size: 11px; }
.level2-card.on { border-color: var(--blue); background: #e8f3ff; box-shadow: inset 0 0 0 1px var(--blue); }
.date-option-group { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.date-title { padding: 8px 10px; background: #f7f8fa; font-weight: 600; }
.option-check { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--border); cursor: pointer; }
.option-check:first-child { border-top: none; }
.option-check.on { background: #f0f8ff; }
.option-check input { width: auto; }
.counter { display: flex; align-items: center; gap: 12px; }
.counter button { width: 28px; height: 28px; border-radius: 50%; background: #f2f2f2; font-size: 16px; }
.counter .num { min-width: 24px; text-align: center; font-weight: 600; }

.radio-list label { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.radio-list label:last-child { border-bottom: none; }
.radio-list .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ccc; margin-right: 10px; display: inline-flex; align-items: center; justify-content: center; }
.radio-list label.on .dot { border-color: var(--green); }
.radio-list label.on .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.radio-list .flex { flex: 1; }
.radio-list .price { color: var(--red); font-weight: 600; }

.steps { display: flex; padding: 12px 16px; background: #fff; }
.steps .step { flex: 1; text-align: center; font-size: 12px; color: var(--sub); position: relative; }
.steps .step .no { width: 22px; height: 22px; border-radius: 50%; background: #e5e5e5; color: #999; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-bottom: 4px; }
.steps .step.on .no { background: var(--green); color: #fff; }
.steps .step.done .no { background: var(--green); color: #fff; }
.steps .step.on { color: var(--green); }

.member-card { background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.member-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.member-card .head b { font-size: 14px; }
.member-card .del { color: var(--red); background: none; font-size: 13px; }

.order-status { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #f2f2f2; }
.order-status.paid { background: #e8f8ef; color: var(--green); }
.order-status.pending { background: #fff3e0; color: var(--orange); }
.order-status.reserved { background: #e8f1fb; color: var(--blue); }
.order-status.refunded { background: #fdeaea; color: var(--red); }

.amount-box { background: linear-gradient(135deg, #07c160, #0a9c52); color: #fff; border-radius: var(--radius); padding: 20px; text-align: center; margin: 12px; }
.amount-box .label { font-size: 12px; opacity: .9; }
.amount-box .val { font-size: 30px; font-weight: 700; margin-top: 4px; }

.qr-box { text-align: center; background: #fff; border-radius: var(--radius); padding: 16px; margin: 12px; }
.qr-box canvas { width: 160px !important; height: 160px !important; margin: 8px auto; }

.notice { background: #fff8e6; border: 1px solid #ffe9b8; color: #8a6d1a; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.empty { text-align: center; color: var(--sub); padding: 60px 0; font-size: 14px; }
.loading { text-align: center; color: var(--sub); padding: 40px; }
.toast { position: fixed; top: 45%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 100; max-width: 80%; }
.dialog-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; display: flex; align-items: center; justify-content: center; }
.dialog { background: #fff; border-radius: 14px; width: 82%; max-width: 480px; padding: 18px; }
.dialog h4 { font-size: 16px; margin-bottom: 12px; }
.dialog .actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog .actions .btn { flex: 1; }
.line { border-top: 1px solid var(--border); margin: 10px 0; }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.kv .k { color: var(--sub); }
.kv .v { text-align: right; }
.copy { color: var(--blue); font-size: 12px; background: none; padding: 0 4px; }
.tag2 { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #f0f0f0; color: var(--sub); margin-left: 6px; }
.inline-img { max-width: 100%; border-radius: 8px; display: block; margin-top: 8px; }
.bank-card { background: linear-gradient(135deg, #576b95, #3e4c6e); color: #fff; border-radius: 14px; padding: 18px; margin: 12px; }
.bank-card .name { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.bank-card .acc { font-size: 22px; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }
.bank-card .tip { font-size: 12px; opacity: .85; margin-top: 8px; line-height: 1.6; }
.chip { display: inline-block; background: #e8f8ef; color: var(--green); font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.hotel-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.hotel-item.on { border-color: var(--green); background: #f6fdf8; }
.room-opt { display: flex; align-items: center; padding: 8px 0; cursor: pointer; font-size: 14px; }
.room-opt .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #ccc; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.room-opt.on { color: var(--green); }
.room-opt.on .dot { border-color: var(--green); }
.room-opt.on .dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.steps-tip { font-size: 12px; color: var(--sub); padding: 0 16px 12px; }
