/* ===== 匹克球场馆预约系统 · 管理后台 ===== */
:root {
  --ink: #0F2A6B;
  --brand: #1B3A8F;
  --brand-2: #3E7BFA;
  --green: #C6E05A;
  --bg: #F4F7FE;
  --card: #FFFFFF;
  --t1: #141A26;
  --t2: #414B60;
  --t3: #6B7891;
  --t4: #98A2B8;
  --line: #E7ECF6;
  --r: 14px;
  --shadow: 0 4px 18px rgba(15, 42, 107, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--t1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== 登录 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #C9DCFF 0%, #E7F0FF 45%, #F3F5FA 100%);
}
.login {
  width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 12px 40px rgba(15, 42, 107, 0.12);
}
.login h1 { font-size: 22px; color: var(--brand); letter-spacing: 0.02em; }
.login p { margin-top: 8px; font-size: 13px; color: var(--t3); }
.login label { display: block; margin-top: 24px; font-size: 13px; color: var(--t2); }
.login input {
  width: 100%; height: 44px; margin-top: 8px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.login input:focus { border-color: var(--brand-2); }
.login button {
  width: 100%; height: 46px; margin-top: 26px;
  background: var(--brand); color: #fff; border-radius: 10px;
  font-weight: 600; font-size: 15px;
}
.login .err { margin-top: 12px; color: #C0392B; font-size: 12px; }
.login .hint { margin-top: 18px; font-size: 12px; color: var(--t4); text-align: center; }

/* ===== 布局 ===== */
.app { display: flex; min-height: 100vh; }

.side {
  width: 216px; flex-shrink: 0;
  background: linear-gradient(180deg, #0F2A6B 0%, #16346F 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side__brand {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side__brand b { display: block; font-size: 15px; letter-spacing: 0.02em; }
.side__brand span { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.45); }

.side__nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; margin-bottom: 2px;
  border-radius: 9px; color: rgba(255,255,255,.72);
  font-size: 13.5px; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.on { background: rgba(198,224,90,.16); color: #fff; font-weight: 600; }
.nav-item.on::before {
  content: ""; width: 3px; height: 16px; border-radius: 2px;
  background: var(--green); margin-left: -4px;
}
.nav-item i { width: 16px; text-align: center; font-style: normal; opacity: .8; }

.side__foot {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.45);
}
.side__foot button { color: rgba(255,255,255,.65); text-decoration: underline; }

.main { flex: 1; min-width: 0; padding: 24px 28px 60px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.topbar h2 { font-size: 20px; letter-spacing: 0.01em; }
.topbar .who { font-size: 13px; color: var(--t3); }

/* ===== 卡片 / 表格 ===== */
.card {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.card + .card { margin-top: 16px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  background: #fff; border-radius: var(--r); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 28px; color: var(--brand); letter-spacing: -0.01em; }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--t3); }
.stat em { font-style: normal; font-size: 12px; color: #2C8D60; margin-left: 6px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; font-size: 13px; }
th { color: var(--t3); font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { border-bottom: 1px solid #F2F5FA; color: var(--t1); }
tbody tr:hover { background: #FAFCFF; }
tbody tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; line-height: 1.6; white-space: nowrap;
}
.tag.open { background: #E6EDFC; color: var(--brand); }
.tag.done { background: #E9EBEF; color: var(--t3); }
.tag.warn { background: #F3E2D6; color: #A55C30; }
.tag.off { background: #F0F1EC; color: var(--t3); }

.btn {
  height: 34px; padding: 0 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: #F1F4FA; color: var(--t2);
}
.btn:hover { background: #E8EDF8; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #16307A; }
.btn.danger { background: #FDECEA; color: #C0392B; }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn + .btn { margin-left: 8px; }

.toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }
.field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t3); }
.field input, .field select {
  height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; outline: none; background: #fff; color: var(--t1);
}
.field input:focus, .field select:focus { border-color: var(--brand-2); }

.empty {
  padding: 60px 0; text-align: center; color: var(--t4); font-size: 13px;
}

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,42,107,.42);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  width: 460px; max-width: 92vw; max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 24px 26px;
  box-shadow: 0 20px 60px rgba(15,42,107,.24);
}
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.modal .row { margin-bottom: 14px; }
.modal .row label { display: block; font-size: 12.5px; color: var(--t3); margin-bottom: 6px; }
.modal .row input, .modal .row select, .modal .row textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
}
.modal .row textarea { height: 76px; padding: 10px 12px; resize: vertical; }
.modal .row input:focus, .modal .row select:focus, .modal .row textarea:focus { border-color: var(--brand-2); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ===== 看板图表 ===== */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar__v {
  width: 100%; background: linear-gradient(180deg, #3E7BFA 0%, #1B3A8F 100%);
  border-radius: 6px 6px 0 0; min-height: 4px;
  transition: height .3s ease;
}
.bar__l { font-size: 11px; color: var(--t4); }
.bar__n { font-size: 11px; color: var(--t3); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.slot {
  padding: 8px 6px; border-radius: 8px; text-align: center;
  background: #F5F8FF; font-size: 12px; color: var(--t2);
}
.slot b { display: block; font-size: 13px; color: var(--brand); }

/* ---- 操作反馈 toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: #1B3A8F;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.25);
  z-index: 999;
  animation: toastIn 0.18s ease;
}
.toast--err { background: #C0392B; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   可视化预览管理（场地 / 场次 / 商品）
   ============================================================ */

.vgrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
}

/* ---- 场地卡 ---- */
.vcard {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,42,107,.10); }
.vcard.is-off { opacity: .62; }

.court-card__top { display: flex; align-items: center; justify-content: space-between; }
.court-card__id {
  width: 34px; height: 34px; border-radius: 10px;
  background: #EEF3FB; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.vcard.is-off .court-card__id { background: #F0F1EC; color: var(--t4); }
.court-card__name { font-size: 15px; font-weight: 600; color: var(--t1); }
.court-card__meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--t3); }
.court-card__meta b { color: var(--brand); font-weight: 600; }
.court-card__note { font-size: 12px; color: var(--t4); min-height: 16px; }
.court-card__ops { display: flex; gap: 6px; margin-top: 4px; }
.court-card__ops .btn { flex: 1; padding: 0 4px; white-space: nowrap; }
.court-card__ops .btn + .btn { margin-left: 0; }

/* ---- 场次网格（仿小程序订场页）---- */
.sgrid-wrap { overflow-x: auto; }
.sgrid {
  display: grid;
  min-width: max-content;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.sgrid__corner { background: #F7F9FE; }
.sgrid__head {
  background: #F7F9FE;
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--t2);
  font-weight: 600;
  border-left: 1px solid var(--line);
}
.sgrid__time {
  background: #F7F9FE;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--t2);
  text-align: center;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.sgrid__time small { display: block; color: var(--t4); font-size: 11px; }
.sgrid__cell {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 8px 6px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 12px;
  transition: background .12s ease;
}
.sgrid__cell:hover { background: #FAFCFF; }
.sgrid__cell b { font-size: 13px; color: var(--t1); font-weight: 600; }
.sgrid__cell i { font-style: normal; font-size: 11.5px; color: var(--t3); }
.sgrid__cell--full { background: #F6F7F9; }
.sgrid__cell--full b, .sgrid__cell--full i { color: var(--t4); }
.sgrid__cell--booked { background: var(--brand); }
.sgrid__cell--booked b, .sgrid__cell--booked i { color: #fff; }
.sgrid__cell--closed {
  background: repeating-linear-gradient(45deg, #F4F6FA, #F4F6FA 6px, #EDF0F6 6px, #EDF0F6 12px);
}
.sgrid__cell--closed b, .sgrid__cell--closed i { color: var(--t4); }

/* 还没排场次的格子：虚线 + 平时很淡，鼠标上来才提示「补一场」 */
.sgrid__cell--blank { background: #FCFDFF; }
.sgrid__cell--blank b { color: #C3CCDD; }
.sgrid__cell--blank i {
  color: transparent; font-size: 11px;
  transition: color .12s ease;
}
.sgrid__cell--blank:hover { background: #F3F8FF; box-shadow: inset 0 0 0 1px #BBD0F5; }
.sgrid__cell--blank:hover b { color: var(--brand); }
.sgrid__cell--blank:hover i { color: var(--brand-2); }

.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--t3); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.legend .lg-on { background: #fff; }
.legend .lg-full { background: #F6F7F9; }
.legend .lg-booked { background: var(--brand); border-color: var(--brand); }
.legend .lg-closed { background: repeating-linear-gradient(45deg,#F4F6FA,#F4F6FA 3px,#EDF0F6 3px,#EDF0F6 6px); }

/* 场次操作浮层 */
.slot-pop {
  position: fixed;
  z-index: 60;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,42,107,.18);
  padding: 12px 14px;
  min-width: 190px;
  display: none;
}
.slot-pop.is-on { display: block; }
.slot-pop__t { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.slot-pop__s { font-size: 12px; color: var(--t3); margin-bottom: 10px; }
.slot-pop { min-width: 272px; }

/* 单场改人数 / 单价 / 时间 */
.slot-pop__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  margin-bottom: 8px;
}
.slot-pop__form label {
  min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: var(--t4);
}
.slot-pop__form input {
  width: 100%; height: 30px;
  border: 1px solid var(--line); border-radius: 7px;
  padding: 0 6px; font-size: 13px; color: var(--t1);
  text-align: center; outline: none; background: #fff;
}
.slot-pop__form input:disabled { background: #F5F7FB; color: var(--t4); cursor: not-allowed; }
.slot-pop__form input:focus { border-color: var(--brand-2); }
.slot-pop__form .btn { grid-column: 1 / -1; height: 30px; width: 100%; }

.slot-pop__lock {
  font-size: 11.5px; line-height: 1.45; color: #B4562F;
  background: #FFF8F4; border: 1px solid #F5DACE; border-radius: 6px;
  padding: 6px 8px; margin-bottom: 8px;
}

/* 通用「补一场」里的场地下拉 */
.slot-pop__court {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: var(--t4); margin-bottom: 8px;
}
.slot-pop__court select {
  height: 30px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 6px; font-size: 13px; color: var(--t1); background: #fff; outline: none;
}
.slot-pop__court select:focus { border-color: var(--brand-2); }

.slot-pop__ops { display: flex; gap: 6px; }
.slot-pop__ops .btn { width: 100%; }
.slot-pop__ops .btn + .btn { margin-left: 0; }

/* ---- 商品卡 ---- */
.goods-card { gap: 10px; }
.goods-card__pic {
  height: 92px; border-radius: 12px;
  background: linear-gradient(160deg, #EEF3FB, #E4ECFB);
  display: flex; align-items: center; justify-content: center;
}
.goods-card__name { font-size: 14px; font-weight: 600; color: var(--t1); }
.goods-card__meta { font-size: 12px; color: var(--t3); }
.goods-card__foot { display: flex; align-items: center; justify-content: space-between; }
.goods-card__pts { font-size: 17px; font-weight: 700; color: var(--brand); }
.goods-card__pts small { font-size: 11px; font-weight: 400; color: var(--t3); margin-left: 2px; }
.goods-card__ops { display: flex; gap: 6px; }
.goods-card__ops .btn { flex: 1; padding: 0 6px; }
.goods-card__ops .btn + .btn { margin-left: 0; }
.goods-card.is-out .goods-card__pic { filter: grayscale(1); opacity: .7; }

/* ---- CSS 商品图标（对应小程序 5 种）---- */
.picon { position: relative; width: 46px; height: 46px; }
.picon--ball { border-radius: 50%; background: #C6E05A; box-shadow: inset -4px -6px 0 rgba(0,0,0,.08); }
.picon--ball::after {
  content: ""; position: absolute; inset: 7px;
  border: 2px dashed rgba(27,58,143,.35); border-radius: 50%;
}
.picon--paddle::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 34px; height: 30px;
  border-radius: 16px; background: #1B3A8F;
}
.picon--paddle::after {
  content: ""; position: absolute; left: 21px; top: 32px; width: 8px; height: 12px;
  border-radius: 0 0 4px 4px; background: #A55C30;
}
.picon--grip { border-radius: 10px; background: #3E7BFA; }
.picon--grip::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: #fff;
}
.picon--ticket {
  border-radius: 6px; background: #EEF3FB; border: 2px dashed #1B3A8F;
}
.picon--ticket::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 0;
  border-top: 2px dashed rgba(27,58,143,.45);
}
.picon--bottle::before {
  content: ""; position: absolute; left: 13px; top: 6px; width: 20px; height: 34px;
  border-radius: 5px; background: #0EA5A0;
}
.picon--bottle::after {
  content: ""; position: absolute; left: 18px; top: 1px; width: 10px; height: 7px;
  border-radius: 2px; background: #0F6E56;
}

/* ---- 分区标题（场地场次合并页）---- */
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.sec-head b { font-size: 15px; font-weight: 600; color: var(--t1); }
.sec-head span { font-size: 12.5px; color: var(--t3); }
.sec-head .spacer { flex: 1; }
.sec-head--slots { margin-top: 26px; }
.sec-head--slots .field { margin-left: 0; }

.vgrid--courts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ============================================================
   图片上传 / 课程卡 / 分段控件
   ============================================================ */

/* 弹窗里的图片字段 */
.imgpick { display: flex; align-items: flex-start; gap: 14px; }
.imgpick__box {
  width: 92px; height: 92px; border-radius: 10px; flex-shrink: 0;
  border: 1px dashed var(--line); background: #F7F9FE;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.imgpick__box img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 作者样式的 display:block 会盖掉 [hidden]，必须显式关掉，否则空图会露出裂图图标 */
.imgpick__box img[hidden] { display: none; }
.imgpick__ph { font-size: 12px; color: var(--t4); }
.imgpick__ops { display: flex; gap: 8px; padding-top: 4px; }
.imgpick__tip { font-size: 11.5px; color: var(--t4); width: 100%; }
.imgpick .btn + .btn { margin-left: 0; }
.row--img .imgpick { flex-wrap: wrap; }

/* 商品卡里的实物图 */
.goods-card__pic { overflow: hidden; }
.goods-card__pic img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px;
}

/* 分段控件（团体课 / 私教课） */
.seg {
  display: inline-flex;
  background: #EEF3FB;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg__b {
  height: 32px; padding: 0 16px; border-radius: 8px;
  font-size: 13px; color: var(--t3);
  display: flex; align-items: center; gap: 5px;
}
.seg__b small { font-size: 11.5px; opacity: .75; }
.seg__b.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(15,42,107,.08); }

/* 课程卡 */
.vgrid--courses { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.course-card { padding: 0; overflow: hidden; gap: 0; }
.course-card__pic {
  position: relative; height: 132px; background: #E4EAE4;
}
.course-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(27,58,143,.18) 49.6%, rgba(27,58,143,.18) 50.4%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(27,58,143,.10) 49.6%, rgba(27,58,143,.10) 50.4%, transparent 50.4%),
    #E9EFE9;
}
.course-card__ph span {
  font-size: 12px; color: #5D7A63; background: rgba(255,255,255,.82);
  padding: 3px 10px; border-radius: 100px;
}
.course-card__tag {
  position: absolute; left: 10px; top: 10px;
  font-size: 11.5px; color: #fff; background: rgba(15,42,107,.62);
  padding: 2px 8px; border-radius: 100px;
}
.course-card__price {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 16px; font-weight: 700; color: #fff;
  background: rgba(15,42,107,.68); padding: 2px 9px; border-radius: 8px;
}
.course-card__name {
  font-size: 14.5px; font-weight: 600; color: var(--t1);
  padding: 12px 14px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.course-card__meta { font-size: 12px; color: var(--t3); padding: 0 14px 12px; }
.course-card__ops {
  display: flex; gap: 6px; padding: 0 14px 14px;
}
.course-card__ops .btn { flex: 1; padding: 0 6px; }
.course-card__ops .btn + .btn { margin-left: 0; }

/* ---- 顶部日期条（对应小程序订场页的日期行）---- */
.datebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.datebar__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dchip {
  min-width: 76px;
  height: 54px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background .15s ease, border-color .15s ease;
}
.dchip span { font-size: 12px; color: var(--t3); }
.dchip small { font-size: 13px; font-weight: 600; color: var(--t1); letter-spacing: .01em; }
.dchip:hover { border-color: var(--brand-2); }
.dchip.is-on { background: var(--brand); border-color: var(--brand); }
.dchip.is-on span { color: rgba(255, 255, 255, .72); }
.dchip.is-on small { color: #fff; }

/* 日期 chip 外面包一层，用来放右上角的「关掉这天」小叉 */
.dchipw { position: relative; display: inline-flex; }
.dchipx {
  position: absolute; top: -6px; right: -6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #C0392B; color: #fff;
  font-style: normal; font-size: 12px; line-height: 17px; text-align: center;
  cursor: pointer; display: none;
  box-shadow: 0 2px 6px rgba(192, 57, 43, .35);
}
.dchipw:hover .dchipx { display: block; }
.dchipx:hover { background: #A93226; }

/* 「+ 日期」：单独开一天，跟普通 chip 区分开 */
.dchip--add {
  min-width: 76px; background: #F7FAFF;
  border-style: dashed; border-color: #C9D8F0; color: var(--brand);
}
.dchip--add:hover { background: #EEF5FF; border-color: var(--brand-2); }
.dchip--add span { color: var(--brand); font-weight: 600; }

/* ---- 活动页日期条扩展：横向滚动 + 活动数角标 ---- */
.datebar__chips--scroll {
  flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: thin; max-width: 100%;
}
.datebar__chips--scroll::-webkit-scrollbar { height: 6px; }
.datebar__chips--scroll::-webkit-scrollbar-thumb { background: #D8E0EE; border-radius: 100px; }
.datebar__chips--scroll::-webkit-scrollbar-track { background: transparent; }
.datebar__chips--scroll .dchip { flex-shrink: 0; position: relative; }
.dchip--all { min-width: 68px; background: #F6F9FF; border-style: dashed; }
.dchip--all.is-on { background: var(--brand); border-style: solid; }
.dchip__n {
  position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 100px;
  background: #FF8A3D; color: #fff; font-style: normal;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 1px 4px rgba(255, 138, 61, .45);
}
.dchip.is-on .dchip__n { background: #fff; color: var(--brand); }
.dchip:not(.has-act) { opacity: .72; }
.dchip:not(.has-act) small { font-weight: 500; color: var(--t4); }

/* ============================================================
   页面装修
   ============================================================ */
.deco {
  display: grid;
  grid-template-columns: 196px 420px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1280px) {
  .deco { grid-template-columns: 170px 360px 1fr; }
}

/* 左：模块库 */
.deco__palette {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
  padding: 12px; position: sticky; top: 12px;
}
.deco__tip { font-size: 11.5px; color: var(--t4); margin-bottom: 8px; }
.pal {
  width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px;
  display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto;
  gap: 1px 8px; margin-bottom: 6px; background: #F7F9FE;
}
.pal:hover { background: #EEF3FB; }
.pal i { grid-row: span 2; font-style: normal; color: var(--brand-2); font-size: 15px; text-align: center; line-height: 1.5; }
.pal b { font-size: 13px; color: var(--t1); font-weight: 600; }
.pal span { font-size: 11px; color: var(--t4); }

/* 中：手机预览 */
.deco__preview { position: sticky; top: 12px; }
.phone {
  width: 375px; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 42, 107, .14);
  border: 1px solid var(--line);
}
.phone__bar {
  height: 32px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  font-size: 11.5px; font-weight: 600; color: #0F2A6B; background: #0F2A6B;
}
.phone__bar { color: #fff; background: #0F2A6B; }
.phone__bar-r { font-size: 10px; letter-spacing: 1px; opacity: .85; }
.phone__body { height: 620px; overflow-y: auto; background: #F3F5FA; padding-bottom: 20px; }

.pv-hero {
  padding: 18px 16px 22px;
  background: linear-gradient(160deg, #C9DCFF, #E7F0FF 60%, #F3F5FA);
  display: flex; flex-direction: column; gap: 4px;
}
.pv-hero b { font-size: 16px; color: #0F2A6B; }
.pv-hero span { font-size: 10px; letter-spacing: .16em; color: #4A6FD0; }

.pv-block {
  position: relative; margin: 10px 12px; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 8px rgba(15,42,107,.05);
  cursor: pointer; border: 1px solid transparent;
}
.pv-block.is-sel { border-color: var(--brand-2); box-shadow: 0 0 0 2px rgba(62,123,250,.18); }
.pv-block__bar {
  display: none; position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  background: rgba(15,42,107,.82); color: #fff; font-size: 11px;
  padding: 4px 8px; align-items: center; justify-content: space-between;
}
.pv-block:hover .pv-block__bar, .pv-block.is-sel .pv-block__bar { display: flex; }
.pv-block__ops { display: flex; gap: 4px; }
.pv-block__ops button {
  width: 20px; height: 20px; border-radius: 5px; background: rgba(255,255,255,.18);
  color: #fff; font-size: 11px; line-height: 1;
}
.pv-block__ops button:hover { background: rgba(255,255,255,.34); }

.pv-banner { position: relative; }
.pv-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-badge {
  position: absolute; right: 8px; bottom: 8px; font-size: 10px;
  color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 100px;
}
.pv-ph {
  height: 100%; min-height: 90px; display: flex; align-items: center; justify-content: center;
  color: var(--t4); font-size: 12px; background: #F2F5FA;
}
.pv-notice { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 12px; color: #3C4657; }
.pv-notice i { font-style: normal; color: var(--brand-2); }
.pv-nav { display: flex; padding: 14px 8px; }
.pv-nav__i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pv-nav__c { width: 34px; height: 34px; border-radius: 12px; background: #EEF3FB; }
.pv-nav__i span { font-size: 10.5px; color: #3C4657; }
.pv-img { margin: 0; overflow: hidden; }
.pv-img img { width: 100%; display: block; }
.pv-text { padding: 14px; }
.pv-text b { font-size: 13.5px; color: #141A26; }
.pv-text p { margin-top: 6px; font-size: 11.5px; color: #6B7891; line-height: 1.6; }
.pv-sec { padding: 14px; }
.pv-sec b { font-size: 13.5px; color: #141A26; }
.pv-cards { display: flex; gap: 8px; margin-top: 10px; }
.pv-card { flex: 1; height: 62px; border-radius: 10px; background: #EEF3FB; }
.pv-card--goods { height: 84px; background: linear-gradient(160deg,#EEF3FB,#E4ECFB); }
.pv-space {
  display: flex; align-items: center; justify-content: center;
  color: var(--t4); font-size: 10.5px;
  background: repeating-linear-gradient(45deg,#FAFBFE,#FAFBFE 6px,#F2F5FA 6px,#F2F5FA 12px);
}
.pv-empty {
  margin: 40px 12px; padding: 40px 0; text-align: center;
  color: var(--t4); font-size: 12.5px; border: 1px dashed var(--line); border-radius: 12px;
}
.pv-empty small { font-size: 11px; }
.pv-honor { display: flex; gap: 7px; margin-top: 10px; }
.pv-honor__c {
  flex: 1; height: 74px; border-radius: 8px; overflow: hidden; background: #E9EEF6;
}
.pv-honor__c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-honor__c--ph { background: linear-gradient(160deg,#EEF3FB,#E4ECFB); }
.deco__props-tip {
  margin: -4px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #F1F5FE;
  color: var(--t3);
  font-size: 11.5px;
  line-height: 1.6;
}
.pv-block.is-sel .pv-block__bar { display: flex; }
.pv-block.is-sel { padding-top: 22px; }
.pv-block.is-sel .pv-block__bar { background: rgba(27,58,143,.9); }

/* 右：属性面板 */
.deco__props {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 18px; position: sticky; top: 12px; min-height: 300px;
}
.deco__props-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.deco__props-head b { font-size: 14px; }
.deco__props-head .spacer { flex: 1; }
.fm { margin-bottom: 12px; }
.fm > label { display: block; font-size: 12px; color: var(--t3); margin-bottom: 5px; }
.fm input, .fm select, .fm textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; outline: none; background: #fff; color: var(--t1);
}
.fm textarea { resize: vertical; line-height: 1.6; }
.fm input:focus, .fm select:focus, .fm textarea:focus { border-color: var(--brand-2); }
.sub-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  margin-bottom: 10px; background: #FAFCFF;
}
.sub-item .fm:last-of-type { margin-bottom: 8px; }

/* ===== 商品分类条（标题右侧） ===== */
.catchips {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--t2);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cchip small {
  font-size: 11.5px;
  color: var(--t4);
  font-variant-numeric: tabular-nums;
}
.cchip:hover { border-color: #C3D2EE; background: #F6F9FF; }
.cchip.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}
.cchip.is-on small { color: rgba(255, 255, 255, .72); }
.cchip--add {
  border-style: dashed;
  color: var(--brand);
  background: transparent;
}
.cchip--add:hover { background: #EEF4FF; }

/* ===== 分类管理弹窗 ===== */
.catmgr {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.catmgr__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.catmgr__row:last-child { border-bottom: 0; }
.catmgr__row b { font-weight: 600; }
.catmgr__n { color: var(--t4); font-size: 12px; }
.catmgr__row .spacer { flex: 1; }
.catmgr__add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.catmgr__add input {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--t1);
  background: #fff;
}
.catmgr__add input:focus { outline: none; border-color: var(--brand); }
.catmgr__tip {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--t4);
}

/* ===== 区域卡：按日期设置相关 ===== */
.court-card__tags { display: flex; align-items: center; gap: 5px; }
.court-card__day {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #FFF4E0;
  color: #A96A12;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.court-card__base {
  font-size: 11px;
  color: var(--t4);
  margin-top: -2px;
}
.court-card__reset {
  width: 100%;
  margin-top: 6px;
  border-style: dashed;
  color: var(--t3);
  font-size: 12px;
  height: 26px;
}
.court-card__reset:hover { color: var(--brand); border-color: #C3D2EE; }

/* ===== 确认弹窗 ===== */
.modal--confirm { width: 420px; }
.cfm__body { font-size: 13.5px; color: var(--t2); line-height: 1.75; }
.cfm__body p { margin: 0; }
.cfm__body .cfm__li { color: var(--t3); }
.cfm__gap { height: 10px; }
.modal--confirm .actions { margin-top: 20px; }

/* ===== 批量生成（模板）弹窗 ===== */
.modal--gen { width: 660px; }
.gen__tplrow {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.gen__lab { font-size: 12px; color: var(--t3); padding-top: 7px; flex-shrink: 0; }
.gen__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.tchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--t2); font-size: 12.5px; cursor: pointer;
}
.tchip small { color: var(--t4); font-size: 11px; }
.tchip:hover { border-color: #C3D2EE; background: #F6F9FF; }
.tchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tchip.is-on small { color: rgba(255,255,255,.7); }
.tchip__def {
  font-style: normal; font-size: 10px;
  padding: 0 5px; border-radius: 4px;
  background: #FFF4E0; color: #A96A12;
}
.tchip.is-on .tchip__def { background: rgba(255,255,255,.22); color: #fff; }
.tchip--add { border-style: dashed; color: var(--brand); }

.gen__line { display: flex; gap: 8px; align-items: center; }
.gen__line input { flex: 1; min-width: 0; }
.gen__line .btn { flex-shrink: 0; height: 34px; }

.tgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.tcell {
  min-width: 52px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--t3); font-size: 12px;
  font-variant-numeric: tabular-nums; cursor: pointer;
  transition: all .12s;
}
.tcell:hover { border-color: #C3D2EE; color: var(--t1); }
.tcell.is-on { background: #EEF4FF; border-color: #B9CCF0; color: var(--brand); font-weight: 600; }

.gen__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gen__check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--t2); line-height: 1.5; cursor: pointer;
  padding: 10px 12px; background: #F7F9FE; border-radius: 8px;
}
.gen__check input { margin-top: 2px; }

.gen__preview {
  margin-top: 16px; padding: 12px 14px;
  background: #F1F5FE; border-radius: 10px;
  font-size: 12.5px; color: var(--t2); line-height: 1.7;
}
.gen__preview b { color: var(--brand); font-size: 14px; }
.gen__hint { color: var(--t4); font-size: 11.5px; }
.gen__preview .is-warn { color: #C0392B; font-size: 12.5px; }

/* ===== 装修预览：1:1 模拟小程序首页 ===== */
.pv-page {
  background: linear-gradient(180deg, #C9DCFF 0px, #C9DCFF 40px, #D8E6FF 130px, #E7F0FF 240px, #EFF5FD 330px, #F3F5FA 400px);
  background-repeat: no-repeat;
}
.pv-content { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }

/* 头部：深蓝名片 */
.pv-hero2 {
  background: #0F2A6B;
  border-radius: 0 0 22px 22px;
  padding: 14px 14px 16px;
  margin: 0 -12px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.pv-hero2__sign {
  width: 100%; height: 132px; object-fit: cover;
  border-radius: 12px; display: block; background: rgba(255,255,255,.08);
}
.pv-hero2__sign--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.55);
  border: 1px dashed rgba(255,255,255,.28);
}
.pv-hero2__word {
  font-size: 9px; letter-spacing: .18em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
}
.pv-hero2__name { display: flex; align-items: center; gap: 6px; }
.pv-hero2__name b { font-size: 15px; color: #fff; font-weight: 600; }
.pv-hero2__name span { font-size: 10px; color: #C6E05A; }
.pv-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.35); display: inline-block; flex-shrink: 0;
}
.pv-hero2__loc {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 10px; color: rgba(255,255,255,.62);
}
.pv-hero2__trust {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 9.5px; color: rgba(255,255,255,.75);
}

/* 底部：场馆信息卡 */
.pv-info {
  background: #fff; border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 2px 10px rgba(15,42,107,.05);
}
.pv-info__name { font-size: 13px; font-weight: 700; color: #1B3A8F; }
.pv-info__row { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #6B768C; line-height: 1.5; }
.pv-info__row b { color: #3C4657; font-weight: 500; }
.pv-info__row .pv-link { color: #1B3A8F; }
.pv-ic { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; border-radius: 3px; background: #E3EAFA; position: relative; }
.pv-ic::after {
  content: ""; position: absolute; inset: 2px; border: 1.4px solid #4A6FD0; border-radius: 50%;
}
.pv-ic--phone::after { border-radius: 2px; border-left-width: 3px; }
.pv-ic--pin::after { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

/* 固定区标记 */
.pv-fixed {
  font-style: normal; font-size: 9.5px; padding: 1px 5px;
  border-radius: 4px; background: rgba(255,255,255,.22); color: #fff;
}
.pv-fixed-tip {
  margin: -2px 0 12px; padding: 8px 10px; border-radius: 8px;
  background: #F1F5FE; color: var(--t3); font-size: 11.5px; line-height: 1.6;
}
.pal--fixed { background: #F7F9FE; border-color: #D6E0F5; }
.pal--fixed.is-on { background: #EEF4FF; border-color: #B9CCF0; }
.deco__divider {
  margin: 10px 0 6px; font-size: 11px; color: var(--t4);
  display: flex; align-items: center; gap: 8px;
}
.deco__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.deco__pvnote { margin-top: 10px; text-align: center; font-size: 11px; color: var(--t4); }

/* 预览：场次卡（真实数据） */
.pv-slots { display: flex; gap: 7px; margin-top: 9px; overflow: hidden; }
.pv-slot {
  flex: 0 0 auto; min-width: 74px;
  padding: 8px 9px; border-radius: 9px; background: #fff;
  border: 1px solid #E7ECF6;
  display: flex; flex-direction: column; gap: 2px;
}
.pv-slot__t { font-size: 13px; font-weight: 700; color: #141A26; }
.pv-slot__c { font-size: 9.5px; color: #98A2B8; }
.pv-slot__p { font-size: 11.5px; font-weight: 600; color: #1B3A8F; }

/* 预览：商品卡 */
.pv-goods { display: flex; gap: 7px; margin-top: 9px; overflow: hidden; }
.pv-good {
  flex: 0 0 auto; width: 84px; border-radius: 9px; background: #fff;
  border: 1px solid #E7ECF6; overflow: hidden; padding-bottom: 6px;
}
.pv-good__pic { height: 54px; background: linear-gradient(160deg,#EEF3FB,#E4ECFB); }
.pv-good__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-good__n { display: block; padding: 5px 6px 0; font-size: 9.5px; color: #141A26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-good__p { display: block; padding: 2px 6px 0; font-size: 9.5px; font-weight: 600; color: #1B3A8F; }
.pv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-2col input { width: 100%; }
.court-card__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.court-card__warn { color: #A96A12; font-weight: 600; }

/* 区域卡：有提示行时也保持同一行等高 */
.vgrid--courts { align-items: stretch; }
.vgrid--courts .vcard { height: 100%; }

/* ===== 装修预览：默认版式（公告 / 快捷入口 / 今日可拼 / 学员风采） ===== */
.pv-notice2 {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; border-radius: 10px; background: #fff;
  box-shadow: 0 2px 10px rgba(15,42,107,.05);
}
.pv-notice2 i {
  font-style: normal; font-size: 9px; color: #1B3A8F;
  background: #E8F0FF; border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.pv-notice2 span {
  flex: 1; min-width: 0; font-size: 10.5px; color: #3C4657;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-notice2 em { font-style: normal; color: #B6C0D4; font-size: 13px; }

.pv-quick {
  display: flex; padding: 12px 4px; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 10px rgba(15,42,107,.05);
}
.pv-quick__i {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 9.5px; color: #3C4657;
}
.pv-quick__c {
  width: 26px; height: 26px; border-radius: 9px;
  background: #EEF4FF; position: relative;
}
.pv-quick__c::after {
  content: ""; position: absolute; inset: 6px;
  border: 1.6px solid #4A6FD0; border-radius: 3px;
}
.pv-quick__c--1::after { border-radius: 50%; }
.pv-quick__c--2::after { border-radius: 2px; border-bottom-width: 3px; }
.pv-quick__c--3::after { border-radius: 1px; border-left-width: 3px; }

.pv-sec2__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 4px;
}
.pv-sec2__head b { font-size: 12.5px; color: #141A26; }
.pv-sec2__head span { font-size: 9.5px; color: #98A2B8; }

.pv-slots2 { display: flex; gap: 8px; overflow: hidden; }
.pv-slot2 {
  flex: 0 0 auto; width: 118px;
  background: #fff; border-radius: 11px; padding: 9px 10px;
  box-shadow: 0 2px 10px rgba(15,42,107,.05);
  display: flex; flex-direction: column; gap: 4px;
}
.pv-slot2__t { font-size: 15px; font-weight: 700; color: #141A26; letter-spacing: .01em; }
.pv-slot2__c { font-size: 9px; color: #98A2B8; }
.pv-bar2 { display: flex; gap: 2px; margin: 2px 0; }
.pv-bar2 i { flex: 1; height: 4px; border-radius: 2px; background: #E7ECF6; }
.pv-bar2 i.on { background: #3E7BFA; }
.pv-slot2__f { display: flex; align-items: center; justify-content: space-between; }
.pv-slot2__f b { font-size: 12px; color: #1B3A8F; }
.pv-slot2__f em {
  font-style: normal; font-size: 8.5px; color: #A96A12;
  background: #FFF4E0; border-radius: 4px; padding: 1px 4px;
}

.pv-photos { display: flex; gap: 8px; }
.pv-photos img {
  width: 50%; height: 74px; object-fit: cover;
  border-radius: 10px; background: #E4ECFB; display: block;
}

.pv-default-tag {
  margin: 2px 0 4px; padding: 6px 9px;
  border: 1px dashed #C9D6EE; border-radius: 8px;
  font-size: 9.5px; color: #7D8AA5; text-align: center;
}

/* 招牌图兜底：图没加载出来时显示馆名，不露空白 */
.pv-hero2__signwrap { position: relative; border-radius: 12px; overflow: hidden; }
.pv-hero2__fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, #1E43A6, #162F7D);
  text-align: center; padding: 8px;
}
.pv-hero2__fallback b { font-size: 14px; color: #fff; letter-spacing: .02em; }
.pv-hero2__fallback span { font-size: 8px; color: rgba(255,255,255,.6); letter-spacing: .16em; }
.pv-hero2__sign { position: relative; z-index: 1; margin: 0; }

/* 底部导航（仅预览用，固定在手机框底部） */
.phone { position: relative; }
.phone__body { padding-bottom: 52px; }
.pv-tabbar {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; align-items: center;
  height: 52px; padding: 0 8px;
  background: #fff; border-top: 1px solid #EDF1F9;
  box-shadow: 0 -4px 16px rgba(15,42,107,.05);
  border-radius: 0 0 22px 22px;
}
.pv-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; color: #9AA3B5;
}
.pv-tab i {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.6px solid #C3CBDC;
}
.pv-tab.is-on { color: #1B3A8F; font-weight: 600; }
.pv-tab.is-on i { border-color: #1B3A8F; background: #EEF4FF; }

/* 快捷入口图标配色（贴近小程序） */
.pv-quick__c--0 { background: #EAF1FF; }
.pv-quick__c--0::after { border-color: #3E7BFA; }
.pv-quick__c--1 { background: #F1F8DC; }
.pv-quick__c--1::after { border-color: #7FA61B; }
.pv-quick__c--2 { background: #FFF3E0; }
.pv-quick__c--2::after { border-color: #E08A18; }
.pv-quick__c--3 { background: #E9EDF8; }
.pv-quick__c--3::after { border-color: #1B3A8F; }

/* 快捷入口图标配色（贴近小程序） */
.pv-quick__c--0 { background: #EAF1FF; }
.pv-quick__c--0::after { border-color: #3E7BFA; }
.pv-quick__c--1 { background: #F1F8DC; }
.pv-quick__c--1::after { border-color: #7FA61B; }
.pv-quick__c--2 { background: #FFF3E0; }
.pv-quick__c--2::after { border-color: #E08A18; }
.pv-quick__c--3 { background: #E9EDF8; }
.pv-quick__c--3::after { border-color: #1B3A8F; }

/* 图片加载失败时的占位提示 */
.img-fail { position: relative; }
.img-fail::after {
  content: "图片加载失败";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #98A2B8;
  background: repeating-linear-gradient(45deg, #FAFBFE, #FAFBFE 6px, #F2F5FA 6px, #F2F5FA 12px);
  border-radius: inherit;
}

/* ===== 活动场次 ===== */
.acts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 14px;
}
.act-card {
  display: flex; gap: 14px;
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.act-card.is-hidden { opacity: .62; border-color: #E7ECF6; }
.act-card__pic {
  position: relative; width: 132px; height: 96px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: #E9EEF6;
}
.act-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(160deg,#EEF3FB,#E4ECFB); }
.act-card__price {
  position: absolute; left: 6px; bottom: 6px;
  padding: 1px 7px; border-radius: 6px;
  background: rgba(15,42,107,.82); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
}
.act-card__price small { font-size: 9.5px; font-weight: 400; opacity: .8; margin-left: 1px; }

.act-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.act-card__title {
  font-size: 14.5px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.act-card__row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--t3);
}
.act-card__row .dot { width: 3px; height: 3px; border-radius: 50%; background: #C3CBDC; }
.act-card__row--place { color: var(--t4); font-size: 11.5px; }
.act-card__today {
  font-style: normal; font-size: 10px; color: #1B3A8F;
  background: #EEF4FF; border-radius: 4px; padding: 1px 5px;
}
.act-card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.act-card__join { font-size: 12px; color: var(--t3); }
.act-card__join b { color: var(--brand); font-size: 14px; }

.act-card__ops { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.act-card__ops .btn { width: 56px; }

/* ===== 预览尺寸校准：按小程序 rpx/2 还原（375 宽） ===== */
.pv-hero2 { padding: 14px 16px 15px; gap: 5px; }
.pv-hero2__signwrap { height: 143px; margin-bottom: 13px; border-radius: 9px; }
.pv-hero2__sign { height: 143px; border-radius: 9px; }
.pv-hero2__word { font-size: 8px; letter-spacing: .32em; color: rgba(255,255,255,.3); }
.pv-hero2__name { margin-top: 5px; }
.pv-hero2__name b { font-size: 22px; line-height: 1.2; }
.pv-hero2__name span { font-size: 11.5px; }
.pv-hero2__loc { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.45); }
.pv-hero2__trust { font-size: 10px; padding: 3px 8px; }

.pv-notice2 { margin-top: 5px; padding: 8px 11px; border-radius: 8px; gap: 7px;
  background: #EAF0FF; border: 1px solid #D5E2FF; box-shadow: none; }
.pv-notice2 i { font-size: 11px; font-weight: 700; color: #1B3A8F; background: none; padding: 0; }
.pv-notice2 span { font-size: 12px; color: #28365A; }
.pv-notice2 em { font-size: 14px; color: #8FA0C4; }

.pv-quick { padding: 14px 6px; border-radius: 16px; }
.pv-quick__i { gap: 7px; font-size: 12px; }
.pv-quick__c { width: 32px; height: 32px; border-radius: 10px; }
.pv-quick__c::after { inset: 8px; border-width: 1.8px; }

.pv-sec2__head { margin: 16px 0 8px; }
.pv-sec2__head b { font-size: 14px; }
.pv-sec2__head span { font-size: 12px; color: #6B768C; }

.pv-slots2 { gap: 8px; }
.pv-slot2 { width: 159px; height: 118px; padding: 12px; border-radius: 14px; gap: 4px; }
.pv-slot2__t { font-size: 22px; }
.pv-slot2__c { font-size: 11.5px; margin-top: 2px; }
.pv-bar2 { gap: 2px; margin: 0; }
.pv-bar2 i { height: 4px; border-radius: 100px; background: #e9e8e2; }
.pv-bar2 i.on { background: #1b3a8f; }
.pv-slot2__f { margin-top: 7px; }
.pv-slot2__f b { font-size: 16px; color: #141A26; }
.pv-slot2__f em { font-size: 11.5px; font-weight: 700; color: #A55C30; background: #F3E2D6; border-radius: 100px; padding: 1px 6px; }

.pv-photos img { height: 96px; border-radius: 12px; }

.pv-tabbar { height: 56px; }
.pv-tab { font-size: 10.5px; gap: 4px; }
.pv-tab i { width: 20px; height: 20px; border-radius: 6px; border-width: 1.8px; }

.pv-content { padding: 10px 16px 0; gap: 0; }

/* 快捷入口图标：改成线框图标（贴近小程序） */
.pv-quick__c { background: transparent; }
.pv-quick__c::after { inset: 5px; border-width: 2px; }
.pv-quick__c--0::after { inset: 4px 9px 10px 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border-color: #3E7BFA; }
.pv-quick__c--1::after { inset: 3px 7px 11px 7px; border-radius: 50%; border-color: #C79A2E; }
.pv-quick__c--2::after { inset: 6px; border-radius: 50%; border-color: #E08A18; }
.pv-quick__c--3::after { inset: 4px 8px; border-radius: 2px; border-color: #1B3A8F; }

/* 手机预览再高一点，能多看到一屏 */
.phone__body { height: 680px; }

/* 快捷入口图标：改成线框图标（贴近小程序） */
.pv-quick__c { background: transparent; }
.pv-quick__c::after { inset: 5px; border-width: 2px; }
.pv-quick__c--0::after { inset: 4px 9px 10px 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border-color: #3E7BFA; }
.pv-quick__c--1::after { inset: 3px 7px 11px 7px; border-radius: 50%; border-color: #C79A2E; }
.pv-quick__c--2::after { inset: 6px; border-radius: 50%; border-color: #E08A18; }
.pv-quick__c--3::after { inset: 4px 8px; border-radius: 2px; border-color: #1B3A8F; }

/* 手机预览再高一点，能多看到一屏 */
.phone__body { height: 680px; }

/* ===== 预览：图片墙（学员风采 / 场馆环境 / 场馆荣誉） ===== */
.pv-gal { padding: 12px 14px 14px; }
.pv-galhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 4px 0 8px;
}
.pv-galhead:first-child { margin-top: 0; }
.pv-galhead b { font-size: 14px; color: #141A26; }
.pv-galhead span { font-size: 12px; color: #6B768C; }

.pv-gal__row { display: flex; gap: 8px; overflow: hidden; margin-bottom: 4px; }
.pv-gal__photo { width: 160px; height: 100px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; background: #E4ECFB; }
.pv-gal__lead { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; background: #E4ECFB; }
.pv-gal__thumb { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #E4ECFB; }
.pv-gal__cell { flex: 1; height: 60px; object-fit: cover; border-radius: 8px; background: #E4ECFB; }

.pv-gal__license {
  position: relative; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #FDF9EE, #F7EFD9);
  border: 1px solid #E4D2A6; padding: 6px; margin-bottom: 8px;
}
.pv-gal__license img { width: 100%; height: 118px; object-fit: contain; display: block; }
.pv-gal__license i {
  position: absolute; left: 10px; top: 10px;
  font-style: normal; font-size: 10px; color: #8A6A22;
  background: #fff; border-radius: 4px; padding: 1px 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 快捷入口图标：直接复用小程序里的 SVG，保证一模一样 */
.pv-quick__c { background: transparent; width: 32px; height: 32px; background-size: 100% 100%; background-repeat: no-repeat; }
.pv-quick__c::after { content: none; display: none; }
.pv-quick__c--0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231B3A8F' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M16 29.5c-5.6-6.2-8.2-10.3-8.2-13.9a8.2 8.2 0 1 1 16.4 0c0 3.6-2.6 7.7-8.2 13.9Z'/%3E%3Ccircle cx='16' cy='15.4' r='3.5' fill='%237CB342' stroke='none'/%3E%3C/svg%3E"); }
.pv-quick__c--1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231B3A8F' stroke-width='1.9' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='12.6' r='8.4'/%3E%3Ccircle cx='16' cy='12.6' r='3.4' fill='%237CB342' stroke='none'/%3E%3Cpath d='M10.6 20.4 8.6 28.4 13 25.8 16 28.4 19 25.8 23.4 28.4 21.4 20.4'/%3E%3C/svg%3E"); }
.pv-quick__c--2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231B3A8F' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M11.8 3.8c.9 2.4 2.3 3.6 4.2 3.6s3.3-1.2 4.2-3.6'/%3E%3Cpath d='M10.8 7.8C7.5 10 5.2 13.4 5.2 17.6c0 5.3 3.6 7.9 10.8 7.9s10.8-2.6 10.8-7.9c0-4.2-2.3-7.6-5.6-9.8'/%3E%3Cpath d='M16 12.8v9.6M12.9 15.8h6.2M12.9 19.6h6.2' stroke='%237CB342' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pv-quick__c--3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%231B3A8F' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M8.8 4.4h14.4v23.2l-2.4-1.7-2.4 1.7-2.4-1.7-2.4 1.7-2.4-1.7-2.4 1.7V4.4Z'/%3E%3Cpath d='M12.4 10.8h7.2' stroke='%237CB342' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M12.4 16h7.2M12.4 20.6h4.6' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ===== 活动场次：列表式 ===== */
.toolbar__hint { font-size: 12.5px; color: #6B7891; }

.alist {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.alist__head {
  display: grid;
  grid-template-columns: 104px 1fr 152px 100px 80px 320px;
  padding: 10px 18px;
  background: #F7F9FE;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--t4);
}
.alist__head span:first-child { grid-column: span 2; }

.arow {
  display: grid;
  grid-template-columns: 104px 1fr 152px 100px 80px 320px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F4FA;
  transition: background .12s;
}
.arow:last-child { border-bottom: 0; }
.arow:hover { background: #FAFBFE; }
.arow.is-hidden { opacity: .58; }

.arow__pic {
  position: relative; width: 88px; height: 62px;
  border-radius: 10px; overflow: hidden; background: #E9EEF6;
}
.arow__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arow__ph { display: block; width: 100%; height: 100%; background: linear-gradient(160deg,#EEF3FB,#E4ECFB); }
.arow__date {
  position: absolute; left: 4px; bottom: 4px;
  padding: 0 5px; border-radius: 5px;
  background: rgba(15,42,107,.8); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 15px;
  display: flex; align-items: baseline; gap: 3px;
}
.arow__date small { font-size: 8.5px; font-weight: 400; opacity: .85; }

.arow__main { min-width: 0; padding-right: 14px; }
.arow__title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden;
}
.arow__title .tag { flex-shrink: 0; }
.arow__today {
  font-style: normal; flex-shrink: 0;
  font-size: 10px; color: #1B3A8F; background: #EEF4FF;
  border-radius: 4px; padding: 1px 5px;
}
.arow__meta { margin-top: 5px; font-size: 12px; color: var(--t4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.arow__time b {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums;
}
.arow__time b i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--brand); }
.arow__time small {
  display: block; margin-top: 3px;
  font-size: 12.5px; color: var(--t3); font-variant-numeric: tabular-nums;
}

.arow__join { padding-right: 14px; }
.arow__bar {
  height: 4px; border-radius: 100px; background: #EDF1F9; overflow: hidden;
}
.arow__bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg,#3E7BFA,#1B3A8F); }
.arow__join small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--t3); }
.arow__join small b { color: var(--brand); font-size: 13px; }

.arow__price { font-size: 15px; font-weight: 700; color: var(--t1); }
.arow__price small { font-size: 10.5px; font-weight: 400; color: var(--t4); margin-left: 1px; }

.arow__ops { display: flex; gap: 6px; justify-content: flex-end; }
.arow__ops .btn { padding: 0 8px; }
.arow__ops .btn[data-au],
.arow__ops .btn[data-aw] { padding: 0 6px; min-width: 26px; }

/* ===== 场地类型 ===== */
.court-card__sport {
  font-size: 10.5px; color: #4A6FD0;
  background: #EEF4FF; border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
}
.sport__add { display: flex; gap: 8px; margin-top: 12px; }
.sport__add input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
}
.sport__add input:focus { outline: none; border-color: var(--brand-2); }
.sport__add .btn { height: 34px; flex-shrink: 0; }

/* ===== 场地场次：球类 tab ===== */
.sporttabs {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 4px;
}
.stb {
  height: 32px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--t2);
  font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
}
.stb small {
  font-size: 11px; color: var(--t4);
  background: #F1F4FA; border-radius: 100px; padding: 0 6px; line-height: 16px;
}
.stb:hover { border-color: #C3D2EE; background: #F6F9FF; }
.stb.is-on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
.stb.is-on small { background: rgba(255,255,255,.2); color: #fff; }
.sporttabs__tip { font-size: 12px; color: var(--t4); }

/* ===== 新建排期向导 ===== */
.modal--sched { width: 560px; }
.sched__step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.sched__step:last-of-type { border-bottom: 0; }
.sched__no {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: #EEF4FF; color: var(--brand);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.sched__main { flex: 1; min-width: 0; }
.sched__main > label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--t2); font-weight: 600; margin-bottom: 8px;
}
.sched__main > label small { font-weight: 400; color: var(--t4); }
.sched__main > small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--t4); }
.sched__main input[type="date"] {
  height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--t1);
}
.sched__main .tcell em { font-style: normal; font-size: 10px; color: var(--t4); margin-left: 4px; }
.sched__main .tcell.is-on em { color: rgba(255,255,255,.75); }
.sched__all { margin-left: auto; font-size: 11.5px; color: var(--brand); cursor: pointer; }
.sched__empty {
  padding: 10px 12px; border-radius: 8px; background: #FFF7E8;
  color: #8A6A22; font-size: 12px;
}
.sched__preview {
  margin-top: 11px; padding: 9px 12px; border-radius: 10px;
  background: #F1F5FE; font-size: 12px; color: var(--t2); line-height: 1.6;
}
.sched__preview b { color: var(--brand); font-size: 14px; }

/* ===== 装修页优化 ===== */
.pal__n {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--brand); background: #E8F0FF;
  border-radius: 100px; padding: 0 6px; margin-left: 6px;
  line-height: 16px; display: inline-block; vertical-align: 1px;
}
.pal.is-on .pal__n { background: rgba(255,255,255,.55); color: var(--brand); }
.btn[disabled] { opacity: .55; cursor: default; }

/* tab 行里的「+ 新增类型」 */
.stb--add {
  border-style: dashed;
  color: var(--brand);
  background: transparent;
}
.stb--add:hover { background: #EEF4FF; border-color: #B9CCF0; }

/* tab 行里的「类型管理」：轻量幽灵按钮 */
.stb--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--t3);
}
.stb--ghost:hover { background: #F1F4FA; color: var(--brand); border-color: var(--line); }

/* ===== 类型管理弹窗（按天） ===== */
.modal--sport { width: 700px; }
.modal--sport .catmgr__row { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; }
.modal--sport .catmgr__row b { white-space: nowrap; min-width: 52px; }
.modal--sport .catmgr__n { white-space: nowrap; }
.modal--sport .catmgr__row .tag,
.modal--sport .catmgr__row .arow__today { white-space: nowrap; flex-shrink: 0; }
.modal--sport .catmgr__row .btn { white-space: nowrap; flex-shrink: 0; padding: 0 10px; }

/* ===== 类型管理弹窗（按天） ===== */
.modal--sport { width: 700px; }
.modal--sport .catmgr__row { flex-wrap: nowrap; gap: 8px; padding: 10px 12px; }
.modal--sport .catmgr__row b { white-space: nowrap; min-width: 52px; }
.modal--sport .catmgr__n { white-space: nowrap; }
.modal--sport .catmgr__row .tag,
.modal--sport .catmgr__row .arow__today { white-space: nowrap; flex-shrink: 0; }
.modal--sport .catmgr__row .btn { white-space: nowrap; flex-shrink: 0; padding: 0 10px; }

/* 排期弹窗：按球类分组的场地 */
.sched__grp { margin-bottom: 8px; }
.sched__grp-t { display: block; font-size: 11.5px; color: var(--t4); margin-bottom: 5px; }
.sched__none { font-size: 12px; color: var(--t4); }

/* 活动行：推荐 / 排序 */
.btn.is-star { background: #FFF4E0; color: #A96A12; border-color: #F0DDB6; }
.btn.is-star:hover { background: #FFEDD0; }
.arow__star {
  font-style: normal; flex-shrink: 0;
  font-size: 10px; color: #A96A12; background: #FFF4E0;
  border-radius: 4px; padding: 1px 5px;
}
.arow__ops { flex-wrap: wrap; gap: 4px; }

/* 排期弹窗：当场新建场地的内联表单 */
.sched__make { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sched__mini {
  height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: 12px; color: var(--t1); background: #fff;
}
.sched__mini[type="number"] { width: 64px; text-align: center; }
.sched__mini:nth-of-type(2) { width: 120px; }
.sched__mini:focus { outline: none; border-color: var(--brand-2); }

/* 排期弹窗：球类末尾的「+ 新球类」 */
.tcell--add { border-style: dashed; color: var(--brand); background: transparent; }
.tcell--add:hover { background: #EEF4FF; }
.sched__main > label small { font-weight: 400; color: var(--t4); margin-left: 6px; }

/* 场地格里的编辑小图标 */
.tcell { position: relative; }
.tcell__pen {
  font-style: normal; font-size: 11px; line-height: 1;
  margin-left: 5px; padding: 1px 3px; border-radius: 3px;
  color: var(--t4); opacity: .7; cursor: pointer;
}
.tcell__pen:hover { color: var(--brand); background: rgba(27,58,143,.1); opacity: 1; }
.tcell.is-on .tcell__pen { color: rgba(255,255,255,.75); }
.tcell.is-on .tcell__pen:hover { color: #fff; background: rgba(255,255,255,.2); }

/* ===== 提高排期弹窗里选项的对比度 ===== */
.tcell {
  color: var(--t2);
  border-color: #D6DFEF;
  background: #FFFFFF;
  font-size: 12.5px;
}
.tcell em { color: var(--t3); font-weight: 500; }
.tcell:hover { border-color: #A9BEE8; color: var(--t1); }

/* 选中态：实底深蓝 + 白字，避免浅蓝看不见 */
.tcell.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
}
.tcell.is-on em { color: rgba(255, 255, 255, .8); }
.tcell.is-on .tcell__pen { color: rgba(255, 255, 255, .85); }
.tcell.is-on:hover { border-color: var(--brand); color: #FFFFFF; }

/* 排期模板条 */
.sched__plans { display: flex; align-items: center; gap: 10px; margin: -6px 0 10px; }
.sched__plans-t { font-size: 12px; color: var(--t4); flex-shrink: 0; }
.sched__plans .tgrid { flex: 1; }

/* 分页条 */
.pager {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 10px 4px;
  font-size: 12.5px; color: var(--t3);
}
.pager .spacer { flex: 1; }
.pager .btn { min-width: 32px; padding: 0 8px; }
.pager .btn[disabled] { opacity: .45; }

/* 用户详情弹窗 */
.modal--user { width: 720px; }
.ud__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ud__stat {
  background: #F5F8FE; border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.ud__stat small { font-size: 11.5px; color: var(--t4); }
.ud__stat b { font-size: 16px; color: var(--brand); }
.ud__info {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12.5px; color: var(--t3);
  padding: 10px 12px; background: #FAFBFE; border-radius: 10px; margin-bottom: 14px;
}
.ud__info b { color: var(--t1); font-weight: 600; margin-left: 4px; }
.ud__title { font-size: 13px; font-weight: 600; color: var(--t1); margin: 12px 0 8px; }
.ud__list { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.ud__row {
  display: grid; grid-template-columns: 1.4fr 1.2fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 8px 12px; font-size: 12px; color: var(--t3);
  border-bottom: 1px solid #F1F4FA;
}
.ud__row:last-child { border-bottom: 0; }
.ud__id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--t4); }
.ud__amt { font-weight: 600; color: var(--t1); }
.ud__amt.is-plus { color: #1D7A46; }
.ud__amt.is-minus { color: #C0392B; }
.ud__empty { padding: 16px; text-align: center; color: var(--t4); font-size: 12px; }
.ud__more { padding: 6px 12px; font-size: 11.5px; color: var(--t4); background: #FAFBFE; }

/* 用户/订单表：操作列不换行，按钮更紧凑 */
.card td:last-child { white-space: nowrap; }
.card table .btn { white-space: nowrap; padding: 0 10px; }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--t3);
  box-shadow: none;
}
.btn.ghost:hover { background: #F1F4FA; color: var(--brand); border-color: var(--line); }

/* ===================== 积分规则中心 ===================== */
.pr-hero {
  display: flex; gap: 26px; align-items: stretch;
  background: linear-gradient(118deg, #12306E 0%, #1B3A8F 52%, #2B54B8 100%);
  border-radius: var(--r); padding: 24px 26px; color: #fff;
  box-shadow: 0 12px 30px rgba(15, 42, 107, 0.18);
}
.pr-hero__main { flex: 1; min-width: 0; }
.pr-hero__main h3 { font-size: 18px; letter-spacing: 0.01em; }
.pr-hero__main p {
  margin-top: 8px; font-size: 12.5px; line-height: 1.75;
  color: rgba(255, 255, 255, 0.74); max-width: 640px;
}
.pr-hero__tags { display: flex; gap: 8px; margin-top: 16px; }
.pr-chip {
  font-size: 11.5px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.9);
}
.pr-chip--on { background: rgba(198, 224, 90, 0.2); color: #E2F2A6; }

.pr-hero__stats {
  display: flex; gap: 28px; align-items: center;
  padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.pr-hero__stats div { text-align: right; }
.pr-hero__stats span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.62); }
.pr-hero__stats b { font-size: 22px; letter-spacing: -0.01em; font-weight: 600; }

/* 分组 */
.pr-section { margin-top: 24px; }
.pr-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pr-section__head h4 { font-size: 15px; color: var(--ink); }
.pr-section__desc { font-size: 12px; color: var(--t3); }
.pr-section__count { margin-left: auto; font-size: 12px; color: var(--t3); }

.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }

/* 规则卡 */
.pr-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px 16px; box-shadow: var(--shadow);
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.pr-card.is-dirty { border-color: #EFB65A; box-shadow: 0 0 0 3px rgba(239, 182, 90, 0.15); }
.pr-card.is-off { background: #FAFCFF; }
.pr-card.is-off .pr-fields { opacity: 0.5; }

.pr-card__head { display: flex; align-items: center; gap: 12px; }
.pr-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.pr-title b { font-size: 14.5px; color: var(--ink); }
.pr-title code {
  font-size: 10.5px; color: var(--t4); background: #F4F7FC;
  padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, Menlo, monospace;
}
.pr-desc { margin-top: 9px; font-size: 12.5px; line-height: 1.78; color: var(--t2); }

.pr-entry { margin-top: 11px; display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--t3); }
.pr-entry i {
  font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: #EEF3FB; color: var(--brand); flex-shrink: 0;
}

/* 参数区 */
.pr-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px 18px; margin-top: 15px; padding-top: 15px;
  border-top: 1px dashed var(--line); transition: opacity 0.16s;
}
.pr-label { font-size: 12px; color: var(--t3); margin-bottom: 7px; }
.pr-control { display: flex; align-items: center; }

.pr-input {
  display: flex; align-items: center; width: 100%;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.pr-input:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(62, 123, 250, 0.12); }
.pr-input input {
  flex: 1; min-width: 0; height: 34px; border: 0; outline: none;
  padding: 0 10px; font-size: 13.5px; color: var(--t1); background: transparent;
  font-variant-numeric: tabular-nums;
}
.pr-input i { font-style: normal; font-size: 11.5px; color: var(--t4); padding: 0 10px 0 4px; white-space: nowrap; }

.pr-control select {
  width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 8px; font-size: 12.5px; background: #fff; outline: none; color: var(--t2);
}
.pr-control select:focus { border-color: var(--brand-2); }

.pr-hint { margin-top: 7px; font-size: 11.5px; line-height: 1.62; color: var(--t4); }

/* 开关 */
.pr-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.pr-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pr-switch span {
  position: absolute; inset: 0; background: #D6DDEC; border-radius: 999px;
  transition: background 0.18s;
}
.pr-switch span::after {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.pr-switch input:checked + span { background: #2E6BE6; }
.pr-switch input:checked + span::after { transform: translateX(20px); }
.pr-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(62, 123, 250, 0.25); }
.pr-switch--sm { width: 38px; height: 21px; }
.pr-switch--sm span::after { width: 15px; height: 15px; }
.pr-switch--sm input:checked + span::after { transform: translateX(17px); }

/* 保存栏 */
.pr-savebar {
  position: sticky; bottom: 16px; margin-top: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(15, 42, 107, 0.1);
  backdrop-filter: blur(8px);
}
.pr-savebar__state { font-size: 12.5px; color: var(--t3); }
.pr-savebar.is-on { border-color: #EFB65A; }
.pr-savebar.is-on .pr-savebar__state { color: #A96812; font-weight: 600; }
.pr-savebar__spacer { flex: 1; }
.pr-savebar .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 1180px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-hero { flex-direction: column; gap: 18px; }
  .pr-hero__stats { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 16px; }
  .pr-hero__stats div { text-align: left; }
}

/* ===== 报名名单 / 课程名单弹窗 ===== */
.modal--list { width: 880px; }
.modal--list h3 { display: flex; align-items: center; gap: 8px; }
.modal--list .ud__cards { margin-bottom: 4px; }

.ltbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.ltbl__head, .ltbl__row {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 56px 82px 78px 96px 132px;
  align-items: center; gap: 10px; padding: 9px 14px;
}
.ltbl__head {
  background: #F7F9FE; font-size: 12px; color: var(--t3); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.ltbl__row { font-size: 12.5px; color: var(--t2); border-bottom: 1px solid #F1F4FA; }
.ltbl__row:last-child { border-bottom: 0; }
.ltbl__row:hover { background: #FAFBFE; }
.ltbl__row b { font-weight: 600; color: var(--t1); display: block; }
.ltbl__row small { font-size: 11px; color: var(--t4); font-family: ui-monospace, Menlo, monospace; }
.ltbl__row > span:last-child { white-space: nowrap; }
.ltbl__nil { font-style: normal; color: #C3CBDA; }
.ltbl__yes { font-style: normal; color: #1D7A46; font-size: 11.5px; }

/* 活动列表里「报名 3/8」可点 */
.arow__join { cursor: pointer; border-radius: 8px; transition: background .15s; }
.arow__join:hover { background: #F1F4FA; }
.arow__cnt {
  font-style: normal; margin-left: 6px; padding: 1px 5px;
  background: #EAF0FF; color: var(--brand); border-radius: 5px; font-size: 10.5px;
}

/* ===== 用户详情：订单行带操作 ===== */
.ud__row--order { grid-template-columns: 1.3fr 1.1fr auto auto auto 60px; }

/* ===== 代客下单 ===== */
.modal--proxy { width: 720px; }
.px__label { font-size: 12.5px; font-weight: 600; color: var(--t3); margin: 16px 0 8px; }
.px__label small { font-weight: 400; color: var(--t4); margin-left: 6px; }
.px__dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.px__d {
  flex: 0 0 auto; min-width: 72px; padding: 8px 10px; border-radius: 10px;
  background: #F6F8FD; border: 1px solid transparent; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.px__d b { font-size: 13px; color: var(--t1); }
.px__d small { font-size: 10.5px; color: var(--t4); }
.px__d:hover { border-color: #C9D8F6; }
.px__d.is-on { background: var(--brand); border-color: var(--brand); }
.px__d.is-on b, .px__d.is-on small { color: #fff; }

.px__slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px;
}
.px__slot {
  text-align: left; padding: 9px 11px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.px__slot b { font-size: 12.5px; color: var(--t1); }
.px__slot span { font-size: 12px; color: var(--brand); font-weight: 600; }
.px__slot small { font-size: 11px; color: var(--t4); }
.px__slot:hover { border-color: #9FBAF0; }
.px__slot.is-on { background: var(--brand); border-color: var(--brand); }
.px__slot.is-on b, .px__slot.is-on span, .px__slot.is-on small { color: #fff; }
.px__nil { font-size: 12.5px; color: var(--t4); padding: 14px 0; }

.px__foot {
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.px__foot label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t3); }
.px__foot input { width: 66px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.px__foot select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.px__total { font-size: 13px; color: var(--t3); }
.px__total b { font-size: 19px; color: var(--brand); margin-left: 4px; }
.px__wait { font-style: normal; font-size: 12.5px; color: var(--t4); }

/* ===== 核销记录 ===== */
.ck-main { font-size: 13px; color: var(--t1); }
.ck-sub {
  font-size: 12px; color: var(--t3); margin-top: 3px; line-height: 1.45;
}
.ck-oid {
  font-size: 12px; color: var(--t2); background: #F5F8FF;
  padding: 2px 6px; border-radius: 5px; white-space: nowrap;
}
.ck-table td { vertical-align: top; }
.ck-table td:first-child { white-space: nowrap; }

/* 只读详情弹窗 */
.modal--info { width: 580px; }
.dlg { margin-bottom: 20px; }
.dlg h4 {
  font-size: 12px; font-weight: 500; color: var(--t3); letter-spacing: .04em;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #F2F5FA;
}
.dlg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.dlg__item { display: flex; gap: 10px; font-size: 13px; line-height: 1.55; }
.dlg__item > span { flex: 0 0 62px; color: var(--t3); }
.dlg__item > b { font-weight: 500; color: var(--t1); word-break: break-all; }
.dlg__item--wide { grid-column: 1 / -1; }

/* ===== 活动弹窗（rich 表单弹窗：分节 + 两列 + 单位后缀 + 开关 + 固定底栏） ===== */
.modal--rich {
  width: 640px; max-width: 94vw; max-height: 88vh;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.modal--rich .mhead {
  position: relative; flex-shrink: 0;
  padding: 20px 24px 15px; border-bottom: 1px solid var(--line);
}
.modal--rich .mhead h3 { margin: 0; font-size: 17px; padding-right: 34px; }
.modal--rich .msub {
  margin-top: 7px; font-size: 12.5px; color: var(--t3); line-height: 1.6;
}
.modal--rich .msub:empty { display: none; }
.modal--rich .msub b { color: var(--t2); font-weight: 600; }
.modal--rich .msub .tag { margin-left: 1px; }
.mclose {
  position: absolute; top: 15px; right: 16px;
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--t4);
  font-size: 19px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mclose:hover { background: #F1F4FA; color: var(--t2); }

.modal--rich .mbody { flex: 1; overflow-y: auto; padding: 4px 24px 2px; }

/* 分节标题 */
.msec { display: flex; align-items: baseline; gap: 8px; padding: 15px 0 11px; }
.msec:first-child { padding-top: 12px; }
.msec b {
  font-size: 13px; font-weight: 600; color: var(--t1);
  display: inline-flex; align-items: center;
}
.msec b::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, #3E7BFA, #1B3A8F);
  margin-right: 8px; display: inline-block;
}
.msec span { font-size: 11.5px; color: var(--t4); }

/* 字段 */
.mrow { margin-bottom: 14px; }
.mrow > label {
  display: block; font-size: 12.5px; color: var(--t2);
  font-weight: 500; margin-bottom: 6px;
}
.mrow > label .req { color: #E5484D; font-style: normal; margin-left: 3px; }
.mrow input[type="text"], .mrow input[type="number"], .mrow input[type="date"],
.mrow input[type="time"], .mrow select, .mrow textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  background: #fff; color: var(--t1); font-size: 13.5px; font-family: inherit;
}
.mrow textarea { height: 76px; padding: 10px 12px; resize: vertical; }
.mrow input:focus, .mrow select:focus, .mrow textarea:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(62,123,250,.12);
}
.mrow input.is-err, .mrow select.is-err {
  border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.12);
}
.mhint { margin-top: 6px; font-size: 11.5px; color: var(--t4); line-height: 1.55; }
.mrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* 带单位后缀的输入 */
.minput { position: relative; }
.minput input { padding-right: 46px; }
.minput .munit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--t4); pointer-events: none;
}

/* 快捷取值 chips */
.mchips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mchip {
  height: 26px; padding: 0 11px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--t3);
  font-size: 12px; font-family: inherit; line-height: 24px;
}
.mchip:hover { border-color: #B9CCF0; color: var(--brand); background: #F6F9FF; }
.mchip.is-on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}

/* 开关行 */
.mrow--sw { display: flex; align-items: center; gap: 12px; }
.mrow--sw > label { margin: 0; }
.mrow--sw .sw-txt { flex: 1; min-width: 0; }
.mrow--sw .sw-txt b { display: block; font-size: 13px; color: var(--t1); font-weight: 500; }
.mrow--sw .sw-txt small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--t4); line-height: 1.55; }

/* 固定底栏 */
.modal--rich .mfoot {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  padding: 13px 24px 15px; border-top: 1px solid var(--line);
  background: #FBFCFE;
}
.modal--rich .mfoot .spacer { flex: 1; }
.modal--rich .mfoot .mmsg {
  font-size: 12.5px; color: #C0392B; line-height: 1.45;
  max-width: 50%; min-height: 16px;
}
.modal--rich .mbody::-webkit-scrollbar { width: 8px; }
.modal--rich .mbody::-webkit-scrollbar-thumb { background: #DCE4F2; border-radius: 8px; }
.modal--rich .mbody::-webkit-scrollbar-thumb:hover { background: #C6D2E8; }

/* 活动弹窗：封面区横向排列不被挤压 + 三列字段 */
.modal--rich .imgpick { flex-wrap: wrap; gap: 12px 14px; }
.modal--rich .imgpick__ops { padding-top: 4px; }
.modal--rich .imgpick__tip { flex: 1 1 100%; font-size: 11.5px; line-height: 1.55; }
.modal--rich .imgpick .btn { white-space: nowrap; }
.mrow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.modal--rich .mbody { padding: 4px 24px 12px; }

/* 活动弹窗紧凑化：缩减分节间距，一屏尽量少滚动 */
.modal--rich .msec { padding: 13px 0 10px; }
.modal--rich .mrow { margin-bottom: 12px; }
.modal--rich .mhint { margin-top: 5px; }

/* ===== 新建排期：四区块（模板 / 球类 / 场地 / 时段） ===== */

/* 球类格上的删除角标 */
.tcell--del { position: relative; }
.tcell__x {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
  width: 14px; height: 14px; margin-left: 4px;
  border-radius: 50%; font-style: normal; font-size: 12px; line-height: 1;
  color: var(--t4); cursor: pointer;
}
.tcell__x:hover { color: #fff; background: #C0392B; }
.tcell.is-on .tcell__x { color: rgba(255,255,255,.8); }
.tcell.is-on .tcell__x:hover { background: rgba(0,0,0,.28); color: #fff; }

/* 未启用标记 */
.tcell__off {
  display: inline-flex; align-items: center; vertical-align: middle;
  font-style: normal; font-size: 10px; line-height: 1.5;
  margin-left: 4px; padding: 0 4px; border-radius: 3px;
  background: #F0F1F5; color: var(--t4);
}
.tcell.is-on .tcell__off { background: rgba(255,255,255,.22); color: #fff; }

/* 自定义时段输入行 */
.sched__tadd {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding: 8px 10px;
  border-radius: 8px; background: #F6F9FF; border: 1px dashed #B9CCF0;
}
.sched__tadd input[type="time"] {
  height: 30px; padding: 0 6px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12.5px; color: var(--t1); background: #fff;
}
.sched__tadd input[type="time"]:focus { outline: none; border-color: var(--brand-2); }
.sched__tadd-d { font-size: 12px; color: var(--t4); }

/* 已选时段 */
.sched__ranges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sched__range {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 4px 2px 7px; border-radius: 6px;
  background: #EEF4FF; border: 1px solid #D6E2FA;
  font-size: 11.5px; font-weight: 600; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.sched__range em { font-style: normal; font-weight: 400; font-size: 10.5px; color: #6C7FA6; }
.sched__range i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%;
  font-style: normal; font-size: 12px; line-height: 1;
  color: #8FA3C9; cursor: pointer;
}
.sched__range i:hover { color: #fff; background: #C0392B; }

/* 套用模板时段 */
.sched__tplrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line);
}
.sched__tplrow > span { font-size: 11.5px; color: var(--t4); }
.tchip--sm { height: 24px; padding: 0 8px; font-size: 11.5px; gap: 4px; }
.tchip--sm small { font-size: 10.5px; }
/* 时段区：按球类切换 */
.sched__ttabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.sched__ttabs .tchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sched__ttabs .tchip.is-on small { color: rgba(255,255,255,.75); }

/* 时段段长选择行 */
.sched__dur { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sched__dur > span { font-size: 11.5px; color: var(--t4); }
.sched__dur .tchip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sched__preview .is-warn { color: #C0392B; }


/* ===== 快速新建场地弹窗里的「人数 / 单价」并排输入 ===== */
.cq2col { display: flex; gap: 8px; }
.cq2col input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--t1); background: #fff; font-family: inherit;
}
.cq2col input:focus { outline: none; border-color: var(--brand-2); }

/* 排期卡：新建场地一行末尾的说明文字 */
.scard__hint { flex: 0 0 auto; font-size: 11.5px; color: var(--t4); padding-top: 7px; }

/* ===== 新建排期 v2：按球类分卡 ===== */
.modal--sched { width: 660px; max-height: 90vh; display: flex; flex-direction: column; }
.modal--sched #schedBody { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.modal--sched #schedBody::-webkit-scrollbar { width: 6px; }
.modal--sched #schedBody::-webkit-scrollbar-thumb { background: #D6DFEF; border-radius: 3px; }

.sc-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 0 0 13px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.sc-date { display: flex; align-items: center; gap: 8px; margin: 0; }
.sc-date > span { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.sc-date input[type="date"] {
  height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--t1); background: #fff;
}
.sc-date em { font-style: normal; font-size: 12px; color: var(--t4); }
.sc-tpl { display: flex; align-items: center; gap: 8px; }
.sc-tpl > span { font-size: 12.5px; font-weight: 600; color: var(--t2); }

.sc-list { display: flex; flex-direction: column; gap: 10px; }
.sc-empty {
  padding: 26px 16px; text-align: center; font-size: 13px; color: var(--t4);
  border: 1px dashed var(--line); border-radius: 12px; background: #FAFBFE;
}
.sc-empty b { display: block; font-size: 13.5px; color: var(--t2); margin-bottom: 5px; }
.sc-empty span {
  display: block; max-width: 380px; margin: 0 auto;
  font-size: 12.5px; line-height: 1.65; color: var(--t4);
}

.scard {
  border: 1px solid #E2E8F4; border-radius: 12px; background: #fff; overflow: hidden;
  scroll-margin: 8px; transition: box-shadow .25s, border-color .25s;
}
.scard.is-bad { border-color: #F0C9C4; background: #FFFCFB; }
.scard.is-new { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,104,232,.14); }

.scard__head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #F7F9FD; border-bottom: 1px solid #EDF1F8;
}
.scard__head b { font-size: 13.5px; color: var(--t1); }
.scard__head .spacer { flex: 1; }
.scard__fold {
  width: 18px; height: 18px; padding: 0; border: 0; background: transparent;
  color: var(--t4); font-size: 11px; cursor: pointer; line-height: 1;
}
.scard__fold:hover { color: var(--brand); }
.scard__stat {
  font-size: 11.5px; color: var(--t3);
  padding: 1px 7px; border-radius: 20px; background: #fff; border: 1px solid #E2E8F4;
  font-variant-numeric: tabular-nums;
}
.scard__stat.is-bad { color: #B4562F; border-color: #F3D3C7; background: #FFFAF6; }
.scard__x {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 13px; color: var(--t4); cursor: pointer;
}
.scard__x:hover { color: #fff; background: #C0392B; }

.scard__row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; }
.scard__row + .scard__row { border-top: 1px dashed #EDF1F8; }
.scard__lab { flex: 0 0 30px; font-size: 11.5px; color: var(--t4); padding-top: 5px; }
.scard__times { flex: 1; min-width: 0; }
.scard__all { flex: 0 0 auto; font-size: 11.5px; color: var(--brand); cursor: pointer; padding-top: 5px; }

.scard__dur { display: flex; gap: 5px; margin-bottom: 7px; }
.mini {
  height: 24px; padding: 0 9px; border-radius: 6px;
  border: 1px solid #E2E8F4; background: #fff; color: var(--t3);
  font-size: 11.5px; cursor: pointer;
}
.mini:hover { border-color: #C3D2EE; color: var(--t1); }
.mini.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.tslots { display: flex; flex-wrap: wrap; gap: 5px; }
.tslot {
  height: 26px; padding: 0 7px; border-radius: 6px;
  border: 1px solid #E2E8F4; background: #fff; color: var(--t3);
  font-size: 11.5px; cursor: pointer; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 4px;
}
.tslot:hover { border-color: #C3D2EE; color: var(--t1); }
.tslot.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tslot--cus { background: #F1F5FE; border-color: #C9D9F5; color: var(--brand); }
.tslot--cus i {
  font-style: normal; font-size: 12px; line-height: 1;
  width: 13px; height: 13px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #8FA3C9; cursor: pointer;
}
.tslot--cus i:hover { color: #fff; background: #C0392B; }
.tslot--add { border-style: dashed; color: var(--brand); background: transparent; }
.tslot--add:hover { background: #EEF4FF; }

.scard__sum { margin-top: 7px; font-size: 11.5px; color: var(--t4); }
.scard__sum b.is-warn { color: #C0392B; font-weight: 500; }

.sc-add {
  margin-top: 10px; width: 100%; height: 34px;
  border: 1px dashed #C9D6EE; border-radius: 10px;
  background: #FAFBFF; color: var(--brand); font-size: 13px; cursor: pointer;
}
.sc-add:hover { background: #EEF4FF; border-color: #B9CCF0; }
.sc-picker {
  margin-top: 8px; padding: 10px 12px;
  border: 1px dashed #C9D6EE; border-radius: 10px; background: #FAFBFF;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}

/* ===== 模板管理（排期模板 + 时段模板） ===== */
.modal--tpl { width: 760px; max-height: 88vh; display: flex; flex-direction: column; }
.modal--tpl2 { width: 620px; max-height: 88vh; display: flex; flex-direction: column; }
.modal--tpl2 > #ptBody, .modal--tpl2 > #stBody { flex: 1; overflow-y: auto; min-height: 80px; padding-right: 3px; }

.tmgr__lead {
  margin: -10px 0 14px; font-size: 11.5px; line-height: 1.65; color: var(--t4);
}

.tmgr__tabs {
  display: flex; gap: 6px; padding: 0 0 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.tmgr__tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--t2);
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.tmgr__tab small {
  font-size: 11px; color: var(--t4);
  background: #F1F5FD; border-radius: 8px; padding: 0 6px; line-height: 16px;
}
.tmgr__tab:hover { border-color: #C9D6EE; }
.tmgr__tab.is-on {
  border-color: var(--brand-2); background: #EEF4FF;
  color: var(--brand); font-weight: 600;
}
.tmgr__tab.is-on small { background: #fff; color: var(--brand-2); }

#tmgrBody { flex: 1; overflow-y: auto; min-height: 120px; max-height: 54vh; padding-right: 3px; }
#tmgrBody::-webkit-scrollbar { width: 6px; }
#tmgrBody::-webkit-scrollbar-thumb { background: #D6DFEF; border-radius: 3px; }

.tmgr { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tmgr__row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; flex-wrap: wrap;
}
.tmgr__row:last-child { border-bottom: 0; }
.tmgr__row b { font-weight: 600; white-space: nowrap; }
.tmgr__row .spacer { flex: 1; min-width: 8px; }
.tmgr__sub { color: var(--t3); font-size: 12px; }
.tmgr__chip {
  font-size: 11px; color: var(--brand);
  background: #EEF4FF; border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}
.tmgr__empty {
  padding: 26px 12px; text-align: center;
  font-size: 12.5px; color: var(--t4); line-height: 1.7;
}
.tmgr__add { margin-top: 12px; }
.tmgr__err { color: #C0392B; font-size: 12px; min-height: 16px; margin-top: 8px; }
.tmgr__chk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t1); cursor: pointer;
}
.tmgr__chk input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.tmgr__chk--def {
  display: flex; width: 100%; margin-top: 4px;
  padding: 10px 12px; background: #FAFBFF;
  border: 1px solid var(--line); border-radius: 9px;
}

/* 排期模板里的球类行 */
.ptgrid { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ptrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.ptrow:last-child { border-bottom: 0; }
.ptrow.is-off { background: #FAFBFE; }
/* 注意：这里必须带上 .modal .row 前缀，否则会被上面的 .modal .row input/select/label 覆盖 */
.modal .row .ptgrid .ptrow .tmgr__chk {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 132px; margin-bottom: 0;
  font-size: 13px; color: var(--t1); cursor: pointer;
}
.ptrow__lab { font-size: 12px; color: var(--t4); white-space: nowrap; }
.modal .row .ptgrid .ptrow .ptrow__n {
  width: 62px; flex: 0 0 62px; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: 13px; color: var(--t1); background: #fff; font-family: inherit;
}
.modal .row .ptgrid .ptrow .ptrow__s {
  flex: 1 1 auto; min-width: 0; width: auto; height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 7px;
  font-size: 12.5px; color: var(--t1); background: #fff; font-family: inherit;
}
.ptrow .ptrow__n:focus, .ptrow .ptrow__s:focus { outline: none; border-color: var(--brand-2); }
.ptrow .ptrow__n:disabled, .ptrow .ptrow__s:disabled { background: #F4F6FB; color: var(--t4); }

/* .modal .row 里 input/select 默认 width:100%，会污染「行内小控件」——
   勾选框被撑成一整行、时间选择器占满整行，所以这里用更高特异性逐条纠正。 */
.modal .row .tmgr__chk input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; }
.modal .row .sched__tadd input[type="time"] { width: auto; min-width: 92px; height: 30px; }
.modal .row .sched__tadd select { width: auto; min-width: 104px; height: 30px; padding: 0 8px; font-size: 12.5px; }
.sched__tadd select { height: 30px; padding: 0 8px; font-size: 12.5px; }

/* ===== 活动场次：订场页「今日特惠」卡设置区 ===== */
.promo-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.promo-panel__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDF7, #FFF9EC);
}
.promo-panel__title { flex: 1; min-width: 0; }
.promo-panel__title b {
  display: block; font-size: 14px; color: var(--t1);
  letter-spacing: .01em;
}
.promo-panel__title b::before {
  content: ''; display: inline-block; width: 3px; height: 13px;
  background: #E8A33D; border-radius: 2px;
  margin-right: 8px; vertical-align: -1px;
}
.promo-panel__title span { display: block; margin-top: 4px; font-size: 12px; color: var(--t4); }

.promo-panel__body {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 16px 18px 6px;
}
.promo-panel__form { flex: 1 1 auto; min-width: 0; }

.promo-row { padding-bottom: 14px; }
.promo-row > label {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 7px;
}
.promo-row > label i {
  font-style: normal; font-size: 11px; font-weight: 400;
  color: var(--t4); background: #F2F5FB; border-radius: 4px; padding: 1px 6px;
}

.promo-two { display: flex; gap: 8px; align-items: center; }
.promo-two input[type="text"],
.promo-two input[type="time"] {
  height: 36px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; outline: none; background: #fff; color: var(--t1);
  font-size: 13.5px; min-width: 0;
}
.promo-two input[type="text"] { flex: 1 1 0; }
.promo-two input[type="text"]:focus,
.promo-two input[type="time"]:focus { border-color: var(--brand-2); }
.promo-two--time input[type="time"] { width: 118px; flex: 0 0 auto; }
.promo-dash { color: var(--t4); }

.promo-hint { margin-top: 6px; font-size: 12px; color: var(--t4); }
.promo-chip {
  display: inline-block; margin-right: 6px; padding: 1px 8px;
  border-radius: 100px; font-size: 11px; font-weight: 600;
  background: #F2F5FB; color: var(--t3);
}
.promo-chip.is-on { background: #E8F5EC; color: #237A45; }
.promo-chip.is-off { background: #FDECEA; color: #C0392B; }
.promo-chip__t { font-size: 12px; color: var(--t4); }

.promo-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.promo-presets .mchip {
  height: 26px; padding: 0 10px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 100px;
  background: #FAFBFE; color: var(--t2); cursor: pointer;
}
.promo-presets .mchip:hover { border-color: #E8A33D; color: #854F0B; background: #FFF9EC; }

.promo-radios { display: flex; flex-wrap: wrap; gap: 16px; }
.promo-radio {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t2); cursor: pointer;
}
.promo-radio input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }

.promo-act {
  display: block; width: 100%; max-width: 380px; height: 36px; margin-top: 10px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--t1); font-size: 13px; outline: none;
}
.promo-act.is-hide { display: none; }

/* 右侧手机效果预览 */
.promo-panel__pv {
  flex: 0 0 236px; padding: 12px 12px 14px;
  background: #F7F9FE; border: 1px solid var(--line); border-radius: 12px;
}
.promo-pv__label { font-size: 11.5px; color: var(--t4); margin-bottom: 9px; }
.promo-pv__card {
  display: flex; align-items: center; gap: 8px;
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; background: #FAEEDA; border-radius: 10px;
  min-height: 52px;
}
.promo-pv__card.is-off {
  background: #F0F2F7; justify-content: center;
}
.promo-pv__card.is-off span { font-size: 12px; color: var(--t4); }
.promo-pv__txt { flex: 1; min-width: 0; }
.promo-pv__txt i {
  display: block; font-style: normal; font-size: 11.5px; color: #854F0B;
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-pv__txt b {
  display: block; margin-top: 1px; font-size: 16px; font-weight: 700;
  color: #BA7517; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-pv__moon {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, transparent 0 46%, #BA7517 47% 60%, transparent 61%);
  opacity: .85;
}
.promo-pv__note { margin-top: 10px; font-size: 11px; color: var(--t4); line-height: 1.6; }

.promo-panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--line); background: #FCFDFF;
}
.promo-panel__bar .spacer { flex: 1; }
.promo-panel__state { font-size: 12.5px; color: var(--t3); }

@media (max-width: 980px) {
  .promo-panel__body { flex-direction: column; gap: 14px; }
  .promo-panel__pv { flex: 0 0 auto; width: 100%; }
}
