:root {
  --bg: #faf6ee; --card: #fff; --ink: #1d2a22; --muted: #6b766f; --line: #e8e1d3;
  --green: #1f6f4a; --green-dark: #17553a; --green-soft: #e6f2ea;
  --orange: #e8642a; --orange-soft: #fdeee4; --red: #c93a2e;
  --radius: 16px; --shadow: 0 1px 2px rgba(40,50,30,.05), 0 8px 24px rgba(40,50,30,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(16px, calc((100vw - 1040px) / 2)); background: rgba(250,246,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); }
.logo { font-size: 24px; }
.top nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }

main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 120px; min-height: 70vh; }
.loading, .empty { text-align: center; color: var(--muted); padding: 60px 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

.hero { background: linear-gradient(135deg, #1f6f4a, #2f8a5c 60%, #6aa84f); color: #fff; border-radius: 24px; padding: 28px 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.hero::after { content: "🥬🍑🥟"; position: absolute; right: 12px; bottom: -8px; font-size: 56px; opacity: .28; letter-spacing: -6px; }
.hero h1 { font-size: clamp(24px, 5vw, 34px); }
.hero p { margin: 8px 0 0; opacity: .92; }
.announce { background: var(--orange-soft); border: 1px solid #f6cdb5; color: #8a3a12; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; white-space: pre-line; font-size: 14px; }

.section-title { font-size: 18px; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.camp { display: flex; flex-direction: column; color: inherit; transition: transform .15s; }
.camp:hover { transform: translateY(-2px); }
.camp .cover, .phead .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green-soft), #f7efd9); display: grid; place-items: center; font-size: 64px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.camp .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.camp h3 { font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--green-soft); color: var(--green-dark); }
.badge.hot { background: var(--orange-soft); color: var(--orange); }
.badge.gray { background: #eee; color: #666; }
.badge.red { background: #fbe5e2; color: var(--red); }
.countdown { font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: #efe9dc; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #f2a03d); border-radius: 99px; }
.ended { opacity: .6; }

.phead { display: grid; gap: 0; margin-bottom: 18px; }
@media (min-width: 720px) { .phead { grid-template-columns: 300px 1fr; } .phead .cover { aspect-ratio: auto; min-height: 190px; } }
.phead .info { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.phead h1 { font-size: 22px; }
.desc { white-space: pre-line; color: #3c4a41; font-size: 15px; }

.plist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.prod { display: flex; gap: 12px; padding: 12px; }
.prod .pic { width: 96px; height: 96px; flex: none; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 46px; overflow: hidden; }
.prod .pic img { width: 100%; height: 100%; object-fit: cover; }
.prod .pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod h3 { font-size: 16px; }
.prod .spec { color: var(--muted); font-size: 13px; }
.prod .row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { color: var(--orange); font-weight: 700; font-size: 19px; }
.price s { color: #a9a9a9; font-weight: 400; font-size: 13px; margin-left: 6px; }
.stock { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--green); background: #fff; color: var(--green); font-size: 18px; line-height: 1; cursor: pointer; }
.stepper button.add { background: var(--green); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cartbar .in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar .sum b { font-size: 20px; color: var(--orange); }
.cartbar .sum small { color: var(--muted); display: block; font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 12px 26px; background: var(--green); color: #fff; font-weight: 600; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--green-dark); }
.btn:disabled { background: #b9c4bd; cursor: not-allowed; }
.btn.orange { background: var(--orange); }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.block { width: 100%; }

.panel { padding: 18px 20px; margin-bottom: 14px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.lines li:last-child { border: 0; }
.lines .q { color: var(--muted); }
.totals { margin-top: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.totals .grand span:last-child { color: var(--orange); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg label, .opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: block; background: #fff; }
.seg label { text-align: center; font-weight: 600; }
.seg input, .opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked), .opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.seg label:has(input:focus-visible), .opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.opt { margin-bottom: 8px; }
.opt b { display: block; }
.opt small { color: var(--muted); display: block; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 16px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.err { color: var(--red); font-size: 14px; margin: 8px 0; }
.ok-note { color: var(--green-dark); }
.paybox { background: var(--orange-soft); border-radius: 12px; padding: 12px 14px; white-space: pre-line; font-size: 15px; }
.orderno { font-size: 22px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.narrow { max-width: 620px; margin: 0 auto; }
.back { display: inline-block; margin-bottom: 10px; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
