/* 齐动力网球 · 场馆与私教价格 H5  |  黑白灰，无彩色 */
:root {
  --text: #1a1a1a;
  --text-2: #888;
  --text-3: #aaa;
  --line: #f0f0f0;
  --border: #e0e0e0;
  --bg: #f5f5f5;
  --card: #ffffff;
  --accent: #1a1a1a;
  --accent-fg: #ffffff;
  --brand: #0085d0;
  --brand-deep: #0072b5;
  --brand-soft: rgba(0, 133, 208, .08);
  --r-card: 8px;
  --r-tag: 3px;
  --gap: 14px;
  --pad: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #eeeeee;
    --text-2: #999999;
    --text-3: #777777;
    --line: #2a2a2a;
    --border: #383838;
    --bg: #111111;
    --card: #1c1c1c;
    --accent: #eeeeee;
    --accent-fg: #111111;
    --brand: #3aa5e4;
    --brand-deep: #2b8fc9;
    --brand-soft: rgba(58, 165, 228, .14);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.page { max-width: 480px; margin: 0 auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- 品牌 ---------- */
.brand-lockup { margin-bottom: 12px; }
.brand-lockup img { height: 36px; width: auto; display: block; }
.nav-mark { height: 20px; width: auto; margin-right: 6px; vertical-align: -4px; }

/* ---------- 页头 ---------- */
.page-head { padding: 22px 16px 12px; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.page-sub {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ---------- 筛选 chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--card);
  -webkit-tap-highlight-color: transparent;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips-label { padding: 8px 16px 0; font-size: 12px; color: var(--text-3); }

/* ---------- 场馆卡片 ---------- */
.venue-list { padding: 2px 16px 0; display: flex; flex-direction: column; gap: var(--gap); }
.venue-card {
  display: block;
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.vc-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #24455e, #122534); }
.ph-img { width: 100%; height: 100%; object-fit: cover; }
.imgbox { position: relative; overflow: hidden; }
.imgbox.img-err { background: linear-gradient(160deg, #24455e, #122534); }
.vc-grade {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0, 133, 208, .92);
  color: #fff; font-size: 11px; line-height: 1;
  padding: 5px 8px; border-radius: var(--r-tag);
}
.vc-prep {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 255, 255, .92); color: #1a1a1a;
  font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: var(--r-tag);
}
.vc-name {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  color: #fff; font-size: 17px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.vc-body { padding: 12px var(--pad) 14px; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--r-tag);
  padding: 3px 7px; line-height: 1.3;
}
.tag .ic { width: 13px; height: 13px; }
.vc-price { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.vc-prow-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.vc-prow-head .vc-l { font-size: 11.5px; color: var(--text-3); letter-spacing: .2px; }
.vc-pt {
  display: grid;
  grid-template-columns: 1fr 54px 62px 62px;
  align-items: baseline;
  row-gap: 4px;
}
.vc-ptr { display: contents; }
.vc-ptr > span, .vc-ptr > b { text-align: right; }
.vc-pt .vc-l { text-align: left; font-size: 12.5px; color: var(--text-2); }
.vc-pth span { font-size: 10.5px; color: var(--text-3); letter-spacing: -.2px; }
.vc-pt b {
  font-size: 17px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.vc-pt .vc-num { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vc-more { flex: 0 0 auto; margin-left: 12px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.venue-card.is-prep .vc-name { color: #fff; }

/* ---------- 状态 / 空态 ---------- */
.state { padding: 44px 16px; text-align: center; color: var(--text-2); }
.state-t { font-size: 14px; margin-bottom: 14px; }
.btn {
  display: inline-block; min-height: 44px; padding: 0 22px;
  background: var(--brand); color: #fff;
  border-radius: var(--r-card); font-size: 14px; line-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ---------- 骨架屏 ---------- */
.sk { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.sk-media { aspect-ratio: 16 / 9; }
.sk-line { height: 12px; border-radius: 4px; background: var(--line); margin: 14px 16px; }
.sk-line.w60 { width: 60%; }
.skeleton, .sk .sk-media, .sk-line { animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 顶部导航（详情页） ---------- */
.topnav {
  position: sticky; top: 0; z-index: 20;
  max-width: 480px; margin: 0 auto;
  height: 48px; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.nav-back {
  width: 44px; height: 44px; margin-left: 2px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-back .ic { width: 22px; height: 22px; }
.nav-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center;
}

/* ---------- 详情页区块 ---------- */
.section {
  background: var(--card); border-radius: var(--r-card);
  margin: 14px 16px 0; padding: var(--pad);
}
.section:first-of-type { margin-top: 14px; }
.sec-title {
  position: relative; padding-left: 11px;
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.sec-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px; background: var(--brand);
}
.sec-title .sec-note { font-size: 11px; font-weight: 400; color: var(--text-3); }

/* 轮播 */
.carousel { position: relative; }
.car-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  height: 210px; border-radius: var(--r-card);
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: center; }
.car-slide .imgbox { height: 100%; background: linear-gradient(160deg, #24455e, #122534); }
.car-slide img { height: 100%; width: 100%; object-fit: cover; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.car-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s; }
.car-dots i.on { background: rgba(255,255,255,.95); }

/* 标题区 */
.v-head-name { font-size: 21px; font-weight: 700; line-height: 1.35; }
.v-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge-grade {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: var(--r-tag);
}

/* 位置 */
.v-addr-row { display: flex; align-items: center; gap: 12px; }
.v-addr { flex: 1; font-size: 14px; }
.v-transit { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.v-transit .ic { width: 14px; height: 14px; flex: 0 0 auto; }
.nav-btn {
  flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 10px; color: var(--brand); -webkit-tap-highlight-color: transparent;
}
.nav-btn .ic { width: 18px; height: 18px; }

/* 营业时间 */
.hours-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.hours-row + .hours-row { border-top: 1px solid var(--line); }
.hours-row .h-label { color: var(--text-2); }
.hours-row .h-val { font-variant-numeric: tabular-nums; }

/* 时段划分 */
.slot-cards { display: flex; gap: 10px; }
.slot-card { flex: 1; border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px; }
.slot-label { font-size: 12px; color: var(--text-2); }
.slot-time { margin-top: 4px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5; }
.slot-sub { margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.slot-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }

/* 私教价格表 */
.pt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt th, .pt td { padding: 9px 2px; text-align: center; font-weight: 400; }
.pt thead tr:first-child th { font-size: 12.5px; color: var(--text-2); font-weight: 600; padding-bottom: 2px; }
.pt thead tr.pt-sub th { font-size: 11.5px; color: var(--text-2); font-weight: 600; padding-bottom: 0; }
.pt thead tr.pt-sub2 th { font-size: 11px; color: var(--text-3); font-weight: 400; border-bottom: 1px solid var(--line); padding-top: 0; }
.pt tbody td { border-bottom: 1px solid var(--line); font-size: 15px; }
.pt tbody tr:last-child td { border-bottom: 0; }
.pt tbody td:first-child { text-align: left; font-size: 13.5px; color: var(--text-2); }
.pt .pt-main { font-size: 16px; font-weight: 700; color: var(--brand); }
.pt .pt-sep { border-left: 1px solid var(--line); }
.pt-stack { display: none; }
.pt-note {
  margin-top: 14px; padding: 10px 12px;
  background: var(--bg); border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.pt-note p + p { margin-top: 4px; }
.prep-notice { text-align: center; color: var(--text-2); font-size: 14px; padding: 26px 0; }

/* 场馆规则 */
.rule-row { display: flex; gap: 12px; padding: 11px 0; align-items: flex-start; }
.rule-row + .rule-row { border-top: 1px solid var(--line); }
.rule-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.rule-ic .ic { width: 17px; height: 17px; }
.rule-main { font-size: 14px; line-height: 1.5; }
.rule-sub { font-size: 12px; color: var(--text-2); margin-top: 1px; }

/* 教练入口 */
.coach-entry {
  display: flex; align-items: center; gap: 12px; min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.ce-avs { display: flex; flex: 0 0 auto; }
.ce-av {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--card); background: var(--brand-soft);
}
.ce-av + .ce-av { margin-left: -9px; }
.ce-av img { width: 100%; height: 100%; object-fit: cover; }
.ce-av.ce-av-empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.ce-av.ce-more { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-2); }
.ce-txt { flex: 1; }
.ce-t1 { font-size: 14.5px; font-weight: 600; }
.ce-t2 { font-size: 12px; color: var(--text-2); }
.ce-arrow { color: var(--brand); font-size: 18px; }

/* ---------- 教练列表 ---------- */
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 2px 16px 0; }
.coach-card { background: var(--card); border-radius: var(--r-card); overflow: hidden; display: block; }
.cc-av { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #2e5a7a, #16283a); }
.cc-av img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { padding: 10px 12px 12px; }
.cc-name { font-size: 15px; font-weight: 600; }
.cc-tag { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ---------- 教练详情 ---------- */
.cd-head { display: flex; gap: 16px; align-items: center; }
.cd-av { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2e5a7a, #16283a); }
.cd-av img { width: 100%; height: 100%; object-fit: cover; }
.cd-name { font-size: 20px; font-weight: 700; }
.cd-tag { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.cd-meta { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.cd-meta a { color: var(--brand); border-bottom: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-dark { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-tag); padding: 5px 9px; font-size: 12px; color: var(--text-2); }
.cd-bio { font-size: 14px; line-height: 1.8; color: var(--text); }

/* ---------- 规则页 ---------- */
.rules-block h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.rules-block p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.rules-block p + p { margin-top: 4px; }
.rules-block { padding-bottom: 2px; }
.rules-block + .rules-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

/* ---------- 页脚 ---------- */
.footer { margin: 26px 16px 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.footer p { font-size: 11.5px; color: var(--text-3); line-height: 1.9; }
.footer .foot-brand { color: var(--text-2); }

/* ---------- 窄屏降级：<360px 价格表堆叠 ---------- */
@media (max-width: 359.98px) {
  .pt { display: none; }
  .pt-stack { display: block; }
  .pt-card { border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px; }
  .pt-card + .pt-card { margin-top: 10px; }
  .pt-card-h { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
  .pt-cols { display: flex; }
  .pt-col { flex: 1; text-align: center; font-variant-numeric: tabular-nums; }
  .pt-col + .pt-col { border-left: 1px solid var(--line); }
  .pt-l { display: block; font-size: 11px; color: var(--text-3); }
  .pt-col b { font-size: 16px; }
  .pt-col .pt-n { font-size: 15px; }
}
