/* 果夫旅行中文官网 · 本地预览外壳（只注入浏览器，不改真源 / 小程序 / 现网）
   v14-live-h5-display 2026-11-16
   Peter：就用现成官方 H5 的展示方式，只改内容宽度边界。
   字体、字号、卡片排法、栅格、间距、列表横竖排一律回到现网 www H5。
   本表只保留：官方外壳、1152 宽屏居中、MP 入口隐藏、v12 露出（不藏幻灯片/
   搜索卡/附近/城市列表）、t960 详情日历在右栏、t961 问小潘左右栏。
   不另做一套字号或卡片排版。 */

:root {
  --ag-ivory: #FAFBF5;
  --ag-ink: #191919;
  --ag-muted: #5A5A52;
  --ag-hair: #CFCBAF;
  --ag-red: #E60012;
  --ag-hei: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ag-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --ag-max: 1152px;
  --ag-side: 24px;
  --ag-content-width: min(var(--ag-max), calc(100vw - (var(--ag-side) * 2)));
  --ag-strip: 0px;
  --ag-header: 88px;
  --ag-chrome: calc(var(--ag-strip) + var(--ag-header));
  --ag-map-side: 440px;
}

/* 去掉 560 灰边手机壳、现网左侧栏/底栏/旧顶栏，给官方顶栏让位。
   不改页面正文字号、字体。 */
html.mp-web-site {
  --mp-content-width: 100% !important;
  --mp-wide-max: 100% !important;
  max-width: 100%;
}
html.mp-web-site #mp-app,
html.mp-web-site #mp-app.mp-wide-app,
html.mp-web-site #mp-app.mp-web-site,
html.mp-web-site #mp-app.mp-home-chrome,
html.mp-web-site #mp-app.mp-wide-app.mp-web-site,
html.mp-web-site #mp-app.mp-wide-app.mp-home-chrome,
html.mp-web-site #mp-app.mp-web-site.mp-home-chrome,
html.mp-web-site #mp-app.mp-wide-app.mp-web-site.mp-home-chrome {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding-top: var(--ag-chrome) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html.mp-web-site #mp-tabbar,
html.mp-web-site .mp-siderail,
html.mp-web-site #mp-topbar,
html.mp-web-site .mp-lang-en,
html.mp-web-site .share-welcome,
html.mp-web-site .tt-entry,
html.mp-web-site .tb-bar,
html.mp-web-site custom-tab-bar,
html.mp-web-site #mp-guide-mask,
html.mp-web-site #mp-footer,
html.mp-web-site .ag-hide-mp,
html.mp-web-site [id*="en-lang-float"],
html.mp-web-site .ag-hide-en-chip,
html.mp-web-site .ag-net-rate {
  display: none !important;
}
html.mp-web-site,
html.mp-web-site body {
  height: 100%;
  overflow: hidden;
}
html.mp-web-site #mp-app,
html.mp-web-site #mp-app.mp-wide-app,
html.mp-web-site #mp-app.mp-home-chrome {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html.mp-web-site #mp-scroll,
html.mp-web-site #mp-app.mp-home-chrome #mp-scroll,
html.mp-web-site #mp-page-host,
html.mp-web-site .mp-page:not(.mp-page-hidden) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html.mp-web-site #mp-scroll {
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* 四项小程序入口、首页小程序顶栏/瀑布/挑选卡继续藏 */
html.mp-web-site[data-ag-page="home"] .tt-entry,
html.mp-web-site[data-ag-page="home"] .falls,
html.mp-web-site[data-ag-page="home"] .pick-card,
html.mp-web-site[data-ag-page="home"] .slogan,
html.mp-web-site[data-ag-page="home"] .nav-bar {
  display: none !important;
}

/* ========== 官方顶栏 / 页脚 ========== */
#ag-site-header {
  position: fixed;
  top: var(--ag-strip);
  left: 0; right: 0;
  z-index: 10010;
  height: var(--ag-header);
  background: rgba(250, 251, 245, 0.96);
  border-bottom: 1px solid var(--ag-hair);
  font-family: var(--ag-hei);
}
#ag-site-header .ag-bar {
  height: 100%;
  width: var(--ag-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
#ag-site-header .ag-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
#ag-site-header .ag-logo img {
  display: block;
  height: 42px;
  width: auto;
}
#ag-site-header .ag-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
  margin-left: auto;
  flex-wrap: nowrap;
}
#ag-site-header .ag-nav a,
#ag-site-header .ag-login {
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-ink);
  text-decoration: none;
  line-height: 1.2;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 0;
}
#ag-site-header .ag-nav a:hover,
#ag-site-header .ag-login:hover,
#ag-site-header .ag-lang:hover { color: var(--ag-red); }
#ag-site-header .ag-nav a.is-on { font-weight: 700; }
#ag-site-header .ag-bar-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#ag-site-header .ag-lang {
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 500;
  color: var(--ag-ink);
  text-decoration: none;
  padding: 8px 0 8px 18px;
  border-left: 1px solid var(--ag-hair);
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}
#ag-site-header .ag-menu-btn {
  display: none;
  appearance: none;
  background: var(--ag-ivory);
  border: 1px solid var(--ag-ink);
  color: var(--ag-ink);
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  min-width: 88px;
  padding: 0 14px;
  cursor: pointer;
  line-height: 1;
}
#ag-site-header .ag-menu-btn:hover {
  background: var(--ag-ink);
  color: #fff;
}
#ag-site-header .ag-drawer { display: none; }

#ag-site-footer {
  background: var(--ag-ivory);
  border-top: 1px solid var(--ag-hair);
  padding: 48px 0 40px;
  color: var(--ag-ink);
  font-family: var(--ag-hei);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#ag-site-footer .ag-foot-inner {
  width: var(--ag-content-width);
  max-width: 100%;
}
/* 多列栅格：品牌区略宽 */
#ag-site-footer .ag-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
#ag-site-footer .ag-foot-col { min-width: 0; }
#ag-site-footer .ag-foot-h {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ag-ink);
  letter-spacing: 0.02em;
}
#ag-site-footer .ag-foot-col > a,
#ag-site-footer .ag-foot-col .ag-foot-mp {
  display: block;
  margin: 0 0 10px;
  color: var(--ag-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
#ag-site-footer .ag-foot-col > a:hover,
#ag-site-footer .ag-foot-col .ag-foot-mp:hover { color: var(--ag-red); }
#ag-site-footer .ag-foot-col .ag-foot-strong { font-weight: 700; color: var(--ag-ink); }
/* 品牌区 */
#ag-site-footer .ag-foot-brand .ag-foot-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
#ag-site-footer .ag-foot-tagline {
  margin: 0 0 18px;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.6;
}
#ag-site-footer .ag-foot-qr img {
  width: 108px;
  height: 108px;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--ag-hair);
}
#ag-site-footer .ag-foot-qr span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ag-muted);
}
/* 热门目的地（长尾关键词铺开，SEO/AI 搜索友好） */
#ag-site-footer .ag-foot-dests-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ag-hair);
}
#ag-site-footer .ag-foot-dests-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
#ag-site-footer .ag-foot-dests-links a {
  color: var(--ag-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.8;
}
#ag-site-footer .ag-foot-dests-links a:hover { color: var(--ag-red); }
/* 城市分级入口（洲/国/省/市） */
#ag-site-footer .ag-dest-group { margin-bottom: 16px; }
#ag-site-footer .ag-dest-cont {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-ink);
}
#ag-site-footer .ag-dest-cty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 4px;
}
#ag-site-footer .ag-dest-cty-n {
  font-size: 13px;
  font-weight: 600;
  color: #4a5560;
}
#ag-site-footer .ag-dest-prov {
  font-size: 12px;
  color: #9aa2a8;
  margin-left: 10px;
}
/* 合作入口 */
#ag-site-footer .ag-foot-portals {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ag-hair);
}
#ag-site-footer .ag-foot-portals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
#ag-site-footer .ag-foot-portal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ag-hair);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--ag-ink);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
#ag-site-footer .ag-foot-portal:hover { border-color: var(--ag-red); }
#ag-site-footer .ag-foot-portal-t {
  font-weight: 700;
  font-size: 14px;
  color: var(--ag-ink);
}
#ag-site-footer .ag-foot-portal-h {
  font-size: 12px;
  color: var(--ag-muted);
  line-height: 1.5;
}
/* 联系 + 版权 */
#ag-site-footer .ag-foot-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ag-hair);
  font-size: 14px;
  color: var(--ag-muted);
}
#ag-site-footer .ag-foot-contact a { color: var(--ag-muted); text-decoration: none; }
#ag-site-footer .ag-foot-contact a:hover { color: var(--ag-red); }
#ag-site-footer .ag-foot-contact b { color: var(--ag-ink); font-weight: 700; }
#ag-site-footer .ag-foot-lang { margin-left: 0; text-decoration: none; color: var(--ag-muted); }
#ag-site-footer .ag-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ag-muted);
}
#ag-site-footer .ag-foot-bottom a { color: var(--ag-muted); text-decoration: none; }
#ag-site-footer .ag-foot-bottom a:hover { color: var(--ag-red); }
/* 二维码弹层（append 到 body） */
.ag-foot-qr-pop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-foot-qr-pop .ag-foot-qr-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}
.ag-foot-qr-pop .ag-foot-qr-card img {
  width: 220px;
  height: 220px;
  display: block;
}
.ag-foot-qr-pop .ag-foot-qr-card p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ag-ink);
}
.ag-foot-qr-pop .ag-foot-qr-x {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ag-muted);
  cursor: pointer;
}
.ag-foot-qr-pop .ag-foot-qr-x:hover { color: var(--ag-ink); }
html.mp-web-site[data-ag-page="map"] #ag-site-footer { display: none !important; }

/* 响应式：窄屏 footer 栅格收成 2 列 / 1 列 */
@media (max-width: 899px) {
  #ag-site-footer .ag-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  #ag-site-footer .ag-foot-brand { grid-column: 1 / -1; }
  #ag-site-footer .ag-foot-portals-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  #ag-site-footer .ag-foot-grid { grid-template-columns: 1fr; }
  #ag-site-footer .ag-foot-portals-row { grid-template-columns: 1fr; }
}

/* ========== 宽屏内容边界：1152，仅 ≥900px；390 不收窄，跟现网手机铺满。
   不依赖 data-ag-page（该属性由 JS 后挂）。地图页、登录页另有 100% 覆盖。 ========== */
@media (min-width: 900px) {
  html.mp-web-site .page {
    width: var(--ag-content-width) !important;
    max-width: var(--ag-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site.ag-map-full .page,
  html.mp-web-site[data-ag-page="map"] .page,
  html.mp-web-site .page:has(.themap),
  html.mp-web-site[data-ag-page="login"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .page,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* ========== 现成 H5 搜索（含当前位置）；不再用无位置的 #ag-finder 替换 ========== */
html.mp-web-site #ag-finder {
  display: none !important;
}
html.mp-web-site #ag-finder[data-unused] {
  width: 100%;
  margin: 0 0 22px;
  padding: 22px 24px;
  background: var(--ag-ivory);
  border: 1px solid var(--ag-hair);
  box-sizing: border-box;
  position: relative;
}
html.mp-web-site #ag-finder .ag-finder-title { display: none !important; }
html.mp-web-site #ag-finder form,
html.mp-web-site .ag-finder-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.8fr) auto;
  gap: 16px 20px;
  align-items: end;
}
html.mp-web-site #ag-finder .ag-finder-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: end;
}
html.mp-web-site #ag-finder label,
html.mp-web-site #ag-finder .ag-finder-field label {
  display: block;
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 700;
  color: var(--ag-ink);
  margin-bottom: 6px;
}
html.mp-web-site #ag-finder input,
html.mp-web-site #ag-finder .ag-date-face {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--ag-hair);
  border-radius: 0;
  background: transparent;
  color: var(--ag-ink);
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  box-sizing: border-box;
}
html.mp-web-site #ag-finder .ag-date-face { appearance: none; cursor: pointer; }
html.mp-web-site #ag-finder .ag-date-field { position: relative; }
html.mp-web-site #ag-finder .ag-date-native {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}
html.mp-web-site #ag-finder .ag-btn-primary,
html.mp-web-site #ag-book-panel .ag-btn-primary,
html.mp-web-site #ag-order-summary .ag-btn-primary,
html.mp-web-site #ag-detail-dock .ag-btn-primary,
html.mp-web-site #ag-map-picked .ag-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--ag-ink);
  color: #fff;
  border: 1px solid var(--ag-ink);
  border-radius: 0;
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 56px;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
html.mp-web-site #ag-finder .ag-btn-primary:hover,
html.mp-web-site #ag-book-panel .ag-btn-primary:hover,
html.mp-web-site #ag-order-summary .ag-btn-primary:hover,
html.mp-web-site #ag-detail-dock .ag-btn-primary:hover {
  background: var(--ag-red);
  border-color: var(--ag-red);
  color: #fff;
}
html.mp-web-site #ag-finder .ag-btn-outline,
html.mp-web-site #ag-book-panel .ag-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--ag-ivory);
  color: var(--ag-ink);
  border: 1px solid var(--ag-ink);
  border-radius: 0;
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 700;
  min-height: 56px;
  padding: 0 22px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ========== 详情右侧官方订场栏（t960 把日历放进这里；样式只打在注入面板上） ========== */
.ag-book-panel {
  background: var(--ag-ivory);
  border: 1px solid var(--ag-hair);
  border-radius: 0;
  padding: 20px 22px 22px;
  box-sizing: border-box;
}
.ag-book-panel .ag-book-title {
  font-family: var(--ag-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 0 0 16px;
  line-height: 1.3;
}
.ag-book-panel .ag-book-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--ag-hair);
}
.ag-book-panel .ag-book-k {
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 700;
  color: var(--ag-ink);
  margin-bottom: 4px;
}
.ag-book-panel .ag-book-v,
.ag-book-panel .ag-book-time-val,
.ag-book-panel .ag-people-val {
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-ink);
}
.ag-book-panel .ag-book-time-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ag-book-panel .ag-book-pick {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ag-book-panel .ag-book-price {
  font-family: var(--ag-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 18px 0 16px;
  line-height: 1.2;
}
.ag-book-panel .ag-book-cta {
  width: 100%;
  min-height: 56px;
  margin: 0 0 10px;
}
.ag-book-panel .ag-book-ai {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}
.ag-book-panel.is-full .ag-book-cta { display: none !important; }
.ag-book-panel .ag-book-full {
  font-family: var(--ag-hei);
  font-size: 24px;
  font-weight: 700;
  color: var(--ag-ink);
  margin: 8px 0 12px;
}
.ag-people {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ag-people-btn {
  appearance: none;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  background: var(--ag-ivory);
  color: var(--ag-ink);
  border: 1px solid var(--ag-ink);
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="course"] .book-col.ag-native-book-quiet {
    display: none !important;
  }
}
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="course"] .book-col-wrap {
    position: sticky;
    top: 16px;
    align-self: start;
  }
}
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="course"] #ag-book-panel,
  html.mp-web-site[data-ag-page="package"] #ag-book-panel,
  html.mp-web-site[data-ag-page="course"] .ag-book-panel {
    display: none !important;
  }
}

/* ========== 地图：顶栏以下铺满（功能：外壳占位，不改名录字号） ========== */
html.mp-web-site[data-ag-page="map"] #mp-app {
  height: 100vh;
  overflow: hidden;
}
html.mp-web-site[data-ag-page="map"] #mp-scroll {
  height: calc(100vh - var(--ag-chrome)) !important;
  overflow: hidden !important;
}
html.mp-web-site[data-ag-page="map"] #mp-page-host,
html.mp-web-site[data-ag-page="map"] .mp-page,
html.mp-web-site[data-ag-page="map"] .page {
  height: 100% !important;
}
html.mp-web-site[data-ag-page="map"] .page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
}
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="map"] .page {
    flex-direction: row !important;
    align-items: stretch !important;
  }
  html.mp-web-site[data-ag-page="map"] .themap {
    position: relative !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  html.mp-web-site[data-ag-page="map"] .page {
    position: relative !important;
  }
  html.mp-web-site[data-ag-page="map"] .near-side {
    display: block !important;
    position: relative !important;
    flex: 0 0 var(--ag-map-side, 440px) !important;
    width: var(--ag-map-side, 440px) !important;
    min-width: var(--ag-map-side, 440px) !important;
    max-width: var(--ag-map-side, 440px) !important;
    height: 100% !important;
    overflow: auto !important;
    z-index: 12 !important;
    background: #fff !important;
    border-left: 1px solid #e8edf2 !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="map"] .side-closed .near-side {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    flex-basis: 0 !important;
  }
  html.mp-web-site[data-ag-page="map"] .near {
    display: none !important;
  }
}
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="map"] .page { flex-direction: column !important; }
  html.mp-web-site[data-ag-page="map"] .themap {
    flex: 1 1 auto !important;
    min-height: 40vh !important;
  }
  html.mp-web-site #ag-map-picked { display: none !important; }
}

/* ========== 手机外壳 ========== */
@media (max-width: 899px) {
  :root { --ag-header: 80px; }
  #ag-site-header .ag-bar {
    width: calc(100% - 32px);
    gap: 10px;
  }
  #ag-site-header .ag-logo img { height: 36px; }
  #ag-site-header .ag-nav,
  #ag-site-header .ag-login { display: none !important; }
  #ag-site-header .ag-lang {
    border-left: 0;
    padding-left: 0;
    margin-left: auto;
    font-size: 16px;
  }
  #ag-site-header .ag-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  #ag-site-header.is-open .ag-drawer {
    display: block;
    position: fixed;
    top: var(--ag-chrome);
    left: 0; right: 0;
    bottom: 0;
    background: rgba(25, 25, 25, 0.28);
    z-index: 10015;
  }
  #ag-site-header .ag-drawer-panel {
    background: var(--ag-ivory);
    border-bottom: 1px solid var(--ag-hair);
    padding: 8px 20px 24px;
  }
  #ag-site-header .ag-drawer-panel a {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--ag-hei);
    font-size: 18px;
    font-weight: 500;
    color: var(--ag-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ag-hair);
  }
  #ag-site-header .ag-drawer-panel a.is-on { font-weight: 700; }
  #ag-site-header .ag-drawer-close {
    margin-top: 16px;
    width: 100%;
    min-height: 56px;
    font-family: var(--ag-hei);
    font-size: 18px;
    font-weight: 600;
    background: var(--ag-ivory);
    color: var(--ag-ink);
    border: 1px solid var(--ag-ink);
    cursor: pointer;
  }
  html.mp-web-site #ag-finder form,
  html.mp-web-site .ag-finder-row {
    grid-template-columns: 1fr;
  }
  html.mp-web-site #ag-finder .ag-finder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  html.mp-web-site #ag-finder .ag-btn-primary,
  html.mp-web-site #ag-finder .ag-btn-outline {
    width: 100%;
  }
}
@media (min-width: 900px) {
  #ag-site-header .ag-menu-btn { display: none !important; }
}


/* ===== t960 电脑详情：日期卡只出现在右边订场栏 ===== */
/* 电脑详情：日期卡只出现在右边订场栏，左边不再留一排日历和开球时间。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="course"] .ag-dates {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .ag-dates,
  html.mp-web-site[data-ag-page="course"] .ag-book-panel .ag-dates {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-time-line {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-book-panel.ag-has-dates .ag-book-row:has([data-ag="date"]) {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .ag-dates-k {
    margin: 0 0 8px !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .day-row,
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .day-strip,
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .ag-dates .day-row,
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .ag-dates .day-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: unset !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-book-panel .day-card {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 72px !important;
    padding: 8px 6px !important;
    box-sizing: border-box !important;
  }
}

/* ===== t961 / v23 电脑问小潘：完整生命系统 V2 舞台 + 右对话框 =====
   左栏按 /workspace/t1022-xpan-ref/ 样板移植：背景舞台、光环、三条轨道椭圆、
   粒子/神经网络画布、待机呼吸。不要再用虚线刻度圈冒充轨道。
   右栏仍是现有对话框，不要搬演示文案面板或 Idle/Thinking 四个按钮。
   左右同一圆角壳体、同一底。不改首页「问小潘」FAB。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="ai"] .page {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 16px 24px 24px !important;
    box-sizing: border-box !important;
    background:
      radial-gradient(ellipse at 50% 5%, #fff 0, #fbfaf5 55%, #f4f1e8 100%) !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-desk {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1.08fr 0.92fr !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid #fff !important;
    border-radius: 28px !important;
    box-shadow: 0 28px 90px #26364b1c !important;
    overflow: hidden !important;
    backdrop-filter: blur(18px);
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: radial-gradient(ellipse at 50% 46%, #fff 0, #fbfaf6 43%, #f5f2ea 100%) !important;
    border-right: 0 !important;
    padding: 20px 16px 88px !important;
    box-sizing: border-box !important;
    isolation: isolate;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 25%, #fff7 50%, transparent 72%);
    transform: translateX(-110%);
    animation: ag-xpan-stage-sheen 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    order: 2;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-hero,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-hero-avatar,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage img.ag-xpan-face,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage xiaopan-life,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .mascot {
    display: none !important;
    transform: none !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    position: relative;
    width: min(440px, 78%);
    aspect-ratio: 1;
    margin: 0 auto 8px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: visible;
    isolation: isolate;
    order: 1;
    z-index: 2;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0, #fff9 48%, #d9eafa55 68%, transparent 70%);
    filter: blur(9px);
    z-index: 0;
    pointer-events: none;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-halo {
    position: absolute;
    z-index: 1;
    width: 69%;
    aspect-ratio: 1;
    border: 1px solid #e9232d25;
    border-radius: 50%;
    box-shadow: 0 0 35px #e9232d0b, inset 0 0 30px #e9232d08;
    animation: ag-xpan-halo 4s ease-in-out infinite;
    pointer-events: none;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-orbit {
    position: absolute;
    z-index: 2;
    width: 76%;
    height: 35%;
    border: 1px solid #e9232d35;
    border-radius: 50%;
    transform: rotate(-28deg);
    animation: ag-xpan-orbit 17s linear infinite;
    pointer-events: none;
    background: none;
    -webkit-mask: none;
            mask: none;
    inset: auto;
    opacity: 1;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-orbit.o2 {
    width: 83%;
    height: 47%;
    border-color: #80cde955;
    transform: rotate(34deg);
    animation: ag-xpan-orbit 23s linear infinite reverse;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-orbit.o3 {
    width: 63%;
    height: 63%;
    border: 1px dashed #e9232d22;
    animation: ag-xpan-orbit 35s linear infinite;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-avatar {
    position: relative;
    width: 72%;
    aspect-ratio: 1;
    z-index: 3;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    background: #f8e8cf;
    border: 8px solid #ffffffed;
    box-shadow: 0 0 0 1px #e6ebf1, 0 12px 40px #34475b18;
    animation: ag-xpan-float 4.8s ease-in-out infinite;
    filter: drop-shadow(0 18px 22px #26364b20);
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background: #f8e8cf;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage canvas.ag-xpan-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .head-info {
    margin: 8px 0 0 !important;
    text-align: center !important;
    order: 2;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .head-name {
    font-family: var(--ag-serif) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1c242c !important;
    -webkit-text-fill-color: #1c242c !important;
    opacity: 1 !important;
    line-height: 1.3 !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .head-sub {
    margin-top: 4px !important;
    font-family: var(--ag-hei) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #606d7a !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-pill {
    position: absolute !important;
    left: 50% !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;
    z-index: 8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 17px !important;
    border: 1px solid #fff !important;
    background: #ffffffdf !important;
    border-radius: 99px !important;
    box-shadow: 0 8px 28px #24364b14 !important;
    font-family: var(--ag-hei) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--ag-ink) !important;
    backdrop-filter: blur(14px) !important;
    white-space: nowrap !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-pill i {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #e60012 !important;
    box-shadow: 0 0 0 4px #e9232d17 !important;
    flex-shrink: 0 !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    background: radial-gradient(ellipse at 50% 46%, #fff 0, #fbfaf6 43%, #f5f2ea 100%) !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .chat {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    background: transparent !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat img.ag-xpan-face,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .life-hero,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .mascot,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .xiao-avatar {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .foot {
    flex: 0 0 auto !important;
    position: relative !important;
    width: 100% !important;
  }
}
@media (min-width: 900px) and (max-height: 800px) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    width: min(360px, 70%);
  }
}
@media (min-width: 900px) and (max-height: 680px) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    width: min(292px, 64%);
  }
}
@keyframes ag-xpan-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes ag-xpan-orbit {
  to { rotate: 360deg; }
}
@keyframes ag-xpan-halo {
  0%, 100% { transform: scale(0.97); opacity: 0.65; }
  50% { transform: scale(1.035); opacity: 1; }
}
@keyframes ag-xpan-stage-sheen {
  0%, 65%, 100% { transform: translateX(-110%); }
  82% { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-avatar,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-halo,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-orbit,
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage::after {
    animation: none !important;
  }
}

/* t1060：AI 页视觉统一 —— 删除状态指示胶囊；输入框用 50% 透明白底（比纯透明更清楚、又不像纯白突兀） */
html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-pill {
  display: none !important;
}
html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .foot {
  background: transparent !important;
}
html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .foot .foot-input,
html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .foot mp-input {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* ========== 注入的官方外壳件：手机订场底栏、下单摘要、地图已选卡、¥0 开球格隐藏 ========== */
html.mp-web-site[data-ag-page="course"] .footer,
html.mp-web-site[data-ag-page="package"] .footer {
  display: none !important;
}
.ag-detail-dock { display: none; }
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="course"] .ag-detail-dock,
  html.mp-web-site[data-ag-page="package"] .ag-detail-dock,
  .ag-detail-dock {
    display: flex !important;
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 9005;
    background: var(--ag-ivory) !important;
    border-top: 1px solid var(--ag-hair) !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .ag-detail-dock .ag-dock-meta { flex: 1 1 auto; min-width: 0; }
  .ag-detail-dock .ag-dock-when {
    display: block;
    font-family: var(--ag-hei);
    font-size: 17px;
    font-weight: 600;
    color: var(--ag-ink);
    line-height: 1.35;
  }
  .ag-detail-dock .ag-dock-price {
    display: block;
    font-family: var(--ag-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ag-ink);
    margin-top: 2px;
  }
  .ag-detail-dock .ag-dock-book {
    flex: 0 0 42%;
    min-height: 56px;
    font-size: 17px;
  }
  html.mp-web-site[data-ag-page="course"] .page,
  html.mp-web-site[data-ag-page="package"] .page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 900px) {
  .ag-detail-dock { display: none !important; }
}
.ag-detail-dock.is-full .ag-dock-book { display: none !important; }

#ag-order-summary {
  background: var(--ag-ivory);
  border: 1px solid var(--ag-hair);
  padding: 22px;
  margin: 24px 0 40px;
  box-sizing: border-box;
}
#ag-order-summary .ag-sum-title {
  font-family: var(--ag-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 0 0 12px;
}
#ag-order-summary .ag-sum-name,
#ag-order-summary .ag-sum-meta,
#ag-order-summary .ag-sum-total-k,
#ag-order-summary .ag-pay-note {
  font-family: var(--ag-hei);
  font-size: 16px;
  color: var(--ag-ink);
  margin: 0 0 6px;
}
#ag-order-summary .ag-sum-total {
  font-family: var(--ag-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 8px 0 16px;
}
#ag-order-summary .ag-sum-pay { width: 100%; }
@media (min-width: 900px) {
  #ag-order-summary {
    position: sticky;
    top: 16px;
  }
}

#ag-map-picked {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 8;
  width: min(360px, calc(100% - 32px));
  background: var(--ag-ivory);
  border: 1px solid var(--ag-hair);
  padding: 16px 18px;
  box-sizing: border-box;
}
#ag-map-picked .ag-pick-name {
  font-family: var(--ag-hei);
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-ink);
  margin: 0 0 4px;
}
#ag-map-picked .ag-pick-price {
  font-family: var(--ag-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 0 0 12px;
}
#ag-map-picked .ag-pick-acts {
  display: flex;
  gap: 10px;
}
#ag-map-picked .ag-pick-acts .ag-btn-primary,
#ag-map-picked .ag-pick-acts .ag-btn-outline {
  flex: 1;
  min-height: 48px;
  font-size: 16px;
}

/* 功能：藏 ¥0 开球格（不改其余排版） */
.ag-tp-zero { display: none !important; }

.ag-check-row {
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 600;
  color: var(--ag-ink);
  margin: 8px 0 0;
}
.ag-pay-method,
.ag-coupon-moved {
  font-family: var(--ag-hei);
  font-size: 16px;
  color: var(--ag-ink);
}
.ag-pay-note {
  font-family: var(--ag-hei);
  font-size: 14px;
  color: var(--ag-muted);
  margin: 8px 0 0;
}

/* v15: 场名写全可换行，不要省略号裁字；卡片溢出不要画到邻卡 */
html.mp-web-site .cc-name,
html.mp-web-site .hot-name,
html.mp-web-site .near-name,
html.mp-web-site .hpkg-name,
html.mp-web-site .ag-card-name,
html.mp-web-site .ns-name,
html.mp-web-site .nb-name,
html.mp-web-site .item-name,
html.mp-web-site .rec-name {
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  display: block !important;
  max-height: none !important;
}
html.mp-web-site .course-card,
html.mp-web-site .hot-item,
html.mp-web-site .near-card,
html.mp-web-site .hpkg-card {
  overflow: hidden !important;
}

/* v15: 电脑宽屏和首页卡也露出「城市 + 离该市中心约 N 公里」；只做最小露出，不改字号排法 */
html.mp-web-site .course-card,
html.mp-web-site .hot-item {
  position: relative;
}
html.mp-web-site .course-card > .cc-place,
html.mp-web-site .hot-item > .cc-place {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin-top: 6px !important;
  transform: none !important;
  visibility: visible !important;
}
/* 现网电脑卡把地点放到卡片右侧同高盒子里，拉回来当页脚；不改卡片整体横竖排 */
@media (min-width: 900px) {
  html.mp-web-site .course-card > .cc-place,
  html.mp-web-site .hot-item > .cc-place {
    order: 9;
    flex: 0 0 auto !important;
    align-self: stretch !important;
  }
}

html.mp-web-site .ag-price-pending {
  white-space: normal !important;
}

/* v15: 开球表钉在 1280 视口里，可点 */
html.mp-web-site.ag-tp-open .tp-sheet,
html.mp-web-site.ag-tp-open .tp-sheet.on,
html.mp-web-site.ag-tp-open .time-sheet,
html.mp-web-site.ag-tp-open .sheet.time-sheet {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100vw !important;
  max-height: min(70vh, calc(100dvh - var(--ag-chrome, 124px) - 16px)) !important;
  overflow: auto !important;
  z-index: 10050 !important;
  transform: none !important;
}
html.mp-web-site.ag-tp-open .tp-mask,
html.mp-web-site.ag-tp-open .mask.tp-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10040 !important;
}

/* v15 / v23: 手机问小潘不要套电脑左右分栏；头像清晰，帽尖/耳朵不被官方外壳切掉 */
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="ai"] #mp-scroll {
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="ai"] .page {
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #F6F1EA !important;
  }
  html.mp-web-site[data-ag-page="ai"] .life-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    background: #F6F1EA !important;
    border: 0 !important;
    padding: 8px 16px 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  /* 官方 100px 顶栏槽和组件在手机上容易把帽尖切进外壳；改用我们自己的清晰全身头像 */
  html.mp-web-site[data-ag-page="ai"] .life-header .life-hero,
  html.mp-web-site[data-ag-page="ai"] .life-header .life-hero-avatar,
  html.mp-web-site[data-ag-page="ai"] .life-header xiaopan-life,
  html.mp-web-site[data-ag-page="ai"] .life-header img.ag-xpan-face,
  html.mp-web-site[data-ag-page="ai"] .life-header .mascot {
    display: none !important;
  }
  /* 挡住 ensureXiaopanAvatar / 生命组件漏出的 800px 原图，避免盖住清晰头像 */
  html.mp-web-site[data-ag-page="ai"] img.ag-xpan-face,
  html.mp-web-site[data-ag-page="ai"] .life-hero,
  html.mp-web-site[data-ag-page="ai"] .life-hero-avatar,
  html.mp-web-site[data-ag-page="ai"] xiaopan-life,
  html.mp-web-site[data-ag-page="ai"] .mascot {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="ai"] .msg-row .xiao-avatar.sm {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    background: #f8e8cf !important;
    box-shadow: none !important;
  }
  html.mp-web-site[data-ag-page="ai"] .msg-row .xiao-avatar.sm xiaopan-life,
  html.mp-web-site[data-ag-page="ai"] .msg-row .xiao-avatar.sm img,
  html.mp-web-site[data-ag-page="ai"] .msg-row .xiao-avatar.sm img.ag-xpan-face,
  html.mp-web-site[data-ag-page="ai"] .msg-row .xiao-avatar.sm .mascot {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
  }
  html.mp-web-site[data-ag-page="ai"] .ag-xpan-mobile-hero {
    width: min(340px, 86vw);
    aspect-ratio: 1;
    margin: 0 auto;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
    background: #f8e8cf;
    border: 6px solid #ffffffed;
    box-shadow: 0 0 0 1px #e6ebf1, 0 10px 28px #34475b18;
  }
  html.mp-web-site[data-ag-page="ai"] .ag-xpan-mobile-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    background: #f8e8cf;
  }
  html.mp-web-site[data-ag-page="ai"] .life-header .head-info {
    margin: 10px 0 0 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
  }
  html.mp-web-site[data-ag-page="ai"] .life-header .head-name {
    font-family: var(--ag-serif) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1c242c !important;
    -webkit-text-fill-color: #1c242c !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  html.mp-web-site[data-ag-page="ai"] .life-header .head-sub {
    margin-top: 2px !important;
    font-family: var(--ag-hei) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #606d7a !important;
    -webkit-text-fill-color: #606d7a !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

/* v15: 地图进出和换目的地都保持全屏（不收成 1152 内容带） */
html.mp-web-site.ag-map-full #mp-app,
html.mp-web-site[data-ag-page="map"] #mp-app,
html.mp-web-site:has(.themap) #mp-app {
  height: 100% !important;
  overflow: hidden !important;
}
html.mp-web-site.ag-map-full #mp-scroll,
html.mp-web-site[data-ag-page="map"] #mp-scroll,
html.mp-web-site:has(.themap) #mp-scroll {
  height: 100% !important;
  overflow: hidden !important;
}
html.mp-web-site.ag-map-full .page,
html.mp-web-site[data-ag-page="map"] .page,
html.mp-web-site .page:has(.themap) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 100% !important;
  min-height: calc(100dvh - var(--ag-chrome, 124px)) !important;
}
html.mp-web-site.ag-map-full .mp-page:has(.themap),
html.mp-web-site.ag-map-full .themap,
html.mp-web-site[data-ag-page="map"] .themap,
html.mp-web-site .page:has(.themap) .themap {
  width: 100% !important;
  max-width: none !important;
  height: calc(100dvh - var(--ag-chrome, 124px)) !important;
  min-height: calc(100dvh - var(--ag-chrome, 124px)) !important;
}

/* v15: 首页价钱统一成 ¥N，去掉另挂的「元」；地点行可换行露出离市中心距离 */
html.mp-web-site .price.ag-yen .yuan,
html.mp-web-site .price .yuan[data-ag-hide-unit] {
  display: none !important;
  font-size: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  color: transparent !important;
}
html.mp-web-site .hot-city,
html.mp-web-site .ag-card-dist,
html.mp-web-site .ag-card-loc {
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  word-break: break-word !important;
}

/* v16: 列表滚动时顶栏+筛选条压盖高度；场名不要钻到筛选条下面 */
html.mp-web-site[data-ag-page="courses"] #mp-scroll {
  scroll-padding-top: var(--ag-list-obstruct, 180px);
}
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] .list {
    scroll-snap-type: y proximity;
    scroll-padding-top: 8px;
  }
  html.mp-web-site[data-ag-page="courses"] .course-card {
    scroll-snap-align: start;
    scroll-margin-top: 8px;
  }
  html.mp-web-site[data-ag-page="courses"] .search-top,
  html.mp-web-site[data-ag-page="courses"] .search-bar,
  html.mp-web-site[data-ag-page="courses"] .search-card,
  html.mp-web-site[data-ag-page="courses"] .sh-row {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #f7f8fa;
  }
}

/* v16: 不要让官方 ¥-- 占位先露出来；等待态走文案 */
html.mp-web-site .ag-price-pending {
  white-space: normal !important;
}

/* v19: 撤掉整页骨架屏。骨架同样看不见列表，验收过不了，不能再用 ::before 顶掉列表。 */
/* 开球层打开时，手机订场条要露在层上面，不能被 tp-sheet(z=10050) 挡住。 */
@media (max-width: 899px) {
  html.mp-web-site.ag-tp-open #ag-detail-dock {
    z-index: 10060 !important;
  }
  html.mp-web-site.ag-tp-open .tp-sheet,
  html.mp-web-site.ag-tp-open time-picker .tp-sheet,
  html.mp-web-site.ag-tp-open .time-sheet,
  html.mp-web-site.ag-tp-open .sheet.time-sheet {
    bottom: 84px !important;
    max-height: calc(100dvh - var(--ag-chrome, 124px) - 84px) !important;
  }
}

/* 硬刷新后、官方卡还没到时，用已缓存的场名/价钱/封面先画回卡面（不是灰框米条） */
html.mp-web-site #ag-cached-list {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ag-max, 1152px);
  margin: 0 auto;
  padding: 8px 24px 24px;
}
html.mp-web-site.ag-has-official-list #ag-cached-list {
  display: none !important;
}
html.mp-web-site #ag-cached-list .ag-cache-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  /* 🔴 对齐官方列表左缘（cf-rail 252 + gap 24），避免缓存卡(全宽)→官方列表(缩窄)的宽度跳变 */
  margin-left: 276px;
}
@media (max-width: 899px) {
  html.mp-web-site #ag-cached-list {
    padding: 8px 12px 24px;
  }
  html.mp-web-site #ag-cached-list .ag-cache-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  html.mp-web-site #ag-cached-list .ag-cache-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  html.mp-web-site #ag-cached-list .ag-cache-img {
    width: 112px;
    height: 84px;
    flex: 0 0 112px;
  }
}
html.mp-web-site #ag-cached-list .ag-cache-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
html.mp-web-site #ag-cached-list .ag-cache-img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: #e8eaed;
}
html.mp-web-site #ag-cached-list .ag-cache-body {
  padding: 10px 12px 12px;
}
html.mp-web-site #ag-cached-list .ag-cache-price {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
html.mp-web-site #ag-cached-list .ag-cache-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}

/* 列表图不要在 src 重绑时把格子塌成白底 */
html.mp-web-site[data-ag-page="courses"] .course-card .cc-img,
html.mp-web-site[data-ag-page="courses"] .course-card mp-image.cc-img {
  background-color: #e8eaed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== v20：首页底色统一现网 #F4F1EB + 宽屏列表一行一场 ==========
   只改底色边界和 ≥900 列表卡排布。不另做一套新版样式。
   不把首页奶油底套到列表等其它页。390 列表仍走现有紧凑横卡。
   搜索卡 / 幻灯片 / 推荐卡白底和封面不改。 */

/* ---- 1) 各页地面：顶栏 / 预览条 / 两侧宽边跟该页现网底走 ---- */
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) {
  --ag-page-ground: #F4F1EB;
}
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) {
  --ag-page-ground: #F5F6F7;
}
html.mp-web-site:is(
  [data-ag-page="travel"],
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F5F6F7;
}
html.mp-web-site:is(
  [data-ag-page="course"],
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F5F6F7;
}
html.mp-web-site:is(
  [data-ag-page="package"],
  :has(.mp-page[data-route="pages/package/detail"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F5F6F7;
}
html.mp-web-site:is(
  [data-ag-page="about"],
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F6F8F7;
}
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/service/service"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F6F1EA;
}
html.mp-web-site:is(
  [data-ag-page="fill"],
  :has(.mp-page[data-route="pages/booking/fill"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F5F6F7;
}

/* 顶栏、预览条、页脚跟当前页地面；去掉顶栏下 khaki #CFCBAF 细线，避免显眼色带 */
html.mp-web-site:is(
  [data-ag-page="home"],
  [data-ag-page="courses"],
  [data-ag-page="travel"],
  [data-ag-page="course"],
  [data-ag-page="package"],
  [data-ag-page="about"],
  [data-ag-page="ai"],
  [data-ag-page="fill"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/package/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/booking/fill"]:not(.mp-page-hidden))
) #ag-preview-strip,
html.mp-web-site:is(
  [data-ag-page="home"],
  [data-ag-page="courses"],
  [data-ag-page="travel"],
  [data-ag-page="course"],
  [data-ag-page="package"],
  [data-ag-page="about"],
  [data-ag-page="ai"],
  [data-ag-page="fill"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/package/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/booking/fill"]:not(.mp-page-hidden))
) #ag-site-header {
  background: var(--ag-page-ground, #F5F6F7) !important;
  border-bottom-color: transparent !important;
}
html.mp-web-site:is(
  [data-ag-page="home"],
  [data-ag-page="courses"],
  [data-ag-page="travel"],
  [data-ag-page="course"],
  [data-ag-page="package"],
  [data-ag-page="about"],
  [data-ag-page="ai"],
  [data-ag-page="fill"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/package/detail"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/booking/fill"]:not(.mp-page-hidden))
) #ag-site-footer {
  background: var(--ag-page-ground, #F5F6F7) !important;
  border-top-color: transparent !important;
}

/* 首页：两侧宽边、mp-page 灰底、「附近推荐」等整块模块连成一块 #F4F1EB */
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) #mp-scroll,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .mp-page.pages-home-home,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .mp-page[data-route="pages/home/home"],
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .mp-page[data-route="pages/home/home"] .page,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .pages-home-home > .page,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .sec-head,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .hot-grid,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .hot-empty,
html.mp-web-site:is(
  [data-ag-page="home"],
  :has(.mp-page[data-route="pages/home/home"]:not(.mp-page-hidden)),
  :has(.pages-home-home:not(.mp-page-hidden))
) .hero {
  background-color: #F4F1EB !important;
  background-image: none;
}

/* 列表页两侧宽边也跟现网 #F5F6F7，不要被首页奶油底或顶栏象牙色带出来 */
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) #mp-scroll,
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) .mp-page.pages-courses-courses,
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) .mp-page[data-route="pages/courses/courses"],
html.mp-web-site:is(
  [data-ag-page="courses"],
  :has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)),
  :has(.pages-courses-courses:not(.mp-page-hidden))
) .mp-page[data-route="pages/courses/courses"] .page {
  background-color: #F5F6F7 !important;
}

/* 套票 / 详情：两侧跟该页现网灰底，顶栏已在上方跟 --ag-page-ground */
html.mp-web-site:is(
  [data-ag-page="travel"],
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="travel"],
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="travel"],
  :has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden))
) #mp-scroll,
html.mp-web-site:is(
  [data-ag-page="course"],
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="course"],
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="course"],
  :has(.mp-page[data-route="pkgcourse/pages/course/detail"]:not(.mp-page-hidden))
) #mp-scroll {
  background-color: #F5F6F7 !important;
}

/* ---- 2) 宽屏 ≥900 球场列表：右栏一行一场，左大图右信息；左栏地图入口+筛选不动 ---- */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .list.mp-wide-grid,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .cf-main .list.mp-wide-grid,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .cf-main .list.mp-wide-grid,
  html.mp-web-site #mp-app.mp-wide-app .pages-courses-courses .list.mp-wide-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .pages-courses-courses .list.mp-wide-grid .course-card {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    flex-direction: unset !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 210px;
    padding: 0 !important;
  }

  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > mp-image.cc-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > mp-image.cc-img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    height: 100% !important;
    min-height: 210px !important;
    flex: none !important;
    border-radius: 0 !important;
    align-self: stretch !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-img img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-img img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > mp-image.cc-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-badge,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-badge {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 24px 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-place,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-place {
    grid-column: 2;
    grid-row: 2;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 24px 20px !important;
    border-top: 0 !important;
    flex: none !important;
  }

  /* 场名写全，价钱/位置从容可读 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name {
    font-size: 18px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-pnum,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-price .num,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-pnum {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  /* 定位 / 车程 icon 与同行字号一样大（1em），不要小于字 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive {
    font-size: 14px !important;
    line-height: 1.45 !important;
    align-items: center !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place mp-image,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .ic,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place mp-image,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .ic,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place img {
    width: 1em !important;
    height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    flex: 0 0 1em !important;
    font-size: 1em !important;
  }
}

/* 硬刷新缓存列表：电脑默认就一行一场，避免先闪三列方卡再变成横条。390 仍紧凑横卡。 */
html.mp-web-site #ag-cached-list .ag-cache-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  html.mp-web-site #ag-cached-list .ag-cache-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-card {
    display: block !important;
    min-height: 0;
    overflow: hidden;
  }
  html.mp-web-site #ag-cached-list .ag-cache-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 148px !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-body {
    padding: 10px 12px 12px !important;
    display: block;
  }
  html.mp-web-site #ag-cached-list .ag-cache-price {
    font-size: 22px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-name {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-top: 8px !important;
  }
}

/* v20 补：问小潘现网页底实测是 #F6F1EA（不是 wxss 里的 #FDF3EE），顶栏和两侧跟该页走 */
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/service/service"]:not(.mp-page-hidden))
) {
  --ag-page-ground: #F6F1EA;
}
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/service/service"]:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/service/service"]:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)),
  :has(.mp-page[data-route="pages/service/service"]:not(.mp-page-hidden))
) #mp-scroll {
  background-color: #F6F1EA !important;
}

html.mp-web-site:is(
  [data-ag-page="about"],
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden))
) body,
html.mp-web-site:is(
  [data-ag-page="about"],
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden))
) #mp-app,
html.mp-web-site:is(
  [data-ag-page="about"],
  :has(.mp-page[data-route="pages/about/about"]:not(.mp-page-hidden))
) #mp-scroll {
  background-color: #F6F8F7 !important;
}

/* v20 补：390 缓存列表必须压过后面的默认 148px 方图规则，保持紧凑横卡，不要电脑大横卡 */
@media (max-width: 899px) {
  html.mp-web-site #ag-cached-list .ag-cache-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-card {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-img {
    width: 112px !important;
    max-width: 112px !important;
    min-width: 112px !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    flex: 0 0 112px !important;
    object-fit: cover !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-body {
    padding: 10px 12px 12px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-price { font-size: 16px !important; }
  html.mp-web-site #ag-cached-list .ag-cache-name { font-size: 15px !important; margin-top: 4px !important; }
}

/* ========== v20 老潘三条：硬刷新顶栏占位、封面保住、开球格选中态 ==========
   不要整页骨架。::before 只占约 124px 顶栏，列表区仍露出来。 */

/* 路由还没标上时，硬刷新常见列表灰底；首页 :has 会改成 #F4F1EB。 */
html.mp-web-site {
  --ag-page-ground: #F5F6F7;
}

/* CSS 已到、JS 还没画出 #ag-site-header：用顶栏占位（预览条文案 + logo），盖住白条。不要整页骨架。 */
html.mp-web-site:not(.ag-chrome-ready)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ag-strip);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--ag-page-ground, #F5F6F7);
  color: var(--ag-ink);
  font-family: var(--ag-hei);
  font-size: 16px;
  line-height: 1.2;
  z-index: 10020;
  pointer-events: none;
}
html.mp-web-site:not(.ag-chrome-ready)::after {
  content: "";
  position: fixed;
  top: var(--ag-strip);
  left: 0;
  right: 0;
  height: var(--ag-header);
  background-color: var(--ag-page-ground, #F5F6F7);
  background-image: url("/__preview__/img/logo.png");
  background-repeat: no-repeat;
  background-position: 24px center;
  background-size: auto 36px;
  z-index: 10020;
  pointer-events: none;
}
html.mp-web-site:not(.ag-chrome-ready) #mp-app,
html.mp-web-site:not(.ag-chrome-ready) #mp-scroll {
  background-color: var(--ag-page-ground, #F5F6F7) !important;
}

/* 电脑开球层铺满视口后会盖住右侧「订场」。层打开时露出底栏订场，层底留 84px。 */
@media (min-width: 900px) {
  html.mp-web-site.ag-tp-open #ag-detail-dock,
  html.mp-web-site.ag-tp-open .ag-detail-dock {
    display: flex !important;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10060 !important;
    background: var(--ag-ivory, #FAFBF5) !important;
    border-top: 1px solid var(--ag-hair, #CFCBAF) !important;
    padding: 10px 24px !important;
    align-items: center !important;
    gap: 16px !important;
  }
  html.mp-web-site.ag-tp-open #ag-detail-dock .ag-dock-when {
    display: block;
    font-family: var(--ag-hei);
    font-size: 17px;
    font-weight: 600;
    color: var(--ag-ink);
  }
  html.mp-web-site.ag-tp-open #ag-detail-dock .ag-dock-price {
    display: block;
    font-family: var(--ag-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ag-ink);
  }
  html.mp-web-site.ag-tp-open #ag-detail-dock .ag-dock-book {
    flex: 0 0 240px;
    min-height: 56px;
    font-size: 17px;
  }
  html.mp-web-site.ag-tp-open .tp-sheet,
  html.mp-web-site.ag-tp-open time-picker .tp-sheet,
  html.mp-web-site.ag-tp-open .time-sheet,
  html.mp-web-site.ag-tp-open .sheet.time-sheet {
    bottom: 84px !important;
    max-height: calc(100dvh - var(--ag-chrome, 124px) - 84px) !important;
  }
}

/* 官方卡刚到、img 还没 load：露出宿主上已缓存的 background-image，不要先闪灰白空框。 */
html.mp-web-site .course-card .cc-img[style*="background-image"] img.ag-cover-pending,
html.mp-web-site .course-card mp-image.cc-img[style*="background-image"] img.ag-cover-pending,
html.mp-web-site .hot-item[style*="background-image"] img.ag-cover-pending,
html.mp-web-site .hot-card[style*="background-image"] img.ag-cover-pending {
  opacity: 0 !important;
}

/* 选中的开球格要一眼能看出（06:00 已选）。 */
html.mp-web-site .tp-slot.on,
html.mp-web-site .tp-time.on,
html.mp-web-site .tp-slot.sel,
html.mp-web-site .tp-time.sel,
html.mp-web-site .tp-slot[data-ag-picked="1"],
html.mp-web-site .tp-time[data-ag-picked="1"] {
  border-color: #191919 !important;
  box-shadow: inset 0 0 0 2px #191919 !important;
  background-color: #EAF3EC !important;
  outline: 2px solid #191919 !important;
  outline-offset: -2px !important;
  position: relative !important;
  z-index: 1 !important;
}


/* ========== v21：电脑单卡右下价钱 + 单独「元」+ 英文放大 + 评分下全部标签 ==========
   只改宽屏 ≥900 球场列表（含 #ag-cached-list 电脑卡）。390 仍用现在的紧凑横卡，
   不要把右下价钱、「元」、放大英文或评分下标签排版套过去。
   单位「元」单独成一块，跟在加粗的 ¥金额后面，不要写进金额字符串，也不要写成「起」。
   这一版不做货币切换开关，不改金额、不改汇率。
   未来优先加入的币种（先不要做成界面）：美元、欧元、港币、英镑、日元、韩元、泰铢、新西兰元、澳元。
*/

@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .pages-courses-courses .list.mp-wide-grid .course-card {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-rows: minmax(210px, auto) !important;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > mp-image.cc-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > mp-image.cc-img {
    grid-column: 1;
    grid-row: 1;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-badge,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-badge {
    grid-column: 1;
    grid-row: 1;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body {
    grid-column: 2;
    grid-row: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto auto minmax(8px, 1fr) auto auto !important;
    align-content: stretch !important;
    justify-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 210px !important;
    margin: 0 !important;
    padding: 20px 24px 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name-row,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name-row {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0 !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-en,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-en {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-top: 4px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    word-break: break-word !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-stars,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-stars {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .ag-card-tags,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .ag-card-tags {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-width: 0;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .ag-card-tag,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .ag-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #2e5d3f;
    line-height: 1.4;
    padding: 2px 8px;
    border: 1px solid #d5e6d9;
    border-radius: 4px;
    background: #f4f8f5;
    white-space: nowrap;
  }

  /* 官方 .cc-price-r 用 order:-1 把价钱抬到右栏顶部；电脑卡改回右下，取消负 order */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price {
    display: contents !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price-r,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price-r {
    grid-column: 2 !important;
    grid-row: 6 !important;
    order: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: end !important;
    align-self: end !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-pnum,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price .num,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-pnum,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price .num {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .ag-price-unit,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .ag-price-unit {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #222 !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    flex: none !important;
    white-space: nowrap !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-mid,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-mid {
    grid-column: 2 !important;
    grid-row: 7 !important;
    justify-self: end !important;
    align-self: start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 6px 0 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-quote,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-quote {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* 地点仍在右栏底左。JS 把它收进 .cc-body 后走 in-body 规则；没收进时叠在右栏底部并给价钱留空 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-place,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-place {
    grid-column: 2;
    grid-row: 1;
    align-self: end !important;
    justify-self: start !important;
    width: auto !important;
    max-width: calc(100% - 168px) !important;
    margin: 0 !important;
    padding: 0 24px 16px !important;
    z-index: 2;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body > .cc-place,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body > .cc-place {
    grid-column: 1 !important;
    grid-row: 6 / span 2 !important;
    align-self: end !important;
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 12px 0 0 !important;
    z-index: auto;
  }

  /* 硬刷新缓存列表：同一套右下加粗价钱 + 单独「元」+ 包含图标 */
  html.mp-web-site #ag-cached-list .ag-cache-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto minmax(8px, 1fr) auto auto !important;
    align-content: stretch !important;
    padding: 20px 24px 16px !important;
    min-height: 210px !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-name {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-place {
    grid-column: 1;
    grid-row: 3 / span 2;
    align-self: end;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
    padding-right: 12px;
  }
  html.mp-web-site #ag-cached-list .ag-cache-corner {
    grid-column: 2;
    grid-row: 3 / span 2;
    justify-self: end;
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
  }
  html.mp-web-site #ag-cached-list .ag-cache-price {
    display: inline-block;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #222;
  }
  html.mp-web-site #ag-cached-list .ag-cache-corner .ag-cache-price,
  html.mp-web-site #ag-cached-list .ag-cache-corner .ag-price-unit {
    display: inline-block !important;
    vertical-align: baseline;
  }
  html.mp-web-site #ag-cached-list .ag-cache-corner {
    /* price + 元 on first row, icons below */
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    column-gap: 4px;
    row-gap: 6px;
  }
  html.mp-web-site #ag-cached-list .ag-price-unit {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #222 !important;
    margin: 0 !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-facs {
    flex: 1 0 100%;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
  }
  html.mp-web-site #ag-cached-list .ag-cache-facs img {
    width: 22px;
    height: 20px;
    object-fit: contain;
    display: block;
  }
}

/* 390：不要套电脑卡右下价钱 / 「元」 / 评分下标签 / 放大英文 */
@media (max-width: 899px) {
  html.mp-web-site .ag-price-unit,
  html.mp-web-site .ag-card-tags,
  html.mp-web-site .ag-card-tag {
    display: none !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
    padding: 10px 12px 12px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-corner {
    order: -1;
    display: block !important;
    flex: none !important;
    max-width: none !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-price {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-name {
    font-size: 15px !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-place,
  html.mp-web-site #ag-cached-list .ag-cache-facs,
  html.mp-web-site #ag-cached-list .ag-price-unit {
    display: none !important;
  }
}


/* ========== v22：电脑列表卡底左定位/车程 icon 对齐 + 左侧照片统一 280×280 ==========
   只改宽屏 ≥900（按 1280 验收）。390 仍用现在的紧凑横卡（约 112×136），
   不要把电脑大图尺寸或这刀的 icon 排法套过去。
   根因：官方 icon size="20rpx" 写在 mp-image 内联样式上；行上又给了 line-height:1.45，
   内层 .ic 是 inline-block + vertical-align，图标相对 14px 文字中线偏下约 5px，
   再被 .cc-body / .cc-place 的 overflow:hidden 切底，看起来既小又不齐。
   改法：这一行 inline-flex + align-items:center + line-height:1；图标各层（含
   内层 mp-image / img / svg）锁定 1em，display 不用 inline，取消 baseline 空隙，
   transform/background-size 不再缩小。照片在现有 280 宽量级上把高也锁成 280，
   object-fit / background-size: cover，不 stretch。#ag-cached-list 电脑卡同样处理。
*/
@media (min-width: 900px) {
  /* ---- 照片：官方卡与缓存卡同一宽高，cover 不变形 ---- */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .pages-courses-courses .list.mp-wide-grid .course-card {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-rows: minmax(280px, auto) !important;
    min-height: 280px !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > mp-image.cc-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > mp-image.cc-img {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    flex: none !important;
    align-self: start !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-img img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > mp-image.cc-img img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-img img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > mp-image.cc-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body {
    min-height: 280px !important;
  }

  html.mp-web-site #ag-cached-list .ag-cache-card {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    min-height: 280px !important;
    align-items: start !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-img,
  html.mp-web-site #ag-cached-list .ag-cache-card > .ag-cache-img,
  html.mp-web-site #ag-cached-list .ag-cache-card > img.ag-cache-img,
  html.mp-web-site #ag-cached-list .ag-cache-card > div.ag-cache-img {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    flex: none !important;
    align-self: start !important;
    object-fit: cover !important;
    object-position: center center !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-body {
    min-height: 280px !important;
  }

  /* ---- 底左地点行：icon 与字同一水平中线，可视大小 = 同行 1em ---- */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive,
  html.mp-web-site #ag-cached-list .ag-cache-place,
  html.mp-web-site #ag-cached-list .ag-cache-place .cc-place,
  html.mp-web-site #ag-cached-list .ag-cache-place .cc-dist,
  html.mp-web-site #ag-cached-list .ag-cache-place .cc-drive {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .cc-loc,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .cc-loc,
  html.mp-web-site #ag-cached-list .ag-cache-place .cc-loc {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place mp-image,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .ic,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place svg,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist mp-image,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist .ic,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist svg,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive mp-image,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive .ic,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive svg,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place mp-image,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .ic,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place svg,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist mp-image,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist .ic,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist svg,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive mp-image,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive .ic,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive svg,
  html.mp-web-site #ag-cached-list .ag-cache-place .mp-custom-components-icon-index,
  html.mp-web-site #ag-cached-list .ag-cache-place mp-image,
  html.mp-web-site #ag-cached-list .ag-cache-place .ic,
  html.mp-web-site #ag-cached-list .ag-cache-place img,
  html.mp-web-site #ag-cached-list .ag-cache-place svg {
    display: block !important;
    box-sizing: border-box !important;
    width: 1em !important;
    height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    flex: 0 0 1em !important;
    font-size: inherit !important;
    line-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    object-position: center center !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: visible !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-dist .mp-custom-components-icon-index,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-drive .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-place .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-dist .mp-custom-components-icon-index,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-drive .mp-custom-components-icon-index,
  html.mp-web-site #ag-cached-list .ag-cache-place .mp-custom-components-icon-index {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }
}


/* ========== v23 地图：收起列表贴回右栏左缘；右侧卡片加大、不要那么挤 ==========
   只作用于 ≥900。390 仍用底部抽屉，不套电脑右栏 / 不套本栏大卡。
   --ag-map-side 同时控制右栏宽和按钮 right，中间 0 缝。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="map"] .side-toggle,
  html.mp-web-site[data-ag-page="map"] .ag-open-list,
  html.mp-web-site #mp-app.mp-home-chrome .mp-page[data-route="pages/map/map"] .side-toggle {
    position: absolute !important;
    left: auto !important;
    right: var(--ag-map-side, 440px) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: auto !important;
    min-height: 132px !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: var(--ag-ink, #191919) !important;
    -webkit-text-fill-color: var(--ag-ink, #191919) !important;
    border: 1px solid #d7dee6 !important;
    border-right: 0 !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: -3px 0 10px rgba(16, 24, 40, 0.08) !important;
    font-family: var(--ag-hei) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.2 !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  html.mp-web-site[data-ag-page="map"] .side-toggle .ag-toggle-txt,
  html.mp-web-site #mp-app.mp-home-chrome .mp-page[data-route="pages/map/map"] .side-toggle .ag-toggle-txt {
    display: inline-block !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    letter-spacing: 0.12em !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    color: inherit !important;
  }
  html.mp-web-site[data-ag-page="map"] .side-toggle .st-ar,
  html.mp-web-site[data-ag-page="map"] .side-toggle .st-ar {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="map"] .side-closed .side-toggle,
  html.mp-web-site[data-ag-page="map"] .page.side-closed .side-toggle,
  html.mp-web-site[data-ag-page="map"] .side-toggle.closed,
  html.mp-web-site[data-ag-page="map"] .side-closed .ag-open-list,
  html.mp-web-site #mp-app.mp-home-chrome .mp-page[data-route="pages/map/map"] .side-toggle.closed,
  html.mp-web-site #mp-app.mp-home-chrome .mp-page[data-route="pages/map/map"] .page.side-closed .side-toggle {
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-right: 1px solid #d7dee6 !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: -4px 0 14px rgba(16, 24, 40, 0.16) !important;
  }

  /* 右侧列表卡：加大缩略图、字号、内边距；场名写全可换行；不要做成 280 方图单卡 */
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-item,
  html.mp-web-site[data-ag-page="map"] .ns-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 16px 16px !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-img,
  html.mp-web-site[data-ag-page="map"] .ns-img {
    width: 148px !important;
    height: 124px !important;
    min-width: 148px !important;
    min-height: 124px !important;
    max-width: 148px !important;
    max-height: 124px !important;
    flex: 0 0 148px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center center !important;
    background-size: cover !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-b,
  html.mp-web-site[data-ag-page="map"] .ns-b {
    min-width: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-top: 2px !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-name,
  html.mp-web-site[data-ag-page="map"] .ns-name {
    font-family: var(--ag-hei) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ag-ink, #191919) !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    display: block !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-rate,
  html.mp-web-site[data-ag-page="map"] .ns-rate,
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-rv,
  html.mp-web-site[data-ag-page="map"] .ns-rv {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-city,
  html.mp-web-site[data-ag-page="map"] .ns-city,
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-city-n,
  html.mp-web-site[data-ag-page="map"] .ns-city-n {
    font-family: var(--ag-hei) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  html.mp-web-site[data-ag-page="map"] #mp-app .ns-price,
  html.mp-web-site[data-ag-page="map"] .ns-price {
    font-family: var(--ag-serif) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ag-ink, #191919) !important;
    line-height: 1.2 !important;
  }
}

/* 390 地图：明确保持底部抽屉，不要出现电脑右栏或竖排收起按钮 */
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="map"] .near-side {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
  }
  html.mp-web-site[data-ag-page="map"] .side-toggle,
  html.mp-web-site[data-ag-page="map"] .ag-open-list {
    display: none !important;
  }
}

/* ========== v24：硬刷新外壳、粘性场名、价格包含图标、开球选中、缓存列表置顶 ========== */

/* JS 还没把顶栏插上、或官方把顶栏卸掉时，先画出外壳，避免只剩预览条 + 灰底空页 */
html.mp-web-site:not(:has(#ag-preview-strip))::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10020;
  height: var(--ag-strip, 36px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #F3F1E6;
  color: var(--ag-ink, #191919);
  border-bottom: 1px solid var(--ag-hair, #CFCBAF);
  font-family: var(--ag-hei);
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}
html.mp-web-site:not(:has(#ag-site-header))::after {
  content: "";
  position: fixed;
  top: var(--ag-strip, 36px);
  left: 0; right: 0;
  z-index: 10010;
  height: var(--ag-header, 88px);
  background: rgba(250, 251, 245, 0.96);
  border-bottom: 1px solid var(--ag-hair, #CFCBAF);
  pointer-events: none;
}

/* 官方卡还没就绪时，缓存真卡面固定在外壳下面，不被空的 #mp-app 盖住 */
html.mp-web-site #ag-cached-list {
  position: fixed !important;
  top: var(--ag-chrome, 124px) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 40 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 24px 24px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #F5F6F7 !important;
}
html.mp-web-site #ag-cached-list .ag-cache-grid {
  width: 100%;
  max-width: calc(var(--ag-max, 1152px) - 276px);
  margin-left: 276px;
  margin-right: auto;
}
html.mp-web-site.ag-has-official-list #ag-cached-list {
  display: none !important;
}
@media (max-width: 899px) {
  html.mp-web-site #ag-cached-list {
    padding: 8px 12px 24px !important;
  }
}

@media (min-width: 900px) {
  /* 卡还露在屏里时，中文场名贴在粘性筛选条下面，不要被挡住 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .pages-courses-courses .list.mp-wide-grid .course-card {
    overflow: visible !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body {
    overflow: visible !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name-row,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name-row,
  html.mp-web-site #ag-cached-list .ag-cache-name {
    position: sticky !important;
    top: var(--ag-sticky-name-top, 0px) !important;
    z-index: 5 !important;
    background: #fff !important;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name {
    background: #fff !important;
  }

  /* 价格包含图标跟在价钱下面（同一右下角），不要留在评分旁，也不要用下场旗顶替 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-mid,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-mid {
    display: contents !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs {
    grid-column: 2 !important;
    grid-row: 7 !important;
    justify-self: end !important;
    align-self: start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 4px 0 0 !important;
    width: auto !important;
    max-width: 100% !important;
    z-index: 2;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs .qie,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs .qie-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs .qie,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs .qie-img,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs img {
    width: 22px !important;
    height: 20px !important;
    min-width: 22px !important;
    min-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price-r,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price-r {
    grid-row: 6 !important;
  }
}

/* 390 不要改电脑卡这块排版（价格包含 / 粘性场名 / 「元」） */
@media (max-width: 899px) {
  html.mp-web-site .cc-name-row,
  html.mp-web-site .cc-name {
    position: static !important;
    top: auto !important;
  }
}

/* ========== v24：问小潘左栏舞台居中常驻 ==========
   宽屏左栏（头像、光环、轨道、粒子、待机呼吸）在左栏可视区域里水平垂直居中，
   做成不随右栏对话滚动的常驻层。左右仍同一圆角壳、同一底。
   不要改右栏现有对话框，不要改首页「问小潘」FAB。
   390 仍上头像下对话，不要左右分栏；帽子不要被顶栏挡住。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="ai"] #mp-scroll,
  html.mp-web-site[data-ag-page="ai"] #mp-page-host,
  html.mp-web-site[data-ag-page="ai"] .mp-page:not(.mp-page-hidden) {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="ai"] .page {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-desk {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    align-items: stretch !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  /* 左栏自身不随右栏变高；sticky 兜底，舞台内容在左栏视口正中 */
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage {
    position: sticky !important;
    top: 0 !important;
    align-self: stretch !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    container-type: size;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    position: relative !important;
    width: min(440px, 78%, 78cqh) !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }
  /* 场名从文档流拿开，避免把头像顶离垂直中心 */
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-header {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(50% + min(220px, 39cqw, 39cqh) + 8px) !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px !important;
    z-index: 6 !important;
    overflow: visible !important;
    pointer-events: none;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .head-info {
    margin: 0 !important;
    pointer-events: auto;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-pill {
    bottom: 18px !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat .chat {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}
@media (min-width: 900px) and (max-height: 800px) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    width: min(360px, 70%, 70cqh) !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-header {
    top: calc(50% + min(180px, 35cqw, 35cqh) + 6px) !important;
  }
}
@media (min-width: 900px) and (max-height: 680px) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .ag-xpan-stage-art {
    width: min(292px, 64%, 64cqh) !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage .life-header {
    top: calc(50% + min(146px, 32cqw, 32cqh) + 4px) !important;
  }
}

/* 390：不要左右分栏；头像清晰，帽尖不要被顶栏挡住 */
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="ai"] .life-header,
  html.mp-web-site[data-ag-page="ai"] .ag-xpan-mobile-hero {
    overflow: visible !important;
  }
  html.mp-web-site[data-ag-page="ai"] .ag-xpan-mobile-hero {
    margin-top: 6px;
  }
}

/* ========== v24：电脑已登录顶栏只留头像下拉 ==========
   宽屏已登录：右侧不再并排露出「我的 / 订单 / 客服 / 退出登录」文字，只留头像。
   点头像下拉四项顺序固定：我的、订单、客服、退出登录。
   未登录保持「登录」入口，不画已登录菜单。
   390 不改成这套电脑下拉。不改首页 FAB，不改问小潘左栏舞台。 */
#ag-site-header .ag-account { display: none; }
#ag-site-header .ag-avatar-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ag-hair, #CFCBAF);
  border-radius: 50%;
  background: #f3f1ea;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#ag-site-header .ag-avatar-btn img,
#ag-site-header .ag-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #f3f1ea;
}
#ag-site-header .ag-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--ag-hair, #CFCBAF);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(25, 25, 25, 0.12);
  padding: 6px 0;
  z-index: 10030;
}
#ag-site-header .ag-account.is-open .ag-account-menu,
#ag-site-header .ag-account-menu[data-open="1"] {
  display: block;
}
#ag-site-header .ag-account-menu a,
#ag-site-header .ag-account-menu .ag-logout {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font-family: var(--ag-hei);
  font-size: 16px;
  font-weight: 500;
  color: var(--ag-ink, #191919);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}
#ag-site-header .ag-account-menu a:hover,
#ag-site-header .ag-account-menu .ag-logout:hover {
  background: #F4F1EB;
  color: var(--ag-ink, #191919);
}
#ag-site-header .ag-account-menu .ag-logout {
  border-top: 1px solid var(--ag-hair, #CFCBAF);
  margin-top: 4px;
  color: #8a1f1f;
  font-weight: 600;
}

@media (min-width: 900px) {
  #ag-site-header.ag-logged-in .ag-login { display: none !important; }
  #ag-site-header.ag-logged-in .ag-account {
    display: block;
    position: relative;
  }
}

/* 390 保持现有菜单按钮+抽屉，不要改成电脑头像下拉 */
@media (max-width: 899px) {
  #ag-site-header .ag-account,
  #ag-site-header.ag-logged-in .ag-account { display: none !important; }
  #ag-site-header.ag-logged-in .ag-login { display: none !important; }
}

/* ========== v24：电脑列表滚动锁在 .list，场名贴筛选条 ==========
   不要让 #mp-scroll 把整页（含卡片）一起滚走，否则 position:sticky 的中文场名
   会跟着离开视口。宽屏只让 .list 自己滚，场名 top:0 即贴在筛选条下。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-scroll,
  html.mp-web-site[data-ag-page="courses"] #mp-page-host,
  html.mp-web-site[data-ag-page="courses"] .mp-page:not(.mp-page-hidden) {
    overflow: hidden !important;
    max-height: 100% !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body {
    overflow: visible !important;
  }
}

/* ========== v25：登录页全屏布局 ==========
   Peter 2026-11-16：登录页面的背景图请全屏显示，并补了一句「全屏布局」。
   继续用官方图 https://pay.airgolfing.com/uploads/login-bg.jpg，cover 铺满整个窗口
  （不要 contain，不要把图压在 1152 内容带里，不要留上下或左右地面色空白条）。
   登录表单叠在这张全屏背景上：电脑保持官方已有的居中白卡 .center（约 460px），
   390 保持官方手机版式，不要把电脑白卡硬套过去。不改按钮文案和登录逻辑。
   不改已挂戳里已对上的地图 / 问小潘 / 头像下拉 / 四条必改等。 */

html.mp-web-site[data-ag-page="login"],
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) {
  background-color: #f3f7f4;
}

/* 一张固定层把官方图 cover 铺到视口四边，测量上应等于窗口宽高。
   不用 contain。不用把背景只画在被收窄的 .page 上。 */
html.mp-web-site[data-ag-page="login"]::before,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden))::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background-color: #f3f7f4;
  background-image: url(https://pay.airgolfing.com/uploads/login-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 内容叠在背景之上；各层改透明，避免 typography / 官方地面色在两侧或上下切出空白条。 */
html.mp-web-site[data-ag-page="login"] body,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) body {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

html.mp-web-site[data-ag-page="login"] #mp-app,
html.mp-web-site[data-ag-page="login"] #mp-app.mp-wide-app,
html.mp-web-site[data-ag-page="login"] #mp-app.mp-web-site,
html.mp-web-site[data-ag-page="login"] #mp-app.mp-home-chrome,
html.mp-web-site[data-ag-page="login"] #mp-scroll,
html.mp-web-site[data-ag-page="login"] #mp-page-host,
html.mp-web-site[data-ag-page="login"] .mp-page:not(.mp-page-hidden),
html.mp-web-site[data-ag-page="login"] .mp-page[data-route="pages/login/login"],
html.mp-web-site[data-ag-page="login"] .mp-page[data-route="pages/login/login"] .page,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-app,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-app.mp-wide-app,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-app.mp-home-chrome,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-scroll,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-page-host,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .mp-page:not(.mp-page-hidden),
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .mp-page[data-route="pages/login/login"] .page,
html.mp-web-site .mp-page[data-route="pages/login/login"] .page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* 顶栏叠在背景上，但不要铺一块实色地面把照片顶部挡住成空白条。
   页脚隐藏，避免底下切出象牙色条（同地图页）。 */
html.mp-web-site[data-ag-page="login"] #ag-preview-strip,
html.mp-web-site[data-ag-page="login"] #ag-site-header,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #ag-preview-strip,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #ag-site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
}

html.mp-web-site[data-ag-page="login"] #ag-site-footer,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #ag-site-footer {
  display: none !important;
}

/* 电脑：官方白卡继续叠在全屏背景上并在可视区内居中，不要另做一套表单。
   v25b：#mp-page-host / .mp-page / .page 的 height:100% 叠上官方 .page 的 flex 列，
   再叠登录页 .login-v2 的 min-height:100vh/100dvh，会把 460 白卡拉成通高白柱，
   底部圆角看不见、照片也不再从卡片下方露出。这里只把电脑 .center 收成官方浮卡
   （宽 460、高度随内容、圆角 18px），不要撤掉全屏 cover 背景，也不要套到 390。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="login"] #mp-scroll,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-scroll {
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="login"] #mp-page-host,
  html.mp-web-site[data-ag-page="login"] .mp-page:not(.mp-page-hidden),
  html.mp-web-site[data-ag-page="login"] .mp-page[data-route="pages/login/login"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-page-host,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .mp-page:not(.mp-page-hidden),
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .mp-page[data-route="pages/login/login"] .page {
    height: 100% !important;
    min-height: 100% !important;
  }
  html.mp-web-site[data-ag-page="login"] .center,
  html.mp-web-site[data-ag-page="login"] .center.login-v2,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center.login-v2,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .center,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .center.login-v2 {
    flex: 0 0 auto;
    height: auto;
    min-height: auto;
    width: 460px;
    max-width: 460px;
    align-self: center;
    /* 🔴 2026-11-17：登录框 10% 白底（≈90% 透明），背景照片清晰透出 */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px;
    border: 1px solid #eaefeb;
    box-shadow: 0 18px 56px rgba(20, 45, 32, 0.10);
    box-sizing: border-box;
  }
}

/* 390：同一张官方图 cover 铺满屏；不要在这里给 .center 套 460px 白卡。 */
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="login"] .center,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center {
    width: auto;
    max-width: none;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
}

/* t1044：电脑填写订单页去掉与上方重复的「订单摘要」；上面订场信息按电脑站规范加大。手机 390 不动。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="fill"] #ag-order-summary {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="fill"] .page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-name,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-link,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-link {
    font-size: 16px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .ag-check-row,
  html.mp-web-site[data-ag-page="fill"] .card.prod .ag-check-row {
    font-size: 18px !important;
    font-weight: 600 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row,
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row .k,
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row .v,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row .k,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row .v {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .badge,
  html.mp-web-site[data-ag-page="fill"] .card.prod .badge {
    font-size: 14px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .col-r .fee-row,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .fee-row {
    font-size: 16px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .col-r .fee-row.total,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .fee-row.total,
  html.mp-web-site[data-ag-page="fill"] .col-r .price-o.big,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .price-o.big,
  html.mp-web-site[data-ag-page="fill"] .col-r .big {
    font-size: 24px !important;
  }
}

/* t1045：电脑站首页和其他页的内容左右跟顶栏 Logo 左线、右侧头像右线平齐。
   顶栏 .ag-bar 与 .page / 页脚共用 --ag-content-width（1152 且按 100vw 居中，避开滚动条错位）。
   去掉官方 H5 的 24rpx/20rpx 左右内边距，以及首页幻灯片为冲出内边距用的负边距。
   地图全屏、登录全屏背景不收进这条内容带。手机 390 不动。 */
@media (min-width: 900px) {
  #ag-site-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #ag-site-footer .ag-foot-inner {
    width: var(--ag-content-width) !important;
    max-width: var(--ag-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site .hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html.mp-web-site #ag-cached-list {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html.mp-web-site[data-ag-page="ai"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden)) .page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html.mp-web-site[data-ag-page="courses"] .list,
  html.mp-web-site[data-ag-page="courses"] .search-top,
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .list,
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .search-top {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html.mp-web-site[data-ag-page="travel"] .chips,
  html.mp-web-site[data-ag-page="travel"] .pkg-list,
  html.mp-web-site[data-ag-page="travel"] .sec-head,
  html.mp-web-site[data-ag-page="travel"] .search-sticky,
  html.mp-web-site:has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)) .chips,
  html.mp-web-site:has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)) .pkg-list,
  html.mp-web-site:has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)) .sec-head,
  html.mp-web-site:has(.mp-page[data-route="pages/travel/travel"]:not(.mp-page-hidden)) .search-sticky {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ========== t1050：老潘必改 + 可改（备用站 typography，不改正式站） ========== */

/* A) 收尾 t1045：.page / 页脚按 100vw 定左边，不要跟着 #mp-scroll 的滚动条缩进 7.5px。
   顶栏 .ag-bar 本就是 position:fixed 相对视口居中，列表页因把滚动锁在 .list 里所以本来齐。
   首页 / 详情 / 城市有滚动条时，margin:auto 会按少了滚动条的内容盒居中，左缘变成 56.5。
   这里改成按 100vw 算出与顶栏相同的左边（1280 时是 64）。地图全屏、登录全屏背景除外。 */
@media (min-width: 900px) {
  html.mp-web-site .page {
    margin-left: max(var(--ag-side), calc((100vw - var(--ag-content-width)) / 2)) !important;
    margin-right: auto !important;
  }
  html.mp-web-site.ag-map-full .page,
  html.mp-web-site[data-ag-page="map"] .page,
  html.mp-web-site .page:has(.themap),
  html.mp-web-site[data-ag-page="login"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .page,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .page {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #ag-site-footer .ag-foot-inner {
    margin-left: max(var(--ag-side), calc((100vw - var(--ag-content-width)) / 2)) !important;
    margin-right: auto !important;
  }
}

/* 1) 列表等待期间不要露出官方空态「没有符合条件的球场」 */
html.mp-web-site.ag-list-pending[data-ag-page="courses"] .empty,
html.mp-web-site.ag-list-pending[data-ag-page="courses"] .empty-txt,
html.mp-web-site.ag-list-pending:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .empty,
html.mp-web-site.ag-list-pending:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .empty-txt,
html.mp-web-site:has(#ag-cached-list)[data-ag-page="courses"] .empty,
html.mp-web-site:has(#ag-cached-list)[data-ag-page="courses"] .empty-txt {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 缓存真卡面要盖住官方空列表，但不能盖住顶栏 / 筛选 */
html.mp-web-site #ag-cached-list {
  z-index: 10005 !important;
  top: var(--ag-chrome, 124px) !important;
  background: #F5F6F7 !important;
}
@media (min-width: 900px) {
  html.mp-web-site #ag-cached-list {
    padding: 8px max(var(--ag-side), calc((100vw - var(--ag-content-width)) / 2)) 24px !important;
  }
  html.mp-web-site #ag-cached-list .ag-cache-grid {
    width: var(--ag-content-width) !important;
    max-width: var(--ag-max, 1152px) !important;
    margin: 0 auto !important;
  }
}

/* 没有缓存时的骨架：只占位，不写「没有球场」 */
html.mp-web-site #ag-list-skeleton {
  position: fixed !important;
  top: var(--ag-chrome, 124px) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10004 !important;
  padding: 8px 24px 24px !important;
  box-sizing: border-box !important;
  background: #F5F6F7 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
html.mp-web-site.ag-has-official-list #ag-list-skeleton,
html.mp-web-site:has(#ag-cached-list) #ag-list-skeleton {
  display: none !important;
}
html.mp-web-site #ag-list-skeleton .ag-skel-grid {
  width: min(var(--ag-max, 1152px), calc(100% - 0px));
  max-width: var(--ag-max, 1152px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
html.mp-web-site #ag-list-skeleton .ag-skel-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 210px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
html.mp-web-site #ag-list-skeleton .ag-skel-img {
  width: 280px;
  min-height: 210px;
  background: linear-gradient(90deg, #ececec 25%, #f6f6f6 50%, #ececec 75%);
  background-size: 200% 100%;
}
html.mp-web-site #ag-list-skeleton .ag-skel-body {
  padding: 24px;
}
html.mp-web-site #ag-list-skeleton .ag-skel-line {
  height: 16px;
  border-radius: 4px;
  background: #ececec;
  margin: 0 0 12px;
  max-width: 64%;
}
html.mp-web-site #ag-list-skeleton .ag-skel-line.short { max-width: 36%; }
@media (max-width: 899px) {
  html.mp-web-site #ag-list-skeleton { padding: 8px 12px 24px !important; }
  html.mp-web-site #ag-list-skeleton .ag-skel-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 96px;
  }
  html.mp-web-site #ag-list-skeleton .ag-skel-img { width: 112px; min-height: 96px; }
}

/* 2) 电脑列表：筛选条占位在文档流里，.list 从它下面开始滚，第一张中文场名首屏要完整露出来。
   同时滚动时场名贴在筛选条下，不要再钻到条下面。 */
@media (min-width: 900px) {
  /* 🔴 2026-11-17：锁 .mp-page 高度到视口（否则内容撑开 1556px，筛选器 .cf-rail 超出视口被截断、显示不全） */
  html.mp-web-site[data-ag-page="courses"] .mp-page:not(.mp-page-hidden),
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .mp-page:not(.mp-page-hidden) {
    height: 100% !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="courses"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .page {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="courses"] .sticky-header,
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .sticky-header {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto !important;
    z-index: 20 !important;
    background: #f7f8fa !important;
  }
  html.mp-web-site[data-ag-page="courses"] .search-top,
  html.mp-web-site[data-ag-page="courses"] .search-bar,
  html.mp-web-site[data-ag-page="courses"] .search-card {
    position: relative !important;
    top: auto !important;
    z-index: 6;
    background: #f7f8fa;
  }
  html.mp-web-site[data-ag-page="courses"] .cf-cols,
  html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .cf-cols {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }
  html.mp-web-site[data-ag-page="courses"] .cf-cols > .cf-rail {
    position: relative !important;
    top: auto !important;
    max-height: 100% !important;
    overflow-y: auto !important;
  }
  html.mp-web-site[data-ag-page="courses"] .cf-cols > .cf-main {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html.mp-web-site[data-ag-page="courses"] .cf-main .list,
  html.mp-web-site[data-ag-page="courses"] .list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-padding-top: 8px !important;
    scroll-snap-type: none !important;
    padding-top: 8px !important;
  }
  html.mp-web-site[data-ag-page="courses"] .course-card {
    scroll-snap-align: none !important;
    scroll-margin-top: 8px !important;
  }
  /* 场名在 .list 里吸顶，.list 已在筛选条下面，top:0 即贴条下沿 */
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .cc-name-row,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .cc-name-row {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #fff !important;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
  }
}

/* 3) 价格包含图标稳定跟在价钱下面；没加载完的空方块先藏起来，不用下场旗顶替 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card > .cc-body,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card > .cc-body {
    overflow: visible !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-mid,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-mid {
    display: contents !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-quote,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-quote {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs,
  html.mp-web-site #ag-cached-list .ag-cache-facs {
    grid-column: 2 !important;
    grid-row: 7 !important;
    justify-self: end !important;
    align-self: start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs .qie,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-facs .qie,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs .qie-img,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-facs img {
    width: 22px !important;
    height: 20px !important;
    min-width: 22px !important;
    min-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
    background: none !important;
    border: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  /* 还没真 src / 还没加载完成：不要先露出空方块 */
  html.mp-web-site[data-ag-page="courses"] .cc-facs img:not([src]),
  html.mp-web-site[data-ag-page="courses"] .cc-facs img[src=""],
  html.mp-web-site[data-ag-page="courses"] .cc-facs img[src="about:blank"],
  html.mp-web-site[data-ag-page="courses"] .cc-facs .qie:not(.ag-fac-ready),
  html.mp-web-site #ag-cached-list .ag-cache-facs img:not([src]),
  html.mp-web-site #ag-cached-list .ag-cache-facs img[src=""] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="courses"] .cc-facs .qie.ag-fac-ready,
  html.mp-web-site[data-ag-page="courses"] .cc-facs .qie.ag-fac-ready img,
  html.mp-web-site[data-ag-page="courses"] .cc-facs .qie.ag-fac-ready .qie-img,
  html.mp-web-site[data-ag-page="courses"] .cc-facs .qie.ag-fac-ready .qie-emo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* 4) 手机 390 登录页铺同一张球场背景图；不要做成电脑那种 460 大白卡。
   同时把可能挡住 ::before 的官方浅色地面全部打透明。 */
html.mp-web-site[data-ag-page="login"],
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) {
  background-color: transparent;
  background-image: url(https://pay.airgolfing.com/uploads/login-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
#ag-login-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: #1a2a1c;
  background-image: url(https://pay.airgolfing.com/uploads/login-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
html.mp-web-site[data-ag-page="login"] body,
html.mp-web-site[data-ag-page="login"] #mp-app,
html.mp-web-site[data-ag-page="login"] #mp-scroll,
html.mp-web-site[data-ag-page="login"] #mp-page-host,
html.mp-web-site[data-ag-page="login"] .mp-page,
html.mp-web-site[data-ag-page="login"] .mp-page .page,
html.mp-web-site[data-ag-page="login"] .login-v2,
html.mp-web-site[data-ag-page="login"] .login,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) body,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-app,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-scroll,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) #mp-page-host,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .mp-page,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .page,
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .login-v2 {
  background-color: transparent !important;
  background-image: none !important;
}
@media (max-width: 899px) {
  html.mp-web-site[data-ag-page="login"] .center,
  html.mp-web-site[data-ag-page="login"] .center.login-v2,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center.login-v2,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .center {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    flex: 0 0 auto !important;
  }
}

/* 7 + C) 顶栏 Logo 在关于页 / 登录页也必须完整可见，不要被切掉或宽变成 0 */
#ag-site-header .ag-logo {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 118px !important;
  max-width: none !important;
  overflow: visible !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}
#ag-site-header .ag-logo img,
#ag-site-header .ag-logo img.ag-about-logo {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  min-width: 118px !important;
  min-height: 42px !important;
  max-width: none !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  border-radius: 0 !important;
}
@media (max-width: 899px) {
  #ag-site-header .ag-logo { min-width: 100px !important; }
  #ag-site-header .ag-logo img,
  #ag-site-header .ag-logo img.ag-about-logo {
    height: 36px !important;
    min-width: 100px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}
/* 关于页正文 Logo 可以单独排，但选择器不准碰到顶栏 */
html.mp-web-site[data-ag-page="about"] .hero-logo.ag-about-logo-wrap,
html.mp-web-site[data-ag-page="about"] .ag-about-logo-wrap {
  overflow: visible !important;
}
html.mp-web-site[data-ag-page="about"] .hero-logo img.ag-about-logo,
html.mp-web-site[data-ag-page="about"] .ag-about-logo-wrap img {
  object-fit: contain !important;
  overflow: visible !important;
}

/* B) 电脑填写订单：场名、开球信息不要被「球场详情」挤断行；优惠券 / 支付方式排成正常行 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="fill"] .top-card,
  html.mp-web-site[data-ag-page="fill"] .card.prod,
  html.mp-web-site[data-ag-page="fill"] .prod-card {
    display: block !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-top,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-name,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--ag-ink, #1a1a1a) !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-link,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-link,
  html.mp-web-site[data-ag-page="fill"] .top-card a.prod-link,
  html.mp-web-site[data-ag-page="fill"] .card.prod a.more,
  html.mp-web-site[data-ag-page="fill"] .top-card .detail-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    font-size: 16px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .ag-check-row,
  html.mp-web-site[data-ag-page="fill"] .card.prod .ag-check-row {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row {
    display: flex !important;
    width: 100% !important;
  }
  html.mp-web-site[data-ag-page="fill"] .ag-pay-method,
  html.mp-web-site[data-ag-page="fill"] .ag-coupon-moved {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin: 12px 0 0 !important;
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    font-family: var(--ag-hei) !important;
    font-size: 16px !important;
    color: var(--ag-ink) !important;
    width: 100% !important;
  }
  html.mp-web-site[data-ag-page="fill"] .ag-pay-method .k,
  html.mp-web-site[data-ag-page="fill"] .ag-coupon-moved .k {
    font-weight: 600 !important;
    color: var(--ag-ink) !important;
    flex: 0 0 auto;
  }
  html.mp-web-site[data-ag-page="fill"] .ag-pay-method .v,
  html.mp-web-site[data-ag-page="fill"] .ag-coupon-moved .v {
    color: var(--ag-muted) !important;
    text-align: right;
  }
  /* 未排进上述行的裸文案：藏起来，避免「优惠券暂无可用」「支付方式微信支付」挤在左栏底下 */
  html.mp-web-site[data-ag-page="fill"] .col-l > .ag-fill-raw {
    display: none !important;
  }
}

/* D) 电脑开球层最后一行不要被底栏挡住；整层仍留在 1280 视口里。390 仍留在 390 屏里。 */
@media (min-width: 900px) {
  html.mp-web-site.ag-tp-open .tp-sheet,
  html.mp-web-site.ag-tp-open time-picker .tp-sheet,
  html.mp-web-site.ag-tp-open .time-sheet,
  html.mp-web-site.ag-tp-open .sheet.time-sheet {
    bottom: 84px !important;
    max-height: calc(100dvh - var(--ag-chrome, 124px) - 84px) !important;
    padding-bottom: 28px !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site.ag-tp-open .tp-sheet .tp-grid,
  html.mp-web-site.ag-tp-open .tp-sheet .time-grid,
  html.mp-web-site.ag-tp-open .time-sheet .tp-grid,
  html.mp-web-site.ag-tp-open .sheet.time-sheet .grid {
    padding-bottom: 20px !important;
  }
}
@media (max-width: 899px) {
  html.mp-web-site.ag-tp-open .tp-sheet,
  html.mp-web-site.ag-tp-open time-picker .tp-sheet,
  html.mp-web-site.ag-tp-open .time-sheet,
  html.mp-web-site.ag-tp-open .sheet.time-sheet {
    padding-bottom: 16px !important;
    box-sizing: border-box !important;
  }
}

/* F) 首页附近推荐：滚动后场名仍叠在相片上；不要把海外热门整块卸掉 */
html.mp-web-site[data-ag-page="home"] .near-card .near-name,
html.mp-web-site[data-ag-page="home"] .near-item .near-name,
html.mp-web-site[data-ag-page="home"] .hot-item .hot-name,
html.mp-web-site[data-ag-page="home"] .hot-card .hot-name,
html.mp-web-site[data-ag-page="home"] .near-card .name,
html.mp-web-site[data-ag-page="home"] .sec-near .name {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit;
  z-index: 2;
}
html.mp-web-site[data-ag-page="home"] .sec-abroad,
html.mp-web-site[data-ag-page="home"] .sec-oversea,
html.mp-web-site[data-ag-page="home"] .abroad-sec,
html.mp-web-site[data-ag-page="home"] .hot-abroad,
html.mp-web-site[data-ag-page="home"] [data-ag-sec="abroad"] {
  visibility: visible;
}

/* G) 问小潘：右栏对话变长时左栏舞台钉死，不能被卷走 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-desk {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-stage {
    position: relative !important;
    top: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  html.mp-web-site[data-ag-page="ai"] #ag-xpan-chat {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
}

/* 套票若出现「¥x起 元」，改由 JS 收成可读顺序；这里只避免单位块把「起」挤成两截 */
html.mp-web-site[data-ag-page="travel"] .ag-price-unit {
  margin-left: 2px;
}


/* ========== t1051 / t1052 / t1054（Peter 2026-11-17 07:37–07:44）备用站 typography，不改正式站 ========== */

/* t1051：内容左右跟顶栏 .ag-bar（Logo 左线、头像右线）对齐。
   不再用 100vw 估左边——滚动条会让 100vw 和固定顶栏的包含块不一致。
   左边和宽度由 JS 按顶栏实测写入 --ag-align-left / --ag-align-width。
   首页英雄图和附近推荐跟 .page 同宽，不要另缩一截或撑出 100vw。地图 / 登录全屏除外。 */
@media (min-width: 900px) {
  html.mp-web-site .page {
    width: var(--ag-align-width, var(--ag-content-width)) !important;
    max-width: var(--ag-max) !important;
    margin-left: var(--ag-align-left, auto) !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site.ag-map-full .page,
  html.mp-web-site[data-ag-page="map"] .page,
  html.mp-web-site .page:has(.themap),
  html.mp-web-site[data-ag-page="login"] .page,
  html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .page,
  html.mp-web-site .mp-page[data-route="pages/login/login"] .page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  #ag-site-footer .ag-foot-inner {
    width: var(--ag-content-width) !important;
    max-width: var(--ag-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site .hero,
  html.mp-web-site .sec-head,
  html.mp-web-site .sec-near,
  html.mp-web-site .hot-grid,
  html.mp-web-site .near-list,
  html.mp-web-site .sec-abroad,
  html.mp-web-site .abroad-sec,
  html.mp-web-site .hot-abroad {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* t1052：电脑列表价钱始终落在右下角（.body 网格第 6 行第 2 列），场名再长也不要掉到标签下面。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price-r,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price-r,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-body > .cc-pnum,
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price > .cc-pnum,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-body > .cc-pnum,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price > .cc-pnum {
    grid-column: 2 !important;
    grid-row: 6 !important;
    justify-self: end !important;
    align-self: end !important;
    position: static !important;
  }
}

/* t1054：电脑详情右栏露出官方完整订场模块；藏 typography 简化面板。手机 390 仍藏该面板、走官方原模块。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="course"] #ag-book-panel,
  html.mp-web-site[data-ag-page="course"] .ag-book-panel,
  html.mp-web-site[data-ag-page="package"] #ag-book-panel,
  html.mp-web-site[data-ag-page="package"] .ag-book-panel {
    display: none !important;
  }
  html.mp-web-site[data-ag-page="course"] .book-col,
  html.mp-web-site[data-ag-page="course"] .book-col.ag-native-book-quiet,
  html.mp-web-site[data-ag-page="package"] .book-col,
  html.mp-web-site[data-ag-page="package"] .book-col.ag-native-book-quiet {
    display: revert !important;
    visibility: visible !important;
  }
}


/* t1055：电脑列表只留右下角一个价钱；电询球场不要再露出原来的数字价。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-inquiry,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-inquiry {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #1a7f4f !important;
    white-space: nowrap !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card .cc-price-r .qi,
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card .cc-price-r .qi {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-left: 1px !important;
  }
  html.mp-web-site[data-ag-page="courses"] #mp-app.mp-wide-app .mp-wide-grid .course-card [data-ag-price-dup],
  html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/courses/courses"] .list.mp-wide-grid .course-card [data-ag-price-dup] {
    display: none !important;
  }
}

/* t1056：电脑详情多图改成酒店式展开图片墙，订场模块下移到球场信息旁。手机 390 仍用官方滑动图集。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px) !important;
    gap: 20px 28px !important;
    align-items: start !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic #ag-photo-mosaic {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .col-a,
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .book-col-wrap {
    grid-row: 2 !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .col-a {
    grid-column: 1 !important;
    min-width: 0 !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .book-col-wrap {
    grid-column: 2 !important;
    /* t1058：右栏预订模块跨 row2+row3，避免 row2 被它撑高后左栏 head.card 与「基本信息」之间留出大片空白 */
    grid-row: 2 / span 2 !important;
    position: sticky !important;
    top: calc(var(--ag-chrome, 72px) + 16px) !important;
    align-self: start !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .col-b {
    grid-column: 1 !important;
    grid-row: 3 !important;
    min-width: 0 !important;
  }
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic .gallery-wrap {
    display: none !important;
  }
  /* 多图展示时画廊横跨顶部，官方 .head.card 用 margin-top:-40px 上移压住图片 → 取消，让球场名称与照片隔开 */
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic .head.card,
  html.mp-web-site[data-ag-page="course"] .cols.ag-has-mosaic > .col-a .head.card {
    margin-top: 0 !important;
  }
  html.mp-web-site[data-ag-page="course"] #ag-photo-mosaic,
  html.mp-web-site[data-ag-page="course"] .ag-photo-mosaic {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr !important;
    gap: 4px !important;
    height: 360px !important;
    max-height: 42vw !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #eef1ef !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-main,
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-cell {
    appearance: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #dfe5e2 !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-main {
    grid-row: 1 / -1 !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-side {
    display: grid !important;
    gap: 4px !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-side.is-one {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-side.is-two {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-side.is-four {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-main img,
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-cell img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  html.mp-web-site[data-ag-page="course"] .ag-mosaic-more {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.46) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
  }
}
@media (max-width: 899px) {
  html.mp-web-site #ag-photo-mosaic,
  html.mp-web-site .ag-photo-mosaic {
    display: none !important;
  }
}


/* t1057：电脑详情的日期弹窗、开球时间弹窗不要全屏铺满。
   贴在右栏，宽度只稍稍越过左栏；390 仍用官方底部整宽上拉层。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="course"] .dp-sheet.on,
  html.mp-web-site[data-ag-page="course"] date-picker .dp-sheet.on,
  html.mp-web-site[data-ag-page="package"] .dp-sheet.on,
  html.mp-web-site[data-ag-page="package"] date-picker .dp-sheet.on,
  html.mp-web-site.ag-tp-open .tp-sheet,
  html.mp-web-site.ag-tp-open .tp-sheet.on,
  html.mp-web-site.ag-tp-open time-picker .tp-sheet,
  html.mp-web-site.ag-tp-open .time-sheet,
  html.mp-web-site.ag-tp-open .sheet.time-sheet {
    position: fixed !important;
    left: auto !important;
    right: var(--ag-popup-right, max(24px, calc((100vw - var(--ag-align-width, var(--ag-content-width, 1152px))) / 2))) !important;
    top: auto !important;
    bottom: 24px !important;
    width: min(580px, calc(100vw - 48px)) !important;
    max-width: min(580px, calc(100vw - 48px)) !important;
    height: min(72vh, calc(100dvh - var(--ag-chrome, 72px) - 48px)) !important;
    max-height: calc(100dvh - var(--ag-chrome, 72px) - 48px) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
    z-index: 10050 !important;
  }
  html.mp-web-site[data-ag-page="course"] .dp-mask,
  html.mp-web-site[data-ag-page="course"] .dp-mask.on,
  html.mp-web-site[data-ag-page="package"] .dp-mask,
  html.mp-web-site[data-ag-page="package"] .dp-mask.on,
  html.mp-web-site[data-ag-page="course"] .tp-mask,
  html.mp-web-site[data-ag-page="package"] .tp-mask,
  html.mp-web-site.ag-tp-open .tp-mask,
  html.mp-web-site.ag-tp-open .mask.tp-mask {
    background: rgba(0, 0, 0, 0.32) !important;
  }
  /* 弹窗不再铺满，不必再露出电脑底栏订场条。 */
  html.mp-web-site.ag-tp-open #ag-detail-dock,
  html.mp-web-site.ag-tp-open .ag-detail-dock {
    display: none !important;
  }
}

/* t1059：弹窗关闭按钮统一用 × 符号，加大并居中（用户：不要「关闭」竖排小字） */
html.mp-web-site .tp-close.ag-close,
html.mp-web-site .sheet-x.ag-close,
html.mp-web-site .dp-close.ag-close,
html.mp-web-site [class*="close"].ag-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  color: var(--ag-ink, #191919) !important;
}


/* t1058：电脑填写订单露出球场名字；左右各框里的字再加大一号。手机 390 不动。 */
@media (min-width: 900px) {
  html.mp-web-site[data-ag-page="fill"] .page-title {
    font-size: 26px !important;
    font-weight: 700 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-name,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-name {
    font-size: 22px !important;
    font-weight: 700 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row,
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row .k,
  html.mp-web-site[data-ag-page="fill"] .top-card .prod-row .v,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row .k,
  html.mp-web-site[data-ag-page="fill"] .card.prod .prod-row .v {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .card,
  html.mp-web-site[data-ag-page="fill"] .col-l,
  html.mp-web-site[data-ag-page="fill"] .col-r,
  html.mp-web-site[data-ag-page="fill"] .card .k,
  html.mp-web-site[data-ag-page="fill"] .card .v,
  html.mp-web-site[data-ag-page="fill"] .input-row,
  html.mp-web-site[data-ag-page="fill"] .flex-input,
  html.mp-web-site[data-ag-page="fill"] .pre,
  html.mp-web-site[data-ag-page="fill"] .radio,
  html.mp-web-site[data-ag-page="fill"] .notice,
  html.mp-web-site[data-ag-page="fill"] .players-empty,
  html.mp-web-site[data-ag-page="fill"] .ag-fill-help,
  html.mp-web-site[data-ag-page="fill"] .ben-name,
  html.mp-web-site[data-ag-page="fill"] .ben-sub,
  html.mp-web-site[data-ag-page="fill"] .ben-desc,
  html.mp-web-site[data-ag-page="fill"] .coup-on,
  html.mp-web-site[data-ag-page="fill"] .coup-gray,
  html.mp-web-site[data-ag-page="fill"] .promo,
  html.mp-web-site[data-ag-page="fill"] .fee-row,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .fee-row,
  html.mp-web-site[data-ag-page="fill"] .col-r .fee-row,
  html.mp-web-site[data-ag-page="fill"] .ag-pay-method,
  html.mp-web-site[data-ag-page="fill"] .ag-coupon-moved {
    font-size: 17px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .card-t,
  html.mp-web-site[data-ag-page="fill"] .seats-name,
  html.mp-web-site[data-ag-page="fill"] .member .card-t,
  html.mp-web-site[data-ag-page="fill"] .card .card-t {
    font-size: 20px !important;
    font-weight: 700 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .card-sub,
  html.mp-web-site[data-ag-page="fill"] .card-more,
  html.mp-web-site[data-ag-page="fill"] .sub-label,
  html.mp-web-site[data-ag-page="fill"] .warn-line,
  html.mp-web-site[data-ag-page="fill"] .seat-tip,
  html.mp-web-site[data-ag-page="fill"] .players-label,
  html.mp-web-site[data-ag-page="fill"] .badge,
  html.mp-web-site[data-ag-page="fill"] .top-card .badge {
    font-size: 15px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .stp-num,
  html.mp-web-site[data-ag-page="fill"] .stp-btn {
    font-size: 18px !important;
  }
  html.mp-web-site[data-ag-page="fill"] .col-r .fee-row.total,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .fee-row.total,
  html.mp-web-site[data-ag-page="fill"] .col-r .price-o.big,
  html.mp-web-site[data-ag-page="fill"] .fee-inline .price-o.big,
  html.mp-web-site[data-ag-page="fill"] .col-r .big,
  html.mp-web-site[data-ag-page="fill"] .fee-row.total .big {
    font-size: 26px !important;
    font-weight: 700 !important;
  }
  html.mp-web-site[data-ag-page="fill"] .pay-btn,
  html.mp-web-site[data-ag-page="fill"] .fee-foot .pay-btn,
  html.mp-web-site[data-ag-page="fill"] .ag-sum-pay {
    font-size: 18px !important;
  }
}

/* ========== t1061：首页「套票」页签「附近热门套票」三列修复 ==========
   2026-11-10 小程序把 .hpkg-grid 结构从「直接子元素 .hpkg-card」改成
   「.hpkg-col(50% 两列) 包 .hpkg-card」，但 H5 build.js 内联 <style> 里
   2026-10-27 的 PC 三列规则仍按旧结构写（.hpkg-grid > .hpkg-card 三列 +
   nth-child(3n) 去右缝），导致 .hpkg-card 宽度 = calc((50% 列宽 − 36px)/3)
   ≈ 176px，缩在 50% 列左侧、右侧大片空白（用户截图「套票显示布局有误」）。
   这里把三列宽改挂到 .hpkg-col、.hpkg-card 恢复 100%，套票重新三列铺满。 */
html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/home/home"] .hpkg-grid {
  gap: 18px;
}
html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/home/home"] .hpkg-grid .hpkg-col {
  flex: 0 0 calc((100% - 36px) / 3);
  width: calc((100% - 36px) / 3);
  padding: 0;
  box-sizing: border-box;
}
html.mp-web-site #mp-app.mp-wide-app .mp-page[data-route="pages/home/home"] .hpkg-grid .hpkg-card {
  width: 100%;
  margin: 0;
}

/* ========== t1062：travel 卡片重复「查看详情」——保留绿色按钮、隐藏文字链接 ==========
   mp.css「套餐主页列表卡片改版（2026-10-29 用户参考图：三列白卡电商风）」里
   .pkg-foot::after 生成整宽绿色「查看详情」按钮（这是用户要的设计）；但 preview 旧
   addCardHints 还在往 .pkg-foot 追加 .ag-card-more「查看详情 >」文字链接 → 一张卡两个
   「查看详情」。保留 mp.css 绿色按钮（与正式站一致），隐藏 preview 注入的文字链接。 */
html.mp-web-site #mp-app .mp-page[data-route="pages/travel/travel"] .pkg-card .ag-card-more {
  display: none !important;
}

/* ========== t1063：AI 页左右空白背景统一为暖米（箭头指向的底部暖色） ==========
   左右边缘空白来自 .mp-page.pages-ai-ai 的冷灰白 #F5F6F7，压住了 body 的暖米 #F6F1EA，
   与 .page 径向渐变的暖米底（#f4f1e8）不衔接。把 .mp-page 背景改成 .page 渐变同款
   暖米 #f4f1e8，左右空白与底部箭头所指颜色一致。 */
html.mp-web-site:is(
  [data-ag-page="ai"],
  :has(.mp-page[data-route="pages/ai/ai"]:not(.mp-page-hidden))
) .mp-page.pages-ai-ai {
  background: #F4F1E8 !important;
}

/* ========== t1064：恢复正式站左侧菜单（siderail）到 PC 备用站 ==========
   正式站 index.html 内联已有 #mp-app.mp-home-chrome #mp-siderail 的 72px/hover 展开样式；
   备用站被 preview 隐藏 + 内容全宽（--mp-content-width:100%）。这里恢复显示左侧菜单，
   并把顶栏/滚动容器左边留出 72px。siderail 顶部从 preview 条下方开始、z-index 抬到 header 之上。 */
@media (min-width: 900px) {
  html.mp-web-site #mp-app.mp-home-chrome #mp-siderail {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    top: var(--ag-strip, 36px) !important;
    bottom: 0 !important;
    width: 72px !important;
    z-index: 10040 !important;
  }
  html.mp-web-site #mp-app.mp-home-chrome #mp-scroll {
    margin-left: 72px !important;
  }
  html.mp-web-site #ag-site-header {
    left: 72px !important;
  }
  /* 问小潘浮窗头像：抬到 siderail 之上，跟正式站一样盖在左侧菜单底部空白处（不遮挡图标） */
  html.mp-web-site .xiaopan-fab {
    z-index: 10050 !important;
  }
}

/* 🔴 2026-11-17：列表「加载更多」按钮（分页 20 个 + 人工点加载，避免一次性渲染卡顿） */
.ag-load-more {
  display: block;
  width: calc(100% - 32px);
  max-width: 360px;
  margin: 20px auto;
  padding: 12px 0;
  box-sizing: border-box;
  border: 1px solid #21a45d;
  border-radius: 24px;
  background: #ffffff;
  color: #21a45d;
  font-family: var(--ag-hei, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.ag-load-more:hover {
  background: #f0faf4;
}
.ag-load-more:active {
  background: #e3f5ea;
}

/* 🔴 2026-11-17：筛选面板（.cf-card）上下留白太紧（上 16px/下 18px），放宽到上下各 28px */
html.mp-web-site .cf-card {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* 🔴 2026-11-17：海外球场门户邮件说明弹窗 */
.ag-foot-qr-pop .ag-foot-mail-card {
  width: 420px;
  max-width: 88vw;
  padding: 28px;
  text-align: left;
}
.ag-foot-mail-t {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ag-ink);
  text-align: center;
}
.ag-foot-mail-p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ag-ink);
}
.ag-foot-mail-addr {
  margin: 4px 0 12px;
  padding: 10px 14px;
  background: #f4f6f5;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #21a45d;
  text-align: center;
  word-break: break-all;
}
.ag-foot-mail-btn {
  display: block;
  margin-top: 16px;
  padding: 12px 0;
  border-radius: 8px;
  background: #21a45d;
  color: #fff !important;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.ag-foot-mail-btn:hover { background: #1c8c4f; }

/* 🔴 2026-11-17：顶栏搜索框（logo 与菜单之间） */
#ag-site-header .ag-search {
  flex: 1;
  max-width: 380px;
  min-width: 120px;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 8px;
}
#ag-site-header .ag-search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 40px 0 16px;
  border: 1px solid #e3e6e8;
  border-radius: 20px;
  background: #f5f6f7;
  font-size: 14px;
  font-family: var(--ag-hei);
  color: var(--ag-ink);
  outline: none;
}
#ag-site-header .ag-search-input:focus {
  border-color: #21a45d;
  background: #fff;
}
#ag-site-header .ag-search-input::placeholder { color: #9aa2a8; }
#ag-site-header .ag-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: #9aa2a8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#ag-site-header .ag-search-btn:hover { color: #21a45d; }

/* 🔴 2026-11-17：列表卡片多图 hover 左右切换 */
.ag-card-gnav {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 5;
}
.course-card:hover .ag-card-gnav,
.ag-card-gnav:hover { opacity: 1; pointer-events: auto; }
.ag-card-gbtn {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ag-card-gbtn:hover { background: rgba(0, 0, 0, 0.58); }
.ag-card-gdots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.ag-card-gdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.ag-card-gdot.on { background: #fff; }

/* 🔴 2026-11-17：左侧筛选器锁在视口内 + 内部滚动，让「荣誉奖项」等最后分组完整显示、底部留空 */
html.mp-web-site[data-ag-page="courses"] .cf-cols,
html.mp-web-site:has(.mp-page[data-route="pages/courses/courses"]:not(.mp-page-hidden)) .cf-cols {
  max-height: calc(100vh - var(--ag-list-obstruct, 156px)) !important;
  overflow: hidden !important;
}
/* 🔴 2026-11-17：cf-map「按地图找球场」常驻（不随筛选滚动）；只有 .cf-card 内部滚动；与顶部菜单留 6px 间距 */
html.mp-web-site .cf-rail {
  display: flex !important;
  flex-direction: column !important;
  max-height: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}
html.mp-web-site .cf-rail .cf-map {
  flex: 0 0 auto !important;
  margin-top: 6px !important;
}
html.mp-web-site .cf-rail .cf-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: 28px !important;
}

/* 🔴 2026-11-17：顶栏搜索框关联词下拉 */
.ag-search-sug {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 45, 32, 0.14);
  overflow: hidden;
  z-index: 10030;
}
.ag-search-sug-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  font-family: var(--ag-hei);
  color: var(--ag-ink);
  cursor: pointer;
}
.ag-search-sug-item:hover { background: #f5f7f6; }
.ag-sug-t {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef3f0;
  color: #21a45d;
  font-size: 12px;
}

/* 🔴 2026-11-17：缓存列表（秒开占位）宽屏下与官方列表对齐——左边留筛选器宽度、单列，
   消除「先单卡全宽 → 再压出筛选器」的闪变 */
@media (min-width: 900px) {
  html.mp-web-site #ag-cached-list {
    padding-left: 296px;
  }
  html.mp-web-site #ag-cached-list .ag-cache-grid {
    grid-template-columns: 1fr;
  }
  html.mp-web-site #ag-cached-list .ag-cache-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  html.mp-web-site #ag-cached-list .ag-cache-img {
    width: 200px;
    min-height: 130px;
    flex: 0 0 200px;
  }
}

/* 🔴 2026-11-17：地图页整条顶栏去掉（含 LOGO），地图满铺 */
html.mp-web-site.ag-map-full #ag-site-header {
  display: none !important;
}
html.mp-web-site.ag-map-full #mp-scroll {
  top: 0 !important;
  height: 100dvh !important;
}
/* 根因：#mp-app 有 padding-top:88px（header 高度），删 header 后要归零（覆盖旧 var(--ag-chrome) 规则的高 specificity） */
html.mp-web-site.ag-map-full #mp-app,
html.mp-web-site.ag-map-full #mp-app.mp-wide-app,
html.mp-web-site.ag-map-full #mp-app.mp-home-chrome,
html.mp-web-site.ag-map-full #mp-app.mp-wide-app.mp-home-chrome,
html.mp-web-site.ag-map-full #mp-app.mp-wide-app.mp-web-site,
html.mp-web-site.ag-map-full #mp-app.mp-web-site.mp-home-chrome,
html.mp-web-site.ag-map-full #mp-app.mp-wide-app.mp-web-site.mp-home-chrome {
  padding-top: 0 !important;
}
html.mp-web-site.ag-map-full .themap,
html.mp-web-site.ag-map-full .mp-page:has(.themap) {
  height: 100dvh !important;
  min-height: 100dvh !important;
}
/* 清掉 header 删除后 .page 顶部的残留空隙（padding/margin/top 都归零） */
html.mp-web-site.ag-map-full .page,
html.mp-web-site.ag-map-full .mp-page:has(.themap) .page {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 🔴 2026-11-17：详情页品牌尾（PLAY THE WORLD + 五个图标）整体水平居中 */
html.mp-web-site .brand {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* 🔴 2026-11-17：缓存列表对齐官方双栏（覆盖前面所有重复 .ag-cache-grid 规则，最高优先级）
   官方列表 = cf-rail 252 + gap 24 = 276，缓存卡缩窄到 876 对齐，避免「全宽→缩窄」闪变 */
html.mp-web-site #ag-cached-list .ag-cache-grid {
  width: calc(var(--ag-max, 1152px) - 276px) !important;
  max-width: calc(var(--ag-max, 1152px) - 276px) !important;
  margin-left: 276px !important;
  margin-right: auto !important;
}

/* 🔴 2026-11-17：短信验证码登录加白色背景框（与微信/邮箱扫码按钮一致） */
html.mp-web-site[data-ag-page="login"] .center .link-login:not(.sub),
html.mp-web-site:has(.mp-page[data-route="pages/login/login"]:not(.mp-page-hidden)) .center .link-login:not(.sub) {
  background: #fff;
  border: 1px solid #3670f0;
  border-radius: 999px;
  padding: 12px 0;
  margin-top: 28px;
  font-weight: 600;
  text-align: center;
  display: block;
  box-sizing: border-box;
}
