/* ============================================================================
   中旭文化 · H5 App 壳（对齐微信小程序）
   ────────────────────────────────────────────────────────────────────────────
   目标：H5 前台（**报名页 register.html 除外**）在手机上呈现小程序同款形态
         ① 顶部深棕导航栏（替代 PC 的 .navbar）
         ② 底部固定 TAB：首页 / 课程 / [中旭印章 FAB] / 资讯 / 我的
         ③ 内页（课程详情、资讯详情、关于我们…）无 TAB，改为「返回 + 标题」
   作用域：全部规则挂在 `body.zx-app-on` 下 —— 由 app-shell.js 在移动端
          （或 URL 带 ?app=1 强制）才添加。**桌面端不加该类 ⇒ 原 PC 站零影响**。
   数值来源：小程序 custom-tab-bar/index.wxss、pages/index/index.wxss，
           rpx ÷ 2 = px（750 设计宽）。
   ========================================================================== */

body.zx-app-on {
  --zx-cream: #faf8f3;
  --zx-brown: #3a3328;
  --zx-seal: #601818;
  --zx-gold: #d4a855;
  --zx-gold-pale: #e6d3a8;
  --zx-gold-soft: #e8dcc0;
  --zx-line: #e7ddca;
  --zx-muted: #8a7d68;
  --zx-text-pale: #b8a898;
  --zx-bar-h: 44px;
  --zx-tab-h: 53px;
  --zx-gutter: 16px;

  background: var(--zx-cream);
  padding-top: var(--zx-bar-h);
  padding-bottom: calc(var(--zx-tab-h) + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.zx-app-on.zx-no-tab {
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
}

/* ── 隐藏 PC 站件 ───────────────────────────────────────── */
body.zx-app-on .navbar,
body.zx-app-on .footer,
body.zx-app-on #navbar,
body.zx-app-on #footer {
  display: none !important;
}

/* ── 顶部 App 导航栏 ─────────────────────────────────────── */
.zx-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--zx-bar-h);
  z-index: 90000;
  display: flex;
  align-items: center;
  padding: 0 6px;
  background: #302a21;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .16);
}
.zx-bar-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zx-bar-btn:active { opacity: .6; }
.zx-bar-back::before {
  content: '';
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 3px;
}
.zx-bar-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f7f2e7;
}

/* ═══════════ 底部固定 TAB ═══════════ */
.zx-tabwrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg,
    rgba(255, 254, 251, .985) 0%,
    rgba(250, 248, 243, .97) 42%,
    rgba(243, 237, 225, .985) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, .9),
    0 -2px 0 rgba(232, 220, 192, .55),
    0 -5px 15px rgba(44, 36, 22, .055);
}
.zx-tabbar {
  display: flex;
  align-items: stretch;
  height: var(--zx-tab-h);
}
.zx-tab {
  flex: 1 1 0;
  height: var(--zx-tab-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.zx-tab:active { transform: scale(.94); }
.zx-tab .zx-txt {
  font-size: 10px;
  color: var(--zx-muted);
  letter-spacing: .5px;
  margin-top: 3px;
  transition: color .2s;
}
.zx-tab .zx-ico {
  width: 21px;
  height: 21px;
  position: relative;
  color: var(--zx-muted);
  transition: color .2s, transform .2s;
}
.zx-tab.on .zx-txt { color: var(--zx-seal); font-weight: 500; }
.zx-tab.on .zx-ico { color: var(--zx-seal); transform: translateY(-1px); }
.zx-gap { flex: 1 1 0; height: var(--zx-tab-h); }

/* ── 纯 CSS 图标（rpx÷2，数值同小程序） ── */
.zx-ico.ico-home::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.5px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  border-radius: 1.5px 0 0 0;
  transform: rotate(45deg);
}
.zx-ico.ico-home::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 9.5px;
  width: 12px;
  height: 10px;
  margin-left: -6px;
  border: 1.5px solid currentColor;
  border-top: none;
  border-radius: 0 0 1.5px 1.5px;
}
.zx-ico.ico-course::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 3.5px;
  width: 0;
  height: 14px;
  margin-left: -.75px;
  border-left: 1.5px solid currentColor;
}
.zx-ico.ico-course::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 3.5px;
  width: 17px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px 4.5px 4.5px 2px;
}
.zx-ico.ico-news::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 2.5px;
  width: 11.5px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 1.5px;
  border-top-right-radius: 5px;
}
.zx-ico.ico-news::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 9px;
  width: 5.5px;
  height: 0;
  border-top: 1.5px solid currentColor;
  box-shadow: 0 4px 0 currentColor;
  opacity: .5;
}
.zx-ico.ico-mine::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2.5px;
  width: 7.5px;
  height: 7.5px;
  margin-left: -3.75px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.zx-ico.ico-mine::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 13px;
  width: 13.5px;
  height: 5.5px;
  margin-left: -6.75px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
}

/* ── 中间印章 FAB ── */
.zx-fab {
  position: absolute;
  left: 50%;
  bottom: calc(12.5px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  margin-left: -29px;
  z-index: 10;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.zx-fab:active { transform: scale(.94); }
.zx-fab-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 254, 250, .98), rgba(248, 244, 236, .9));
  border: 1px solid rgba(232, 220, 192, .85);
  box-shadow: 0 5px 13px rgba(44, 36, 22, .14), 0 1.5px 5px rgba(96, 24, 24, .10);
}
.zx-fab-core {
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 34%, #fff 0%, var(--zx-cream) 58%, #f2ece0 100%);
  border: 1px solid var(--zx-gold-soft);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, .95),
    inset 0 -1.5px 3.5px rgba(44, 36, 22, .075),
    inset 0 0 0 1.5px var(--zx-gold-pale),
    inset 0 0 0 2px rgba(44, 36, 22, .045),
    0 1.5px 5px rgba(96, 24, 24, .14);
}
.zx-fab-logo { width: 44px; height: 44px; display: block; object-fit: contain; }

/* ═══════════ 半屏面板（报名活动 / 关于中旭） ═══════════ */
.zx-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(44, 36, 22, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.zx-mask.show { opacity: 1; visibility: visible; }
.zx-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  padding: 0 var(--zx-gutter) calc(20px + env(safe-area-inset-bottom));
  background: var(--zx-cream);
  border-radius: 14px 14px 0 0;
  transform: translateY(102%);
  transition: transform .32s cubic-bezier(.32, .72, .28, 1);
}
.zx-panel.show { transform: translateY(0); }
.zx-handle {
  width: 32px;
  height: 3px;
  margin: 12px auto 20px;
  border-radius: 999px;
  background: var(--zx-line);
}
.zx-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--zx-line);
}
.zx-panel-logo { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.zx-panel-title { font-size: 15px; font-weight: 600; color: var(--zx-brown); letter-spacing: 1.5px; }
.zx-panel-sub { font-size: 11px; color: var(--zx-muted); margin-top: 2px; letter-spacing: .5px; }
.zx-panel-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.zx-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--zx-line);
  border-radius: 10px;
  text-decoration: none;
  transition: transform .18s, border-color .18s;
}
.zx-panel-item:active { transform: scale(.985); border-color: var(--zx-gold-soft); }
.zx-panel-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  background: rgba(96, 24, 24, .065);
}
.zx-panel-ico.ico-enroll::before {
  content: '';
  position: absolute;
  left: 10.5px;
  top: 12.5px;
  width: 15px;
  height: 12px;
  border-top: 2px solid var(--zx-seal);
  border-bottom: 2px solid var(--zx-seal);
}
.zx-panel-ico.ico-enroll::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 16px;
  width: 2.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--zx-seal);
  box-shadow: 11px 0 0 var(--zx-seal);
}
.zx-panel-ico.ico-about::before {
  content: '';
  position: absolute;
  left: 10.5px;
  top: 12px;
  width: 15px;
  height: 13px;
  border: 2px solid var(--zx-seal);
  border-radius: 1px 3px 3px 1px;
}
.zx-panel-ico.ico-about::after {
  content: '';
  position: absolute;
  left: 17.5px;
  top: 12px;
  width: 0;
  height: 13px;
  border-left: 2px solid var(--zx-seal);
  opacity: .45;
}
.zx-panel-body { flex: 1 1 auto; min-width: 0; }
.zx-panel-name { font-size: 14px; font-weight: 500; color: var(--zx-brown); }
.zx-panel-desc { font-size: 11px; color: var(--zx-muted); margin-top: 2px; }
.zx-panel-arrow {
  width: 6.5px;
  height: 6.5px;
  flex-shrink: 0;
  border-top: 1.5px solid var(--zx-text-pale);
  border-right: 1.5px solid var(--zx-text-pale);
  transform: rotate(45deg);
}
.zx-panel-cancel {
  margin-top: 12px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 14px;
  color: var(--zx-muted);
  background: transparent;
  border: 1px solid var(--zx-line);
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  transition: transform .18s;
}
.zx-panel-cancel:active { transform: scale(.985); }

/* ═══════════════════════════════════════════════════════════
   App 化版式覆盖（把 PC 的宽容器/大留白收成小程序的紧凑节奏）
   —— 全部以 body.zx-app-on 起头，桌面端不受影响
   ═══════════════════════════════════════════════════════════ */
body.zx-app-on .container,
body.zx-app-on .nav-container {
  max-width: 100% !important;
  padding: 0 var(--zx-gutter) !important;
  margin: 0 auto !important;
}
body.zx-app-on .section { padding: 24px 0 !important; }
body.zx-app-on .section-header { margin-bottom: 16px !important; }
body.zx-app-on .section-label {
  font-size: 11px !important;
  letter-spacing: 2px !important;
}
body.zx-app-on .section-title { font-size: 20px !important; line-height: 1.35 !important; }
body.zx-app-on .section-desc { font-size: 12.5px !important; margin-top: 6px !important; }

/* Hero：小程序 620rpx = 310px */
body.zx-app-on .hero {
  height: 310px !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}
body.zx-app-on .hero-title { font-size: 24px !important; letter-spacing: 3px !important; }
body.zx-app-on .hero-subtitle { font-size: 12.5px !important; }
body.zx-app-on .hero-badge { font-size: 10.5px !important; padding: 4px 12px !important; }
body.zx-app-on .hero-actions { gap: 8px !important; margin-top: 16px !important; }
body.zx-app-on .hero-actions .btn,
body.zx-app-on .hero-actions a {
  padding: 10px 26px !important;
  font-size: 13px !important;
  border-radius: 26px !important;
}
body.zx-app-on .hero-scroll-hint { display: none !important; }

/* 页头（内页）：PC 的大 padding 收成紧凑标题条 */
body.zx-app-on .page-hero {
  padding: 18px 0 12px !important;
  margin: 0 !important;
  text-align: left !important;
}
body.zx-app-on .page-hero h1 { font-size: 21px !important; line-height: 1.3 !important; }
body.zx-app-on .page-hero p { font-size: 12.5px !important; opacity: .85; }
body.zx-app-on .page-hero .breadcrumb { display: none !important; }

/* 卡片圆角与描边统一（对齐小程序 --r-lg=10px / --line） */
body.zx-app-on .course-card,
body.zx-app-on .news-card,
body.zx-app-on .testimonial-card,
body.zx-app-on .session-card {
  border-radius: 10px !important;
  border-color: var(--zx-line) !important;
  box-shadow: 0 2px 10px rgba(44, 36, 22, .06) !important;
  overflow: hidden;
}

/* 按钮：小程序主按钮 44px 高、10px 圆角 */
body.zx-app-on .btn {
  padding: 12px 24px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}
body.zx-app-on .btn-primary { background: var(--zx-seal) !important; color: #fff !important; }

/* 表单控件放大到可点尺寸（≥16px 防 iOS 聚焦缩放） */
body.zx-app-on input,
body.zx-app-on select,
body.zx-app-on textarea { font-size: 16px !important; }

/* 安全区：内容末尾留白，避免被 TAB 压住 */
body.zx-app-on .zx-space { height: 8px; }

/* ═══════════════════════════════════════════════════════════
   首页专属：对齐小程序 pages/index 的节奏
   （只覆盖移动端 App 模式，桌面端仍是原 PC 版式）
   ═══════════════════════════════════════════════════════════ */

/* Hero 内两个按钮：小程序是并排小胶囊，不是竖排通栏 */
body.zx-app-on .hero-actions {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
}
body.zx-app-on .hero-actions .btn {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 10px 26px !important;
  font-size: 13.5px !important;
  border-radius: 26px !important;
}

/* 使命：小程序只有文字 + 标签，右侧图片/浮动卡不出现 */
body.zx-app-on .mission-media { display: none !important; }
body.zx-app-on .mission-grid { display: block !important; }
body.zx-app-on .mission-text .section-title { font-size: 20px !important; margin-bottom: 10px; }
body.zx-app-on .mission-content {
  font-size: 14.5px !important;
  line-height: 1.9 !important;
  color: #5b5145 !important;
}
body.zx-app-on .mission-content p { margin: 0 0 12px !important; }
body.zx-app-on .mission-tags { display: flex; gap: 8px; margin: 14px 0 16px; flex-wrap: wrap; }
body.zx-app-on .mission-tags .tag {
  font-size: 11.5px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
}
body.zx-app-on .mission-text .btn { width: auto !important; font-size: 13px !important; }

/* 数字统计：小程序一行四项 */
body.zx-app-on .stats-bar { padding: 18px 0 !important; }
body.zx-app-on .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
}
body.zx-app-on .stats-grid .stat-item {
  padding: 0 2px !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
}
body.zx-app-on .stats-grid .stat-num,
body.zx-app-on .stats-grid .stat-number {
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700;
}
body.zx-app-on .stats-grid .stat-label {
  font-size: 10px !important;
  line-height: 1.45 !important;
  margin-top: 3px !important;
  opacity: .8;
}

/* 课程卡：小程序 16:10 封面 + 紧凑文字 */
body.zx-app-on .courses-grid { gap: 14px !important; }
body.zx-app-on .course-card { border-radius: 10px !important; }
body.zx-app-on .course-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
body.zx-app-on .course-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
body.zx-app-on .course-info { padding: 13px 14px !important; }
body.zx-app-on .course-title { font-size: 16px !important; margin: 0 0 4px !important; }
body.zx-app-on .course-subtitle { font-size: 12px !important; margin: 0 0 6px !important; }
body.zx-app-on .course-desc { font-size: 12.5px !important; line-height: 1.7 !important; margin-bottom: 8px !important; }
body.zx-app-on .course-link { font-size: 12px !important; }
body.zx-app-on .course-badge { font-size: 10.5px !important; padding: 2px 9px !important; }
body.zx-app-on .course-overlay { display: none !important; }

/* 成长旅程：小程序横向四步（圆 + 连线 + 文字） */
body.zx-app-on .journey-steps {
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0 !important;
}
body.zx-app-on .journey-arrow { display: none !important; }
body.zx-app-on .journey-step {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: block !important;
  padding: 0 3px !important;
  text-align: center !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.zx-app-on .journey-step .step-icon {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto 8px !important;
  font-size: 15px !important;
  line-height: 42px !important;
}
body.zx-app-on .journey-step h3 { font-size: 13px !important; margin: 0 0 4px !important; }
body.zx-app-on .journey-step p { font-size: 10.5px !important; line-height: 1.55 !important; color: #8a7d68 !important; }

/* 精彩瞬间：小程序三列方图 */
body.zx-app-on .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}
body.zx-app-on .gallery-grid img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px !important;
}

/* CTA */
body.zx-app-on .cta-section { padding: 40px 0 !important; }
body.zx-app-on .cta-content h2 { font-size: 20px !important; }
body.zx-app-on .cta-content p { font-size: 13px !important; }

/* ═══════════════════════════════════════════════════════════
   「如是花开 · 期次报名」区块（二·213 新增，PC 与 App 通用）
   ═══════════════════════════════════════════════════════════ */
.rushi-section { background: #fdfbf6; }
.rushi-list { display: flex; flex-direction: column; gap: 10px; }
.rushi-card {
  display: block;
  background: #fff;
  border: 1px solid #e7ddca;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.rushi-card:active { transform: scale(.99); }
.rushi-card:hover { border-color: #e6d3a8; box-shadow: 0 3px 14px rgba(44, 36, 22, .07); }
.rushi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rushi-name { font-size: 15.5px; font-weight: 600; color: #3a3328; }
.rushi-badge {
  font-size: 10.5px;
  color: #fff;
  background: #601818;
  border-radius: 999px;
  padding: 2px 9px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.rushi-sub { font-size: 12px; color: #8a7d68; margin-top: 4px; }
.rushi-meta { font-size: 11.5px; color: #8a7d68; margin-top: 6px; }
.rushi-empty {
  font-size: 12.5px;
  color: #8a7d68;
  text-align: center;
  padding: 18px;
  background: #fff;
  border: 1px dashed #e7ddca;
  border-radius: 10px;
}
.rushi-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.rushi-actions .btn { width: 100%; max-width: 280px; text-align: center; }
.rushi-link { font-size: 12.5px; color: #601818; text-decoration: none; }
.rushi-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   联系信息（footer 在 App 模式隐藏后补齐）
   ═══════════════════════════════════════════════════════════ */
.contact-section { background: #f6f2ea; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #5b5145;
  background: #fff;
  border: 1px solid #e7ddca;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.6;
}
.contact-label { color: #8a7d68; flex: 0 0 40px; }
.contact-value { flex: 1 1 auto; min-width: 0; word-break: break-all; }
.contact-icp { text-align: center; font-size: 11px; color: #b8a898; margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   内页 App 适配（PC 的大留白 / 大字号收成小程序节奏）
   ═══════════════════════════════════════════════════════════ */
body.zx-app-on .form-section { padding: 14px 0 24px !important; }
body.zx-app-on .page-hero { padding: 14px 0 10px !important; }
body.zx-app-on .mb-wrap { max-width: 100% !important; }

/* 分类 TAB：横向滚动，不再换行把最后一项截掉 */
body.zx-app-on .category-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  padding: 8px 0 !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.zx-app-on .category-tabs::-webkit-scrollbar { display: none; }
body.zx-app-on .cat-tab { flex: 0 0 auto !important; padding: 7px 16px !important; font-size: 13px !important; }

/* 中文两端对齐在窄屏会拉开字距 ⇒ App 模式一律左对齐 */
body.zx-app-on .mission-content p,
body.zx-app-on .about-intro p,
body.zx-app-on .about-intro h3,
body.zx-app-on .about-text p { text-align: left !important; }
body.zx-app-on .about-intro { font-size: 14.5px !important; line-height: 1.9 !important; }
body.zx-app-on .about-intro h3 { font-size: 17px !important; }

/* 只给管理员看的占位提示，普通访客不显示 */
body.zx-app-on .admin-only-tip { display: none !important; }
body.zx-app-on .domain-video .empty-video { display: none !important; }
body.zx-app-on .domain-video:has(.empty-video) { display: none !important; }

/* 课程详情：PC 的大封面在手机上吃掉整屏 ⇒ 收到 16:10；面包屑在小程序里没有 */
body.zx-app-on .course-hero-media img,
body.zx-app-on .course-hero-media video {
  max-height: 215px !important;
  width: 100% !important;
  object-fit: cover !important;
}
body.zx-app-on .breadcrumb { display: none !important; }
body.zx-app-on #detail-title,
body.zx-app-on .detail-main-grid h1 { font-size: 21px !important; line-height: 1.35 !important; }
body.zx-app-on #detail-subtitle { font-size: 13.5px !important; }


