/* 城野露营 —— 暖色杂志风：砂色底 + logo 深青 + 一点篝火橙。字阶 13/16/20/25/31/39，间距 4px 栅格，圆角 8/16 */
:root {
  --bg: #F5F1E8;
  --surface: #FFFDF8;
  --sunk: #EDE7DA;
  --ink: #1B2A2E;
  --ink-2: #4C5C5F;
  --ink-3: #7F8B8A;
  --line: #E2DBCC;
  --brand: #264E58;
  --brand-ink: #1B3A42;
  --brand-soft: #E2EBE9;
  --accent: #C46A2F;
  --accent-soft: #F6E6D8;
  --ok: #3F7A5A;
  --ok-soft: #E1EEE5;
  --danger: #B5473A;
  --danger-soft: #F5E2DE;
  --r1: 8px;
  --r2: 16px;
  --sh1: 0 1px 2px rgba(27, 42, 46, .06);
  --sh2: 0 8px 24px rgba(27, 42, 46, .10);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --tabbar: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 24px; height: 24px; }
[hidden] { display: none !important; }

.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }
.shell.has-bar { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 96px); }

/* 试运行提示 */
.trial { background: var(--accent-soft); color: #7A3F17; font-size: 13px; line-height: 1.5; padding: 8px 16px; text-align: center; }

/* 顶栏（子页面） */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px;
  background: rgba(245, 241, 232, .97); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 999px; color: var(--ink); }
.icon-btn:active { background: var(--sunk); }

/* 首页大图 */
.hero { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; background: var(--brand); color: #F7F3EA; }
.hero-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; background: var(--brand-ink); }
.hero-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-art svg.contour { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.hero-art .mark { width: 44%; max-width: 200px; opacity: .92; filter: brightness(0) invert(.95) sepia(.15); margin-top: -12%; }
.hero-shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(18, 34, 39, .78), rgba(18, 34, 39, 0)); pointer-events: none; }
.hero-text { position: absolute; left: 24px; right: 24px; bottom: 48px; }
.hero-en { font-size: 13px; letter-spacing: .24em; opacity: .8; }
.hero-name { font-family: var(--serif); font-size: 39px; line-height: 1.15; font-weight: 700; margin: 4px 0 8px; letter-spacing: .04em; }
.hero-slogan { font-size: 16px; opacity: .9; }
.hero-dots { position: absolute; right: 24px; bottom: 56px; display: flex; gap: 6px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .2s ease-out, background .2s ease-out; }
.hero-dots i.on { width: 16px; background: #fff; }

/* 基础区块 */
.section { padding: 32px 16px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 700; margin: 0; }
.section-sub { font-size: 13px; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); margin: -24px 16px 0; position: relative; z-index: 2; }
.fact { padding: 16px 8px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 20px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--ink-3); }

.contact { margin: 16px 16px 0; background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 56px; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row .ic { color: var(--brand); }
.contact-row .txt { flex: 1; min-width: 0; font-size: 16px; }
.contact-row .txt small { display: block; font-size: 13px; color: var(--ink-3); }
.contact-row .go { font-size: 13px; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* 营位卡片 */
.types { display: grid; gap: 16px; }
.type-card { display: block; background: var(--surface); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh1); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.type-card:active { transform: scale(.99); }
.type-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--brand-soft); }
.ph { aspect-ratio: 16 / 9; width: 100%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); position: relative; overflow: hidden; }
.ph .ic { width: 48px; height: 48px; opacity: .8; }
.ph svg.contour { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; color: var(--brand); }
.type-body { padding: 16px; }
.type-top { display: flex; align-items: center; gap: 8px; }
.type-name { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0; flex: 1; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1; padding: 6px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: #8A4518; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.muted { background: var(--sunk); color: var(--ink-2); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.type-summary { color: var(--ink-2); font-size: 16px; margin: 8px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; line-height: 1.4; }
.type-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; gap: 12px; }
.type-meta { font-size: 13px; color: var(--ink-3); }
.price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .y { font-size: 13px; margin-right: 1px; }
.price .n { font-size: 25px; line-height: 1; }
.price .u { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 2px; }

/* 加购预览 */
.addon-mini { background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 4px 16px; }
.addon-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 16px; }
.addon-mini-row + .addon-mini-row { border-top: 1px solid var(--line); }
.addon-mini-row span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose { color: var(--ink-2); white-space: pre-line; font-size: 16px; line-height: 1.75; }
.fold { background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); }
.fold summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px; font-weight: 600; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .ic:last-child { margin-left: auto; color: var(--ink-3); transition: transform .2s ease-out; }
.fold[open] summary .ic:last-child { transform: rotate(180deg); }
.fold .prose { padding: 0 16px 16px; }
.footer { text-align: center; color: var(--ink-3); font-size: 13px; padding: 48px 16px 16px; }
.footer img { width: 40px; margin: 0 auto 8px; opacity: .55; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 253, 248, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; height: var(--tabbar); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; color: var(--ink-3); }
.tabbar a.on { color: var(--brand); font-weight: 600; }

/* 底部操作条 */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); box-shadow: 0 -4px 16px rgba(27, 42, 46, .05); }
.actionbar-in { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.actionbar .sum { flex: 1; min-width: 0; }
.actionbar .sum small { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r1); border: 0;
  background: var(--brand); color: #F7F3EA; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .15s ease-out, opacity .15s ease-out; }
.btn:active { background: var(--brand-ink); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:active { background: var(--sunk); }
.btn.danger-ghost { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.link-btn { border: 0; background: none; padding: 8px 0; color: var(--brand); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* 营位详情 */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery .ph { flex: 0 0 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.detail-head { padding: 24px 16px 0; }
.detail-head h2 { font-family: var(--serif); font-size: 31px; line-height: 1.2; margin: 8px 0; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.feat-list li { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-2); }
.feat-list .ic { color: var(--ok); width: 16px; height: 16px; }
.price-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); }
.price-table div { padding: 12px 8px; text-align: center; }
.price-table div + div { border-left: 1px solid var(--line); }
.price-table b { display: block; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-table span { font-size: 13px; color: var(--ink-3); }

/* 日历 */
.cal { background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 8px 8px 16px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 13px; color: var(--ink-3); text-align: center; padding: 8px 0; position: sticky; top: 52px; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.cal-month { padding-top: 16px; }
.cal-month h4 { margin: 0 0 8px; padding: 0 8px; font-size: 16px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.cal-day { position: relative; height: 56px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-variant-numeric: tabular-nums; }
.cal-day .d { font-size: 16px; line-height: 1.2; font-weight: 500; position: relative; z-index: 1; }
.cal-day .p { font-size: 11px; line-height: 1.2; color: var(--ink-3); position: relative; z-index: 1; }
.cal-day .p.hot { color: var(--accent); }
.cal-day.off { cursor: default; }
.cal-day.off .d { color: #C3BDB0; }
.cal-day.off .p { color: #C3BDB0; }
.cal-day.in::before { content: ""; position: absolute; inset: 4px 0; background: var(--brand-soft); }
.cal-day.start::before, .cal-day.end::before { content: ""; position: absolute; inset: 4px 2px; background: var(--brand); border-radius: var(--r1); }
.cal-day.start.has-end::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 0; width: 50%; background: var(--brand-soft); }
.cal-day.end::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 50%; background: var(--brand-soft); }
.cal-day.start::after, .cal-day.end::after { z-index: -1; }
.cal-day.start, .cal-day.end { z-index: 0; }
.cal-day.start .d, .cal-day.end .d, .cal-day.start .p, .cal-day.end .p { color: #F7F3EA; }
.cal-day.today .d::after { content: "今"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--accent); }
.cal-hint { font-size: 13px; color: var(--ink-3); padding: 8px 8px 0; }

/* 营位分布 */
.zone { margin-top: 16px; }
.zone h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.unit { height: 48px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.unit small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.unit.taken { background: var(--sunk); color: #B0A99A; border-color: transparent; cursor: not-allowed; text-decoration: line-through; }
.unit.on { background: var(--brand); color: #F7F3EA; border-color: var(--brand); }
.unit.on small { color: rgba(247, 243, 234, .75); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--line); background: var(--surface); }
.legend i.t { background: var(--sunk); border-color: transparent; }
.legend i.o { background: var(--brand); border-color: var(--brand); }

/* 卡片和表单 */
.card { background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 16px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card-title small { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: auto; }
.kv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; font-size: 16px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.stay-sum { display: flex; align-items: center; gap: 12px; }
.stay-sum .ic { color: var(--brand); }
.stay-sum b { font-size: 16px; }
.stay-sum small { display: block; font-size: 13px; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-weight: 500; }
.row .main small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r1); height: 36px; flex: none; }
.stepper button { width: 36px; height: 34px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.stepper button:disabled { color: #C9C2B4; cursor: default; }
.stepper button .ic { width: 16px; height: 16px; }
.stepper span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.group-label { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin: 16px 0 0; display: flex; align-items: center; gap: 6px; }
.group-label:first-of-type { margin-top: 0; }
.field { display: block; }
.field + .field { margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); font-size: 16px; transition: border-color .15s ease-out; }
textarea.input { height: auto; min-height: 80px; padding: 12px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.money { font-size: 16px; }
.money .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.money .line.sub { font-size: 13px; color: var(--ink-3); padding: 2px 0 2px 12px; }
.money .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.money .total b { font-size: 25px; color: var(--accent); font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin: 8px 0 0; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 16px 4px 0; line-height: 1.6; }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.agree button { border: 0; background: none; padding: 0; color: var(--brand); font-size: 13px; font-weight: 600; }
.pad { padding: 16px; }

/* 订单 */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sunk); border-radius: var(--r1); padding: 4px; margin: 16px; }
.seg button { height: 36px; border: 0; background: none; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh1); }
.order-list { display: grid; gap: 12px; padding: 0 16px; }
.order-card { display: block; background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 16px; }
.order-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.order-card .top b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.order-card .dates { font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.order-card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.order-card .bottom b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 64px 32px; color: var(--ink-3); }
.empty .ic { width: 48px; height: 48px; color: #C3BDB0; margin-bottom: 16px; }
.empty p { margin: 0 0 24px; font-size: 16px; }
.find-entry { text-align: center; padding: 24px 16px; }

.status-head { padding: 24px 16px 8px; }
.status-head h2 { font-family: var(--serif); font-size: 25px; margin: 8px 0 4px; line-height: 1.3; }
.status-head p { margin: 0; color: var(--ink-2); }
.qr-card { text-align: center; }
.qr-box { width: 184px; height: 184px; margin: 8px auto 12px; padding: 12px; background: #fff; border-radius: var(--r1); box-shadow: inset 0 0 0 1px var(--line); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.order-no { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.order-no button { border: 0; background: none; padding: 4px; color: var(--brand); display: inline-flex; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 16px; padding: 0 16px; }

/* 弹层 */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(18, 28, 31, .45); animation: fade .2s ease-out backwards; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r2) var(--r2) 0 0; padding: 8px 16px calc(24px + var(--safe-b)); animation: up .22s ease-out backwards; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 8px; }
.sheet h3 { font-size: 20px; margin: 8px 0 16px; display: flex; align-items: center; }
.sheet h3 .icon-btn { margin-left: auto; margin-right: -8px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 60; background: rgba(27, 42, 46, .92); color: #F7F3EA;
  padding: 12px 20px; border-radius: var(--r1); font-size: 16px; width: max-content; max-width: calc(100vw - 64px); text-align: center; animation: fade .15s ease-out backwards; }

.loading { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50vh; color: var(--ink-3); font-size: 13px; }
.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { text-align: center; padding: 64px 32px; color: var(--ink-2); }
.error-box .ic { width: 40px; height: 40px; color: var(--danger); margin-bottom: 12px; }
.skel { background: linear-gradient(90deg, var(--sunk), #F2EDE3, var(--sunk)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: var(--r1); }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 561px) {
  .hero { aspect-ratio: 16 / 11; }
}

/* ===== v2 日间露营：大图沉浸首页 / 日期条 / 场次 / 现场点单 ===== */
.shell.has-tab { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }
.shell.has-tab.has-bar { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 96px); }
.actionbar.over-tab { bottom: calc(var(--tabbar) + var(--safe-b)); padding-bottom: 12px; box-shadow: 0 -8px 24px rgba(27, 42, 46, .08); border-top-color: transparent; border-radius: var(--r2) var(--r2) 0 0; }

.hero.full { aspect-ratio: auto; max-height: none; height: calc(100vh - var(--tabbar) - 72px - var(--safe-b)); height: calc(100svh - var(--tabbar) - 72px - var(--safe-b)); min-height: 460px; }
.hero.full .hero-text { bottom: 40px; }
.hero.full .hero-name { font-size: 49px; font-weight: 300; letter-spacing: .12em; }
.hero.full .hero-art .mark { width: 40%; margin-top: -24%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font-size: 13px; opacity: .85; }
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; }

.pkgs { display: grid; gap: 24px; }
.pkg-card { background: var(--surface); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh1); }
.pkg-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.ph.pkg-img { aspect-ratio: 4 / 3; }
.pkg-body { padding: 16px 16px 20px; }
.sess-list { background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 4px 16px; }
.sess-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 0; font-variant-numeric: tabular-nums; }
.sess-row + .sess-row { border-top: 1px solid var(--line); }
.sess-row span { color: var(--ink-2); }
.sess-row small { color: var(--ink-3); font-size: 13px; }
.rain { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r2); padding: 16px; }
.rain b { display: block; margin-bottom: 4px; }
.rain p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

.date-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); text-align: left; }
.date-pill > .ic:first-child { color: var(--brand); }
.date-pill > span:not(.ic) { flex: 1; min-width: 0; line-height: 1.25; }
.date-pill small { display: block; font-size: 11px; color: var(--ink-3); }
.date-pill b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.date-pill > .ic:last-child { color: var(--ink-3); }
.date-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.date-cell { height: 72px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.3; font-variant-numeric: tabular-nums; }
.date-cell .w { font-size: 11px; color: var(--ink-3); }
.date-cell b { font-size: 16px; }
.date-cell .p { font-size: 11px; color: var(--accent); }
.date-cell.wk .w { color: var(--accent); }
.date-cell.on { background: var(--brand); border-color: var(--brand); color: #F7F3EA; }
.date-cell.on .w, .date-cell.on .p { color: rgba(247, 243, 234, .8); }
.date-cell.off { background: var(--sunk); border-color: transparent; color: #B0A99A; cursor: default; }
.date-cell.off .p, .date-cell.off .w { color: #B0A99A; }

.topbar h1 small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; min-width: 0; }
.strip::-webkit-scrollbar { display: none; }
.strip-day { flex: 0 0 52px; height: 56px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; font-variant-numeric: tabular-nums; }
.strip-day span { font-size: 11px; color: var(--ink-3); }
.strip-day b { font-size: 16px; }
.strip-day.on { background: var(--brand); border-color: var(--brand); color: #F7F3EA; }
.strip-day.on span { color: rgba(247, 243, 234, .8); }
.strip-day.off { opacity: .4; }
.sess-seg { display: flex !important; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sess-seg::-webkit-scrollbar { display: none; }
.sess-seg button { flex: 1 0 auto; min-width: 84px; padding: 0 8px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; white-space: nowrap; }
.sess-seg button small { font-size: 11px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.sess-seg button:disabled { opacity: .45; cursor: default; }
.offer { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh1); padding: 12px; }
.offer-img { flex: none; width: 88px; height: 88px; border-radius: var(--r1); object-fit: cover; }
.ph.offer-img { aspect-ratio: 1; }
.ph.offer-img .ic { width: 32px; height: 32px; }
.offer-body { flex: 1; min-width: 0; }
.offer-body b { display: block; font-size: 16px; font-weight: 600; }
.offer-body small { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.offer-foot .price .n { font-size: 20px; }
.offer .left { font-size: 13px; color: var(--ink-3); }
.offer .left.hot { color: var(--accent); font-weight: 600; }
.offer.full { opacity: .6; }

/* 现场点单 */
.spot-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); min-height: 60px; }
.spot-mark { width: 36px; height: 36px; object-fit: contain; }
.spot-title { flex: 1; min-width: 0; line-height: 1.35; }
.spot-title b { display: block; font-size: 20px; font-family: var(--serif); }
.spot-title small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-head .btn { position: relative; flex: none; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.muted-strip { background: var(--sunk) !important; color: var(--ink-2) !important; }
.menu { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-width: 0; }
.menu-cats { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px - 80px); overflow-y: auto; background: var(--sunk); scrollbar-width: none; }
.menu-cats button { width: 100%; min-height: 64px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--ink-2); position: relative; padding: 8px 4px; }
.menu-cats button.on { background: var(--bg); color: var(--brand-ink); font-weight: 600; }
.menu-cats button.on::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand); }
.menu-list { padding: 0 12px; min-width: 0; }
.menu-list h4 { margin: 0; padding: 16px 0 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.mi { display: flex; gap: 12px; padding: 12px 0; }
.mi + .mi { border-top: 1px solid var(--line); }
.mi img, .mi-ph { flex: none; width: 72px; height: 72px; border-radius: var(--r1); object-fit: cover; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.mi-ph .ic { width: 28px; height: 28px; opacity: .8; }
.mi-body { flex: 1; min-width: 0; }
.mi-body b { display: block; font-weight: 600; }
.mi-body small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.mi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.price .n.mid { font-size: 20px; }
.menu-tail { height: 40vh; }
.stepper.sm { height: 32px; border: 0; gap: 4px; }
.stepper.sm button { width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--brand); color: var(--brand); }
.stepper.sm button[data-step="1"] { background: var(--brand); color: #F7F3EA; }
.stepper.sm button:disabled { border-color: var(--line); background: var(--sunk); color: #C9C2B4; }
.stepper.sm span { min-width: 20px; }
.stepper.sm.zero button[data-step="-1"], .stepper.sm.zero > span { visibility: hidden; }
.actionbar.cart-bar .actionbar-in { gap: 12px; }
.cart-btn { position: relative; flex: none; width: 52px; height: 52px; border-radius: 26px; border: 0; background: var(--brand); color: #F7F3EA; display: flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: var(--sh2); }
.cart-btn:disabled { background: var(--sunk); color: var(--ink-3); box-shadow: none; }
.actionbar.cart-bar .sum small { font-size: 11px; }
.row-amt { display: inline-flex; align-items: baseline; gap: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row-amt b { color: var(--ink); min-width: 48px; text-align: right; }
.ord { padding: 12px 0; }
.ord + .ord { border-top: 1px solid var(--line); }
.ord-top { display: flex; align-items: center; gap: 8px; }
.ord-top b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ord-t { margin-left: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ord p { margin: 4px 0; }
.ord small { font-size: 13px; color: var(--ink-3); }
.ord-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.ord-foot b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.actionbar.over-tab { max-width: 560px; margin: 0 auto; }
