    /* ================= 主题变量（由接口下发覆盖） ================= */
    :root {
      --pe-primary: #2f54eb;
      --pe-secondary: #13c2c2;
      --pe-page-bg: #ffffff;
      --pe-text: #333333;
    }

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

    html, body { height: 100%; }

    body {
      font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
      -webkit-font-smoothing: antialiased;
      background: #f0f2f5;
      color: var(--pe-text);
    }

    /* 页面容器：移动端满宽，桌面端居中限宽。
       overflow-x 用 clip（不能是 hidden）：hidden 会把容器变成滚动容器，导致内部 sticky 吸顶失效 */
    .page {
      position: relative;
      max-width: 480px;
      min-height: 100vh;
      margin: 0 auto;
      background: var(--pe-page-bg);
      overflow-x: hidden;
      overflow-x: clip;
    }

    /* ================= 加载 / 错误 ================= */
    .mask {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: #f7f8fa;
      padding: 24px;
    }

    .mask .spinner {
      width: 32px;
      height: 32px;
      border: 3px solid #e5e6eb;
      border-top-color: var(--pe-primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .mask .tip { font-size: 14px; color: #86909c; }

    .mask .error-icon { font-size: 40px; }

    /* ================= 微信接口异常弹窗 ================= */
    .wx-err-mask {
      position: fixed; inset: 0; z-index: 200;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0, 0, 0, 0.45); padding: 24px;
    }
    .wx-err-box {
      width: 100%; max-width: 320px; padding: 16px;
      background: #fff; border-radius: 8px; font-size: 13px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }
    .wx-err-box h4 { margin: 0 0 10px; font-size: 15px; color: #e64340; }
    .wx-err-line { margin: 4px 0; word-break: break-all; color: #333; line-height: 1.5; }
    .wx-err-line b { font-weight: normal; color: #86909c; margin-right: 6px; }
    .wx-err-close {
      margin-top: 12px; width: 100%; padding: 8px 0;
      border: none; border-radius: 4px; background: var(--pe-primary);
      color: #fff; font-size: 14px; cursor: pointer;
    }

    /* ================= 组件渲染 ================= */
    .comp { width: auto; }

    /* 图片 */
    .c-image-box { overflow: hidden; }
    .c-image-box img { display: block; }
    .c-image-box .ph {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; min-height: 80px; height: 100%;
      border: 1px dashed #d5d9e0; color: #b8bec8; font-size: 12px;
    }

    /* 视频：播放控制统一用原生 video controls，避免自绘按钮的兼容问题 */
    .c-video-box { position: relative; background: #000; line-height: 0; overflow: hidden; }
    .c-video-box video { display: block; }

    /* 按钮 */
    .c-button-wrap { text-align: center; }
    .c-button {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer;
    }

    /* 菜单 */
    .c-menu { background: #fff; border-radius: 4px; overflow: hidden; }
    .c-menu-item {
      display: flex; align-items: center; justify-content: space-between;
      height: 40px; padding: 0 14px; font-size: 14px; color: #1f2329;
      border-bottom: 1px solid #f2f3f5; text-decoration: none; cursor: pointer;
    }
    .c-menu-item:last-child { border-bottom: none; }
    .c-menu-left { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
    .c-menu-item .arr { color: #c9cdd4; font-style: normal; }

    /* 图标占位（按钮/菜单项）：行高固定为 1，避免继承行高把图标撑出行框导致不居中 */
    .ci { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

    /* 文本 */
    .c-text { white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }

    /* 富文本 */
    .c-richtext { font-size: 14px; line-height: 1.7; word-break: break-all; overflow-wrap: anywhere; }
    /* 首尾元素贴边：清除浏览器默认外边距，默认无白边（留白由用户通过内边距设定） */
    .c-richtext > :first-child { margin-top: 0; }
    .c-richtext > :last-child { margin-bottom: 0; }
    .c-richtext img { max-width: 100%; }
    .c-richtext a { color: var(--pe-primary); }

    /* 轮播图：移动端 swiper 式左右滑动（translateX），底部一行 = 标题（左）+ 指示点（右） */
    .c-carousel { position: relative; overflow: hidden; touch-action: pan-y; }
    .c-carousel .slides {
      display: flex; height: 100%;
      transition-property: transform; transition-timing-function: ease;
      will-change: transform;
    }
    .c-carousel .slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; }
    .c-carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .c-carousel .footer {
      position: absolute; left: 0; right: 0; bottom: 0;
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      padding: 20px 12px 8px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
      pointer-events: none;
    }
    .c-carousel .caption {
      flex: 1; min-width: 0;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-size: 13px; color: #fff;
    }
    .c-carousel .dots { display: flex; align-items: center; gap: 5px; }
    .c-carousel .dots i {
      width: 6px; height: 6px; border-radius: 3px;
      background: rgba(255, 255, 255, 0.5);
      transition: width 0.3s, background 0.3s;
    }
    .c-carousel .dots i.on { width: 16px; background: #fff; }

    /* 顶部导航（sticky 吸顶，天然占位） */
    .c-navbar {
      position: sticky; top: 0; z-index: 30;
      display: flex; align-items: center; justify-content: center;
    }
    .c-navbar .back { position: absolute; left: 12px; display: flex; align-items: center; cursor: pointer; }
    .c-navbar .title {
      max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-size: 16px; font-weight: 600;
    }

    /* 嵌入网页：封面（背景图/色 + 标题/按钮/提示）→ 点击加载 iframe；支持全屏/缩小/关闭 */
    .c-embed { position: relative; overflow: hidden; }
    .c-embed .embed-cover {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background-size: cover; background-position: center;
      cursor: pointer;
    }
    .c-embed .embed-inner {
      display: flex; flex-direction: column; align-items: center; gap: 10px;
      width: 100%; padding: 12px;
    }
    .c-embed .embed-title {
      max-width: 100%; text-align: center;
      font-size: 16px; font-weight: 600; line-height: 1.4;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    .c-embed .embed-btn { padding: 8px 22px; border-radius: 4px; font-size: 14px; line-height: 1; }
    .c-embed .embed-desc {
      max-width: 100%; text-align: center;
      font-size: 13px; line-height: 1.5; opacity: 0.9;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    .c-embed .embed-frame-wrap { position: absolute; inset: 0; }
    .c-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
    .c-embed .embed-act {
      position: absolute; left: 50%; transform: translateX(-50%);
      width: 50px; height: 26px;
      background: rgba(0, 0, 0, 0.7); color: #fff; z-index: 9;
      text-align: center; font-size: 12px; line-height: 26px;
      border-radius: 5px; cursor: pointer;
    }
    .c-embed .embed-close { top: 10px; }
    .c-embed .embed-full, .c-embed .embed-min { bottom: 30px; }
    .c-embed .hide { display: none; }
    /* 全屏态：铺满视口（!important 压过内联的 aspect-ratio/margin） */
    .c-embed.embed-fs {
      position: fixed; inset: 0; z-index: 999;
      width: 100vw !important; height: 100vh !important;
      aspect-ratio: auto !important; margin: 0 !important;
      max-width: none !important; border-radius: 0 !important;
    }

    /* 悬浮按钮（返回顶部 / 电话客服）：
       fixed 视口层 + 居中限宽（与 .page 列对齐），滚动时位置固定不动；
       层本身 pointer-events 关闭，仅按钮可点，不挡页面交互 */
    .c-float-layer {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 100%;
      max-width: 480px;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: 40;
    }

    .c-float {
      position: absolute; transform: translate(-50%, -50%);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); text-decoration: none; cursor: pointer;
      pointer-events: auto;
    }

    /* 返回顶部：默认隐藏，页面滚动超过阈值后淡入（页面不够高时永不出现）；
       圆角由组件配置输出（内联样式，默认 50% 圆形） */
    .c-float-backtop {
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .c-float-backtop.show {
      opacity: 1;
      visibility: visible;
    }

    /* 音乐播放器：封面铺满裁切；播放时封面旋转 + 边框流光 + 音浪跳动 */
    .c-float-music .music-clip {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: inherit; /* 裁切容器跟随外层圆角，封面不会超出圆角 */
      display: flex; align-items: center; justify-content: center;
    }
    .c-float-music .music-cover {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
    }
    .c-float-music .music-ic {
      pointer-events: none;
    }
    /* 封面旋转：开始播放后动画一直挂载，用 play-state 切换播放/暂停 —— 暂停停在当前角度不回弹 */
    .c-float-music.started .music-cover,
    .c-float-music.started .music-ic {
      animation: music-spin 3s linear infinite;
      animation-play-state: paused;
    }
    .c-float-music.started.playing .music-cover,
    .c-float-music.started.playing .music-ic {
      animation-play-state: running;
    }
    @keyframes music-spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* 赛博朋克音波：播放时三道霓虹乱浪环（青/品红/紫）向外循环扩散，
       扩散中圆角持续变形+旋转呈不规则波浪；同时六颗霓虹粒子光点从按钮边缘向外飞散 */
    .c-float-music .music-ripple {
      display: none;
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .c-float-music .music-ripple .wv {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      animation: music-ecg 2.4s ease-out infinite;
    }
    .c-float-music .music-ripple .wv1 { stroke: #00e5ff; filter: drop-shadow(0 0 4px #00e5ff); }
    .c-float-music .music-ripple .wv2 { stroke: #ff2ec4; filter: drop-shadow(0 0 4px #ff2ec4); animation-delay: 0.8s; animation-duration: 2.7s; }
    .c-float-music .music-ripple .wv3 { stroke: #7c4dff; filter: drop-shadow(0 0 4px #7c4dff); animation-delay: 1.6s; animation-duration: 3s; }
    /* 心电图环：从按钮边缘向外扩散放大，带轻微旋转 */
    @keyframes music-ecg {
      0% { transform: scale(0.85) rotate(-8deg); opacity: 0; }
      20% { opacity: 0.95; }
      70% { opacity: 0.35; }
      100% { transform: scale(2.1) rotate(10deg); opacity: 0; }
    }
    .c-float-music .music-ripple .p {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 4px;
      height: 4px;
      margin: -2px 0 0 -2px;
      border-radius: 50%;
      background: #00e5ff;
      box-shadow: 0 0 6px #00e5ff, 0 0 12px rgba(0, 229, 255, 0.55);
      opacity: 0;
      animation: music-particle 1.9s linear infinite;
    }
    .c-float-music .music-ripple .p2 { --pa: 60deg; background: #ff2ec4; box-shadow: 0 0 6px #ff2ec4, 0 0 12px rgba(255, 46, 196, 0.55); animation-delay: 0.3s; }
    .c-float-music .music-ripple .p3 { --pa: 120deg; animation-delay: 0.6s; animation-duration: 2.2s; }
    .c-float-music .music-ripple .p4 { --pa: 180deg; background: #7c4dff; box-shadow: 0 0 6px #7c4dff, 0 0 12px rgba(124, 77, 255, 0.55); animation-delay: 0.9s; }
    .c-float-music .music-ripple .p5 { --pa: 240deg; background: #ff2ec4; box-shadow: 0 0 6px #ff2ec4, 0 0 12px rgba(255, 46, 196, 0.55); animation-delay: 1.2s; animation-duration: 2.1s; }
    .c-float-music .music-ripple .p6 { --pa: 300deg; animation-delay: 1.5s; }
    @keyframes music-particle {
      0% { transform: rotate(var(--pa, 0deg)) translateY(-22px) scale(1); opacity: 0; }
      15% { opacity: 1; }
      100% { transform: rotate(var(--pa, 0deg)) translateY(-54px) scale(0.2); opacity: 0; }
    }

    .c-float-music.playing .music-ripple { display: block; }

    /* 播放三角：未播放/暂停时显示，播放中隐藏；在裁切层外不随封面旋转 */
    .c-float-music .music-play {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 8px 0 8px 13px;
      border-color: transparent transparent transparent #ffffff;
      filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
      pointer-events: none;
      z-index: 2;
    }
    .c-float-music.playing .music-play { display: none; }
