/* ============================================================
   中城易佰科技 H5 · 设计系统
   主色橙 #FF6B35 · 背景 #F5F6F8 · 卡片白
   ============================================================ */
:root {
  --brand: #FF6B35;
  --brand-d: #FF4D1E;
  --grad: linear-gradient(135deg, #FF9A4D 0%, #FF5A2B 100%);
  --grad-red: linear-gradient(135deg, #FF7A5C 0%, #FF3B30 100%);
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --t1: #17181A;
  --t2: #5F6470;
  --t3: #9AA0A6;
  --line: #EEF0F3;
  --red: #FF3B30;
  --blue: #2E8BFF;
  --radius: 12px;
  --tabh: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

/* 分享缩略图占位：微信在未接 JS-SDK 时会抓页面第一张「够大的图」当卡片封面，
   没有这张图时分享出去就是一片空白。必须是真实的 img（display:none 的会被忽略），
   所以用绝对定位脱流 + opacity:0 藏起来，不占位、不参与点击、不撑高文档。 */
.share-thumb {
  position: absolute; left: 0; top: 0;
  width: 300px; height: 300px;
  opacity: 0; pointer-events: none; z-index: -1;
}
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #E9EBEF;
  color: var(--t1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
input { -webkit-appearance: none; }

/* 手机画布：PC 打开时居中显示 */
.phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, .08);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 44px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .title { font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.topbar .back {
  position: absolute; left: 6px; top: 0; height: 46px; width: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--t1);
}
.topbar .home-ico {
  position: absolute; left: 8px; top: 0; height: 46px; width: 36px;
  display: flex; align-items: center; justify-content: center; color: #333;
}
.topbar.transparent { background: transparent; border-bottom: 0; }

/* ---------- 主体 ---------- */
.page { padding-bottom: calc(var(--tabh) + var(--safe-b) + 12px); }
.page.nobar { padding-bottom: 20px; }
.wrap { padding: 0 12px; }

/* ---------- 轮播（16:9 横版） ---------- */
.carousel { position: relative; margin: 10px 12px 0; border-radius: var(--radius); overflow: hidden; background: #fff; }
.carousel .track { display: flex; transition: transform .42s cubic-bezier(.22, .61, .36, 1); }
/* 用 padding-top 撑高而不是 aspect-ratio：老内核（安卓 X5 / iOS 14 前）不认 aspect-ratio 会把高度算成 0 */
.carousel .slide { flex: 0 0 100%; position: relative; overflow: hidden; }
.carousel .slide::before { content: ''; display: block; padding-top: 56.25%; } /* 9/16 = 56.25% */
/* 图片等比完整显示，不留白边：底下垫一层同图放大模糊 */
.carousel .slide .bg {
  position: absolute; left: -8%; right: -8%; top: -8%; bottom: -8%;
  background-position: center; background-size: cover;
  filter: blur(16px) saturate(1.15) brightness(.96);
}
.carousel .slide > .img-link {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
}
.carousel .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.carousel .dots {
  position: absolute; left: 0; right: 0; bottom: 7px;
  display: flex; gap: 5px; justify-content: center;
}
/* 未选中：正圆；选中：长条（胶囊） */
.carousel .dots i {
  width: 6px; height: 6px; border-radius: 50%; position: relative;
  background-color: rgba(255, 255, 255, .62);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);   /* 图底色偏浅时白点才看得清 */
  transition: width .28s ease, background-color .28s ease;
  cursor: pointer;
}
/* 透明层扩大点击区（视觉仍是小圆点，阴影不会跟着放大） */
.carousel .dots i::after { content: ''; position: absolute; left: -4px; right: -4px; top: -7px; bottom: -7px; }
.carousel .dots i.on { width: 22px; border-radius: 3px; background-color: #fff; }
/* 无图轮播：渐变底板 */
.slide.theme-orange { background: var(--grad); }
.slide.theme-red { background: var(--grad-red); }
.slide.theme-blue { background: linear-gradient(135deg, #5EA8FF, #1E6BFF); }
.slide .txt { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: #fff; }
.slide .txt h3 { font-size: 26px; font-weight: 800; letter-spacing: .5px; line-height: 1.25; }
.slide .txt p { font-size: 13px; opacity: .92; margin-top: 8px; }
.slide .txt span {
  display: inline-block; margin-top: 14px; padding: 5px 14px;
  border-radius: 20px; background: rgba(255, 255, 255, .22);
  font-size: 12px; border: 1px solid rgba(255, 255, 255, .5);
}

/* ---------- 搜索 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 12px 0;
}
.searchbar .box {
  flex: 1; display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px;
  background: #fff; border-radius: 21px;
  color: var(--t3); font-size: 14px;
}
.searchbar .box input { flex: 1; color: var(--t1); font-size: 14px; }
.searchbar .box input::placeholder { color: #B7BCC4; }
.searchbar .btn {
  height: 42px; padding: 0 22px; border-radius: 21px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 90, 43, .28);
}

/* ---------- 公告 ---------- */
.notice {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 12px 0; padding: 9px 12px;
  background: #fff; border-radius: 8px;
  font-size: 13px; color: var(--t2); overflow: hidden;
}
.notice .tag {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 4px;
  background: #FFEDEA; color: var(--brand); font-size: 12px; font-weight: 600;
}
.notice .txt { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 八宫格 ---------- */
.grid8 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px 4px; padding: 20px 8px 18px;
  background: #fff; margin: 12px 12px 0; border-radius: var(--radius);
  align-items: end; /* 图片图标比圆形高，行内靠底对齐，label 才会在同一水平线 */
}
.grid8 .item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.grid8 .ico {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .13);
}
.grid8 .ico svg { width: 26px; height: 26px; }
/* 3D 图标版：图自带白底，去掉圆底与投影才能和白色卡片融合。
   尺寸 68px 不是为了压过圆形，而是因为 3D 图四周有透视留白、笔画细，
   缩到和圆形一样大（50px）时里面的字会糊成一团、图形也认不出来。 */
.grid8 .ico.has-img {
  width: 68px; height: 68px; border-radius: 0;
  background: none !important; box-shadow: none;
}
.grid8 .ico.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.grid8 .label { font-size: 12px; color: #2B2F36; font-weight: 500; }
.grid8 .badge {
  position: absolute; top: -5px; right: 50%; transform: translateX(34px);
  padding: 1px 5px; border-radius: 8px 8px 8px 2px;
  background: #FF3B30; color: #fff; font-size: 9px; line-height: 1.4;
}

/* ---------- 双 banner ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 12px 0; }
.duo .card {
  background: #fff; border-radius: var(--radius); padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  overflow: hidden; position: relative;
}
.duo .card h4 { font-size: 15px; font-weight: 800; color: #E8590C; letter-spacing: .5px; }
.duo .card p { font-size: 10.5px; color: var(--t3); }
.duo .card .go {
  margin-top: 4px; padding: 3px 10px; border: 1px solid #E8590C; border-radius: 4px;
  font-size: 10px; color: #E8590C;
}
.duo .card.blue h4 { color: #1E6BFF; }
.duo .card.blue .go { border-color: #1E6BFF; color: #1E6BFF; }
.duo .deco {
  position: absolute; right: -14px; top: 12px; width: 54px; height: 54px;
  border-radius: 12px; background: #FFF3E8; transform: rotate(-12deg);
}

/* ---------- 区块标题 ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 12px 10px;
}
.sec-head h3 { font-size: 16px; font-weight: 700; color: var(--t1); }
.sec-head .more { font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 2px; }

/* ---------- 课程卡 ---------- */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.course-card { background: #fff; border-radius: 10px; overflow: hidden; }
/* 16:9 用 height:0 + padding-bottom 撑高（同轮播）。aspect-ratio 要 Chrome 88+，
   安卓 X5 老内核不认会塌成 0 高，封面直接消失。容器不再是 flex，居中改由子元素绝对定位负责。 */
.course-card .cover {
  position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden;
  background: linear-gradient(135deg, #0B2A5B, #17448C);
}
.course-card .cover .ring {
  position: absolute; width: 92px; height: 92px; border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, .07); right: -22px; bottom: -30px;
}
.course-card .cover .k {
  position: absolute; left: 8px; top: 8px;
  padding: 1px 6px; border-radius: 3px; background: rgba(0, 0, 0, .38);
  color: #fff; font-size: 9.5px; letter-spacing: .5px;
}
.course-card .cover .play {
  position: absolute; left: 50%; top: 50%; margin: -17px 0 0 -17px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
}
.course-card .cover .play svg { width: 15px; height: 15px; color: #0B2A5B; margin-left: 2px; }
.course-card .cover .big {
  position: absolute; left: 0; right: 0; top: 50%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  color: #fff; font-size: 16px; font-weight: 800; line-height: 1.22; text-align: center;
  padding: 0 14px; letter-spacing: .5px;
}
.course-card .body { padding: 8px 10px 11px; }
.course-card .t {
  font-size: 13px; font-weight: 600; line-height: 1.4; height: 36px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* 左侧热度胶囊在「观看/已学习都为空」时不渲染，所以不能用 space-between
   （只剩价格一个子元素时它会靠左）。价格自己 margin-left:auto 顶到右边，
   有没有胶囊都贴右且换行规则不变。 */
.course-card .meta { display: flex; align-items: center; margin-top: 7px; }
.course-card .learned {
  font-size: 10.5px; color: #4C8DF6; background: #EDF3FE;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.course-card .price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--red); }
.course-card .price.free { color: var(--red); }

/* 课程封面主题 */
.cover.t-navy { background: linear-gradient(135deg, #0B2A5B, #1B4F9C); }
.cover.t-blue { background: linear-gradient(135deg, #0B4FBF, #2A7DFF); }
.cover.t-red { background: linear-gradient(135deg, #B3122C, #FF4D6D); }
.cover.t-orange { background: linear-gradient(135deg, #D9480F, #FF922B); }
.cover.t-purple { background: linear-gradient(135deg, #4C2C9C, #845EF7); }

/* ---------- 课程页（左分类 右列表） ---------- */
.cat-layout { display: flex; height: calc(100vh - 46px - var(--tabh) - var(--safe-b)); background: #fff; }
.cat-side {
  flex: 0 0 88px; background: #F7F8FA; overflow-y: auto; padding-bottom: 20px;
}
.cat-side .it {
  padding: 15px 6px; text-align: center; font-size: 13px; color: #3C4048;
  position: relative; line-height: 1.3;
}
.cat-side .it.on { background: #fff; color: var(--brand); font-weight: 700; }
.cat-side .it.on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: var(--brand);
}
.cat-main { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.cat-banner {
  margin: 10px; border-radius: 8px; padding: 16px 14px; color: #fff;
  background: linear-gradient(135deg, #2B5BD7, #1E3FA8); position: relative; overflow: hidden;
}
.cat-banner h4 { font-size: 17px; font-weight: 800; }
.cat-banner p { font-size: 10px; opacity: .75; margin-top: 2px; letter-spacing: 1px; }
.cat-banner .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .9; }
.cat-sort {
  display: flex; gap: 16px; justify-content: flex-end; padding: 2px 12px 8px;
  font-size: 12px; color: var(--t3);
}
.cat-sort .on { color: var(--brand); font-weight: 600; }
.crow { display: flex; gap: 10px; padding: 9px 12px; align-items: flex-start; }
.crow .cover {
  flex: 0 0 108px; height: 68px; border-radius: 6px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.crow .cover .big { font-size: 11px; font-weight: 800; color: #fff; line-height: 1.2; text-align: center; padding: 0 8px; }
.crow .info { flex: 1; min-width: 0; }
.crow .info h4 {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.crow .info .price { margin-top: 7px; font-size: 13px; color: var(--red); font-weight: 700; }
.crow .info .price.paid { color: #E8590C; }

/* ---------- 课程详情 ---------- */
/* 同上：不用 aspect-ratio，老内核会塌成 0 高，标题就浮到页面上 */
.detail-hero {
  position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden;
  background: #0B2A5B;
}
/* 图文课没有视频也没有封面图，靠配色区分。这里的五个主题必须和「封面配色」
   下拉一一对应（.cover.t-* 同款色），否则后台选了也不生效。 */
.detail-hero.t-navy { background: linear-gradient(135deg, #0B2A5B, #1B4F9C); }
.detail-hero.t-blue { background: linear-gradient(135deg, #0B4FBF, #2A7DFF); }
.detail-hero.t-red { background: linear-gradient(135deg, #B3122C, #FF4D6D); }
.detail-hero.t-orange { background: linear-gradient(135deg, #D9480F, #FF922B); }
.detail-hero.t-purple { background: linear-gradient(135deg, #4C2C9C, #845EF7); }
/* 后台传了自定义封面就走图。封面比例不一定正好 16:9，cover 裁切可接受。
   图上**不再压标题**：运营给的封面本身常带营销大字，再叠一层白字必然打架，
   而且下方 h1 已有完整标题，重复。没传封面时才用渐变底 + 标题。 */
.detail-hero.has-cover { background-size: cover; background-position: center; }
.detail-hero.has-cover .big { display: none; }
.detail-hero .big {
  position: absolute; left: 0; right: 0; top: 50%;
  -webkit-transform: translateY(-50%); transform: translateY(-50%);
  color: #fff; font-size: 24px; font-weight: 800; text-align: center; padding: 0 30px; line-height: 1.3;
}
.detail-body { background: #fff; padding: 16px; }
.detail-body h1 { font-size: 18px; font-weight: 700; line-height: 1.45; }
.detail-body .tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-body .tags span { font-size: 11px; color: var(--t2); background: #F4F5F7; padding: 3px 8px; border-radius: 4px; }
.detail-body .art { margin-top: 16px; font-size: 14.5px; line-height: 1.85; color: #2B2F36; }
.detail-bar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line); z-index: 60;
}
.detail-bar .price { flex: 1; font-size: 20px; font-weight: 800; color: var(--red); }
.detail-bar .price small { font-size: 12px; font-weight: 400; color: var(--t3); margin-left: 4px; }
.detail-bar .btn {
  padding: 0 34px; height: 44px; border-radius: 22px; background: var(--grad);
  color: #fff; font-weight: 700; font-size: 15px;
}
/* 图文课学完之后是"终态"，按钮不能再摆出可点的橙色实心，否则用户一直点、
   一直没反应，会当成坏了 */
.detail-bar .btn.done {
  background: #EEF0F3; color: #9AA0AA; cursor: default;
}

/* ---------- 课程视频播放器 + 学习进度 ---------- */
/* 未登录时的视频占位：高度用 padding-bottom 撑出 16:9，和 video 的可视高度对齐，
   登录前后不跳版。注意别指望拿遮罩盖 <video> —— 原生控件层压不住。 */
.player-guard {
  position: relative; height: 0; padding-bottom: 56.25%;
  background: #0B1220; overflow: hidden;
}
.player-guard .pg-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.player-guard .pg-mask {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(4, 10, 22, .62);
}
.player-guard .pg-c {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.player-guard .pg-lk {
  width: 52px; height: 52px; border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
}
.player-guard .pg-lk svg { width: 24px; height: 24px; display: block; }
.player-guard .pg-t { margin-top: 10px; font-size: 14px; color: #fff; font-weight: 600; letter-spacing: .3px; }
.player-guard .pg-b {
  margin-top: 14px; padding: 9px 28px; border-radius: 20px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #FF9A4D, #FF5A2B);
}
.player-wrap { background: #000; }
/* video 是替换元素，只剩 width 时高度按视频固有比例算，老内核也认；
   aspect-ratio 留着只是为了支持的内核能提前占位、避免加载完高度跳动 */
.player-wrap video {
  display: block; width: 100%; aspect-ratio: 16 / 9; background: #000;
  object-fit: contain;
}
.prog-strip { background: #fff; padding: 12px 16px 13px; border-bottom: 1px solid var(--line); }
.prog-strip .bar { height: 6px; border-radius: 3px; background: #EDEFF2; overflow: hidden; }
.prog-strip .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); transition: width .35s; }
.prog-strip .txt { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--t3); }
.prog-tip { margin-top: 12px; font-size: 12px; color: var(--t3); line-height: 1.7; }

/* ---------- 我的课程（学习记录） ---------- */
.learn-list { padding: 0 16px 6px; }
.learn-item { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.learn-item:last-child { border-bottom: 0; }
.learn-item .cv { width: 66px; height: 42px; border-radius: 6px; flex: none; position: relative; overflow: hidden; }
.learn-item .cv .p {
  position: absolute; right: 4px; bottom: 4px; font-size: 10px; color: #fff;
  background: rgba(0, 0, 0, .45); padding: 0 4px; border-radius: 3px; line-height: 15px;
}
.learn-item .info { flex: 1; min-width: 0; }
.learn-item .info b {
  font-size: 13.5px; font-weight: 600; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.learn-item .info .mt { display: block; font-size: 11.5px; color: var(--t3); margin-top: 5px; }
.learn-item .info .bar { display: block; height: 4px; border-radius: 2px; background: #EDEFF2; margin-top: 7px; overflow: hidden; }
.learn-item .info .bar i { display: block; height: 4px; background: var(--grad); border-radius: 2px; }
.learn-empty { padding: 22px 0; text-align: center; color: var(--t3); font-size: 13px; }
.learn-item .cv::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-left: 9px solid rgba(255, 255, 255, .92);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.learn-item .cv.t-navy { background: linear-gradient(135deg, #0B2A5B, #1B4F9C); }
.learn-item .cv.t-blue { background: linear-gradient(135deg, #0B4FBF, #2A7DFF); }
.learn-item .cv.t-red { background: linear-gradient(135deg, #B3122C, #FF4D6D); }
.learn-item .cv.t-orange { background: linear-gradient(135deg, #D9480F, #FF922B); }
.learn-item .cv.t-purple { background: linear-gradient(135deg, #4C2C9C, #845EF7); }

/* ---------- 服务页 ---------- */
.svc-banner {
  margin: 10px 12px 0; border-radius: 10px; overflow: hidden;
  background: var(--grad); padding: 16px; color: #fff; position: relative;
}
.svc-banner h3 { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.svc-banner p { font-size: 12px; opacity: .9; margin-top: 4px; }
.svc-banner .go {
  display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 14px;
  background: #fff; color: #E8590C; font-size: 12px; font-weight: 700;
}
.svc-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.svc-scroll::-webkit-scrollbar { display: none; }
.svc-card {
  flex: 0 0 168px; scroll-snap-align: start;
  background: #fff; border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid #FFE0CE;
}
.svc-card .top {
  background: linear-gradient(160deg, #FF8A3D, #FF5A2B); color: #fff;
  padding: 12px 12px 10px; position: relative;
}
.svc-card .top h4 { font-size: 15px; font-weight: 800; }
.svc-card .top .sub { font-size: 11px; opacity: .9; margin-top: 2px; }
.svc-card .top .wave {
  position: absolute; right: -16px; top: -16px; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(255, 255, 255, .18);
}
.svc-card .mid { padding: 10px 12px; }
.svc-card .mid p {
  font-size: 10.5px; color: var(--t3); line-height: 1.5; height: 32px; overflow: hidden;
}
.svc-card .mid .price { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--red); }
.svc-card .mid .price small { font-size: 11px; font-weight: 400; }
.svc-card .mid .old { font-size: 10.5px; color: #B7BCC4; text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.svc-card .badge {
  position: absolute; right: 0; top: 0; padding: 2px 7px;
  background: #FFD43B; color: #7A4B00; font-size: 10px; font-weight: 700;
  border-radius: 0 10px 0 8px;
}
.entry-banner {
  margin: 8px 12px 0; border-radius: 10px; padding: 16px 14px; color: #fff; position: relative; overflow: hidden;
}
.entry-banner.theme-blue { background: linear-gradient(120deg, #4C8DF6, #1E6BFF); }
.entry-banner.theme-red { background: linear-gradient(120deg, #FF5C6C, #E8112D); }
.entry-banner.theme-orange { background: linear-gradient(120deg, #FFA94D, #FF6B35); }
.entry-banner h4 { font-size: 17px; font-weight: 800; }
.entry-banner .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.entry-banner .tags span {
  font-size: 10px; padding: 2px 7px; border-radius: 3px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
}
.entry-banner .go {
  display: inline-block; margin-top: 12px; padding: 5px 16px; border-radius: 14px;
  background: #fff; color: #1E6BFF; font-size: 12px; font-weight: 700;
}
.entry-banner.theme-red .go { color: #E8112D; }
.entry-banner.theme-orange .go { color: #E8590C; }
.entry-banner .deco {
  position: absolute; right: -10px; bottom: -20px; width: 90px; height: 90px;
  border-radius: 22px; background: rgba(255, 255, 255, .13); transform: rotate(18deg);
}

/* ---------- 软件产品入口（服务页 → 星河AI客下载页） ----------
   图标是从 APK 里取的真实应用图标（自适应图标的背景层 + 前景层合成），
   不是文字块占位。底部固定下载条在 app-live.html 自己那一份里，这里只做入口。 */
.app-entry {
  margin: 12px 12px 0; display: flex; align-items: center; padding: 14px;
  border-radius: 12px; background: #fff; text-decoration: none;
  box-shadow: 0 2px 10px rgba(10, 31, 60, .05);
}
.app-entry .ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  margin-right: 12px; display: block;
}
.app-entry .txt { flex: 1 1 auto; min-width: 0; }
.app-entry h4 { font-size: 14.5px; font-weight: 700; color: var(--t1); }
.app-entry h4 em {
  font-style: normal; font-size: 10px; font-weight: 600; color: #FF6B35;
  background: #FFF1EA; padding: 1px 5px; border-radius: 4px; margin-left: 6px;
}
.app-entry p {
  font-size: 11.5px; color: var(--t3); margin-top: 4px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-entry .go {
  flex: 0 0 auto; margin-left: 8px; padding: 6px 13px; border-radius: 14px;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
}

/* ---------- 我的 ---------- */
.member-hero {
  margin: 12px; border-radius: 14px; padding: 18px;
  background: var(--grad-red); color: #fff; position: relative; overflow: hidden;
}
.member-hero .blob {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.member-hero .blob.a { width: 130px; height: 130px; right: -40px; top: -50px; }
.member-hero .blob.b { width: 90px; height: 90px; right: 30px; bottom: -50px; }
.member-hero .ops { position: absolute; right: 14px; top: 12px; display: flex; gap: 14px; opacity: .95; }
.member-hero .row { display: flex; align-items: center; gap: 12px; position: relative; }
.member-hero .ava {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #FF7A5C;
}
.member-hero .name { font-size: 19px; font-weight: 700; }
.member-hero .vipline {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 4px;
  background: rgba(0, 0, 0, .16); border-radius: 10px; padding: 1px 8px 1px 4px; font-size: 10px;
}
.member-hero .stats { display: flex; margin-top: 22px; position: relative; }
.member-hero .stats .s { flex: 1; text-align: center; }
.member-hero .stats .s b { display: block; font-size: 18px; font-weight: 700; }
.member-hero .stats .s span { font-size: 11px; opacity: .85; }

.vip-bar {
  margin: 0 12px; border-radius: 10px; padding: 12px 14px;
  background: #2A2A2A; color: #E8D5A8; display: flex; align-items: center; gap: 10px;
}
.vip-bar .t { flex: 1; }
.vip-bar .t b { font-size: 14px; letter-spacing: .5px; }
.vip-bar .t p { font-size: 11px; color: #B9A98A; margin-top: 2px; }
.vip-bar .act {
  padding: 7px 18px; border-radius: 16px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #F6E3B4, #E5C580); color: #4A3410;
}

.cell-group { background: #fff; border-radius: 12px; margin: 12px 12px 0; overflow: hidden; }
.cell-group .gh { padding: 14px 14px 4px; font-size: 15px; font-weight: 700; }
.asset-row { display: flex; padding: 8px 0 16px; }
.asset-row .a { flex: 1; text-align: center; position: relative; }
.asset-row .a + .a::before {
  content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line);
}
.asset-row .a b { font-size: 17px; font-weight: 700; }
.asset-row .a span { display: block; font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.order-row { display: flex; padding: 6px 4px 18px; }
.order-row .o { flex: 1; text-align: center; color: #3C4048; }
.order-row .o svg { width: 25px; height: 25px; margin: 0 auto 6px; color: #4A4F58; }
.order-row .o span { font-size: 11.5px; color: var(--t2); }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  max-width: 480px; margin: 0 auto;
  display: flex; height: calc(var(--tabh) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar .t {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #9AA0A6; font-size: 10.5px;
}
.tabbar .t svg { width: 23px; height: 23px; }
.tabbar .t.on { color: var(--brand); }
.tabbar .t.on svg { color: var(--brand); }

/* ---------- 通用内容页 ---------- */
.hero {
  padding: 26px 18px 22px; color: #fff;
  background: linear-gradient(150deg, #2B3445 0%, #14171F 100%);
}
.hero h1 { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.hero p { font-size: 13px; opacity: .72; margin-top: 8px; line-height: 1.6; }

/* ---------- 门店入驻页头图（专属类，别并回 .hero） ----------
   .hero 还被 page.js 的内容页用着，动它会波及一片。
   两点设计考虑：
   1) 右上角压一团品牌橙光晕，纯平渐变在深色上很闷；
   2) 数字放大成焦点 + 中文缩小，一句长文案才有阅读落点。
   颜色一律写死，不用 var(--brand) —— 旧内核不认 var 会丢整条声明。 */
.pfhero { position: relative; overflow: hidden; padding: 30px 20px 25px; }
.pfhero::before {
  content: ''; position: absolute; right: -130px; top: -150px;
  width: 380px; height: 380px; border-radius: 50%;
  /* 两层同尺寸的径向渐变叠加，靠半径衰减出亮度梯度。
     千万别给它 background-color：实心圆会被 border-radius 裁出一条硬边，
     在深色底上就是一块看得见轮廓的橙色圆盘，比没有光晕更难看。
     一层走「中心亮、85px 内衰减完」，一层走「整片淡暖底铺到边缘」，
     合起来中心浓、外围散，边界落在全透明处，看不出圆在哪。 */
  /* 必须写 closest-side。radial-gradient 默认按 farthest-corner 算半径（这里 269px），
     而元素只有 190px 宽，渐变在框边还没衰减到 0 就被裁断，左边缘会留一条竖直硬缝。 */
  background-image:
    radial-gradient(circle closest-side, rgba(255, 132, 72, .28) 0%, rgba(255, 132, 72, 0) 52%),
    radial-gradient(circle closest-side, rgba(255, 132, 72, .13) 0%, rgba(255, 132, 72, 0) 100%);
}
.pfhero h1 {
  position: relative; font-size: 25px; font-weight: 800;
  letter-spacing: .5px; line-height: 1.28;
}
/* 标题下一小截品牌色短线，给「品牌印记」，也把标题和数字隔开 */
.pfhero h1::after {
  content: ''; display: block; width: 30px; height: 3px; border-radius: 2px;
  margin-top: 11px; background: #FF6B35;
}
.pfstats {
  position: relative; margin-top: 13px;
  font-size: 12.5px; color: rgba(255, 255, 255, .66); letter-spacing: .3px;
}
.pfstats b {
  font-size: 20px; font-weight: 800; color: #FF8A4D;
  margin-right: 3px; letter-spacing: -.5px;
}
/* 分隔竖线。不用 flex gap —— 老内核不认 */
.pfstats i {
  display: inline-block; width: 1px; height: 13px;
  background: rgba(255, 255, 255, .28);
  vertical-align: middle; margin: 0 9px; position: relative; top: -1px;
}
.pfhero p {
  position: relative; margin-top: 7px; font-size: 13px;
  color: rgba(255, 255, 255, .7); line-height: 1.6; opacity: 1;
}
.block { background: #fff; border-radius: 12px; margin: 12px; padding: 16px 15px; }
/* gap 在旧版 X5 上不生效，竖条会和标题贴死，所以竖条留白用 margin-right */
.block h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; }
.block h3::before { content: ''; width: 3px; height: 15px; border-radius: 2px; background: var(--brand); margin-right: 7px; }
/* 标题与右侧标签之间的渐隐细线，只在有标签时出现 —— 它负责「把标题和标签连起来」，
   没有标签时拖一条到右边距只会显得空。与门店入驻页的分组头同款。 */
.block h3 .ln {
  flex: 1 1 auto; height: 1px; min-width: 10px; margin: 0 9px;
  background-image: linear-gradient(90deg, #FFB894 0%, rgba(255, 184, 148, .10) 82%, rgba(255, 184, 148, 0) 100%);
}
/* 标题右侧的胶囊标签（如「3 种开通方式」）：裸小灰字跟标题不在同一层，读起来像脚注 */
.block h3 .h3x {
  flex: 0 1 auto; min-width: 0; margin-left: 0;
  padding: 3px 8px; border-radius: 9px; background: #DDE3EA;
  font-size: 10.5px; font-weight: 500; color: #6B7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.block .rich { font-size: 14px; line-height: 1.85; color: #3A3F47; }
.block .rich b { color: var(--t1); }

.plat { border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.plat .ph { display: flex; align-items: center; gap: 9px; padding: 12px 13px; color: #fff; }
.plat .ph .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .85; }
.plat .ph b { font-size: 15px; font-weight: 700; }
.plat .ph .mt { margin-left: auto; font-size: 10px; opacity: .82; text-align: right; max-width: 40%; line-height: 1.3; }
.plat .pb { padding: 12px 13px; }
.plat .pb .d { font-size: 13px; color: #4A4F58; line-height: 1.7; }
.plat .pb h5 { font-size: 12.5px; color: var(--brand); font-weight: 700; margin: 12px 0 6px; }
.plat .pb ul { list-style: none; }
.plat .pb li { font-size: 12.5px; color: #4A4F58; line-height: 1.9; padding-left: 13px; position: relative; }
.plat .pb li::before {
  content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px;
  border-radius: 50%; background: #C9CED6;
}
.mapgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 6px; padding: 6px 0 4px; }
.mapgrid .m { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mapgrid .m .ico {
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.mapgrid .m span { font-size: 12px; color: #3C4048; }

/* 玩法宫格（活动链接页「常见玩法」）：3 列，方形淡橙底 + 线性 SVG 图标。
   和上面 .mapgrid 是两套：那边是圆形色块装平台首字（选平台），
   这边是圆角方块装图标（能玩什么），不要合并。
   用 flex + 33.3333% 而不是 grid —— grid 在 Android 5 以下整片塌掉。 */
.playgrid { display: flex; flex-wrap: wrap; margin: 6px -4px 0; }
.playgrid .p {
  flex: 0 0 33.3333%; max-width: 33.3333%;
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 2px; text-align: center;
}
.playgrid .pi {
  width: 46px; height: 46px; border-radius: 14px; background: #FFF1EA;
  display: flex; align-items: center; justify-content: center; margin-bottom: 7px;
}
.playgrid .pi img { width: 23px; height: 23px; display: block; }
.playgrid .pn { font-size: 11.5px; color: #3C4048; }
/* 末尾「··· 更多」弱化一档：它是入口不是玩法，跟前面 8 个抢同等的视觉重量会让人以为也是玩法 */
.playgrid .p.more .pi { background: #F2F3F5; }
.playgrid .p.more .pn { color: #8A8F99; }
.steps .st { display: flex; gap: 12px; padding: 10px 0; }
.steps .st .n {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: #FFF1EA; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.steps .st b { font-size: 14px; }
.steps .st p { font-size: 12.5px; color: var(--t2); line-height: 1.6; margin-top: 3px; }
.cta-box {
  margin: 12px; padding: 18px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #FFF6EF, #FFEBDC); text-align: center;
}
.cta-box p { font-size: 14px; color: #8A4B1E; font-weight: 600; }
.cta-box a {
  display: inline-block; margin-top: 12px; padding: 0 30px; height: 42px; line-height: 42px;
  border-radius: 21px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px rgba(255, 90, 43, .3);
}
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { flex: 0 0 74px; font-size: 13px; color: var(--t3); }
.contact-row .v { flex: 1; font-size: 14px; color: var(--t1); font-weight: 500; line-height: 1.5; }
.contact-row a.call {
  padding: 5px 13px; border-radius: 14px; background: #FFF1EA; color: var(--brand);
  font-size: 12px; font-weight: 600;
}
.site-foot { text-align: center; padding: 24px 16px 10px; color: #A9AFB8; font-size: 11.5px; line-height: 1.9; }

.empty { text-align: center; padding: 60px 20px; color: var(--t3); font-size: 13px; }

/* ---------- 登录 ---------- */
.login-wrap { padding: 40px 28px; }
.login-wrap h2 { font-size: 24px; font-weight: 800; }
.login-wrap p.sub { color: var(--t3); font-size: 13px; margin-top: 6px; }
.field { margin-top: 22px; }
.field label { font-size: 12px; color: var(--t3); }
.field input {
  width: 100%; height: 46px; border-bottom: 1px solid var(--line);
  font-size: 16px; margin-top: 4px;
}
.login-btn {
  width: 100%; height: 48px; border-radius: 24px; background: var(--grad);
  color: #fff; font-size: 16px; font-weight: 700; margin-top: 32px;
  box-shadow: 0 8px 20px rgba(255, 90, 43, .28);
}
.login-tip { margin-top: 16px; font-size: 11.5px; color: var(--t3); text-align: center; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; z-index: 999; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.on { opacity: 1; }

/* ---------- 课程页搜索条 ---------- */
.cat-search { padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.cat-search .box {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: #F4F5F7; border-radius: 18px; color: #B7BCC4; font-size: 13px;
}
.cat-search .box input { flex: 1; font-size: 13px; color: var(--t1); }
.cat-search .box input::placeholder { color: #B7BCC4; }
.cat-layout { display: flex; height: calc(100vh - 46px - 53px - var(--tabh) - var(--safe-b)); }

/* ---------- 修正 ---------- */
.entry-banner { display: block; }
.entry-banner .tags span { line-height: 1.6; }
.plat .ph .mt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-card .mid .old { display: block; margin-left: 0; margin-top: 1px; }
.svc-card .mid { min-height: 96px; }
.vip-bar svg { width: 100%; height: 100%; }
.gallery img, .block img { max-height: 340px; object-fit: cover; width: 100%; }

/* ---------- 活动样图（内容页 · 横滑手机壳） ----------
   后台发来的是「整幅手机效果图」（自带 iPhone 外框 + 彩色背景），已在
   _tools/prep_activity_shots.py 里裁成纯屏幕内容并抹掉灵动岛，
   这里再用统一的 CSS 壳装一遍 —— 不裁就是壳里套壳，两圈黑边两圈圆角。

   一屏一张而不是竖排叠四张：活动页截图信息密度高（大标题 + 奖池 + 规则），
   竖排时壳只能做到 100px 宽，「幸运九宫格」这种标题必然糊成一片。 */
.shots {
  margin: 8px -15px 0;
  padding: 0 15px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.shots::-webkit-scrollbar { height: 0; display: none; }
.shots-track { display: flex; width: 100%; }

.shot {
  /* 80% 让右侧稳定露出 40px 下一张的白边，不用写字也知道能滑 */
  flex: 0 0 80%; flex-shrink: 0;
  margin-right: 10px; padding: 14px 12px 15px;
  background: #fff; border: 1px solid #E8EBF0; border-radius: 12px;
  text-align: center; scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.shot:last-child { margin-right: 15px; }

/* 136x283：内区 126x273 = 0.4615，和裁出来的图（0.4617）几乎一致，
   cover 不会切掉内容。不用 aspect-ratio —— 老内核会把高度算成 0，壳子直接塌。 */
.shot .mphone { display: block; margin: 0 auto; width: 136px; height: 283px; border-radius: 22px; }
.shot .mphone-screen { border-radius: 17px; }

.shot-t { display: block; margin-top: 11px; font-size: 14px; font-weight: 800; color: var(--t1); }
.shot-d { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.65; color: var(--t2); }

.shots-nav { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.shots-dots { display: flex; align-items: center; }
.shots-dots i {
  display: block; width: 5px; height: 5px; border-radius: 3px; background: #DDE0E6;
  margin: 0 3px; transition: width .18s ease, background-color .18s ease;
}
.shots-dots i.on { width: 16px; background: #FF5A2B; }
.shots-count { margin-left: 8px; font-size: 11px; color: var(--t3); }
.shots-cap { margin-top: 10px; font-size: 11.5px; color: #9AA0A6; line-height: 1.7; }

/* PC 站案例：手机壳换成浏览器框。
   卡宽 88% 而不是 80% —— 图是 16:10 横图，80% 时只有约 180px 高，
   首屏导航那一行字糊在一起，看不出这是「做过的站」。 */
.shot-pc { flex: 0 0 88%; text-align: left; }
.browser {
  display: block; border-radius: 8px; overflow: hidden;
  border: 1px solid #E3E7EE; background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
}
.bbar {
  display: flex; align-items: center; height: 22px; padding: 0 9px;
  background: #F4F6F9; border-bottom: 1px solid #E8EBF0;
}
.bbar i {
  display: block; width: 6px; height: 6px; border-radius: 3px;
  background: #D5D9E1; margin-right: 4px; flex: 0 0 auto;
}
.bbar .u {
  flex: 1; min-width: 0; margin-left: 5px;
  font-size: 9.5px; color: #9AA0A6; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bshot { display: block; line-height: 0; }
.bshot img { display: block; width: 100%; height: auto; }
.shot-pc .shot-t { margin-top: 10px; }
/* 320 屏：336 变 266，88% 只剩 234，图缩到 206×129，地址栏和导航字全糊。
   这一档放到 94%，右露的一小条从 40px 收到 16px —— 仍看得出能滑，图大一截。 */
@media (max-width: 360px) {
  .shot-pc { flex: 0 0 94%; }
  .shot-pc .shot-d { font-size: 11px; }
}

/* 成品站手机版案例：9:16 竖长整屏图，和 PC 案例在同一个横滑轨道里。
   卡宽 66%（390 屏 → 约 237px）而不是 PC 的 88%：竖图放 88% 时高到 500px+，
   一屏连一张都看不全；66% 时图高约 380px，标题和说明刚好跟着露出来。
   不套 136px 那个小手机壳——那是给活动样图看「整张奖池/规则」的，
   成品站首屏的字在这个尺寸下全糊，等于白放。 */
.shot-h5 { flex: 0 0 66%; text-align: left; }
.h5frame {
  display: block; border-radius: 12px; overflow: hidden; line-height: 0;
  border: 1px solid #E3E7EE; background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
/* max-height:none 必须写死：上面 .block img 有一条 max-height:340px + object-fit:cover，
   竖图会被拦腰裁掉一截，看着像页面坏了。 */
.h5frame img {
  display: block; width: 100%; height: auto;
  max-height: none; object-fit: fill;
}
.shot-h5 .shot-t { margin-top: 10px; }
/* 320 屏同理放大到 74%：66% 只剩 175px 宽，图 311 高，首屏那行小字看不清了 */
@media (max-width: 360px) {
  .shot-h5 { flex: 0 0 74%; }
  .shot-h5 .shot-d { font-size: 11px; }
}
.crow .cover { overflow: hidden; }
.crow .cover .play2 {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
.crow .cover .play2 svg { width: 12px; height: 12px; color: #0B2A5B; margin-left: 1px; }
.course-card .cover .series {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,.35));
  color: rgba(255,255,255,.88); font-size: 9.5px; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   富文本正文（图文课程详情共用）
   ============================================================ */
.rich { background: #fff; padding: 16px 16px 26px; font-size: 15px; line-height: 1.9; color: #2A2F3A; }
.rich h2 { font-size: 17px; margin: 22px 0 10px; font-weight: 600; color: #17181A; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { font-size: 15.5px; margin: 18px 0 8px; font-weight: 600; }
.rich p { margin: 0 0 14px; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 22px; }
.rich li { margin-bottom: 7px; }
.rich blockquote {
  margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--brand);
  background: #FAFBFC; color: #5A6270; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.8;
}
.rich img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rich a { color: var(--brand); text-decoration: underline; }
.rich b, .rich strong { font-weight: 600; }
.rich hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- 课程中心：类型筛选（全部 / 视频 / 图文） ---------- */
.kind-tabs {
  display: flex; gap: 8px; padding: 8px 12px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.kind-tabs a {
  height: 26px; line-height: 26px; padding: 0 14px; border-radius: 13px;
  background: #F4F5F7; color: var(--t2); font-size: 12.5px;
}
.kind-tabs a.on { background: var(--brand); color: #fff; font-weight: 600; }
/* 图文课没有播放角标，用一个中性小标签区分 */
.crow .cover .kbadge {
  font-size: 10px; color: #fff; background: rgba(0, 0, 0, .28);
  padding: 2px 7px; border-radius: 3px; letter-spacing: .5px;
}
.crow .info .meta { margin-top: 5px; font-size: 11px; color: var(--t3); }

/* ============================================================
   门店入驻：平台选择页（方案 B · 主推大卡 + 双列宫格）
   9 个平台分两族：本地生活（到店核销）5 个 + 电商（线上发货）4 个。
   分族不是为了好看——「小红书」和「小红书电商」名字几乎一样，
   平铺在一排里点错率极高，而两者后台、资质、售后完全不同。
   ============================================================ */
.pgroup { margin: 16px 12px 0; }
/* 分组标题：竖条 + 渐隐细线 + 右侧 pill。
   原来是「标题 + 灰小字」baseline 平铺，两个分组看起来像普通文案，
   分不清边界；细线一拉，层级和分组起止立刻清楚。
   注意两点：
   1) 间距全走 margin —— 原来用的 flex gap 在旧内核不生效，
      实测老机会让标题和说明贴在一起；
   2) 竖条颜色写死，不用 var(--brand)，旧内核会把整条声明丢掉。 */
.pgroup .gh { display: flex; align-items: center; margin: 0 2px 10px; }
.pgroup .gh h3 {
  position: relative; flex: 0 0 auto; padding-left: 10px;
  font-size: 16px; font-weight: 800; color: var(--t1); letter-spacing: .3px;
}
.pgroup .gh h3::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -8px;
  width: 3px; height: 16px; border-radius: 2px; background: #FF6B35;
}
/* 中间那根线：从品牌浅橙渐隐到透明，不抢标题的分量 */
.pgroup .gh .ln {
  flex: 1 1 auto; height: 1px; min-width: 6px; margin: 0 10px;
  background: linear-gradient(90deg, #FFB894 0%, rgba(255, 184, 148, .12) 78%, rgba(255, 184, 148, 0) 100%);
}
.pgroup .gh span {
  flex: 0 1 auto; min-width: 0;
  font-size: 10.5px; color: #6B7280; line-height: 1.3;
  /* 页面底色是 #E9EBEF，pill 必须比它深一档才看得出形状 */
  background: #DDE3EA; border-radius: 9px; padding: 3px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 320 这类窄屏中线只剩十几像素，看着像半截色块，不如不画；
   span 改靠右，间距交给 margin-left:auto */
@media (max-width: 359px) {
  .pgroup .gh .ln { display: none; }
  .pgroup .gh span { margin-left: auto; }
}

/* 主推大卡。品牌色由内联 style 的 background-color 提供，**不靠 CSS 变量**：
   旧内核不认 var() 会把整条声明丢掉，卡片就没底色了，白字直接消失。
   这里只负责叠一层同色明暗渐变，不管品牌色是深是浅都能压住白字
   （美团黄这种亮色也不会糊掉）。 */
.pbig {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 14px; border-radius: 14px; color: #fff; overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(0, 0, 0, .34) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}
.pbig .ab {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .20);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800;
}
/* 平台图标铺满整个色块。首字仍渲染在下层，img 加载失败时被 display:none
   摘掉就能露出首字，所以新增平台不放图也不会破版。
   有图时必须去掉 .ab 的半透明白底，否则会从圆角边缘透出一圈脏边。 */
.pbig .ab, .pgrid .pc .ico { position: relative; overflow: hidden; }
.pbig .ab.has-img { background: none; }
.pf-logo {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; display: block; border-radius: inherit;
  /* 主推大卡的底色就是平台主色，平台 LOGO 也是同一个色（美团黄×黄、小红书红×红），
     不描边的话图标整块化进卡面，只剩几个白字。白卡上的格子不受影响。 */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .38);
}
.pbig .tx { flex: 1; min-width: 0; }
.pbig .tx b { display: block; font-size: 16px; font-weight: 800; }
.pbig .tx em { display: block; font-style: normal; font-size: 11.5px; opacity: .88; margin-top: 4px; line-height: 1.45; }
.pbig .tag {
  position: absolute; right: 0; top: 0; padding: 3px 9px;
  background: rgba(255, 255, 255, .22); border-bottom-left-radius: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.pbig .ar { flex: 0 0 auto; font-size: 20px; opacity: .8; margin-left: -2px; }

/* 双列宫格。用 flex + calc 而不是 grid：grid 在 Android 5 以下整片塌掉，
   而这类门店老板的手机里旧机型不少，calc(50% - 10px) 全兼容。 */
.pgrid { display: flex; flex-wrap: wrap; margin: 2px -5px 0; }
.pgrid .pc {
  position: relative; display: flex; flex-direction: column;
  width: calc(50% - 10px); margin: 5px; padding: 13px 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  min-height: 106px;
}
.pgrid .pc .ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.pgrid .pc b { font-size: 14px; font-weight: 700; color: var(--t1); }
.pgrid .pc em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--t2);
  line-height: 1.5; margin-top: 4px;
}

.pnote { margin: 18px 20px 0; font-size: 11.5px; color: var(--t3); line-height: 1.75; text-align: center; }
/* 顾问入口常驻底部。原来它是页尾的一个按钮，9 个平台铺下来一屏半，
   多数人没滚到底就走了，等于这个入口不存在。
   固定后任何滚动位置都能点；高度与平台详情页的 .pfoot-bar 严格对齐（42 按钮 + 上下各 10），
   全站底部条是一套语言。
   注意 padding-bottom 单独成行：老内核不认 env() 时只丢这一条，
   简写 padding 里的 10px 还在，不会整条失效贴到屏幕边上。 */
.pcta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 10px 14px; padding-bottom: calc(10px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -3px 14px rgba(20, 30, 50, .07);
}
.pcta-bar .tip {
  flex: 1; min-width: 0; margin-right: 12px;
  font-size: 11px; color: var(--t3); line-height: 1.45;
}
.pcta-bar .tip b {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--t1); margin-bottom: 1px;
}
/* 品牌渐变写字面值、不走 var(--grad)：旧内核不认变量会把整条 background 丢掉，
   按钮就成了透明底白字，等于消失。 */
.pcta-bar .btn {
  flex: 0 0 auto; height: 42px; padding: 0 20px; border-radius: 21px;
  display: flex; align-items: center; justify-content: center;
  background: #FF6B35;
  background-image: linear-gradient(135deg, #FF9A4D 0%, #FF5A2B 100%);
  color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, .26);
}
/* 固定条压在内容上，给页面留出条高（62）+ 安全区 + 一点余量 */
.page.nobar.has-cta { padding-bottom: calc(86px + var(--safe-b)); }

/* ---------- 平台详情页 ---------- */
.phero {
  position: relative; padding: 26px 18px 24px; color: #fff; overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(0, 0, 0, .34) 100%);
}
/* 大字底纹：原来是 abbr 文字放大到 84px，现在是平台真 LOGO 的半透明版。
   文字水印在客户眼里就是「占位」，认得出「抖」也认不出这是哪个平台的标。
   透明度取 .26：真 LOGO 自带深色底块，压到 .13 在品牌色背景上看不见；
   提到 .4 又会在正文右侧压出一块深色，把「直接带到店门口」那几行吃掉。
   .26 是两头都能交代的位置——认得出图标，又不跟文字抢。 */
.phero .wm {
  position: absolute; right: 4px; top: 50%; margin-top: -44px;
  width: 88px; height: 88px; border-radius: 21px;
  font-size: 88px; font-weight: 800; line-height: 1; opacity: .26;
}
/* 标题行：LOGO 徽标 + 平台类型胶囊，同一行垂直居中。
   徽标以前不存在（hero 里只有文字水印），补上是因为「标题的图标」按视觉
   只能落在 h1 上方这一行，水印是氛围不算图标。 */
.phero .prow { position: relative; display: flex; align-items: center; }
.phero .ab {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: block;
  background: rgba(255, 255, 255, .22);
  font-size: 18px; font-weight: 800; line-height: 36px; text-align: center;
}
/* 图片徽标不要再垫半透明白底：LOGO 自己的圆角方块已带底色，
   再叠一层会在圆角边缘透出一圈脏边 */
/* 但图标底色和 hero 底色撞色时（美团黄块 × 黄底 hero、小红书红块 × 红底 hero），
   徽标的方块轮廓会整块融进背景，只剩几个白字飘着。
   补一圈极淡的白描边把轮廓勾出来，任何底色上都成立 */
img.ab { background: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .38); }
.phero .fam {
  position: relative; display: inline-block; margin-left: 10px;
  padding: 2px 9px; border-radius: 9px;
  background: rgba(255, 255, 255, .22); font-size: 10.5px; font-weight: 600; letter-spacing: .5px;
}
.phero h1 { position: relative; font-size: 22px; font-weight: 800; margin-top: 9px; }
.phero p { position: relative; font-size: 12.5px; opacity: .9; margin-top: 8px; line-height: 1.6; max-width: 80%; }

/* 引言带：这段导语原来是一张没有标题的白卡，上下各空 16px，
   跟后面「开通案例」的白卡连在一起，看着像两块都没写完。
   改成紧贴 hero 的通栏之后，靠一个大引号把它标成「这是导语」——
   原来左侧那条 3px 橙线跟下面每个块的 h3 竖条是同一个视觉符号，
   连着数下来四条竖条，反而分不出哪条是导语、哪条是标题。 */
/* 引言带：上下都收 16px。原来上边距给到 22px 是为了接住 72px 字符引号溢出的墨迹；
   现在引号是 14px 高的自绘图，而且绝对定位挂在首行、不进文档流，不再需要那 6px 余量。 */
.pintro { position: relative; background: #fff; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pintro .rich {
  position: relative;   /* 引号要绝对定位到缩进缺口里，靠它做定位基准 */
  padding: 0;
  font-size: 13.5px; line-height: 1.85; color: #3A3F47;
}
/* 首行缩进两个字：中文段首缩进本来就是排版惯例，同时给引号腾出缺口。
   缩进 2em = 27px，首字「抖」落在 x=45，缺口的横坐标就是 18~45。 */
.pintro .rich p { text-indent: 2em; }
/* 方引号用 SVG 自绘（左引号 “，不是右引号 ”）：
   ① 宋体引号是圆润的逗号状、Arial 的又太细，换个设备字体回退就变形；
      SVG 是矢量的、跨设备一致，也不用引任何外链。
   ② 方向必须对：左引号是「重心在下、细尖朝右上」，像两个数字 6；
      右引号（”）正好相反，重心在上、细尖朝左下，像两个 9。
      上一版画成了 ” 的镜像，整段话的引号语义是反的。
   ③ 形状按真字形量着画，不是随便切一刀：
      - 底下一个实心块（y 9.2~15 整宽），对应字形里那个「碗」；
      - 左边一条曲线从碗口向上收到顶端（C0 4.4 1.6 .9 4.6 0），对应「6」的那根脖子；
      - 顶边只剩 2.4px 的细颈，且靠右——占块宽 39%，比字形的尖端（21%）略粗，
        因为 15px 高度下再细就糊成一个圆点，看不出是引号的脖子。
      纯直线切角看着像两块斜砖，加上这条弧线才像引号。
   ④ 比例也得对：真字形 “ 的墨迹宽高比约 1.07，现在 16×15 = 1.07，落进缩进两字
      （27px）的缺口里左右各余 5.5。

   位置（2026-10-27 再调：从「首字左上角」下沉进缩进缺口）
   引号是这段的第一个视觉元素，做成行首的悬挂装饰才顺——它占住缩进让出来的那块空白，
   眼睛先碰引号再进正文，而不是先看到一截空行、上面漂着块橙色。所以改成绝对定位：
   - left 5.5px：(缺口 27 - 引号 16) / 2，左右留白相等，不贴着段落左边线；
   - top 5px：引号墨迹 5~20，正文首行墨迹 6~18.75，上下各出 1px 左右，视觉齐平。
   绝对定位还顺手解决了一个老问题：原来那个 18px 高的块会把整段往下推一行，白留一片。 */
.pintro .rich::before {
  content: ''; position: absolute; left: 5.5px; top: 5px;
  width: 16px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='15'%3E%3Cpath d='M6.2 15H0V9.2C0 4.4 1.4 .8 3.8 0h2.4z' fill='%23FF5A2B' fill-opacity='.32'/%3E%3Cpath d='M16 15H9.8V9.2C9.8 4.4 11.2 .8 13.6 0H16z' fill='%23FF5A2B' fill-opacity='.32'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.pintro .rich p:last-child { margin-bottom: 0; }

/* 服务流程：竖线时间轴。
   不能用编号圆球——上面「开通条件」已经是 1~5 的橙底圆球，
   两组圆球编号挨在一起，读者分不清是两件事还是同一件事的延续。
   空心线 + 实心点，语义是「先后」，跟「清单」明确区分开。 */
.flow { padding-top: 3px; }
.flow .fl { position: relative; padding: 0 0 15px 26px; }
.flow .fl.last { padding-bottom: 0; }
.flow .fl::before {
  content: ''; position: absolute; left: 4px; top: 15px; bottom: 0;
  width: 1px; background: #E3E7ED;
}
.flow .fl.last::before { display: none; }
.flow .dot {
  position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px #FFF1EA;
}
.flow .fl b { display: block; font-size: 13.5px; font-weight: 700; color: var(--t1); }
.flow .fl em {
  font-style: normal; margin-right: 6px;
  font-size: 10.5px; font-weight: 700; color: #BFC5CD; letter-spacing: .5px;
}
.flow .fl p { margin-top: 3px; font-size: 12.5px; line-height: 1.65; color: var(--t2); }

.fit-list { list-style: none; }
/* 块内小标题。不能再套 h3——.block h3 自带橙色竖条，三个竖条叠在一起太重。
   带上语义色：两组灰字小标题挨着放时，「适合谁」和「不适合谁」长得一模一样，
   读者得读完每一条才发现下面那组是反例。 */
.block .subh { font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 2px; }
.block .subh.yes { color: #15A34A; }
.block .subh.no { color: #E0454B; }
.fit-list li {
  position: relative; padding-left: 24px; font-size: 13px;
  line-height: 1.7; color: #3A3F47; margin-top: 8px;
}
.fit-list li::before {
  position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.fit-yes li::before { content: '✓'; background: #E8F8EE; color: #16A34A; }
.fit-no li::before { content: '✕'; background: #FDECEA; color: #E5484D; }

.cond-list { list-style: none; }
.cond-list li {
  position: relative; padding-left: 27px; font-size: 13px;
  line-height: 1.7; color: #3A3F47; margin-top: 9px;
}
/* 序号用实体 span 而不是 CSS counter：counter 在旧版 X5 上不显示编号 */
.cond-list li .n {
  position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #FFF1EA; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* 费用与周期原来是独立一卡，两行内容撑出一整块空白。
   现在并进「开通条件」下面，用一条细线隔开，视觉上仍是两件事。 */
.fee-sep { height: 1px; background: var(--line); margin: 14px 0 3px; }
.kv { display: flex; margin-top: 9px; }
.kv .k { flex: 0 0 60px; margin-right: 10px; font-size: 12.5px; color: var(--t3); }
.kv .v { flex: 1; font-size: 12.5px; color: #3A3F47; line-height: 1.7; }

.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq:last-child { border-bottom: none; padding-bottom: 2px; }
.faq .q { position: relative; padding-right: 24px; font-size: 13.5px; font-weight: 600; color: var(--t1); }
.faq .q::after {
  content: '+'; position: absolute; right: 2px; top: -2px;
  font-size: 17px; font-weight: 400; color: var(--t3);
}
.faq.on .q::after { content: '\2212'; }
.faq .a { display: none; font-size: 12.5px; color: var(--t2); line-height: 1.75; margin-top: 8px; }
.faq.on .a { display: block; }

.pfoot-bar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--line); z-index: 60;
}
.pfoot-bar .tip { flex: 1; font-size: 11.5px; color: var(--t3); line-height: 1.45; }
.pfoot-bar .btn {
  flex: 0 0 auto; padding: 0 26px; height: 42px; border-radius: 21px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 开通案例（平台详情页 · 横滑） ----------
   一个平台往往有好几种开通方式（挂靠 / 共管 / 白名单），价格、能不能上实物差别很大，
   所以要先于「适合谁」把选择权交出去。

   一屏一张横向滑动，不再竖排叠三张：竖排时手机壳只能做到 104px 宽，
   店名、评分、团购品全糊成一片，壳子吃掉 200px 高度却不传递任何信息。
   一屏一张后壳子放到 116x238，真实案例的说服力才立得住。

   slider 用负 margin 冲出 .block 的 15px 内边距，让下一张从右边露一条边——
   「还能往右滑」这件事不用写字也看得出来。 */
.case-slider {
  margin: 2px -15px 0;
  padding: 0 15px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
/* 手机上横向滚动条是一条灰带，很破坏画面，直接藏掉 */
.case-slider::-webkit-scrollbar { height: 0; display: none; }

/* track 必须有确定宽度，卡片才能用百分比算宽度，320~430 各档屏宽自适应 */
.case-track { display: flex; width: 100%; }

/* 卡内两栏：左「角标 + 手机壳」，右「模式名 / 橙线 / 适用 / 价格 / 优势 / 按钮」。
   竖排时一张卡 540px，一屏连一张都放不下；两栏后卡高由手机壳锁死，降到 250 上下。
   flex gap 老内核不认，栏距改由 .ca-main 的 padding-left 给。 */
.ca {
  display: flex;
  /* 87% 是量出来的：卡片太宽会跟边缘贴死，看不出「右边还有」；
     太窄又会让手机壳挤。87% 时右侧露出 34px，正好露出一截下一张的橙色角标。 */
  flex: 0 0 87%; flex-shrink: 0;
  margin-right: 10px;
  padding: 12px 14px 14px;
  background: #fff; border: 1px solid #E8EBF0; border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
/* 最后一张右侧补 15，滑到底时卡片不会贴着屏幕边 */
.ca:last-child { margin-right: 15px; }

/* 只有一张案例卡（快手本地生活：只有挂靠一种开通方式，没有第二种可比）。
   不套 .case-slider 轨道 —— 单卡落在 87% 宽的轨道里，右边会空出一条点不到的白，
   下面还挂着一颗孤零零的圆点和「1 / 1」。通栏之后手机壳回到 116 的标准尺寸，
   截图看得更清；角标、橙线、勾选仍然走同一条中轴，和抖音那三张是同一套语言。 */
.case-solo { margin-top: 2px; }
.case-solo .ca { flex: none; margin-right: 0; }
.case-solo .ca-side { flex: 0 0 116px; width: 116px; }
.case-solo .ca-side .mphone { width: 116px; height: 240px; border-radius: 20px; }
.case-solo .ca-side .mphone-screen { border-radius: 15px; }
.case-solo .ca-side .mphone-notch { margin-left: -21px; width: 42px; height: 8px; }
/* 卡片宽了一倍，字号跟着抬一档；不抬会像「小字贴在大白纸中间」 */
.case-solo .ca-mode { font-size: 18px; }
.case-solo .ca-target { font-size: 12px; }
.case-solo .ca-ben li { font-size: 12px; line-height: 1.7; }
/* 单卡的文字块比手机壳矮（约 190 vs 240），照横滑那套「按钮贴底」会把空白
   全堆在优势和灰字之间，看着像漏了一段。这里改成整块垂直居中，上下余量对等。 */
.case-solo .ca-main { justify-content: center; }
.case-solo .ca-note { margin-top: 12px; }

/* 纯图单卡（bare）：只有一张手机壳截图，不配角标/店名/优势/灰字。
   居中，比左右分栏那档放大到 150x310（内区 140x300 = 0.467，源图 480x1040 = 0.4615，
   差 1.1%，看不出拉伸）。纯图没有右栏，再按 116 摆会显得又小又偏左。 */
.case-solo.is-pic { display: flex; justify-content: center; padding: 18px 0 8px; }
.case-solo.is-pic .mphone { width: 150px; height: 310px; border-radius: 26px; }
.case-solo.is-pic .mphone-screen { border-radius: 20px; }
.case-solo.is-pic .mphone-notch { margin-left: -26px; width: 52px; height: 10px; }

/* 320 屏：通栏卡里左栏还占 116，右栏就只剩 135px，「JVIP·阿号黄金」18px 一行要 179px，
   直接顶出卡片右边（.ca-mode 是 nowrap），「限时团购 3 个在售」也会断成「…在 / 售」。
   壳子缩到 88（内区 78x172，和原图 0.4615 差 1.8%，看不出），右栏回到 163 再配 15px 标题。 */
@media (max-width: 360px) {
  .case-solo .ca-side { flex: 0 0 88px; width: 88px; }
  .case-solo .ca-side .mphone { width: 88px; height: 182px; border-radius: 15px; }
  .case-solo .ca-side .mphone-screen { border-radius: 12px; }
  .case-solo .ca-side .mphone-notch { margin-left: -15px; width: 30px; height: 6px; }
  .case-solo .ca-mode { font-size: 15px; }
  .case-solo .ca-target,
  .case-solo .ca-ben li { font-size: 11.5px; }
  /* 320 屏的纯图卡：150 宽在 288 的可用宽度里还有余量，但和同页其他卡片比会显大，收到 132 */
  .case-solo.is-pic .mphone { width: 132px; height: 273px; border-radius: 23px; }
  .case-solo.is-pic .mphone-screen { border-radius: 18px; }
  .case-solo.is-pic .mphone-notch { margin-left: -23px; width: 46px; height: 9px; }
}

/* 左栏宽度必须和壳子同宽（98），角标才能压在壳子正上方居中。
   98x200 的内区是 88x190 = 0.463，截图原比例 0.4611，差 0.5%，看不出拉伸。
   不能为压高度把壳子再压扁——之前压到 204 就是横向拉宽 18%，店名整片糊。 */
.ca-side { flex: 0 0 98px; width: 98px; text-align: center; }
.ca-side .mphone { width: 98px; height: 200px; border-radius: 17px; }
.ca-side .mphone-screen { border-radius: 13px; }
.ca-side .mphone-notch { margin-left: -18px; width: 36px; height: 7px; }

.ca-no {
  display: inline-block; margin: 0 0 7px; padding: 0 7px; height: 16px; line-height: 16px;
  border-radius: 5px; background: #F2F4F7; color: #9AA1AC;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
}
/* 有角标时用品牌橙：它替代 01/02/03 序标，因为横滑已经有圆点表示顺序了 */
.ca-no.is-badge { background: #FFF1EC; color: #FF5A2B; }

/* 右栏：标题、橙线、适用标签、价格、按钮全挂在这条中轴上。
   居中的是「块」不是每一行——优势三条长度不同，逐行居中会让勾号一行一个位置。 */
.ca-main {
  flex: 1 1 auto; min-width: 0; padding-left: 11px;
  display: flex; flex-direction: column; text-align: center;
}
.ca-mode {
  display: block; line-height: 1.2;
  font-size: 17px; font-weight: 800; letter-spacing: .6px;
  color: var(--t1); white-space: nowrap;
}
/* 橙线跟着右栏中轴，不再跨整张卡。间距靠它撑开，标题和「适用」之间才有呼吸 */
.ca-rule {
  display: block; width: 26px; height: 3px; margin: 6px auto 8px; border-radius: 2px;
  background-image: linear-gradient(90deg, #FFB27A 0%, #FF5A2B 100%);
}

/* 价格数字大、单位小：1980 是决策点，「元/年/店」只是口径说明。 */
.ca-price { display: block; margin: 8px 0 6px; color: #FF5A2B; text-align: center; }
.ca-price b { font-size: 21px; font-weight: 800; }
.ca-price i { font-style: normal; margin-left: 2px; font-size: 10.5px; font-weight: 600; }

/* 「适用」独占一行的居中标签：夹在行首时文字居中会把它甩到半空。
   display:table 是给老内核用的收缩居中写法（fit-content 不认时不会撑满整栏）。 */
.ca-tag {
  display: table; margin: 0 auto 4px; padding: 0 5px;
  height: 15px; line-height: 15px; border-radius: 4px;
  background: #EFF4FF; color: #2F6BD8; font-size: 10px; font-weight: 700;
  font-style: normal;
}

/* 适用对象超过两行就截断：卡片上不必全给，两行够判断，剩下的去详情页。
   不再用 min-height 锁两行 —— 现在卡高由左边的手机壳锁死，三张卡天然等高。 */
.ca-target {
  font-size: 11.5px; line-height: 1.55; color: var(--t2);
  text-align: center;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* 三张卡被 flex 拉成等高，内容少的卡会多出几十像素。这几十像素全部推给
   「优势 → 按钮」之间，由按钮的 margin-top:auto 吸收：试过让优势列表垂直居中，
   空白跑到「价格 → 优势」之间，把价格孤立成图片的注脚，比堆在底下更难看。
   空白贴底读起来是留白，贴中间读起来是断档。 */
/* 优势这块整体收到「最长那一条」的宽度再水平居中，勾号仍然左对齐成一列。
   直接给 li 写 text-align:center 也能居中，但三条长度不同，勾会一行一个位置。
   width:fit-content 老内核不认时退化成撑满（等于左对齐），不会错乱。 */
.ca-ben {
  list-style: none; margin: 4px auto 0;
  width: -webkit-fit-content; width: -moz-fit-content; width: fit-content;
  max-width: 100%; text-align: left;
}
.ca-ben li {
  position: relative; padding-left: 14px; margin-bottom: 3px;
  font-size: 11.5px; line-height: 1.65; color: #3A3F47;
}
.ca-ben li:last-child { margin-bottom: 0; }
.ca-ben li::before {
  content: '\2713'; position: absolute; left: 0; top: 0;
  font-size: 10px; font-weight: 700; color: #16A34A;
}

/* 按钮收缩到内容宽（「了解详情」4 字约 96px），不再通栏：
   通栏时右栏只有 190，按钮横着铺满反而把上面几行文字的中轴压没了。
   display:table 是收缩写法，margin:auto auto 0 让它在右栏里既居中又贴底。 */
.ca-btn {
  display: table; margin: auto auto 0; padding: 0 22px;
  height: 32px; line-height: 32px; border-radius: 16px;
  background: linear-gradient(135deg, #FF9A4D 0%, #FF5A2B 100%);
  color: #fff; font-size: 12.5px; font-weight: 700;
}

/* 没有详情页的方案（白名单）用的占位条：高度与按钮完全一致，
   保证三张卡的按钮/说明落在同一条水平线上 */
.ca-note {
  display: table; margin: auto auto 0; padding: 0 14px;
  height: 32px; line-height: 32px; border-radius: 16px;
  background: #F6F7F9; color: #9AA0A6; font-size: 11.5px;
}

/* 320~360 的窄屏：卡片 87% 时右栏只剩 100 出头，「1980 元/年/店」会断成两行，
   优势也跟着折。这时把卡片放宽到 94%（少露一点下一张）、壳子缩到 84×172
   （内区 74×162 = 0.4568，与原图 0.4611 差 1%，仍不拉伸），右栏能回到 130 上下。 */
@media (max-width: 360px) {
  .ca { flex-basis: 94%; }
  .ca-side { flex-basis: 84px; width: 84px; }
  .ca-side .mphone { width: 84px; height: 172px; border-radius: 15px; }
  .ca-side .mphone-notch { margin-left: -15px; width: 30px; height: 6px; }
  .ca-price b { font-size: 19px; }
  .ca-price i { font-size: 10px; }
}

/* 页码：横滑会把后两张藏在屏幕外，不说清还有几张，很多人滑到第一张就以为只有一种 */
.case-nav { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.case-dots { display: flex; align-items: center; }
.case-dots i {
  display: block; width: 5px; height: 5px; border-radius: 3px; background: #DDE0E6;
  margin: 0 3px; transition: width .18s ease, background-color .18s ease;
}
.case-dots i.on { width: 16px; background: #FF5A2B; }
.case-count { margin-left: 8px; font-size: 11px; color: var(--t3); }

/* 手机壳：截图真实比例 640x1388 = 0.4611。壳子内区必须同比例，否则 cover 会横着拉宽、
   手机看起来「压扁」——之前压到 204 就是为了压卡片高度，代价是内区 106x194（0.546），
   图被横向拉宽 18%，店名那一片全糊。现在回到 116x240：内区 106x230 = 0.4609，一像素不裁。
   加高 36px 后整块从 586 涨到 622，换来图片是真比例、不再是压扁的假手机。
   不用 aspect-ratio —— 老内核会把高度算成 0，壳子直接塌掉。 */
.mphone {
  position: relative; display: inline-block; vertical-align: top;
  flex: 0 0 auto; width: 116px; height: 240px;
  background: #0F172A; border-radius: 20px; padding: 5px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}
.mphone-notch {
  position: absolute; top: 5px; left: 50%; margin-left: -21px;
  width: 42px; height: 8px; background: #0F172A;
  border-radius: 0 0 6px 6px; z-index: 3;
}
.mphone-screen {
  position: absolute; left: 5px; top: 5px; right: 5px; bottom: 5px;
  border-radius: 15px; overflow: hidden; background: #fff;
}
/* max-height:none 是必须的：.block img 有一条 max-height:340px，
   介绍页大号壳的内区有 342，被它砍 2px 会在底部露一条白边 */
.mphone-screen img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  max-height: none;
  object-fit: cover; object-position: top center;
}

/* 介绍页的大号：居中单独一行。同样按 0.4611 算（内区 158x342），不是随手放大 1.45 倍。 */
.mphone-lg { display: block; width: 168px; height: 352px; margin: 14px auto 4px; border-radius: 24px; }
.mphone-lg .mphone-screen { border-radius: 19px; }

/* ---------- 开通方案介绍页 ---------- */
.case-price {
  display: flex; align-items: baseline; margin: 12px 12px 0;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.case-price .k { flex: 0 0 auto; margin-right: 10px; font-size: 12.5px; color: var(--t3); }
.case-price b { flex: 1; font-size: 17px; font-weight: 800; color: #FF5A2B; }

.aftersale { font-size: 12.5px; color: #3A3F47; line-height: 1.75; }

.plan {
  padding: 12px 13px; margin-top: 11px;
  background: #FAFBFC; border: 1px solid var(--line); border-radius: 12px;
}
.plan:first-child { margin-top: 0; }
.plan-hd { display: flex; align-items: baseline; }
.plan-hd b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; color: var(--t1); }
.plan-p { flex: 0 0 auto; margin-left: 8px; font-size: 19px; font-weight: 800; color: #FF5A2B; }
.plan-p em { font-style: normal; margin-left: 2px; font-size: 11px; font-weight: 400; color: var(--t3); }
.plan-old { margin-top: 1px; font-size: 11px; color: var(--t3); text-align: right; }
.plan-old s { color: #B7BCC4; }
.plan-tags { margin: 9px -3px 0; display: flex; flex-wrap: wrap; }
.plan-tags span {
  margin: 3px; padding: 2px 8px; border-radius: 9px;
  font-size: 11px; color: #2E7D32; background: #EAF7EC;
}
.plan .kv .k { flex: 0 0 56px; }
.plan .kv .v { font-size: 12px; }

/* 介绍页底部的「后续说明」入口（目前只有共管模式挂：开通后的作业须知）。
   做成橙描边卡而不是普通白卡——它是这一页看完之后的下一步动作，
   跟上面的套餐卡长一个样会被当成第五档价格。
   数据来自 cases.guide（title / desc / url / btn），后台改字段即可改文案，
   不写死「共管」两个字，以后挂靠、白名单要加说明页也能复用。 */
.guide-entry {
  display: block; margin: 12px 12px 0; padding: 14px 15px;
  border: 1px solid #FFD8C4; border-radius: 12px;
  background: linear-gradient(135deg, #FFF8F3 0%, #FFEFE5 100%);
}
.guide-entry .gt {
  display: flex; align-items: center;
  font-size: 15px; font-weight: 800; color: #17181A;
}
.guide-entry .gt i {
  flex: 0 0 auto; width: 20px; height: 20px; margin-right: 7px;
  border-radius: 50%; background: #FF6B35; color: #fff;
  font-style: normal; font-size: 12px; font-weight: 800;
  line-height: 20px; text-align: center;
}
.guide-entry .gd { display: block; margin: 7px 0 0 27px; font-size: 12.5px; line-height: 1.7; color: #6B4A36; }
.guide-entry .gb2 {
  display: inline-block; margin: 10px 0 0 27px; padding: 6px 14px;
  border-radius: 15px; background: #FF6B35;
  color: #fff; font-size: 12.5px; font-weight: 700;
}

/* ============================================================
   门店入驻 · 「填写入驻资料」悬浮窗（2026-11-16）
   位置要避开底部顾问条：那条是本页主 CTA，压住它等于把流量抢走。
   顾问条实高约 62–72px（内边距 + 40px 按钮），所以 bottom 从 84px 起。
   env() 单独一行：简写里塞 calc + env，低版本整条会失效。
   ============================================================ */
.entry-fab {
  position: fixed; right: 12px; z-index: 60;
  bottom: 84px;
  bottom: calc(84px + var(--safe-b));
  display: flex; align-items: center;
  border-radius: 26px;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(255, 90, 43, .40), 0 0 0 2px rgba(255, 255, 255, .55);
  max-width: 480px;
}
/* max-width 之后右边缘会跑到屏幕中间：用 translateX 修正到容器内
   （480 以上的屏才有影响，手机上 right:12px 已经正确） */
@media (min-width: 481px) {
  .entry-fab { right: calc((100vw - 480px) / 2 + 12px); }
}
.entry-fab .main {
  display: flex; align-items: center;
  padding: 8px 13px 8px 8px;
  text-decoration: none; color: #fff;
}
.entry-fab:active { transform: scale(.96); }
.entry-fab .fi {
  flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  margin-right: 8px;
}
/* 文档图标用 CSS 画：为一个小图标引一张 png 不划算，且这里要跟主题色走 */
.entry-fab .fi .doc {
  position: relative; width: 12px; height: 15px;
  border: 1.5px solid #fff; border-radius: 2.5px;
}
.entry-fab .fi .doc::after {
  content: ''; position: absolute; left: 2px; right: 2px; top: 3.5px;
  height: 1.5px; background: #fff;
  box-shadow: 0 4.5px 0 #fff;
}
.entry-fab .ft { line-height: 1.2; text-align: left; }
.entry-fab .ft b { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.entry-fab .ft em { display: block; font-style: normal; font-size: 10px; opacity: .85; margin-top: 1px; }
.entry-fab .fx {
  position: absolute; right: -5px; top: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; color: #B0B4BC;
  font-size: 11px; line-height: 17px; text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  cursor: pointer;
}
