/* XX园区·一码通 — C端原型 v0.2 | teal 延续 + 墨绿/铜金会所质感（依据 9-17/10-01 会议输入） */
:root {
  --teal: #0f9d8f;
  --teal-deep: #0b7a6f;
  --teal-ink: #0a4f48;
  --teal-bg: #f0faf9;
  --ink: #1a2b2a;
  --ink-2: #5b6b6a;
  --ink-3: #93a5a3;
  --line: #e4efee;
  --card: #ffffff;
  --gold1: #ff9a3d;
  --gold2: #ffc53d;
  --bronze: #b9893f;
  --bronze-bg: #f8f1e3;
  --dark1: #0c4a43;
  --dark2: #14776b;
  --danger: #e5484d;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(13, 122, 111, 0.08);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: #d9e8e6;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.phone {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--teal-bg);
  position: relative;
  padding-bottom: 76px;
}
.num { font-family: var(--mono); font-weight: 600; letter-spacing: -0.3px; }

/* ===== 图标体系（内联 SVG sprite，线性 24×24，跟随 currentColor） ===== */
svg.ic { display: block; width: 22px; height: 22px; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, var(--teal-ink), var(--dark2));
  color: #fff;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .brand { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.topbar .brand small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; letter-spacing: 2px; }
.topbar .right { display: flex; gap: 16px; align-items: center; }
.topbar .right svg.ic { width: 20px; height: 20px; }
.topbar.plain { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.topbar.plain .back { text-decoration: none; color: var(--ink); display: flex; padding-right: 4px; }
.topbar.plain .back svg.ic { width: 20px; height: 20px; }
.topbar.plain .title { font-size: 16px; font-weight: 600; }
.bar-sp { width: 24px; flex: none; }

/* ===== 通用卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 12px 14px;
  padding: 14px;
}
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 16px 8px; }
.section-h b { font-size: 15px; }
.section-h a, .section-h span.more { font-size: 12px; color: var(--ink-3); text-decoration: none; }

/* ===== 会员条（统一会员全程可见 · 9-17 46:27 互通痛点） ===== */
.member-strip {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, #fffdf7, var(--bronze-bg));
  border: 1px solid #ecdcc0; border-radius: 14px; margin: 12px 14px -2px; padding: 10px 12px;
  box-shadow: 0 1px 6px rgba(185, 137, 63, 0.12);
}
.member-strip .m-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--teal-ink); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bronze);
}
.member-strip .m-ava svg.ic { width: 20px; height: 20px; }
.member-strip .m-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.member-strip .m-tag {
  font-size: 9px; font-weight: 600; color: #fff; background: var(--bronze);
  padding: 1px 7px; border-radius: 999px; letter-spacing: 1px;
}
.member-strip .m-sub { font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.member-strip .m-wallet { margin-left: auto; text-align: right; font-size: 10px; color: var(--ink-3); line-height: 1.5; }
.member-strip .m-wallet b { font-family: var(--mono); font-size: 14px; color: var(--bronze); margin-right: 8px; }
.member-strip .m-wallet b + b { margin-right: 0; }

/* ===== Banner ===== */
.banner {
  margin: 12px 14px 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--gold1), var(--gold2));
  color: #fff; padding: 18px 16px; position: relative;
  box-shadow: 0 4px 14px rgba(255, 154, 61, 0.35);
}
.banner h3 { font-size: 17px; margin-bottom: 4px; }
.banner p { font-size: 12px; opacity: 0.92; }
.banner .go {
  display: inline-block; margin-top: 10px; background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.55); color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: 999px; text-decoration: none;
}

/* ===== 九宫格 ===== */
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-cell {
  background: #f7fdfc; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 6px 12px; text-align: center; text-decoration: none; color: var(--ink);
  transition: transform 0.12s;
}
.g-cell:active { transform: scale(0.95); }
.g-cell .ico {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.g-cell .ico svg.ic { width: 24px; height: 24px; }
.g-cell b { font-size: 13px; display: block; }
.g-cell small { font-size: 10px; color: var(--ink-3); }
.g-cell .st { display: block; font-size: 10px; color: var(--teal-deep); font-weight: 600; margin-top: 2px; }
.g-cell .st .num { font-size: 10px; }
.g-cell.soon .ico { background: #edf3f2; color: #a3b8b5; }
.g-cell.soon small { color: #a9bcba; }
.g-cell.soon .st { color: #a9bcba; font-weight: 400; }

/* ===== 招牌组合横滑（套餐前置 · 9-17 04:02 菜谱叙事） ===== */
.pkg-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 14px 6px; scrollbar-width: none; }
.pkg-scroll::-webkit-scrollbar { display: none; }
.hpkg {
  flex: none; width: 196px; border-radius: 16px; padding: 13px 14px; text-decoration: none;
  background: linear-gradient(150deg, var(--dark1), var(--dark2)); color: #fff; position: relative;
  box-shadow: 0 4px 14px rgba(12, 74, 67, 0.28); display: flex; flex-direction: column;
}
.hpkg .hp-tag {
  align-self: flex-start; font-size: 9px; letter-spacing: 2px; color: #f3dfb6;
  border: 1px solid rgba(243, 223, 182, 0.55); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.hpkg b { font-size: 14px; letter-spacing: 0.3px; }
.hpkg .hp-d { font-size: 10.5px; opacity: 0.72; margin-top: 4px; line-height: 1.55; }
.hpkg .hp-p { margin-top: auto; padding-top: 10px; font-size: 11px; color: #f3dfb6; }
.hpkg .hp-p .num { font-size: 19px; color: #f3dfb6; }
.hpkg .hp-p s { opacity: 0.5; margin-left: 5px; font-size: 10.5px; }
.hpkg .hp-go { font-size: 10px; opacity: 0.85; margin-top: 3px; }

/* ===== 运营位 ===== */
.op2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
.op-cell {
  border-radius: 14px; padding: 12px; color: #fff; text-decoration: none; min-height: 84px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.op-cell b { font-size: 13px; }
.op-cell small { font-size: 11px; opacity: 0.85; }
.op-cell > svg.ic { width: 20px; height: 20px; align-self: flex-end; opacity: 0.9; }
.op-qr { background: linear-gradient(135deg, #12897c, #0f9d8f); }
.op-act { background: linear-gradient(135deg, var(--gold1), var(--gold2)); }

/* ===== 动态列表 ===== */
.news-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-item:last-child { border-bottom: none; }
.news-item .thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.news-item .thumb svg.ic { width: 24px; height: 24px; }
.news-item .t { font-size: 13px; font-weight: 500; }
.news-item .d { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ===== 场馆页 ===== */
.hero {
  margin: 12px 14px 0; height: 180px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-ink) 0%, var(--dark2) 55%, #1fa293 100%);
  position: relative; overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; padding: 14px;
}
.avail-strip {
  display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; padding: 9px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: 12px; color: var(--ink-2); box-shadow: var(--shadow);
}
.avail-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 3px rgba(15, 157, 143, 0.18); }
.avail-strip b { color: var(--teal-deep); }
.avail-strip .more { margin-left: auto; color: var(--teal-deep); font-size: 11px; text-decoration: none; font-weight: 600; }
.hero .hero-big { position: absolute; right: 14px; top: 12px; width: 104px; height: 104px; opacity: 0.22; }
.hero .tag { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5); padding: 2px 10px; border-radius: 999px; font-size: 11px; }
.row-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13px; }
.row-line .k { color: var(--ink-3); flex: none; min-width: 52px; display: flex; align-items: center; gap: 5px; }
.row-line .k svg.ic { width: 14px; height: 14px; }
.btn-block {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 13px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff;
  font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-block:active { opacity: 0.9; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; color: var(--teal-deep); font-family: var(--mono); font-weight: 600; }

/* ===== 选场页 ===== */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date-cell {
  flex: none; width: 52px; text-align: center; padding: 8px 0; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; user-select: none;
}
.date-cell .w { font-size: 10px; color: var(--ink-3); }
.date-cell .d { font-size: 15px; font-weight: 600; }
.date-cell.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.date-cell.on .w { color: rgba(255,255,255,0.8); }
.grid-wrap { margin: 4px 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; overflow-x: auto; }
.bk-grid { display: grid; grid-template-columns: 52px repeat(var(--cols, 4), minmax(64px, 1fr)); gap: 4px; min-width: max-content; }
.bk-grid .hd { font-size: 11px; color: var(--ink-2); text-align: center; padding: 4px 0; font-weight: 600; }
.bk-grid .hd small { display: block; font-weight: 400; color: var(--teal-deep); }
.bk-grid .tm { font-size: 10px; color: var(--ink-3); display: flex; align-items: center; }
.slot {
  height: 34px; border-radius: 8px; background: #eaf6f4; border: 1px solid #d5ebe8;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--teal-deep);
  font-family: var(--mono); cursor: pointer; user-select: none;
}
.slot.booked { background: #eef1f1; border-color: #e2e6e6; color: #b3bfbf; cursor: not-allowed; }
.slot.sel { background: var(--teal); border-color: var(--teal-deep); color: #fff; font-weight: 700; }
.hint { text-align: center; font-size: 11px; color: var(--ink-3); margin: 8px 0 2px; }
.paybar {
  position: fixed; bottom: 62px; left: 50%; transform: translateX(-50%);
  width: min(420px, 100%); background: var(--card); box-shadow: 0 -3px 12px rgba(13,122,111,0.10);
  display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; z-index: 40;
  border-radius: 16px 16px 0 0;
}
.paybar .total { font-size: 13px; color: var(--ink-2); }
.paybar .total b { font-size: 20px; color: var(--danger); font-family: var(--mono); }
.paybar .pay-info { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paybar .btn-next {
  padding: 10px 26px; border-radius: 999px; border: none; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; cursor: pointer;
}
.paybar .btn-next:disabled { background: #c3d4d2; cursor: not-allowed; }
.note-line { font-size: 11px; color: var(--ink-3); margin: 10px 18px 0; line-height: 1.7; }

/* ===== 个人中心 ===== */
.me-head {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  margin: 12px 14px 0; border-radius: var(--radius); color: #fff; padding: 16px;
}
.me-top { display: flex; align-items: center; gap: 12px; }
.me-ava { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.5); }
.me-ava svg.ic { width: 26px; height: 26px; }
.me-name { font-size: 16px; font-weight: 600; }
.me-name small { display: block; font-size: 11px; font-weight: 400; opacity: 0.8; margin-top: 2px; }
.me-stats { display: flex; gap: 26px; margin-top: 14px; }
.me-stats div b { font-size: 18px; font-family: var(--mono); }
.me-stats div small { display: block; font-size: 11px; opacity: 0.8; }
.uni-strip { margin-top: 14px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; padding: 8px 10px; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.uni-strip > svg.ic { width: 14px; height: 14px; flex: none; }
.uni-strip .dots { display: flex; gap: 3px; margin-left: auto; }
.uni-strip .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.uni-strip .dots i.f { background: var(--gold2); }
.qrow { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 4px 0; }
.qrow a { text-decoration: none; color: var(--ink); font-size: 12px; }
.qrow .qi { display: flex; justify-content: center; margin-bottom: 5px; }
.qrow .qi svg.ic { width: 24px; height: 24px; }
.qrow sup { color: var(--danger); font-size: 10px; }
.o-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.o-item:last-child { border-bottom: none; }
.o-ico { width: 42px; height: 42px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; }
.o-ico svg.ic { width: 20px; height: 20px; }
.o-t { font-size: 13px; font-weight: 600; }
.o-d { font-size: 11px; color: var(--ink-3); margin: 2px 0; }
.o-p { font-size: 13px; font-family: var(--mono); font-weight: 700; color: var(--ink); }
.o-st { float: right; font-size: 11px; font-weight: 400; }
.st-ok { color: var(--teal-deep); } .st-wait { color: var(--gold1); } .st-done { color: var(--ink-3); }
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.svc-grid a { text-decoration: none; color: var(--ink); font-size: 11px; }
.svc-grid .si { display: flex; justify-content: center; margin-bottom: 5px; color: var(--teal-deep); }
.svc-grid .si svg.ic { width: 21px; height: 21px; }

/* ===== 打包预订页 ===== */
.biz-card { display: flex; gap: 12px; align-items: center; }
.biz-ico { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.biz-ico svg.ic { width: 28px; height: 28px; }
.res-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.res-item:last-child { border-bottom: none; }
.res-h { display: flex; justify-content: space-between; align-items: baseline; }
.res-h b { font-size: 14px; }
.res-h .pr { font-family: var(--mono); color: var(--teal-deep); font-weight: 700; }
.res-meta { font-size: 11px; color: var(--ink-3); margin: 3px 0 8px; }
.tslots { display: flex; gap: 6px; flex-wrap: wrap; }
.tslot { padding: 5px 10px; border-radius: 8px; font-size: 12px; background: #eaf6f4; border: 1px solid #d5ebe8; color: var(--teal-deep); font-family: var(--mono); cursor: pointer; user-select: none; }
.tslot.off { background: #eef1f1; border-color: #e2e6e6; color: #b3bfbf; cursor: not-allowed; text-decoration: line-through; }
.tslot.sel { background: var(--teal); border-color: var(--teal-deep); color: #fff; font-weight: 700; }
.pkg { border: 1.5px dashed var(--gold1); background: linear-gradient(135deg, #fff8ef, #fffdf8); border-radius: 14px; padding: 12px; margin-top: 10px; }
.pkg .pk-h { display: flex; justify-content: space-between; align-items: baseline; }
.pkg .pk-h b { font-size: 14px; }
.pkg .pk-p { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--danger); }
.pkg .pk-p s { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.pkg .pk-d { font-size: 11px; color: var(--ink-2); margin: 4px 0 10px; }
.pkg .pk-btn { display: inline-block; background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 999px; border: none; cursor: pointer; }
.pkg .pk-sold { float: right; font-size: 10px; color: var(--bronze); background: var(--bronze-bg); border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.auto-tip { background: #eaf6f4; border: 1px solid #d5ebe8; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 500; color: var(--teal-deep); margin: 0 14px 4px; display: flex; gap: 7px; align-items: center; }
.auto-tip svg.ic { width: 15px; height: 15px; flex: none; }

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(420px, 100%); background: var(--card); border-top: 1px solid var(--line);
  display: flex; z-index: 45; padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--ink-3); font-size: 10px; }
.tabbar a .ti { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.tabbar a.on { color: var(--teal-deep); font-weight: 600; }

/* ===== Toast ===== */
#toast {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%) translateY(8px);
  background: rgba(26, 43, 42, 0.92); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 99;
  max-width: 82vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.proto-badge { position: fixed; top: 6px; right: 8px; z-index: 60; font-size: 9px; background: rgba(0,0,0,0.28); color: #fff; padding: 2px 8px; border-radius: 999px; letter-spacing: 1px; }
