/* ==========================================================================
   官网装修（获客 → 展示 → 官网）
   ① .s-*   —— 官网组件样式：设计器画布与客户端 H5 共用同一份，保证所见即所得
   ② .dz-*  —— 设计器外壳（左侧组件面板 / 手机画布 / 右侧属性面板）
   所有颜色走 --s-* 变量，由 JS 按主题色注入。
   ========================================================================== */

/* ========================== ① 官网组件 ========================== */

/* 组件类型钩子
   ------------
   渲染器会给每个组件根节点加一个 s-b-<组件类型> 的类名：
     s-b-banner   s-b-notice   s-b-navGrid    s-b-stats    s-b-image
     s-b-richText s-b-video    s-b-courseList s-b-caseWall s-b-tabFeed
     s-b-team     s-b-courseRef s-b-coupon    s-b-surveyLead s-b-contact
     s-b-cta      s-b-profile  s-b-divider
     s-b-brand    s-b-caseTabs s-b-myCourses  s-b-productHall s-b-mineMenu
     s-b-circleFeed
   它本身不带默认样式，用途是「只覆盖某一类组件」时不必改 JS，例如
   site.css 末尾加一条 .s-b-banner { margin-bottom: 4px; } 即可。
   下面这条只是登记（保证类名有定义、便于排查），不要删。
   【新增组件时】必须把 s-b-<新类型> 也加进来，
   否则自测里的「样式完整性」检查会报缺类名。 */
.s-b-banner, .s-b-notice, .s-b-navGrid, .s-b-stats, .s-b-image,
.s-b-richText, .s-b-video, .s-b-courseList, .s-b-caseWall, .s-b-tabFeed,
.s-b-team, .s-b-courseRef, .s-b-coupon, .s-b-surveyLead, .s-b-contact,
.s-b-cta, .s-b-profile, .s-b-divider,
.s-b-brand, .s-b-caseTabs, .s-b-myCourses, .s-b-productHall, .s-b-mineMenu,
.s-b-circleFeed { position: relative; }

.s-page {
  background: var(--s-page-bg, #f4f6fa);
  color: var(--s-text, #1f2937);
  min-height: 100%;
  padding-bottom: 6px;
}

.s-block { position: relative; }

.s-pad { padding: 14px 14px 4px; }

.s-sec-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.s-sec-title i {
  width: 3px; height: 14px; border-radius: 2px;
  background: var(--s-primary, #3b6ef5); display: inline-block;
}

.s-empty {
  margin: 12px 14px; padding: 18px; text-align: center;
  border: 1px dashed #cfd6e4; border-radius: 10px;
  color: #98a2b3; font-size: 12px; background: rgba(255, 255, 255, .6);
}

.s-media { width: 100%; overflow: hidden; background: #eef1f6; }
.s-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-media-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #b9c8fb));
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* ---------- 轮播图 ---------- */
.s-banner { position: relative; overflow: hidden; background: #dfe4ee; }
.s-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
}
.s-slide.on { opacity: 1; }
.s-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-banner-ph {
  width: 100%; height: 100%;
  background: linear-gradient(120deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
}
.s-slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .48));
}
.s-slide-txt { position: absolute; left: 16px; right: 16px; bottom: 18px; color: #fff; }
.s-slide-txt h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.s-slide-txt p { margin: 0; font-size: 12px; opacity: .9; }
.s-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 5px; justify-content: center;
}
.s-dots i {
  width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .5);
  display: block; cursor: pointer; transition: width .2s;
}
.s-dots i.on { width: 16px; background: #fff; }

/* ---------- 公告条 ---------- */
.s-notice {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 0; padding: 9px 12px;
  background: var(--s-primary-light, #eef3ff);
  border-radius: var(--s-radius, 12px);
  font-size: 12.5px; color: var(--s-primary-dark, #20408f);
}
.s-notice-ico { flex: 0 0 auto; font-size: 13px; }
.s-notice-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 金刚区 ---------- */
.s-navgrid { display: grid; gap: 6px; padding: 14px 10px 4px; }
.s-nav-item { text-align: center; padding: 6px 2px; cursor: pointer; }
.s-nav-ico {
  width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--s-primary-light, #eef3ff); color: var(--s-primary, #3b6ef5);
  font-size: 17px; font-weight: 700;
}
.s-nav-t { font-size: 11.5px; color: var(--s-text, #1f2937); }

/* ---------- 数据条 ---------- */
.s-stats {
  display: flex; margin: 12px 14px 0; padding: 14px 6px;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-stat { flex: 1; text-align: center; }
.s-stat-v { font-size: 19px; font-weight: 700; color: var(--s-primary, #3b6ef5); }
.s-stat-l { font-size: 11px; color: var(--s-text-sub, #6b7280); margin-top: 2px; }

/* ---------- 单图 / 图文 ---------- */
.s-img img { width: 100%; display: block; }
.s-rich { background: var(--s-card-bg, #fff); margin: 12px 14px 0; border-radius: var(--s-radius, 12px); padding: 16px 14px; }
.s-rich-t { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.s-rich-p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--s-text-sub, #6b7280); }
.s-rich-img { margin-top: 12px; border-radius: 10px; overflow: hidden; }
.s-rich-img img { width: 100%; display: block; }

/* ---------- 视频 ---------- */
.s-video {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/9; background: linear-gradient(135deg, #2b3445, #4a5568);
  display: flex; align-items: center; justify-content: center;
}
.s-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.s-play {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--s-primary, #3b6ef5);
  display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 3px;
}
.s-video-tip { position: absolute; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .82); }

/* ---------- 课程列表 ---------- */
.s-ccards { display: flex; flex-direction: column; gap: 12px; }
.s-ccard {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  overflow: hidden; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-ccard-img { aspect-ratio: 16/10; }
.s-ccard-body { padding: 12px 13px 14px; }
.s-ccard-t { font-size: 14.5px; font-weight: 700; }
.s-ccard-d { font-size: 12px; color: var(--s-text-sub, #6b7280); margin-top: 4px; line-height: 1.7; }
.s-ccard-f { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.s-price { color: #e5484d; font-weight: 700; font-size: 15px; }
.s-mini-btn {
  font-size: 12px; padding: 4px 12px; border-radius: 99px;
  background: var(--s-primary, #3b6ef5); color: #fff;
}

.s-clist { display: flex; flex-direction: column; gap: 10px; }
.s-citem {
  display: flex; gap: 11px; align-items: center;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); padding: 11px 12px;
}
.s-citem-thumb {
  flex: 0 0 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.s-citem-main { flex: 1; min-width: 0; }
.s-citem-t { font-size: 13.5px; font-weight: 600; }
.s-citem-d { font-size: 11.5px; color: var(--s-text-sub, #6b7280); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-citem-f { font-size: 11px; color: #98a2b3; margin-top: 3px; }

/* ---------- 案例墙 ---------- */
.s-cases { display: flex; flex-direction: column; gap: 10px; }
.s-cases.col2 { display: grid; grid-template-columns: 1fr 1fr; }
.s-case {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  padding: 13px 13px 12px; position: relative;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06); border-left: 3px solid var(--s-primary, #3b6ef5);
}
.s-case-q { position: absolute; right: 12px; top: 6px; font-size: 22px; color: var(--s-primary-light, #eef3ff); }
.s-case-t { font-size: 13.5px; font-weight: 700; padding-right: 20px; }
.s-case-c { font-size: 12px; color: var(--s-text-sub, #6b7280); line-height: 1.8; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-case-f { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.s-case-a { font-size: 11.5px; color: #98a2b3; }
.s-case-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
  background: var(--s-accent-light, #e9f9f1); color: var(--s-accent, #12b76a);
}

/* ---------- 学员圈（朋友圈式动态流，官网「成功案例」页） ---------- */
/* 容器：移动端底部有固定导航，末屏多留一点底距，免得最后一条被压住 */
.s-circle { padding-bottom: 8px; }
.s-circle-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-circle-add { flex: 0 0 auto; }
.s-circle-tip { font-size: 11.5px; color: var(--s-text-sub, #6b7280); margin: 2px 0 12px; line-height: 1.7; }

/* 自己还在审核中的动态：单独一块放在最上面，让他知道"发出去了、在等审核" */
.s-circle-mine {
  background: #fff8e8; border: 1px dashed #ffd591; border-radius: 10px;
  padding: 8px 10px; margin-bottom: 10px;
}
.s-circle-minerow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8c6d1f; line-height: 1.8; }
.s-circle-minet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-tag-wait {
  flex: 0 0 auto; font-size: 10.5px; padding: 1px 6px; border-radius: 99px;
  background: #fff1d6; color: #b07d00;
}

.s-circle-list { display: flex; flex-direction: column; gap: 10px; }
.s-circle-item {
  display: flex; gap: 10px;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  padding: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-circle-av {
  flex: 0 0 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
}
.s-circle-main { flex: 1; min-width: 0; }
.s-circle-name { font-size: 13px; font-weight: 600; color: var(--s-text, #1f2937); }
.s-circle-text {
  font-size: 13px; line-height: 1.85; color: var(--s-text, #1f2937);
  margin-top: 5px; word-break: break-word; white-space: pre-wrap;
}
.s-circle-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.s-circle-imgs.s-one { grid-template-columns: minmax(0, 64%); }
.s-circle-imgs.s-two { grid-template-columns: repeat(2, 1fr); }
.s-circle-img {
  display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 7px; background: #f2f4f7;
}
.s-circle-imgs.s-one .s-circle-img { aspect-ratio: 4/3; }
.s-circle-foot { display: flex; align-items: center; gap: 16px; margin-top: 9px; }
.s-circle-time { font-size: 11.5px; color: #98a2b3; }
.s-circle-act { font-size: 12px; color: var(--s-text-sub, #6b7280); cursor: pointer; }
.s-circle-act.on { color: #e5484d; font-weight: 700; }
.s-circle-cmts {
  margin-top: 8px; padding: 8px 10px;
  background: var(--s-page-bg, #f7f8fa); border-radius: 9px;
}
.s-circle-cmt { font-size: 12px; line-height: 1.8; color: var(--s-text-sub, #6b7280); word-break: break-word; }
.s-circle-cmt b { color: var(--s-primary, #3b6ef5); font-weight: 600; }
.s-circle-more { color: var(--s-primary, #3b6ef5); cursor: pointer; }

/* 发动态弹层里已选图片的缩略图 */
.s-picked { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.s-picked img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 7px; background: #f2f4f7; }

/* ---------- 分类信息流 ---------- */
.s-feed { padding: 14px 14px 4px; }
.s-tabs { display: flex; gap: 16px; border-bottom: 1px solid #e8ebf0; margin-bottom: 12px; }
.s-tab {
  font-size: 13px; color: var(--s-text-sub, #6b7280); padding-bottom: 8px;
  position: relative; cursor: pointer;
}
.s-tab.on { color: var(--s-primary, #3b6ef5); font-weight: 700; }
.s-tab.on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -1px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--s-primary, #3b6ef5);
}
.s-feed-list { display: flex; flex-direction: column; gap: 10px; }
.s-feed-item { display: flex; gap: 11px; background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); padding: 11px 12px; }
.s-feed-thumb {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--s-primary-soft, #b9c8fb); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.s-feed-main { flex: 1; min-width: 0; }
.s-feed-t { font-size: 13px; font-weight: 600; }
.s-feed-d { font-size: 11.5px; color: var(--s-text-sub, #6b7280); margin-top: 2px; line-height: 1.6; }

/* ---------- 讲师 ---------- */
.s-team { display: flex; gap: 12px; flex-wrap: wrap; }
.s-team-item {
  flex: 1; min-width: 92px; text-align: center;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); padding: 14px 8px;
}
.s-team-av {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
  color: #fff; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.s-team-av img { width: 100%; height: 100%; object-fit: cover; }
.s-team-n { font-size: 13px; font-weight: 600; }
.s-team-r { font-size: 11px; color: var(--s-text-sub, #6b7280); margin-top: 2px; }

/* ---------- 转化类 ---------- */
.s-refcard { background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); overflow: hidden; }
.s-refcard-img { aspect-ratio: 16/9; }
.s-refcard-body { padding: 13px 14px 15px; }
.s-refcard-f { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.s-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: 99px;
  background: var(--s-primary, #3b6ef5); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.s-btn-block { display: flex; width: 100%; height: 42px; font-size: 14.5px; }
.s-btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }
.s-btn-plain { background: #fff; color: var(--s-primary, #3b6ef5); border: 1px solid var(--s-primary, #3b6ef5); }

.s-coupon {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(100deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
  border-radius: var(--s-radius, 12px); padding: 13px 14px; color: #fff;
}
.s-coupon-face { flex: 0 0 auto; text-align: center; padding-right: 12px; border-right: 1px dashed rgba(255, 255, 255, .5); }
.s-coupon-amt { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; }
.s-coupon-min { font-size: 10.5px; opacity: .9; }
.s-coupon-none { font-size: 12px; opacity: .9; padding: 6px 0; }
.s-coupon-info { flex: 1; min-width: 0; }
.s-coupon-t { font-size: 13.5px; font-weight: 700; }
.s-coupon-d { font-size: 11.5px; opacity: .9; margin-top: 2px; }
.s-coupon .s-btn { background: #fff; color: var(--s-primary, #3b6ef5); }

.s-lead {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  padding: 18px 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-lead-t { font-size: 16px; font-weight: 700; }
.s-lead-d { font-size: 12px; color: var(--s-text-sub, #6b7280); margin: 6px 0 12px; line-height: 1.7; }
.s-lead-link {
  font-size: 11px; color: var(--s-primary, #3b6ef5); background: var(--s-primary-light, #eef3ff);
  border-radius: 6px; padding: 5px 8px; margin-bottom: 12px; word-break: break-all;
}

.s-contact {
  display: flex; gap: 14px; align-items: center;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); padding: 15px 14px;
}
.s-contact-qr {
  flex: 0 0 72px; height: 72px; border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid #e8ebf0;
  display: flex; align-items: center; justify-content: center;
}
.s-contact-qr img { width: 100%; height: 100%; object-fit: cover; }
.s-qr-ph { font-size: 11px; color: #b0b8c5; }
.s-contact-main { flex: 1; min-width: 0; }
.s-contact-t { font-size: 14px; font-weight: 700; }
.s-contact-d { font-size: 11.5px; color: var(--s-text-sub, #6b7280); margin: 4px 0 9px; line-height: 1.6; }

/* ---------- 个人名片 ---------- */
.s-profile {
  background: linear-gradient(160deg, var(--s-primary, #3b6ef5), var(--s-primary-dark, #20408f));
  padding: 22px 16px 18px; color: #fff;
}
.s-profile-top { display: flex; align-items: center; gap: 12px; }
.s-profile-av {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.s-profile-n { font-size: 18px; font-weight: 700; }
.s-profile-s { font-size: 12px; opacity: .85; margin-top: 2px; }
.s-profile-main { flex: 1; min-width: 0; }
.s-profile-out {
  flex: 0 0 auto; background: rgba(255, 255, 255, .2); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.s-profile-items { display: flex; margin-top: 16px; }
.s-pi { flex: 1; text-align: center; }
.s-pi-v { font-size: 17px; font-weight: 700; }
.s-pi-l { font-size: 11px; opacity: .85; }

/* ---------- 用户端门户 · 公司介绍（对标 CompanyIntroduce） ---------- */
.s-brand { background: var(--s-card-bg, #fff); padding: 22px 16px 18px; }
/* 机构名大标题居中 —— 对标截图1顶部「爱 尚 学」的排版 */
.s-brand-name {
  text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 6px;
  padding: 10px 0 16px; color: var(--s-text, #1f2937);
}
/* 企业文化逐行卡：左侧主题色竖条 + 名目 + 内容，行间细分隔线 */
.s-culture {
  border: 1px solid #eef1f6; border-radius: var(--s-radius, 12px);
  padding: 6px 14px; background: var(--s-card-bg, #fff);
}
.s-culture-row {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 2px;
  border-bottom: 1px solid #f2f4f8;
}
.s-culture-row:last-child { border-bottom: none; }
.s-culture-k {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--s-text, #1f2937);
}
.s-culture-k::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--s-primary, #3b6ef5);
}
.s-culture-v { flex: 1; font-size: 13px; color: var(--s-text-sub, #6b7280); }
.s-brand-intro {
  margin-top: 12px; font-size: 12.5px; line-height: 1.85;
  color: var(--s-text-sub, #6b7280);
}
.s-brand-ct {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 11.5px; color: var(--s-text-sub, #6b7280);
}

/* ---------- 精选产品 · 精选大图（对标首页 ProductShow） ---------- */
.s-heroes { display: flex; flex-direction: column; gap: 14px; }
.s-hero {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  overflow: hidden; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); cursor: pointer;
}
.s-hero-img { aspect-ratio: 16/9; }
.s-hero-t { text-align: center; font-size: 14.5px; font-weight: 700; padding: 12px 14px 2px; }
.s-hero .s-price { display: block; text-align: center; padding: 0 14px 14px; }

/* ---------- 案例页头部：标题居左、页签居右（对标截图2） ---------- */
.s-case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s-case-head .s-tabs { margin-bottom: 0; }

/* ---------- 页签容器（案例的 推荐/最新、分类信息流共用） ----------
   【真实的 bug 修复】原来 .s-pane 一条样式都没有，
   initPage 里虽然切换了 .on，但两个页签的内容是**同时显示**的 ——
   页面上看起来"重了一倍"，是"配置凌乱"的一个真实来源。
   下面两条缺一不可：.s-panes 不能省，否则子元素会散开。 */
.s-tabbox .s-panes { position: relative; }
.s-tabbox .s-pane { display: none; }
.s-tabbox .s-pane.on { display: block; }

/* ---------- 用户端门户 · 我的已购课程 ---------- */
.s-mycs { display: flex; flex-direction: column; gap: 10px; }
.s-myc {
  display: flex; align-items: center; gap: 11px;
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px); padding: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-myc-thumb {
  flex: 0 0 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--s-primary, #3b6ef5), var(--s-primary-soft, #8fa8f8));
  color: #fff; font-weight: 700;
}
.s-myc-main { flex: 1; min-width: 0; }
.s-myc-t { font-size: 13.5px; font-weight: 600; }
.s-myc-meta { font-size: 11px; color: #98a2b3; margin-top: 5px; }
.s-bar { height: 5px; border-radius: 99px; background: #eef1f6; margin-top: 7px; overflow: hidden; }
.s-bar i { display: block; height: 100%; border-radius: 99px; background: var(--s-primary, #3b6ef5); }
.s-guest {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  padding: 20px 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-guest-t { font-size: 12.5px; color: var(--s-text-sub, #6b7280); margin-bottom: 12px; line-height: 1.75; }

/* ---------- 用户端门户 · 产品大厅 ---------- */
.s-hall { display: flex; flex-direction: column; gap: 12px; }
.s-hall-card {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  overflow: hidden; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-hall-img { aspect-ratio: 16/9; }
.s-hall-body { padding: 12px 13px 14px; }

/* ---------- 用户端门户 · 我的服务入口（对标截图4：竖排菜单列表） ---------- */
.s-mine {
  background: var(--s-card-bg, #fff); border-radius: var(--s-radius, 12px);
  margin: 12px 14px 0; padding: 4px 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.s-mine-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 2px; cursor: pointer; border-bottom: 1px solid #f2f4f8;
}
.s-mine-item:last-child { border-bottom: none; }
.s-mine-ico { flex: 0 0 20px; font-size: 16px; line-height: 1.2; }
.s-mine-t { flex: 1; font-size: 13.5px; color: var(--s-text, #1f2937); }
.s-mine-arrow { flex: 0 0 auto; color: #c0c8d4; font-size: 18px; line-height: 1; }

/* 产品大厅入口大按钮（对标截图3底部「进入产品大厅」） */
.s-hall-enter { margin-bottom: 14px; }
/* 已购课程行尾分享小按钮 */
.s-myc-share {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--s-text-sub, #6b7280); background: #f4f6fa; font-size: 15px;
}
.s-li-tag.off { background: #f2f4f8; color: #98a2b3; }

/* ---------- 分隔 / 预览标记 ---------- */
.s-divider-line { display: flex; align-items: center; }
.s-divider-line::after { content: ''; flex: 1; height: 1px; background: #e8ebf0; margin: 0 14px; }

.s-preview-flag {
  position: sticky; bottom: 0; margin-top: 10px;
  text-align: center; font-size: 11px; color: #98a2b3; padding-bottom: 6px;
}

/* ---------- 底部导航 ---------- */
.s-nav {
  position: sticky; bottom: 0; display: flex;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #e8ebf0;
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 5;
}
.s-nav-tab {
  flex: 1; text-align: center; padding: 7px 0 6px;
  font-size: 11px; color: var(--s-text-sub, #6b7280); cursor: pointer;
}
.s-nav-tab .s-tab-ico { display: block; font-size: 16px; line-height: 1.2; }
.s-nav-tab.on { color: var(--s-primary, #3b6ef5); font-weight: 700; }
.s-nav-tab.off { color: #cfd6e4; }

/* ========================== ② 设计器外壳 ========================== */

.dz-wrap { display: flex; gap: 14px; align-items: stretch; min-height: 640px; }

/* ---------- 左栏 ---------- */
.dz-left {
  flex: 0 0 236px; width: 236px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.dz-tabs { display: flex; border-bottom: 1px solid var(--border-2); }
.dz-tab {
  flex: 1; text-align: center; padding: 11px 0; font-size: 13px; color: var(--text-2);
  cursor: pointer; border-bottom: 2px solid transparent;
}
.dz-tab.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.dz-pane { flex: 1; overflow-y: auto; padding: 12px; max-height: 620px; }

.dz-group-t { font-size: 11.5px; color: var(--text-3); font-weight: 600; margin: 12px 0 8px; }
.dz-group-t:first-child { margin-top: 0; }
.dz-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dz-cmp {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 6px;
  text-align: center; cursor: pointer; background: #fff; transition: all .12s;
}
.dz-cmp:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.dz-cmp-ico { font-size: 17px; line-height: 1.2; }
.dz-cmp-n { font-size: 11.5px; margin-top: 4px; }

/* 整站面板 */
.dz-field { margin-bottom: 14px; }
.dz-label { font-size: 12px; color: var(--text-2); margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; }
.dz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.dz-sw {
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; box-shadow: var(--shadow); position: relative;
}
.dz-sw.on { border-color: var(--text); }
.dz-sw span { position: absolute; left: 0; right: 0; bottom: -18px; font-size: 10px; text-align: center; color: var(--text-3); }
.dz-color {
  width: 100%; height: 32px; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px; background: #fff; cursor: pointer;
}
.dz-nav-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border: 1px solid var(--border-2); border-radius: 6px; margin-bottom: 6px;
  background: #fcfcfd;
}
.dz-nav-row .inp { flex: 1; }
.dz-nav-row .sw { flex: 0 0 auto; }

/* ---------- 中间画布 ---------- */
.dz-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }

.dz-phone-tabs { display: flex; gap: 2px; margin-bottom: 10px; align-self: stretch; }
.dz-pt {
  padding: 6px 14px; font-size: 13px; color: var(--text-2); cursor: pointer;
  border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; background: #fff;
}
.dz-pt.on { color: var(--primary); font-weight: 600; background: var(--primary-light); border-color: var(--primary); }
.dz-pt.off { opacity: .55; }
.dz-pt-tag { font-size: 10px; color: var(--text-3); margin-left: 5px; }

.dz-phone {
  width: 375px; flex: 0 0 auto;
  background: var(--s-page-bg, #f4f6fa);
  border: 8px solid #1f2937; border-radius: 34px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .22);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  height: 660px;
}
.dz-status {
  flex: 0 0 auto; height: 26px; background: #1f2937; color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.dz-canvas { flex: 1; overflow-y: auto; position: relative; }
.dz-canvas::-webkit-scrollbar { width: 6px; }
.dz-canvas::-webkit-scrollbar-thumb { background: #ccd3de; border-radius: 99px; }

/* 画布上的选中框 */
.dz-canvas .s-block { cursor: pointer; }
.dz-canvas .s-block::after {
  content: ''; position: absolute; inset: 0; border: 1.5px solid transparent;
  pointer-events: none; border-radius: 4px; transition: border-color .12s;
}
.dz-canvas .s-block:hover::after { border-color: rgba(59, 110, 245, .45); }
.dz-canvas .s-block.sel::after { border-color: #3b6ef5; border-style: solid; }
.dz-canvas .s-block.sel { z-index: 2; }
.dz-badge-type {
  position: absolute; left: 0; top: 0; z-index: 6;
  background: #3b6ef5; color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 0 0 6px 0; pointer-events: none;
}
.dz-tools {
  position: absolute; right: 6px; top: 6px; z-index: 7;
  display: flex; gap: 4px; background: #fff; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .18); padding: 3px;
}
.dz-tools span {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; border-radius: 4px; color: var(--text-2);
}
.dz-tools span:hover { background: var(--primary-light); color: var(--primary); }
.dz-tools span.danger:hover { background: var(--danger-light); color: var(--danger); }

/* 画布里的可编辑文字 */
.dz-editable { outline: none; }
.dz-editable:focus {
  background: rgba(59, 110, 245, .1); box-shadow: 0 0 0 2px rgba(59, 110, 245, .5);
  border-radius: 3px;
}
.dz-canvas .s-empty { cursor: pointer; }

/* ---------- 右栏 ---------- */
.dz-right {
  flex: 0 0 268px; width: 268px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.dz-right-head {
  padding: 12px 14px; border-bottom: 1px solid var(--border-2);
  font-weight: 600; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between;
}
.dz-right-body { flex: 1; overflow-y: auto; padding: 14px; max-height: 600px; }

.dz-list-item {
  border: 1px solid var(--border-2); border-radius: 8px; padding: 10px;
  margin-bottom: 8px; background: #fcfcfd;
}
.dz-list-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-2); margin-bottom: 8px;
}
.dz-list-head b { color: var(--text); font-weight: 600; }
.dz-add-mini {
  font-size: 12px; color: var(--primary); cursor: pointer; padding: 2px 6px; border-radius: 5px;
}
.dz-add-mini:hover { background: var(--primary-light); }

/* 设计器里的迷你表单 */
.inp, .ta, .sel {
  width: 100%; height: 30px; padding: 0 9px; font-size: 12.5px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 6px; outline: none; color: var(--text);
  background: #fff;
}
.ta { height: auto; padding: 7px 9px; min-height: 62px; resize: vertical; line-height: 1.65; }
.inp:focus, .ta:focus, .sel:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 110, 245, .12); }

/* 开关 */
.sw { position: relative; width: 34px; height: 19px; flex: 0 0 34px; cursor: pointer; }
.sw input { display: none; }
.sw i {
  position: absolute; inset: 0; border-radius: 99px; background: #d5dae3; transition: background .15s;
}
.sw i::after {
  content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px; transition: left .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.sw input:checked + i { background: var(--primary); }
.sw input:checked + i::after { left: 17px; }

/* ---------- 顶栏 ---------- */
.dz-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.dz-bar-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dz-bar-r { display: flex; align-items: center; gap: 8px; }
.dz-stat-chip {
  font-size: 12px; color: var(--text-2); background: var(--info-light);
  border-radius: 99px; padding: 4px 11px;
}
.dz-stat-chip b { color: var(--text); }

.dz-hint {
  font-size: 12px; color: var(--text-3); line-height: 1.8;
  background: #fafbfc; border: 1px dashed var(--border); border-radius: 8px; padding: 9px 11px;
}

/* ---------- 客户端 H5（真机） ---------- */
.site-body {
  margin: 0; background: var(--s-page-bg, #f4f6fa);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; display: flex; flex-direction: column; }
.site-shell .s-page { flex: 1; }
.site-loading { padding: 90px 0; text-align: center; color: #98a2b3; font-size: 13px; }
.site-loading .spinner { margin-bottom: 12px; }
.site-error { padding: 90px 24px; text-align: center; color: #98a2b3; }
.site-error .ico { font-size: 40px; margin-bottom: 12px; opacity: .6; }

/* ---------- 客户端弹层 / 提示（只有 H5 用到，设计器里不出现） ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(16, 24, 40, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; max-height: 86vh;
  background: #fff; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column;
  animation: sheetUp .2s ease;
}
@keyframes sheetUp { from { transform: translateY(26px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 11px; border-bottom: 1px solid #eef1f6;
}
.sheet-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.sheet-close { font-size: 23px; line-height: 1; color: #98a2b3; cursor: pointer; padding: 0 4px; }
.sheet-body { padding: 14px 16px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-note { margin-top: 10px; font-size: 12.5px; line-height: 1.7; }

.s-fld { margin-bottom: 12px; }
.s-fld-l { font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.s-fld input, .s-fld textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px;
  border: 1px solid #e3e8f0; border-radius: 9px; padding: 10px 12px;
  background: #fbfcfe; color: #1f2937; outline: none;
}
.s-fld input:focus, .s-fld textarea:focus { border-color: var(--s-primary, #3b6ef5); background: #fff; }
.s-fld textarea { min-height: 74px; resize: vertical; line-height: 1.7; }

.s-inf { font-size: 12.5px; color: #6b7280; line-height: 1.9; }
.s-inf b { color: #1f2937; }

.s-outline { border: 1px solid #eef1f6; border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; }
.s-outline-t { font-size: 13.5px; font-weight: 700; color: #1f2937; }
.s-outline-c { font-size: 11.5px; color: #98a2b3; margin-top: 4px; line-height: 1.8; }

.s-li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid #f2f4f8;
}
.s-li:last-child { border-bottom: none; }
.s-li-t { font-size: 13px; font-weight: 600; color: #1f2937; }
.s-li-d { font-size: 11.5px; color: #98a2b3; margin-top: 3px; }
.s-li-tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
  background: var(--s-primary-light, #eef3ff); color: var(--s-primary, #3b6ef5);
}

.s-toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 60; max-width: 80%; text-align: center;
  background: rgba(31, 41, 55, .94); color: #fff;
  font-size: 13px; line-height: 1.6; padding: 10px 16px; border-radius: 10px;
  animation: sheetUp .2s ease;
}
.s-ok-ico { font-size: 34px; text-align: center; margin: 4px 0 10px; }
.s-code {
  font-size: 17px; font-weight: 800; letter-spacing: 1px; text-align: center;
  color: var(--s-primary, #3b6ef5); margin: 8px 0;
}
.s-agree-c { font-size: 12px; line-height: 2; color: #475467; white-space: pre-wrap; }
.s-lantern { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.s-lantern span {
  font-size: 12px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid #e3e8f0; color: #6b7280; cursor: pointer;
}
.s-lantern span.on {
  border-color: var(--s-primary, #3b6ef5); color: var(--s-primary, #3b6ef5);
  background: var(--s-primary-light, #eef3ff); font-weight: 600;
}

@media (max-width: 1180px) {
  .dz-left { flex-basis: 200px; width: 200px; }
  .dz-right { flex-basis: 236px; width: 236px; }
}
