:root {
  --beige-0: #f3ecdd;
  --beige-1: #e2d5b8;
  --beige-2: #cbb894;
  --beige-3: #b8a37c;
  --ink: #2b2921;
  --ink-soft: #6b6455;
  --ink-faint: #948c7a;
  --olive: #4f5c34;
  --olive-dark: #3b4725;
  --olive-light: #6c7c48;
  --glass: rgba(255, 252, 245, 0.6);
  --glass-strong: rgba(255, 253, 248, 0.85);
  --glass-line: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 4px 14px rgba(74, 60, 34, 0.1);
  --shadow: 0 12px 32px rgba(74, 60, 34, 0.14);
  --shadow-lg: 0 22px 50px rgba(60, 48, 26, 0.2);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --danger: #a8443a;
  --ok: #4f7a3f;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--beige-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------------- 页面外壳 ---------------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, #ded0b1 0%, #c9b791 45%, #b6a37e 100%);
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(58, 46, 26, calc(var(--overlay, 0.38) * 0.68)),
    rgba(58, 46, 26, var(--overlay, 0.38))
  );
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.wrap--narrow {
  max-width: 780px;
}

/* ---------------- 顶部品牌胶囊 ---------------- */

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
  max-width: 100%;
}

.brand-pill__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--olive-light), var(--olive-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-pill__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-pill__text {
  min-width: 0;
}

.brand-pill__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.25;
}

.brand-pill__tag {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- 局域网二维码按钮 ---------------- */

.qr-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--olive-dark);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qr-fab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.qr-fab:active {
  transform: translateY(0);
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(43, 41, 33, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qr-modal__card {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: #fffcf5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 22px 22px;
  text-align: center;
}

.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--beige-0);
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal__close:hover {
  background: var(--beige-1);
}

.qr-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.qr-modal__sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 4px 0 14px;
}

.qr-modal__switch {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.qr-modal__select {
  font-family: var(--font);
  font-size: 12.5px;
  padding: 4px 8px;
  margin-left: 6px;
  border: 1px solid var(--beige-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.qr-modal__img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.qr-modal__img img {
  width: 220px;
  height: 220px;
}

.qr-modal__url {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--beige-0);
  border-radius: 8px;
  padding: 9px 10px;
  word-break: break-all;
}

.qr-modal__copy {
  margin-top: 12px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.qr-modal__copy:hover {
  background: var(--olive-dark);
}

/* ---------------- 通用卡片 ---------------- */

.card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  padding: 16px;
}

.card--solid {
  background: var(--glass-strong);
}

.card + .card {
  margin-top: 14px;
}

/* ---------------- 首页 Hero ---------------- */

.hero {
  margin-top: 22px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero__title {
  font-size: clamp(26px, 7vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero__subtitle {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip--action {
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.chip--action:active {
  transform: scale(0.97);
}

/* ---------------- 入口卡片 ---------------- */

.entries {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.entry:hover {
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.entry:active {
  transform: translateY(0);
}

.entry__body {
  flex: 1;
  min-width: 0;
}

.entry__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.entry__desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.entry__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(79, 92, 52, 0.12);
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.site-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 内页页头 ---------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 16px;
}

.page-head__label {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.page-head__title {
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.btn-back:hover {
  background: var(--olive-dark);
}

.btn-back:active {
  transform: scale(0.97);
}

/* ---------------- 课程说明 ---------------- */

.price-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-group__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.price-group__sub {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  font-size: 14px;
}

.price-table th {
  background: rgba(79, 92, 52, 0.1);
  color: var(--olive-dark);
  font-weight: 700;
  font-size: 12.5px;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
}

.price-table th:first-child {
  border-radius: 10px 0 0 10px;
}

.price-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.price-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(120, 105, 75, 0.16);
  vertical-align: top;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.price-table .total {
  color: var(--olive-dark);
  font-weight: 800;
}

.price-table .note {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.price-cards {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.price-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 12px 14px;
}

.price-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price-item__sessions {
  font-size: 15px;
  font-weight: 800;
}

.price-item__total {
  font-size: 17px;
  font-weight: 800;
  color: var(--olive-dark);
}

.price-item__meta {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.price-item__note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-top: 6px;
  border-top: 1px dashed rgba(120, 105, 75, 0.24);
}

/* ---------------- 教练卡片（3:4 竖版满图 + 下半部深色蒙层承载文字） ---------------- */

.coach {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  /* 最小 420px 宽（≈560px 高），保证窗口很矮时卡片也不会小到放不下文字 */
  max-width: min(100%, max(420px, calc(72vh * 3 / 4)));
  aspect-ratio: 3 / 4;
  margin-left: auto;
  margin-right: auto;
  /* 文字装不下时卡片会向下生长，这段深色是延伸出来的文字面板底色 */
  background: #1b1610;
}

.coach + .coach {
  margin-top: 16px;
}

/* 背景延伸层：同一张照片的模糊版铺满整卡。
   锐利照片区盖在它上面，卡片向下扩展时露出的部分颜色与照片区一致，不会出现色差分界 */
.coach__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.coach__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.92) saturate(0.95);
  transform: scale(1.2); /* 放大遮住模糊产生的边缘发白 */
}

/* 图片区：固定在卡片顶部，始终保持 3:4（框选映射按此比例计算） */
.coach__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.coach__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 深色蒙层：从图片中线一直铺到卡片底部（卡片向下生长时自动跟着变长） */
.coach__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 50%;
  background: rgba(22, 18, 10, 0.56);
}

.coach__scrim::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -68px;
  height: 68px;
  background: linear-gradient(180deg, rgba(22, 18, 10, 0) 0%, rgba(22, 18, 10, 0.56) 100%);
}

.coach__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 20px 18px;
  width: auto;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.coach__label {
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.coach__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 2px;
}

.coach__level {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 2px;
  color: #e8dfc8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tag--light {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
}

.tag--link {
  cursor: pointer;
  transition: background 0.15s;
}

.tag--link:hover {
  background: rgba(255, 255, 255, 0.42);
}

.coach__bio {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 62ch;
  white-space: pre-line; /* 按后台输入的回车换行显示：输入几行就显示几行 */
}

/* 上半部分介绍：两栏短条目 */
.coach__bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.coach__bio-grid span {
  position: relative;
  padding-left: 13px;
  overflow-wrap: anywhere;
}

.coach__bio-grid span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232, 223, 200, 0.85);
}

.coach__bio-grid + .coach__bio {
  margin-top: 14px;
}

.coach__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: var(--olive);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.coach__cta:hover {
  background: var(--olive-dark);
}

/* 窄屏（手机）：图片区保持 3:4 竖版满图，文字放到其下方的深色面板，避免长文案被裁切 */
@media (max-width: 639px) {
  .coach {
    aspect-ratio: auto;
    max-width: 100%;
  }

  .coach__media {
    position: relative;
    inset: auto;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .coach__scrim {
    display: none;
  }

  .coach__body {
    position: relative;
    padding: 16px 18px 18px;
    background: rgba(30, 25, 15, 0.86);
  }
}

/* ---------------- 学员案例 ---------------- */

.case-card + .case-card {
  margin-top: 16px;
}

.case-shots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.case-shot {
  position: relative;
  flex: 0 0 auto;
  width: 46%;
  max-width: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
}

.case-shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  cursor: zoom-in;
}

.case-shot__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.case-card__title {
  font-size: 22px;
  font-weight: 800;
  margin-top: 14px;
  letter-spacing: 0.5px;
}

.case-meta {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.case-meta__row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}

.case-meta__key {
  color: var(--ink-faint);
  min-width: 42px;
}

.case-meta__val {
  font-weight: 600;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 253, 248, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn.is-active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

/* ---------------- 我的位置 ---------------- */

.venue-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.venue-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.venue-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(120, 105, 75, 0.16);
  font-size: 14.5px;
}

.venue-row:last-child {
  border-bottom: none;
}

.venue-row__key {
  flex: 0 0 76px;
  color: var(--ink-faint);
  font-size: 13px;
}

.venue-row__val {
  flex: 1;
  font-weight: 600;
  word-break: break-all;
}

.venue-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--olive-dark);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn--ghost:hover {
  background: #fff;
}

.btn--danger {
  background: rgba(168, 68, 58, 0.12);
  color: var(--danger);
}

.btn--danger:hover {
  background: rgba(168, 68, 58, 0.2);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------- 空状态 / 骨架 ---------------- */

.empty {
  text-align: center;
  padding: 42px 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty__icon {
  font-size: 30px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0.35) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -40% 0;
  }
}

/* ---------------- 灯箱 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 16, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: contain;
}

/* ---------------- 提示条 ---------------- */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  background: rgba(43, 41, 33, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: toast-in 0.22s ease;
}

.toast--error {
  background: rgba(150, 56, 46, 0.95);
}

.toast--ok {
  background: rgba(60, 90, 44, 0.95);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- 登录页 ---------------- */

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 30px 26px;
}

.login-card__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--olive-light), var(--olive-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 800;
}

.login-card__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.field {
  margin-top: 16px;
}

.field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field__hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 5px;
}

/* 字数统计（后台） */
.field__count {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field__count.is-warn {
  color: #a8443a;
  font-weight: 600;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid rgba(120, 105, 75, 0.28);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--olive-light);
  box-shadow: 0 0 0 3px rgba(108, 124, 72, 0.16);
}

.textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}

.login-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
  background: rgba(168, 68, 58, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  display: none;
}

.login-error.is-visible {
  display: block;
}

.login-hint {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(120, 105, 75, 0.28);
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.9;
}

.login-hint code {
  background: rgba(79, 92, 52, 0.1);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--olive-dark);
}

/* ---------------- 后台布局 ---------------- */

.admin-body {
  background: #efe9dc;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.admin-side {
  background: linear-gradient(180deg, #3b4725, #2f3a1d);
  color: #e9e4d4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-side__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.admin-side__title {
  font-size: 14.5px;
  font-weight: 700;
}

.admin-side__sub {
  font-size: 11.5px;
  opacity: 0.72;
}

.admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.admin-nav__btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e9e4d4;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-nav__btn.is-active {
  background: #e9e4d4;
  color: #2f3a1d;
  border-color: #e9e4d4;
}

.admin-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
}

.admin-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.admin-user__meta {
  flex: 1;
  min-width: 0;
}

.admin-user__name {
  font-weight: 700;
  font-size: 13px;
}

.admin-user__role {
  opacity: 0.7;
  font-size: 11.5px;
}

.admin-main {
  padding: 16px;
  max-width: 1080px;
  width: 100%;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-head h2 {
  font-size: 19px;
  font-weight: 800;
}

.admin-head p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 105, 75, 0.16);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.panel + .panel {
  margin-top: 14px;
}

.panel__title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel__hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 3px;
}

.grid-2 {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 4px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(120, 105, 75, 0.24);
}

.row-card {
  border: 1px solid rgba(120, 105, 75, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fdfbf6;
}

.row-card + .row-card {
  margin-top: 10px;
}

.row-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-card__title {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  min-width: 120px;
}

.row-card__body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
  border: 1px solid rgba(120, 105, 75, 0.16);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.thumb-cell {
  position: relative;
}

.thumb-cell__x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 16, 8, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.badge {
  font-size: 11.5px;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(79, 92, 52, 0.12);
  color: var(--olive-dark);
  font-weight: 700;
}

/* ---------------- 带框选的主图 ---------------- */

.crop-preview {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  border: 1px solid rgba(120, 105, 75, 0.16);
}

.crop-preview__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 预览图上标出前台会被文字蒙层遮住的下半部 */
.crop-preview__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 50%;
  background: rgba(22, 18, 10, 0.56);
  pointer-events: none;
}

.crop-preview__tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.crop-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crop-preview__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #948c7a;
  font-size: 12px;
}

.crop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(43, 41, 33, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.crop-modal__card {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow: auto;
  background: #fffcf5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.crop-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.crop-modal__hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 6px 0 14px;
  line-height: 1.7;
}

.crop-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(20, 16, 8, 0.85);
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}

.crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  -webkit-user-drag: none;
  pointer-events: none;
}

.crop-rect {
  position: absolute;
  display: none;
  border: 2px solid #ffd479;
  box-shadow: 0 0 0 9999px rgba(20, 16, 8, 0.5);
  cursor: move;
  box-sizing: border-box;
}

.crop-rect::before,
.crop-rect::after {
  content: '';
  position: absolute;
}

.crop-rect::before {
  left: 33.33%;
  right: 33.33%;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
  border-right: 1px dashed rgba(255, 255, 255, 0.45);
}

.crop-rect::after {
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.45);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

.crop-rect__dot {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffd479;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: nwse-resize;
}

.crop-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.badge--muted {
  background: rgba(120, 105, 75, 0.14);
  color: var(--ink-soft);
}

.badge--warn {
  background: rgba(196, 138, 40, 0.16);
  color: #8a5f12;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(120, 105, 75, 0.3);
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  flex: 0 0 auto;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}

.switch input:checked {
  background: var(--olive);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  background: #f6f2e9;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}

.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-simple th,
.table-simple td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(120, 105, 75, 0.14);
}

.table-simple th {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 700;
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------- 断点：平板 ---------------- */

@media (min-width: 640px) {
  .wrap {
    padding: 22px 24px 60px;
  }

  .entries {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero {
    padding: 34px 32px;
  }

  .venue-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px 22px;
  }

  .admin-nav {
    flex: 1;
    justify-content: flex-start;
    overflow: visible;
    flex-wrap: wrap;
  }

  .admin-user {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .admin-main {
    padding: 22px;
  }
}

/* ---------------- 断点：桌面 ---------------- */

@media (min-width: 1024px) {
  .wrap {
    padding: 34px 32px 80px;
  }

  .entries {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .entry {
    padding: 22px 22px;
  }

  .entry__title {
    font-size: 18px;
  }

  .price-table {
    font-size: 14.5px;
  }

  .coach {
    max-width: min(100%, max(420px, calc(72vh * 3 / 4)));
  }

  .case-shot {
    width: 32%;
  }

  .admin-shell {
    grid-template-columns: 236px 1fr;
  }

  .admin-side {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 18px;
  }

  .admin-nav {
    flex-direction: column;
    overflow: visible;
  }

  .admin-nav__btn {
    text-align: left;
    width: 100%;
  }

  .admin-user {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .admin-main {
    padding: 28px 32px;
    margin: 0 auto;
  }
}

/* ---------------- 手机端：课程说明切卡片 ---------------- */

@media (max-width: 639px) {
  .price-table {
    display: none;
  }

  .price-cards {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}