    /* ========== 全局重置 ========== */

    *, *::before, *::after {

      margin: 0; padding: 0; box-sizing: border-box;

      -webkit-tap-highlight-color: transparent;

      -webkit-touch-callout: none;

    }

    html, body {

      width: 100%; height: 100%;

      overflow: hidden;

      background: #000000;

      color: #fff;

      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;

      user-select: none; -webkit-user-select: none;

      -webkit-text-size-adjust: 100%; text-size-adjust: 100%;

    }



    /* ========== 旋转舞台（核心容器） ========== */

    #app {

      position: fixed;

      left: 50%; top: 50%;

      overflow: hidden;

      /* background: #bdbdbd; */

      background-image: url(../img/background.jpg);

      transform-origin: center center;

      z-index: 1;

    }

    /* 横屏：正常显示

       宽高由 JS layout() 动态设置（--app-w / --app-h），

       避免使用 100vw/100vh：部分手机浏览器退出全屏后

       工具栏遮挡视口，vw/vh 可能包含被遮挡区域 */

    #app.landscape {

      width: var(--app-w, 100vw); height: var(--app-h, 100vh);

      transform: translate(-50%, -50%);

    }

    /* 竖屏：整体旋转 90°，把横屏内容塞进竖屏视口 */

    #app.portrait {

      width: var(--app-h, 100vh); height: var(--app-w, 100vw);

      transform: translate(-50%, -50%) rotate(90deg);

    }



    /* ========== PC 固定舞台模式 ==========

       舞台固定，不随窗口缩放变化；

       JS 通过 --fit-scale（≤1）把舞台整体等比适配屏幕：

       窗口大于舞台时居中留边，窗口小于舞台时等比缩小，

       内容始终完整可见、不溢出；舞台内的放大过渡也被限制在舞台内。 */

    body.stage-fixed #app.landscape {

      width: 1600px; height: 860px;

      transform: translate(-50%, -50%) scale(var(--fit-scale, 1));

      border-radius: 8px;

      box-shadow: 0 6px 18px rgb(173 173 173 / 28%), inset 0 0 0 1px rgba(255, 255, 255, 0.7);

    }

    body.stage-fixed #app.portrait {

      width: 1920px; height: 1080px;

      transform: translate(-50%, -50%) rotate(90deg) scale(var(--fit-scale, 1));

    }



    /* ========== 设计稿画布（1920×1080 横屏） ========== */

    #canvas {

      position: absolute;

      left: 50%; 
      top: 50%;

      width: 1920px; height: 1080px;

      margin-left: -960px;   /* width 的一半 */

      margin-top: -540px;    /* height 的一半 */

      /* transform 仅用 scale，translate 通过 margin 实现，

         避免改变 transform-origin 时产生位移跳变 */

      transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--scale, 1));

      transform-origin: center center;

      overflow: hidden;

      /* background: #0a0a0f; */

    }

   



    /* 真实底图 */

    .background {

      position: absolute; inset: 0;

      width: 100%; height: 100%;

      object-fit: cover;

      pointer-events: none;

      user-select: none;

    }



    /* ========== 四角 UI（位于旋转舞台 #app 内，随舞台一起旋转并与内容对齐） ========== */

    #logo-svg {

            /* width: 500px;

            max-width: 90vw; */

        }

        /* 主界面 logo 循环动画：两阶段依次进行 ——

           阶段一（描边）：各图形按 JS 设置的 delay 逐一进行描边绘制；

           阶段二（上色）：待全部图形描边完成后，填充色再依次显现，同时描边淡出。

           周期 12s：0~4.1s 逐一描边 → 4.2~7.4s 依次上色 → 7.4~10.2s 全彩保持 → 10.2~12s 淡出循环 */

        @keyframes logoStrokePhase {

            0%   { stroke-dashoffset: var(--len); stroke-opacity: 0; fill-opacity: 0; }

            8%   { stroke-dashoffset: 0; stroke-opacity: 1; }

            30%  { stroke-dashoffset: 0; stroke-opacity: 1; }

            34%  { stroke-dashoffset: 0; stroke-opacity: 0; }

            100% { stroke-dashoffset: var(--len); stroke-opacity: 0; fill-opacity: 0; }

        }

        @keyframes logoFillPhase {

            0%   { fill-opacity: 0; }

            5%   { fill-opacity: 1; }

            85%  { fill-opacity: 1; }

            96%  { fill-opacity: 0; }

            100% { fill-opacity: 0; }

        }

    .logo-tl {

      position: absolute;

      left: clamp(16px, 4.5vw, 86px); top: clamp(14px, 5vh, 54px);

      width: clamp(112px, 13.6vw, 240px); height: auto;

      z-index: 60;

      pointer-events: none;

    }



    .logo-bl {

      position: absolute;

      left: clamp(16px, 4.5vw, 86px); bottom: clamp(14px, 5vh, 54px);

      display: flex; align-items: center; gap: clamp(10px, 1vw, 16px);

      z-index: 60;

      pointer-events: auto;

      cursor: pointer;

    }

    .logo-bl:hover img { filter: brightness(1.08); }

    .logo-bl img { transition: filter 0.2s; }

    .logo-bl img { width: clamp(160px, 10vw, 230px); height: auto; object-fit: contain; }



    /* 主场景右上角全局按钮组（电话/菜单/全屏）：与内容页顶栏按钮组（.content-top-right）区分 */

    .global-top-right {

      position: absolute;

      right: clamp(16px, 4.5vw, 86px); top: clamp(14px, 5vh, 54px);

      display: flex; gap: clamp(10px, 1vw, 18px);

      z-index: 60;

    }

    .circle-btn {

      width: clamp(52px, 5.2vw, 100px); height: clamp(36px, 3.6vw, 70px);

      border-radius: 90px;

      background: rgba(255,255,255,0.92);

      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);

      border: none;

      box-shadow: 0 6px 18px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.7);

      display: flex; align-items: center; justify-content: center;

      cursor: pointer; outline: none; padding: 0;

      transition: transform 0.15s, background 0.2s;

      -webkit-appearance: none; appearance: none;

    }

    .circle-btn span{font-size: clamp(22px, 1.9vw, 36px); color: #2a3145;}

    .circle-btn:active { transform: scale(0.92); background: #fff; }

    .circle-btn img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }

    .circle-btn svg { width: 36px; height: 36px; fill: #1a1f2e; pointer-events: none; }



    /* ========== 五个场景按钮 ========== */

    .scene-btn {

      position: absolute;

      /* --btn-s：场景1 按钮整体缩放因子（当前需求缩至 80%）。

         内部所有已做画布缩放补偿（/var(--scale)）的视觉组件再统一乘此因子，

         便于一键微调；场景2/3 面板内未定义该变量，回退为 1，不受影响。 */

      --btn-s: 0.8;

      width: 240px; height: 152px; /* 原 300×190 的 80% */

      transform: translate(-50%, -50%);

      background: transparent; border: none; cursor: pointer; outline: none; padding: 0;

      -webkit-appearance: none; appearance: none;

      z-index: 10; overflow: visible;

      animation: scenePulse 3s ease-in-out infinite;

    }

    /* 按钮位置（基于真实 1920×1080 底图场景定位） */

    .scene-btn.s-data      { --marker-color: #00296d; left: 29%; top: 30%; animation-delay: 0s;   }

    .scene-btn.s-electric  { --marker-color: #00296d; left: 48%; top: 24%; animation-delay: 0.4s; }

    .scene-btn.s-warehouse { --marker-color: #ff5600; left: 62%; top: 35%; animation-delay: 0.8s; }

    .scene-btn.s-traffic   { --marker-color: #009000; left: 38%; top: 54%; animation-delay: 1.2s; }

    .scene-btn.s-industry  { --marker-color: #ffd700; left: 74%; top: 52%; animation-delay: 1.6s; }



    /* 主场景按钮标签：白色圆角胶囊 + 彩色圆点图标

       注意：#canvas 整体被 transform: scale(var(--scale)) 缩放，

       标签若直接使用 vw/vh/px 单位，其最终渲染尺寸会被画布缩放因子再次缩小，

       导致场景1 按钮在手机竖屏（scale≈0.36）下比场景2/3 小一半以上。

       因此所有尺寸用 calc(原值 / var(--scale)) 反向补偿，

       保证任意屏幕下标签的最终渲染尺寸与场景2/3 的 .sub-label 完全一致。 */

    .scene-btn .scene-label {

      position: absolute;

      left: 50%;

      /* 定位锚点：标签底边距按钮底边（.marker-pulse 所在位置）固定视口距离。

         除以 var(--scale) 反向补偿后，渲染时该距离不再随画布缩放/vh 变化，

         保证任意设备上标签与脉冲标记的间隔一致（原 top:1vh 在 PC 大屏下间隔过大） */

      top: auto;

      bottom: calc(38px / var(--scale, 1) * var(--btn-s, 1));

      transform: translateX(-50%);

      display: flex;

      align-items: center;

      gap: calc(clamp(6px, 0.8vw, 16px) / var(--scale, 1) * var(--btn-s, 1));

      padding: calc(clamp(6px, 1vw, 14px) / var(--scale, 1.2) * var(--btn-s, 1)) calc(clamp(12px, 1.8vw, 28px) / var(--scale, 1.2) * var(--btn-s, 1));

      background: rgba(255,255,255,0.80);

      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(20px);

      border-radius: calc(clamp(16px, 1.8vw, 24px) / var(--scale, 1) * var(--btn-s, 1));

      color: #1a1f2e;

      font-size: calc(clamp(13px, 1.1vw, 18px) / var(--scale, 1));

      white-space: nowrap;

      box-shadow: 0 4px 16px rgba(0,0,0,0.12);

      pointer-events: none;

      z-index: 99;

      /* 动态效果：柔和浮动 + 悬停/按压反馈 */

      animation: labelFloat 3.3s ease-in-out infinite;

      transition: box-shadow 0.2s, filter 0.2s;

    }

    /* 五个标签错开浮动节奏，避免同频单调 */

    .scene-btn.s-electric  .scene-label { animation-delay: 0.5s; }

    .scene-btn.s-warehouse .scene-label { animation-delay: 1.0s; }

    .scene-btn.s-traffic   .scene-label { animation-delay: 1.5s; }

    .scene-btn.s-industry  .scene-label { animation-delay: 2.0s; }

    /* 柔和浮动（必须保留 translateX(-50%) 维持水平居中；

       位移同样除以 --scale 补偿画布缩放，保证任意屏幕下浮动幅度一致） */

    @keyframes labelFloat {

      0%, 100% { transform: translateX(-50%) translateY(0); }

      50%      { transform: translateX(-50%) translateY(calc(12px / var(--scale, 1) * var(--btn-s, 1))); }

    }

  

    .scene-btn .scene-label::after {

      content: '';

      position: absolute;

      top: 100%; left: 50%;

      transform: translateX(-50%);

      width: 0; height: 0;

       border-left: calc(clamp(12px, 1.6vw, 24px) / var(--scale, 1) * var(--btn-s, 1)) solid transparent;

       border-right: calc(clamp(12px, 1.6vw, 24px) / var(--scale, 1) * var(--btn-s, 1)) solid transparent;

       border-top: calc(clamp(12px, 1.6vw, 24px) / var(--scale, 1) * var(--btn-s, 1)) solid rgba(255, 255, 255, 0.6);

    }

    .scene-btn:hover .scene-label {

      box-shadow: 0 10px 26px rgba(0,0,0,0.22);

      filter: brightness(1.06);

    }

    .scene-btn:active .scene-label {

      box-shadow: 0 2px 8px rgba(0,0,0,0.18);

      filter: brightness(0.94);

    }

    /* 彩色圆点图标 */

    .scene-btn .scene-label .dot-icon {

      display: flex;

      font-size: calc(16px / var(--scale, 1) * var(--btn-s, 1));

      align-items: center;

      justify-content: center;

      width: calc(clamp(26px, 0.96vw, 38px) / var(--scale, 1) * var(--btn-s, 1));

      height: calc(clamp(26px, 0.96vw, 38px) / var(--scale, 1) * var(--btn-s, 1));

      border-radius: 50%;

      background: var(--marker-color);

      box-shadow: 0 0 8px 2px var(--marker-color);

      flex-shrink: 0;

      color: #ffffff;

    }



    /* 定位脉冲标记（按钮下方同心圆 + 扩散动画）

       场景1 的 marker 位于 #canvas（整体被 scale(var(--scale)) 缩放）内，

       尺寸若直接写 px，渲染时会被画布缩放再次缩小（手机竖屏仅剩约 1/3）。

       为与场景2/3（body 层面板，不缩放）统一规格，

       所有尺寸、光晕、边框除以 var(--scale) 反向补偿；

       left/top 定位保持不补偿，随按钮等比缩放、始终贴住按钮。 */

    .marker-pulse {

      position: absolute;

      left: 50%; 

      top: calc(190px * var(--btn-s, 1)); /* 场景1 按钮缩小后标记随之下移 */

      width: calc(22px / var(--scale, 1) * var(--btn-s, 1));

      height: calc(22px / var(--scale, 1) * var(--btn-s, 1));

      margin-left: calc(-11px / var(--scale, 1) * var(--btn-s, 1));

      margin-top: calc(-11px / var(--scale, 1) * var(--btn-s, 1));

      pointer-events: none;

      transform: scaleY(0.70);

    }

    .marker-pulse .wdot {

      position: absolute; inset: 0; border-radius: 50%;

      background: #fff; z-index: 3; scale: 50%;

      box-shadow: 0 0 calc(10px / var(--scale, 1) * var(--btn-s, 1)) calc(2px / var(--scale, 1) * var(--btn-s, 1)) var(--marker-color);

    }

    .marker-pulse .dot {

      position: absolute; inset: 0; border-radius: 50%;

      background: var(--marker-color); z-index: 2;

      box-shadow: 0 0 calc(10px / var(--scale, 1) * var(--btn-s, 1)) calc(2px / var(--scale, 1) * var(--btn-s, 1)) var(--marker-color);

    }

    .marker-pulse .wave {

      position: absolute;

      left: 50%; top: 50%;

      width: calc(22px / var(--scale, 1) * var(--btn-s, 1));

      height: calc(22px / var(--scale, 1) * var(--btn-s, 1));

      margin-left: calc(-11px / var(--scale, 1) * var(--btn-s, 1));

      margin-top: calc(-11px / var(--scale, 1) * var(--btn-s, 1));

      border-radius: 50%;

      border: calc(2px / var(--scale, 1) * var(--btn-s, 1)) solid var(--marker-color);

      opacity: 0;

      animation: markerWave 2.4s ease-out infinite;

    }

    .marker-pulse .wave:nth-child(3) { animation-delay: 0s;   }

    .marker-pulse .wave:nth-child(4) { animation-delay: 0.8s; }

    .marker-pulse .wave:nth-child(5) { animation-delay: 1.6s; }



    @keyframes markerWave {

      0%   { transform: scale(1);   opacity: 0.85; border-width: calc(3px / var(--scale, 1) * var(--btn-s, 1)); }

      100% { transform: scale(4.5); opacity: 0;    border-width: 0px; }

    }



    /* 点击波纹效果（场景1 独有；尺寸同样除以 --scale 补偿画布缩放） */

    .scene-btn .ripple {

      position: absolute; left: 50%; top: 75%;

      width: calc(60px / var(--scale, 1) * var(--btn-s, 1));

      height: calc(60px / var(--scale, 1) * var(--btn-s, 1));

      margin-left: calc(-30px / var(--scale, 1) * var(--btn-s, 1));

      margin-top: calc(-30px / var(--scale, 1) * var(--btn-s, 1));

      border-radius: 50%;

      border: calc(2px / var(--scale, 1) * var(--btn-s, 1)) solid rgba(255,255,255,0.4);

      opacity: 0; pointer-events: none;

    }

    @keyframes ripple {

      0%   { transform: scale(0.4); opacity: 0.7; }

      100% { transform: scale(2.5); opacity: 0;   }

    }

    .scene-btn.active .ripple { animation: ripple 1s ease-out; }



    @keyframes scenePulse {

      0%, 100% { filter: none; }

      50%      { filter: drop-shadow(0 0 12px rgba(255,255,255,0.35)); }

    }



    /* ========== 菜单抽屉（位于舞台 #app 内，随舞台一起缩放/旋转） ========== */

    .menu-overlay {

      position: absolute; inset: 0;

      background: rgba(0,0,0,0.45);

      backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);

      opacity: 0; pointer-events: none;

      transition: opacity 0.3s ease;

      z-index: 1000;

      display: flex; align-items: flex-start; justify-content: flex-start;

      padding: 0;

    }

    .menu-overlay.open { opacity: 1; pointer-events: auto; }



    /* 紧凑卡片式菜单：面板四周无间距、无圆角 */

    .menu-panel {

      position: relative;

      width: 240px; max-width: 92vw;

      height: 100%;

      background: #ffffff;

      border-radius: 0;

      margin: 0; padding: 0;

      flex: 0 0 240px;

      box-shadow: 0 20px 60px rgba(0,0,0,0.35);

      display: flex; flex-direction: column;

      transform: translateX(-40px);

      opacity: 0;

      transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);

      overflow: hidden;

      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;

      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;

      text-rendering: optimizeLegibility;

    }

    .menu-overlay.open .menu-panel { transform: translateX(0); opacity: 1; }

    /* 展开二级菜单时面板加宽（一级 240px + 二级 200px） */

    .menu-panel.has-middle { width: 440px; flex-basis: 440px; }

    /* 展开三级菜单时面板加宽（一级 240px + 二级 200px + 三级 240px） */

    .menu-panel.has-right { width: 680px; flex-basis: 680px; }



    .menu-header {

      position: relative;

      padding: 24px 22px 16px;

      flex-shrink: 0;

    }

    .menu-header img { height: 42px; object-fit: contain; }

    .menu-close {

      position: absolute; top: 14px; right: 14px;

      width: 34px; height: 34px; border-radius: 50%;

      background: #1a1f2e; color: #fff; border: none;

      font-size: 20px; font-weight: 300; line-height: 1;

      display: flex; align-items: center; justify-content: center;

      cursor: pointer; transition: transform 0.15s, background 0.2s;

      -webkit-appearance: none; appearance: none;

    }

    .menu-close:active { transform: scale(0.9); background: #2a3145; }



    .menu-body {

      flex: 1; display: flex;

      min-height: 0; overflow: hidden;

    }

    .menu-left {

      width: 240px; flex: 0 0 240px;

      background: #ffffff;

      padding: 8px 0 12px; overflow-y: auto;

    }

    /* 二级菜单默认隐藏 */

    .menu-middle {

      display: none;

      width: 200px; flex: 0 0 200px;

      padding: 8px 0 12px; overflow-y: auto;

      background: #f0f4f8;

      border-left: 1px solid #e2e8f0;

    }

    /* 三级菜单默认隐藏 */

    .menu-right {

      display: none;

      width: 240px; flex: 0 0 240px;

      padding: 16px 18px; overflow-y: auto;

      background: #f7f9fc;

      border-left: 1px solid #e2e8f0;

    }

    /* 展开二级菜单 */

    .menu-body.show-middle .menu-middle { display: block; }

    /* 展开三级菜单 */

    .menu-body.show-right .menu-right { display: block; }



    .menu-right::-webkit-scrollbar,

    .menu-middle::-webkit-scrollbar,

    .menu-left::-webkit-scrollbar { width: 4px; }

    .menu-right::-webkit-scrollbar-thumb,

    .menu-middle::-webkit-scrollbar-thumb,

    .menu-left::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }



    .menu-item {

      display: flex; align-items: center; justify-content: space-between;

      padding: 12px 20px;

      font-size: 14px; font-weight: 500; color: #4a5568;

      cursor: pointer; border-left: 3px solid transparent;

      transition: background 0.15s, color 0.15s, border-color 0.15s;

      user-select: none;

    }

    .menu-item:hover { background: #f7f9fc; }

    .menu-item.active { background: #fff7f2; color: #ff6b35; font-weight: 600; border-left-color: #ff6b35; }

    .menu-item .arrow { color: #aab2bf; font-size: 14px; transition: transform 0.2s; }

    .menu-item.active .arrow { color: #ff6b35; }



    /* 二级菜单项 */

    .mid-item {

      display: flex; align-items: center; justify-content: space-between;

      padding: 11px 16px;

      font-size: 15px; font-weight: 500; color: #4a5568;

      cursor: pointer; border-left: 3px solid transparent;

      transition: background 0.15s, color 0.15s, border-color 0.15s;

      user-select: none;

    }

    .mid-item:hover { background: #e6edf5; }

    .mid-item.active { background: #fff7f2; color: #ff6b35; font-weight: 600; border-left-color: #ff6b35; }

    .mid-item .arrow { color: #aab2bf; font-size: 13px; transition: transform 0.2s; }

    .mid-item.active .arrow { color: #ff6b35; }



    /* 三级菜单项 */

    .sub-item {

      display: flex; align-items: center;

      padding: 11px 4px;

      font-size: 14px; font-weight: 500; color: #2d3748;

      border-bottom: 1px solid #eef1f6;

      cursor: pointer; transition: color 0.15s;

      line-height: 1.45;

    }

    .sub-item:hover { color: #ff6b35; }

    .sub-item:last-child { border-bottom: none; }



    .menu-footer {

      flex-shrink: 0;

      padding: 14px 20px 18px;

      background: #ffffff; border-top: 1px solid #f0f2f6;

    }

    .contact-us {

      display: flex; align-items: center; gap: 10px;

      padding: 11px 14px;

      background: #f7f9fc; border-radius: 12px;

    }

    .contact-us .icon {

      width: 34px; height: 34px; border-radius: 50%;

      background: linear-gradient(135deg, #ff8a5b, #ff6b35);

      display: flex; align-items: center; justify-content: center; flex-shrink: 0;

    }

    .contact-us .icon::before {

      content: ''; width: 18px; height: 18px;

      background: url("../img/botton-phone.png") center/contain no-repeat;

      filter: brightness(0) invert(1);

    }

    .contact-us .label { display: flex; flex-direction: column; line-height: 1.3; }

    .contact-us .zh { font-size: 14px; font-weight: 600; color: #1a1f2e; }

    .contact-us .en { font-size: 10px; font-weight: 500; color: #718096; }



    /* ========== 移动端菜单（仅窄屏竖屏；触屏宽屏设备保持固定宽度，不再拉伸） ========== */

    @media (max-width: 480px) {

      .menu-overlay { padding: 0; }

      .menu-panel { width: 240px; max-width: 92vw; flex-basis: 240px; }

      .menu-panel.has-middle { width: 400px; max-width: 92vw; flex-basis: auto; }

      .menu-panel.has-right { width: 92vw; flex-basis: auto; }



      .menu-header { padding: 16px 16px 10px; }

      .menu-header img { height: 32px; }

      .menu-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 18px; }



      .menu-left { width: 200px; flex: 0 0 200px; padding: 6px 0 8px; }

      .menu-middle { width: 160px; flex: 0 0 160px; padding: 6px 0 8px; }

      .menu-right { width: calc(92vw - 360px); flex: 1; padding: 12px 12px; }



      .menu-item { padding: 10px 16px; font-size: 14px; font-weight: 600; }

      .menu-item .arrow { font-size: 13px; }



      .mid-item { padding: 9px 14px; font-size: 14px; }

      .mid-item .arrow { font-size: 12px; }



      .sub-item { padding: 9px 4px; font-size: 12px; font-weight: 500; line-height: 1.4; }



      .menu-footer { padding: 10px 16px 12px; }

      .contact-us { padding: 9px 11px; gap: 9px; }

      .contact-us .icon { width: 32px; height: 32px; }

      .contact-us .icon::before { width: 16px; height: 16px; }

      .contact-us .zh { font-size: 13px; }

      .contact-us .en { font-size: 9px; }

    }



    /* ========== 竖屏提示遮罩（固定在真实视口上，不旋转） ========== */

    #portrait-overlay {

      display: none;

      position: fixed; inset: 0;

      background: linear-gradient(145deg, #071026 0%, #020511 100%);

      z-index: 9999;

      flex-direction: column;

      align-items: center;

      justify-content: center;

      gap: 28px;

      text-align: center;

      padding: 50px;

    }

    #portrait-overlay.show { display: flex; }



    .overlay-close {

      position: absolute; top: 18px; right: 18px;

      width: 44px; height: 44px;

      border: 1px solid rgba(255,255,255,0.28);

      border-radius: 50%;

      background: rgba(255,255,255,0.08);

      color: #fff; font-size: 26px; line-height: 1;

      display: flex; align-items: center; justify-content: center;

      cursor: pointer;

      transition: background 0.2s, transform 0.15s;

      -webkit-appearance: none; appearance: none;

      z-index: 2;

    }

    .overlay-close:hover { background: rgba(255,255,255,0.18); }

    .overlay-close:active { transform: scale(0.92); }



    .rotate-phone {

      position: relative;

      width: 110px; height: 200px;

      border: 4px solid rgba(255,255,255,0.85);

      border-radius: 18px;

      animation: phoneRotate 2.4s ease-in-out infinite;

    }

    .rotate-phone::before {

      content: '';

      position: absolute; left: 50%; top: 14px;

      transform: translateX(-50%);

      width: 56px; height: 6px;

      background: rgba(255,255,255,0.6);

      border-radius: 3px;

    }

    .rotate-phone::after {

      content: 'SENTRIC';

      position: absolute; left: 50%; top: 50%;

      transform: translate(-50%, -50%);

      font-size: 14px; letter-spacing: 2px;

      color: rgba(255,255,255,0.35);

      white-space: nowrap;

    }

    @keyframes phoneRotate {

      0%, 100% { transform: rotate(0deg); }

      50%      { transform: rotate(90deg); }

    }



    #portrait-overlay h2 {

      font-size: 26px; font-weight: 600;

      letter-spacing: 2px; color: #fff;

    }

    #portrait-overlay p {

      font-size: 15px; color: rgba(255,255,255,0.55);

      max-width: 320px; line-height: 1.6;

    }



    .enter-fullscreen {

      margin-top: 6px;

      padding: 16px 42px;

      background: linear-gradient(135deg, #ff8a5b, #ff6b35);

      border: none; border-radius: 30px;

      color: #fff; font-size: 17px; font-weight: 600;

      letter-spacing: 1px;

      cursor: pointer;

      box-shadow: 0 8px 24px rgba(255,107,53,0.35);

      transition: transform 0.15s, box-shadow 0.2s;

      -webkit-appearance: none; appearance: none;

    }

    .enter-fullscreen:active { transform: scale(0.96); }

    .enter-fullscreen:disabled {

      background: rgba(255,255,255,0.12);

      box-shadow: none; color: rgba(255,255,255,0.5);

    }



    .hint-row {

      font-size: 13px; color: rgba(255,255,255,0.4);

      margin-top: -12px;

    }



    /* ========== 调试面板（开发期保留） ========== */

    #debug-panel {

      position: fixed;

      bottom: 10px; right: 10px;

      z-index: 100;

      padding: 8px 12px;

      background: rgba(0,0,0,0.6);

      border-radius: 8px;

      font-size: 11px; font-family: monospace;

      line-height: 1.6; opacity: 0.7;

      pointer-events: none; max-width: 60%;

    }



    /* 仅桌面端显示调试面板，手机隐藏避免影响点击 */

    @media (hover: hover) and (pointer: fine) { #debug-panel { display: block; } }

    @media (hover: none) and (pointer: coarse) { #debug-panel { display: none; } }



    /* ========== 场景切换系统 ========== */

    /* 画布放大动画过渡 */

    #canvas.scene-zoom {

      transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    }

    /* 场景按钮淡出

       注意：转场时仅做透明度淡出，不再 scale(0.5) 缩小，

       否则点击瞬间按钮会突然变小，与主界面大小不一致。 */

    .scene-btn {

      transition: opacity 0.4s ease;

    }

    #canvas.scene-active .scene-btn {

      opacity: 0;

      pointer-events: none;

      transform: translate(-50%, -50%);

    }

    /* 四角 UI 在场景模式下淡出：左上角 LOGO 保留，仅隐藏左下角 logo 与右上角按钮 */

    .logo-tl, .logo-bl, .global-top-right {

      transition: opacity 0.35s ease;

    }

    body.scene-mode .logo-bl,

    body.scene-mode .global-top-right {

      opacity: 0;

      pointer-events: none;

    }



    /* 子场景功能按钮容器（固定在视口层） */

    .sub-scene-panel {

      position: absolute;

      inset: 0;

      z-index: 50;

      pointer-events: none;

      opacity: 0;

      transition: opacity 0.5s ease 0.6s;

    }

    .sub-scene-panel.show {

      opacity: 1;

      /* 保持 pointer-events: none，不整屏拦截点击：

         返回按钮位于 #app（z-index: 1）内，若面板拦截点击则返回按钮无法触发；

         子场景按钮自身已设 pointer-events: auto，仍可正常点击 */

    }

    .sub-scene-panel .panel-title,

    .third-scene-panel .panel-title {

      display: none;

      position: absolute;

      top: clamp(20px, 6vh, 60px);

      left: 50%;

      transform: translateX(-50%);

      font-size: clamp(22px, 2.2vw, 40px);

      font-weight: 700;

      color: #fff;

      text-shadow: 0 2px 12px rgba(0,0,0,0.6);

      letter-spacing: 3px;

      white-space: nowrap;

    }



    /* 子场景按钮容器：铺满整个面板作为定位参考 */

    .sub-scene-panel .btn-group,

    .third-scene-panel .btn-group {

      position: absolute;

      inset: 0;

      pointer-events: none;

    }



    /* 二级场景整页信息页（showInfoPage）：在子场景面板内直接整屏加载页面，

       完全独立于三级内容页（#contentPanel），不显示任何按钮 */

    .sub-scene-panel.info-mode {

      opacity: 1;

      transition: opacity 0.5s ease 0.6s;

      /* 信息框层级提升：高于左上 .logo-tl / 左下 .logo-bl（均 z-index: 60），
         避免 LOGO 放大后遮挡仓储物流/工业制造/轨道交通等信息框；
         仍低于返回按钮(85)/分享按钮(86)/菜单/模态框，交互不受影响。
         裁剪链路安全：面板无 overflow:hidden，信息框 inset:0 不出 #app 边界 */

      z-index: 65;

    }

    .sub-scene-panel.info-mode .panel-title,

    .sub-scene-panel.info-mode .btn-group {

      display: none;

    }

    .sub-scene-info {

      position: absolute;

      inset: 0;

      background: #ffffffb2;

      /* 彻底禁用滚动：横向（actions 背景 100vw 延伸层）与纵向均在此裁切，
         不产生任何滚动条；内容按信息框尺寸完整呈现，不做滚动。
         overscroll-behavior 阻断滚动链，避免传递到父级/页面 */
      overflow: hidden;

      overscroll-behavior: contain;

      -webkit-overflow-scrolling: touch;

      opacity: 0;

      visibility: hidden;

      pointer-events: none;

      transition: opacity 0.5s ease 0.6s;

      margin: auto;

      width: 80%;

      height: 66%;

      border-radius: 1em;

      box-shadow: 0 6px 20px rgba(90, 90, 90, 0.4);

      backdrop-filter: blur(14px);

    }

    .sub-scene-info.show {

      opacity: 1;

      visibility: visible;

      pointer-events: auto;

    }

    /* 注入的信息页 .card 至少占满信息框高度：配合 info-pages.css 的
       .actions { align-self: stretch }，网格行随卡片拉伸，右列 actions 灰底
       （含其向右延伸的伪元素）一直铺到信息框底部，消除下半部分无底色。
       卡片恰好等于信息框高度（min-height 而非 height），不会造成纵向溢出。 */
    .sub-scene-info .card {

      min-height: 100%;

      max-height: 100%;

      /* 注意：此处不可加 overflow:hidden——会裁掉 actions 向右延伸的背景层
         （宽屏下卡片限宽 1200px，需靠该延伸层铺到信息框右边缘）。
         纵向溢出由 .sub-scene-info 的 overflow:hidden 统一裁切 */

    }

    .sub-scene-info .content-loading,

    .sub-scene-info .content-404 {

      position: absolute;

      top: 50%; left: 50%;

      transform: translate(-50%, -50%);

      text-align: center;

      color: #1a2b52;

    }



    /* 子场景按钮：绝对定位，复用主场景 marker-pulse 样式 */

    .sub-scene-btn {

      position: absolute;

      transform: translate(-50%, -50%);

      background: transparent; border: none; cursor: pointer; outline: none; padding: 0;

      min-width: 44px; min-height: 44px;

      -webkit-appearance: none; appearance: none;

      z-index: 10; overflow: visible;

      pointer-events: auto;

      animation: subBtnFadeIn 0.5s ease both;

    }

    @keyframes subBtnFadeIn {

      from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }

      to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }

    }

    /* 隐藏状态：淡出 + 轻微缩小 + 向上飘移 */

    .sub-scene-btn.hiding {

      opacity: 0;

      transform: translate(-50%, -60%) scale(0.85);

      pointer-events: none;

      animation: none;

      transition: opacity 0.4s ease-out, transform 0.4s ease-out;

    }



    /* 子场景按钮标签：圆角胶囊形，参考主场景 ring-img 风格 */

    .sub-scene-btn .sub-label {

      position: absolute;

      top: max(-30px, -12vh); left: 50%;

      transform: translateX(-50%);

      padding: 6px 16px;

      background: rgba(255,255,255,0.92);

      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

      border-radius: 20px;

      color: #1a1f2e;

      font-size: clamp(13px, 1.1vw, 18px);

      white-space: nowrap;

      box-shadow: 0 4px 14px rgba(0,0,0,0.15);

      pointer-events: auto;

      opacity: 1;

      transition: opacity 0.25s ease, transform 0.25s ease;

      z-index: 11;

    }

  



.sub-scene-btn .sub-label::after {

  content: '';

  position: absolute;

  top: 100%; /* 位于 .sub-label 下方 */

  left: 50%;

  transform: translateX(-50%);

  width: 0;

  height: 0;

  border-left: 6px solid transparent;

  border-right: 6px solid transparent;

  border-top: 6px solid #fff; /* 小三角颜色，可自定义 */

}

    .sub-scene-btn:hover .sub-label,

    .sub-scene-btn:active .sub-label {

      opacity: 1;

      transform: translateX(-50%) translateY(-4px);

    }



    /* 子场景按钮的 marker-pulse（复用主场景样式） */

    .sub-scene-btn .marker-pulse {

      position: absolute;

      left: 50%; top: 50%;

      margin-left: -11px; margin-top: -11px;

      transform: scaleY(0.70);

      pointer-events: auto;

    }

    /* 隐藏状态下子元素也不可点击 */

    .sub-scene-btn.hiding .sub-label,

    .sub-scene-btn.hiding .marker-pulse {

      pointer-events: none;

    }

    .sub-scene-btn:active .marker-pulse {

      transform: scaleY(0.70) scale(0.92);

      transition: transform 0.15s;

    }



    /* ========== 三级子场景面板（z-index 55，高于二级面板 50） ========== */

    .third-scene-panel {

      position: absolute;

      inset: 0;

      z-index: 55;

      pointer-events: none;

      overflow: hidden; /* 兜底：防止异常坐标下按钮/标签溢出面板 */

      opacity: 0;

      visibility: hidden;

      background: #0a1122 url(../img/third-bg.png) center/cover no-repeat;

      transition: opacity 0.5s ease, visibility 0s linear 0.5s;

    }

    .third-scene-panel.show {

      opacity: 1;

      visibility: visible;

      /* 面板本身不拦截点击，三级按钮自身 pointer-events: auto 可正常点击 */

      transition: opacity 0.5s ease;

    }

    /* 三级场景：左上角 LOGO 保持可见且不被面板遮挡。

       进入三级场景时 JS 会将 #logo-svg 移入 .third-scene-panel 内，

       作为面板子元素自然显示在背景之上，并随面板一起旋转（竖屏方向与场景1一致） */



    /* ========== 内容页面板（z-index 60，三级按钮点击后打开） ========== */

    .content-panel {

      position: absolute;

      inset: 0;

      z-index: 60;

      display: flex;

      align-items: center;

      justify-content: center;

      background: rgba(8, 13, 28, 0.78);

      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);

      pointer-events: none;

      opacity: 0;

      visibility: hidden;

      transition: opacity 0.4s ease, visibility 0s linear 0.4s;

    }

    .content-panel.show {

      opacity: 1;

      visibility: visible;

      transition: opacity 0.4s ease;

    }

    .content-card {

      position: relative;

      width:100%;

      height:100%;

      display: none; /* 默认隐藏：仅当 .content-panel.show（触发显示）时才显示，其余状态保持隐藏 */

      flex-direction: column;

      box-shadow: 0 24px 60px rgba(0,0,0,0.45);

      overflow: hidden;

      pointer-events: auto; /* 卡片本身可交互（滚动/点击） */

      transform: translateY(26px) scale(0.96);

      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    }

    .content-panel.show .content-card {

      display: flex; /* 触发显示时恢复布局（flex column），并与进入动画配合 */

      transform: translateY(0) scale(1);

    }

    /* ========== 开发/制作模式：内容文件路径条 ==========
       元素由 JS 仅在开发/制作模式下创建（isDevMode），
       发布环境 DOM 中不存在该元素，无需 CSS 隐藏。
       sticky 吸附在滚动区顶部，滚动时始终可见 */
    .content-dev-path {

      position: sticky;

      top: 0;

      z-index: 30;

      margin: 0 0 10px;

      padding: 4px 10px;

      font: 12px/1.6 Consolas, 'Courier New', monospace;

      color: #6b7280;

      background: #f3f4f6;

      border: 1px dashed #d1d5db;

      border-radius: 6px;

      cursor: pointer;

      white-space: nowrap;

      overflow: hidden;

      text-overflow: ellipsis;

    }

    .content-dev-path:hover {

      color: #374151;

      background: #e8eaee;

    }

    .content-top {

      position: relative; /* 供右上角按钮组 .content-top-right 绝对定位 */

      flex: none; /* 关键：防止在 flex column 的 .content-card 中被压缩，保持与顶部间距恒定 */

      display: flex;

      align-items: center;

      gap: 14px;

      padding: 14px 20px;

      margin: 0;

      box-sizing: border-box;

      font-size: 16px; /* 固定 em 基准，使 height:4em 与内部文字尺寸稳定，不随内容页字体继承变化 */

      /* background: linear-gradient(135deg, #1a2b52, #0d1730); */

      height: 4em;

    }

    .content-top .logo-tl{

        height: 4em;position: absolute;

    top: 23%;left: 3%;

    }

    .content-back {

      flex: none;

      padding: 8px 10px;

      background: rgba(255,255,255,0.14);

      border: none;

      border-radius: 40px;

      color: #fff;

      font-size: 15px;

      font-weight: 600;

      cursor: pointer;

      -webkit-appearance: none; appearance: none;

      transition: background 0.2s;

    }

    .content-back:hover { background: rgba(255,255,255,0.26); }

    .content-back:active { transform: scale(0.95); }

    .content-title {

      flex: 1;

      min-width: 0;

      font-size: clamp(16px, 1.6vw, 20px);

      font-weight: 700;

      letter-spacing: 1px;

      overflow: hidden;

      text-overflow: ellipsis;

      white-space: nowrap;

    }

    /* 内容页顶栏右上角按钮组（.content-top-right，与主场景 .global-top-right 区分）：

       固定在顶栏右上角，始终占满顶栏高度并内部垂直居中。

       关键点：使用固定的 top/bottom（占满 .content-top 的 4em 高度）而非 top:50% + translateY，

       使 .content-top-right 自身外框高度恒定；内部按钮无论是否因 .text-btn-active 加粗而改变高度，

       都只在 .content-top-right 内部 flex 居中消化，不会引起整个按钮组的上下边距/位置变化。

       特异性高于全局 .global-top-right 与 body.scene-mode .global-top-right，确保切换 app-case 标签

       （如点击“应用及产品指南”）前后位置完全一致。 */

    .content-panel .content-top .content-top-right {

      position: absolute;

      top: 0;

      bottom: 0;

      right: clamp(12px, 1.2vw, 20px);

      left: auto;

      height: 100%;

      display: flex;

      align-items: center;

      gap: 12px;

      transform: none;

      opacity: 1;

      visibility: visible;

      pointer-events: auto;

      z-index: 5;

      margin: 0;

    }

    /* 内容页顶栏按钮组：与主页保持一致的玻璃质感（半透明渐变 + 描边阴影），

       文字/图标反白以保证在深蓝顶栏上清晰可读 */

    .content-panel .content-top .fancy-generate-btn {

      background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));

      box-shadow: inset 0 0.125em 0.125em rgba(0,0,0,0.05),

        inset 0 -0.125em 0.125em rgba(255,255,255,0.5),

        0 0.25em 0.125em -0.125em rgba(0,0,0,0.2),

        0 0 0.1em 0.25em inset rgba(255,255,255,0.2);

    }

    .content-panel .content-top .fancy-generate-btn span {

      

      /* text-shadow: 0 1px 2px rgba(0,0,0,0.4); */

    }

    .content-panel .content-top .fancy-generate-btn span a {

      color: #fff;

    }

    .content-panel .content-top .fancy-generate-btn span a.contnet-active {

      color: #e3b8ff;

      font-weight: 700;

    }

    .content-scroll {

        border: 10px solid #fff;

      overflow-y: auto;

      -webkit-overflow-scrolling: touch;

      background: #fff;

      margin: 1em;

      border-radius: 1em;

      flex: 1;

      min-height: 0;

    }

    .content-scroll .content-img {

      width: 100%;

      max-height: 320px;

      object-fit: cover;

      border-radius: 12px;

      margin-bottom: 18px;

      display: block;

    }

    .content-scroll h3 {

      font-size: 17px;

      color: #1a2b52;

      margin: 14px 0 10px;

      padding-left: 10px;

      border-left: 4px solid #ff6b35;

    }

    .content-scroll p {

      font-size: 15px;

      line-height: 1.85;

      color: #445;

      margin: 0 0 6px;

    }

    .content-list {

      margin: 0;

      padding-left: 20px;

    }

    .content-list li {

      font-size: 14.5px;

      line-height: 2.1;

      color: #334;

    }

    /* ========== PC 端（stage-fixed）内容页响应式控制 ==========
       作用域：body.stage-fixed 仅在非移动端添加（移动端为 stage-fluid），以下规则移动端不命中。
       用法：所有尺寸集中在下方「参数区」CSS 变量中，改参数即可整体调节；
             视口分档（≥1280 / ≥1600 / ≥1920 / ≥2560）只覆写变量，不重复写规则。
       注意：stage-fixed 模式下舞台固定 1920×1080 逻辑尺寸再经 --fit-scale 等比缩放（上限 1），
             因此视口超过 1920px 后舞台逻辑尺寸不变，分档变量主要用于预留微调能力。 */

    /* ---------- 参数区（可自行调整） ---------- */
    body.stage-fixed {
      --pc-top-font: 20px;        /* 顶栏基准字号（高度 = 4em 随之联动） */
      --pc-top-pad-y: 60px;       /* 顶栏上下内边距 */
      --pc-top-pad-x: 40px;       /* 顶栏左右内边距 */
      --pc-top-gap: 18px;         /* 顶栏子元素间距 */
      --pc-logo-height: 5em;      /* 顶栏 logo 高度 */
      --pc-logo-top: 18%;         /* logo 垂直偏移 */
      --pc-back-font: 18px;       /* 返回按钮字号 */
      --pc-back-pad-y: 12px;      /* 返回按钮上下内边距 */
      --pc-back-pad-x: 16px;      /* 返回按钮左右内边距 */
      --pc-title-min: 22px;       /* 标题最小字号 */
      --pc-title-vw: 1.7vw;       /* 标题视口联动系数 */
      --pc-title-max: 27px;       /* 标题最大字号 */
      --pc-top-margin-top: 1em;     /* 顶栏外边距（四向独立，可单独/组合调整） */
      --pc-top-margin-right: 0;
      --pc-top-margin-bottom: 0;
      --pc-top-margin-left: 0;
      --pc-scroll-margin-top: 1em;    /* 滚动区外边距（四向独立；1em 随 --pc-scroll-font 联动） */
      --pc-scroll-margin-right: 2em;
      --pc-scroll-margin-bottom: 4em;
      --pc-scroll-margin-left: 2em;
      --pc-scroll-font: 19px;     /* 滚动区基准字号（margin/radius 以 em 联动） */
      --pc-scroll-border: 20px;   /* 滚动区白边宽度 */
      --pc-scroll-max-w: 98%;    /* 滚动区最大宽度（可改如 1560px 限宽阅读） */
      --pc-scroll-pad: 20px;         /* 滚动区附加内边距 */
      --pc-img-max-h: 480px;      /* 内容配图最大高度 */
    }

    /* ---------- 基础规则（引用参数） ---------- */
    body.stage-fixed .content-top {
      font-size: var(--pc-top-font);
      padding: var(--pc-top-pad-y) var(--pc-top-pad-x);
      gap: var(--pc-top-gap);
      margin-top: var(--pc-top-margin-top);
      margin-right: var(--pc-top-margin-right);
      margin-bottom: var(--pc-top-margin-bottom);
      margin-left: var(--pc-top-margin-left);
    }
    body.stage-fixed .content-top .logo-tl {
      height: var(--pc-logo-height);
      top: var(--pc-logo-top);
    }
    body.stage-fixed .content-back {
      font-size: var(--pc-back-font);
      padding: var(--pc-back-pad-y) var(--pc-back-pad-x);
    }
    body.stage-fixed .content-title {
      font-size: clamp(var(--pc-title-min), var(--pc-title-vw), var(--pc-title-max));
    }
    body.stage-fixed .content-scroll {
      font-size: var(--pc-scroll-font);
      border-width: var(--pc-scroll-border);
      max-width: var(--pc-scroll-max-w);
      padding: var(--pc-scroll-pad);
      margin-top: var(--pc-scroll-margin-top);
      margin-right: var(--pc-scroll-margin-right);
      margin-bottom: var(--pc-scroll-margin-bottom);
      margin-left: var(--pc-scroll-margin-left);
      /* 滚动区域行为：独立滚动、不外溢、细滚动条 */
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: rgba(26, 43, 82, 0.35) transparent;
    }
    body.stage-fixed .content-scroll::-webkit-scrollbar {
      width: 12px;                /* 滚动条宽度（可调） */
    }
    body.stage-fixed .content-scroll::-webkit-scrollbar-thumb {
      background: rgba(26, 43, 82, 0.35);
      border-radius: 8px;
      border: 3px solid transparent;
      background-clip: content-box;
    }
    body.stage-fixed .content-scroll::-webkit-scrollbar-thumb:hover {
      background: rgba(26, 43, 82, 0.55);
      background-clip: content-box;
    }
    body.stage-fixed .content-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    body.stage-fixed .content-scroll .content-img {
      max-height: var(--pc-img-max-h);
      border-radius: 16px;
      margin-bottom: 26px;
    }
    body.stage-fixed .content-scroll h3 {
      font-size: 22px;
      margin: 18px 0 14px;
      padding-left: 14px;
      border-left-width: 6px;
    }
    body.stage-fixed .content-scroll p {
      font-size: 18px;
      line-height: 1.9;
    }
    body.stage-fixed .content-list {
      padding-left: 28px;
    }
    body.stage-fixed .content-list li {
      font-size: 17.5px;
      line-height: 2.15;
    }

    /* ---------- 视口分档（仅覆写参数，便于自行增删档位） ----------
       中型桌面 1280~1599px 使用默认参数即可；如需微调，可仿照下方格式添加：
       @media (min-width: 1280px) and (max-width: 1599px) {
         body.stage-fixed { --pc-top-font: 19px; }
       } */
    /* 大桌面：≥1600px —— 适度放宽滚动区限宽 */
    @media (min-width: 1600px) {
      body.stage-fixed {
        --pc-scroll-max-w: 100%;
      }
    }
    /* 全高清：≥1920px —— 阅读区限宽，行长可控（如需满宽改回 100%） */
    @media (min-width: 1920px) {
      body.stage-fixed {
        --pc-scroll-max-w: 1560px;
        --pc-scroll-pad: 8px 6px;
      }
    }
    /* 2K/4K 超宽：≥2560px —— 限制阅读宽度、加大滚动条命中区 */
    @media (min-width: 2560px) {
      body.stage-fixed {
        --pc-scroll-max-w: 1680px;
        --pc-scroll-pad: 12px 8px;
      }
    }

    /* ===== 外部 HTML 加载失败提示（显示对应文件链接地址） ===== */

    .content-scroll .content-loading {

      text-align: center;

      color: #8a94a6;

      font-size: 14px;

      padding: 48px 0;

    }

    .content-scroll .content-404 {

      padding: 36px 28px;

      text-align: center;

      background: #fafbfd;

      border: 1px dashed #d3dae8;

      border-radius: 14px;

    }

    .content-scroll .content-404__icon {

      display: flex;

      align-items: center;

      justify-content: center;

      width: 52px; height: 52px;

      margin: 0 auto 14px;

      border-radius: 50%;

      background: #fff3ec;

      color: #ff6b35;

    }

    .content-scroll .content-404 h3 {

      font-size: 16px;

      color: #1a2b52;

      margin: 0 0 8px;

      padding-left: 0;

      border-left: none;

    }

    .content-scroll .content-404 p {

      font-size: 13px;

      color: #7a8499;

      margin: 0 0 10px;

    }

    .content-scroll .content-404 a {

      display: inline-block;

      font-size: 13px;

      color: #ff6b35;

      background: #fff;

      border: 1px solid #ffd9c4;

      border-radius: 8px;

      padding: 8px 14px;

      text-decoration: none;

      word-break: break-all;

      max-width: 100%;

      transition: background .2s ease, color .2s ease;

    }

    .content-scroll .content-404 a:hover {

      background: #ff6b35;

      color: #fff;

    }

    .content-top a{

       text-decoration: none;

       color: #000;

    }



    .contnet-active 

    {

    color: #7504e5;

    font-weight: 700;

    }



    /* ========== 公司介绍模态框（点击左下角 logo 弹出） ========== */

    .info-modal {

      position: absolute;

      inset: 0;

      z-index: 70;

      display: flex;

      align-items: center;

      justify-content: center;

      background: rgba(8, 13, 28, 0.72);

      backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

      pointer-events: none;

      opacity: 0;

      visibility: hidden;

      transition: opacity 0.35s ease, visibility 0s linear 0.35s;

    }

    .info-modal.show {

      opacity: 1;

      visibility: visible;

      pointer-events: auto;

      transition: opacity 0.35s ease;

    }

    .info-modal-card {

      position: relative;

      width: min(680px, 90vw);

      max-height: 86vh;

      overflow-y: auto;

      -webkit-overflow-scrolling: touch;

      background: #fff;

      border-radius: 18px;

      padding: 34px 36px 30px;

      box-shadow: 0 24px 60px rgba(0,0,0,0.5);

      transform: translateY(26px) scale(0.96);

      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    }

    .info-modal.show .info-modal-card {

      transform: translateY(0) scale(1);

    }

    .info-modal-close {

      position: absolute;

      top: 12px;

      right: 14px;

      width: 36px;

      height: 36px;

      border-radius: 50%;

      border: none;

      background: rgba(0,0,0,0.06);

      color: #333;

      font-size: 22px;

      line-height: 1;

      cursor: pointer;

      -webkit-appearance: none; appearance: none;

      transition: background 0.2s, transform 0.15s;

    }

    .info-modal-close:hover { background: rgba(0,0,0,0.12); }

    .info-modal-close:active { transform: scale(0.9); }

    /* 公司介绍模态框：分享当前页按钮（带图标+文字，与关闭按钮同风格） */

    .info-modal-share {

      position: absolute;

      top: 12px;

      right: 58px;

      height: 36px;

      padding: 0 14px;

      border-radius: 999px;

      border: 1px solid rgba(0,0,0,0.08);

      background: rgba(0,0,0,0.06);

      color: #333;

      font-size: 14px;

      line-height: 1;

      display: inline-flex;

      align-items: center;

      gap: 6px;

      cursor: pointer;

      -webkit-appearance: none; appearance: none;

      transition: background 0.2s, transform 0.15s;

    }

    .info-modal-share:hover { background: rgba(0,0,0,0.12); }

    .info-modal-share:active { transform: scale(0.94); }

    .info-modal-share svg { flex-shrink: 0; }



    /* ========== 联系我们模态框 ========== */

    .contact-modal {

      position: absolute;

      inset: 0;

      z-index: 86;

      display: flex;

      align-items: center;

      justify-content: center;

      background: rgba(15, 17, 32, 0.5);

      backdrop-filter: blur(3px);

      -webkit-backdrop-filter: blur(3px);

      pointer-events: none;

      opacity: 0;

      visibility: hidden;

      transition: opacity 0.35s ease, visibility 0s linear 0.35s;

    }

    .contact-modal.show {

      opacity: 1;

      visibility: visible;

      pointer-events: auto;

      transition: opacity 0.35s ease;

    }

    .contact-modal-card {

      position: relative;

      width: min(980px, 92vw);

      max-height: 90vh;

      overflow-y: auto;

      -webkit-overflow-scrolling: touch;

      background: #fff;

      border-radius: 20px;

      padding: 0;

      box-shadow: 0 32px 80px rgba(10, 14, 30, 0.38);

      transform: translateY(26px) scale(0.96);

      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    }

    .contact-modal.show .contact-modal-card {

      transform: translateY(0) scale(1);

    }

    .contact-modal-close {

      position: absolute;

      top: 14px;

      right: 14px;

      width: 34px;

      height: 34px;

      border-radius: 50%;

      border: none;

      background: rgba(0,0,0,0.06);

      color: #334;

      font-size: 20px;

      line-height: 1;

      cursor: pointer;

      -webkit-appearance: none; appearance: none;

      transition: background 0.2s, transform 0.15s, color 0.2s;

      z-index: 2;

    }

    .contact-modal-close:hover { background: rgba(0,0,0,0.12); color: #111; transform: rotate(90deg); }

    .contact-modal-close:active { transform: scale(0.9) rotate(90deg); }

    .contact-modal-body {

      display: flex;

      min-height: 480px;

    }

    .contact-modal-left {

      flex: 0 0 38%;

      padding: 44px 36px;

      background: linear-gradient(175deg, #f6f4ff 0%, #fbfaff 55%, #ffffff 100%);

      border-radius: 20px 0 0 20px;

      color: #333;

      display: flex;

      flex-direction: column;

    }

    .contact-modal-header {

      display: flex;

      align-items: center;

      gap: 10px;

      margin-bottom: 20px;

    }

    .contact-modal-back {

      display: inline-flex;

      align-items: center;

      justify-content: center;

      width: 30px;

      height: 30px;

      border-radius: 50%;

      color: #6b4cff;

      font-size: 20px;

      cursor: pointer;

      background: rgba(107,76,255,0.08);

      transition: background 0.2s, transform 0.15s;

    }

    .contact-modal-back:hover { background: rgba(107,76,255,0.16); transform: translateX(-2px); }

    .contact-modal-title h2 {

      margin: 0;

      font-size: 16px;

      font-weight: 600;

      letter-spacing: 0.5px;

      color: #6b4cff;

      line-height: 1.2;

    }

    .contact-modal-sub {

      display: block;

      font-size: 12px;

      font-weight: 500;

      letter-spacing: 1.5px;

      text-transform: uppercase;

      color: #9b8cff;

      margin-top: 2px;

    }

    .contact-modal-desc {

      font-size: 14px;

      line-height: 1.8;

      color: #5a5f7a;

      margin: 0 0 24px;

    }

    .contact-modal-info {

      list-style: none;

      padding: 0;

      margin: 0 0 24px;

      display: flex;

      flex-direction: column;

      gap: 12px;

    }

    .contact-info-item {

      display: flex;

      align-items: center;

      gap: 14px;

      padding: 14px 16px;

      background: rgba(255,255,255,0.8);

      border: 1px solid rgba(107,76,255,0.1);

      border-radius: 14px;

      box-shadow: 0 2px 10px rgba(107,76,255,0.06);

      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;

    }

    .contact-info-item:hover {

      transform: translateY(-1px);

      box-shadow: 0 6px 18px rgba(107,76,255,0.12);

      border-color: rgba(107,76,255,0.24);

    }

    .contact-info-icon {

      flex-shrink: 0;

      width: 38px;

      height: 38px;

      border-radius: 12px;

      background: linear-gradient(135deg, #7c5cff, #6b4cff);

      color: #fff;

      display: flex;

      align-items: center;

      justify-content: center;

    }

    .contact-info-text {

      display: flex;

      flex-direction: column;

      gap: 2px;

      min-width: 0;

    }

    .contact-info-text strong {

      font-size: 12px;

      font-weight: 600;

      color: #8b8fa8;

      letter-spacing: 0.5px;

    }

    .contact-info-text a {

      font-size: 14px;

      font-weight: 600;

      color: #2b2f45;

      text-decoration: none;

      word-break: break-all;

      transition: color 0.2s;

    }

    .contact-info-text a:hover { color: #6b4cff; }

    .contact-modal-support {

      font-size: 13px;

      line-height: 1.8;

      color: #5a5f7a;

      margin: auto 0 0;

      padding-top: 24px;

      border-top: 1px solid rgba(107,76,255,0.12);

    }

    .support-link {

      color: #6b4cff;

      font-weight: 600;

      text-decoration: none;

      white-space: nowrap;

      transition: color 0.2s;

    }

    .support-link:hover { color: #4a2fd8; text-decoration: underline; }

    .contact-modal-right {

      flex: 1 1 auto;

      padding: 44px 40px 36px;

    }

    .contact-form {

      display: flex;

      flex-direction: column;

      gap: 18px;

    }

    .form-row {

      display: flex;

      gap: 16px;

    }

    .form-field {

      display: flex;

      flex-direction: column;

      gap: 8px;

      flex: 1 1 auto;

      min-width: 0;

    }

    .form-label {

      font-size: 13px;

      font-weight: 600;

      color: #3d4258;

      letter-spacing: 0.3px;

    }

    .form-label .required {

      color: #e05555;

      font-style: normal;

      margin-left: 2px;

    }

    .contact-form input,

    .contact-form textarea {

      width: 100%;

      padding: 6px 16px;

      border: 1.5px solid #e3e6ef;

      border-radius: 12px;

      background: #fbfcff;

      color: #2b2f45;

      font-size: 14px;

      line-height: 1.5;

      font-family: inherit;

      outline: none;

      box-sizing: border-box;

      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;

    }

    .contact-form input:hover,

    .contact-form textarea:hover {

      border-color: #cdd2e2;

      background: #fff;

    }

    .contact-form input::placeholder,

    .contact-form textarea::placeholder {

      color: #aab0c4;

    }

    .contact-form input:focus,

    .contact-form textarea:focus {

      border-color: #6b4cff;

      background: #fff;

      box-shadow: 0 0 0 4px rgba(107,76,255,0.13);

    }

    .contact-form textarea {

      resize: vertical;

      min-height: 108px;

    }

    /* 自定义复选框 */

    .agree-field {

      display: flex;

      align-items: flex-start;

      gap: 10px;

      cursor: pointer;

      margin-top: 2px;

    }

    .agree-field input {

      position: absolute;

      opacity: 0;

      width: 0;

      height: 0;

      pointer-events: none;

    }

    .agree-box {

      flex-shrink: 0;

      width: 19px;

      height: 19px;

      margin-top: 1px;

      border: 1.5px solid #c9cede;

      border-radius: 6px;

      background: #fff;

      position: relative;

      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;

    }

    .agree-box::after {

      content: '';

      position: absolute;

      left: 5.5px;

      top: 2px;

      width: 5px;

      height: 9px;

      border: solid #fff;

      border-width: 0 2px 2px 0;

      transform: rotate(45deg) scale(0);

      transition: transform 0.18s ease;

    }

    .agree-field input:focus-visible + .agree-box {

      box-shadow: 0 0 0 3px rgba(107,76,255,0.2);

      border-color: #6b4cff;

    }

    .agree-field input:checked + .agree-box {

      background: linear-gradient(135deg, #7c5cff, #6b4cff);

      border-color: #6b4cff;

    }

    .agree-field input:checked + .agree-box::after {

      transform: rotate(45deg) scale(1);

    }

    .agree-text {

      font-size: 12.5px;

      line-height: 1.7;

      color: #6b7089;

    }

    .agree-text a {

      color: #6b4cff;

      font-weight: 500;

      text-decoration: none;

      transition: color 0.2s;

    }

    .agree-text a:hover { color: #4a2fd8; text-decoration: underline; }

    .contact-submit {

      display: inline-flex;

      align-items: center;

      justify-content: center;

      gap: 8px;

      align-self: flex-start;

      margin-top: 6px;

      padding: 13px 30px;

      border-radius: 12px;

      border: none;

      background: linear-gradient(135deg, #f78c37 0%, #f18e17 60%, #d9760b 100%);

      color: #fff;

      font-size: 15px;

      font-weight: 600;

      letter-spacing: 0.5px;

      font-family: inherit;

      cursor: pointer;

      box-shadow: 0 8px 22px rgba(255, 163, 76, 0.32);

      -webkit-appearance: none; appearance: none;

      transition: background 0.25s, box-shadow 0.25s, transform 0.15s;

    }

    .contact-submit svg { transition: transform 0.2s; }

    .contact-submit:hover {

      background: linear-gradient(135deg, #8a6dff 0%, #7c5cff 60%, #6b4cff 100%);

      box-shadow: 0 10px 28px rgba(107,76,255,0.4);

    }

    .contact-submit:hover svg { transform: translateX(3px); }

    .contact-submit:active { transform: scale(0.97); }

    /* 响应式：窄屏/移动端改为单栏 */

    @media (max-width: 720px) {

      .contact-modal-card {

        width: min(440px, 94vw);

        max-height: 88vh;

      }

      .contact-modal-body {

        flex-direction: column;

        min-height: auto;

      }

      .contact-modal-left {

        flex: 0 0 38%;

        border-radius: 20px 20px 0 0;

        padding: 32px 26px 24px;

      }

      .contact-modal-right {

        padding: 28px 26px 30px;

      }

      .form-row {

        flex-direction: column;

        gap: 18px;

      }

      .contact-modal-support {

        margin-top: 20px;

        padding-top: 18px;

      }

    }



    .info-modal-logo {

      height: 46px;

      width: auto;

      margin-bottom: 14px;

    }

    .info-modal-card h2 {

      font-size: 24px;

      color: #1a2b52;

      margin: 0 0 12px;

    }

    .info-modal-card .intro-text {

      font-size: 15px;

      line-height: 1.9;

      color: #445;

      margin: 0 0 16px;

    }

    .info-modal-img {

      width: 100%;

      max-height: 300px;

      object-fit: cover;

      border-radius: 12px;

      display: block;

      margin-bottom: 4px;

    }



    /* 返回按钮（视口固定层，位于所有场景面板之上；不随画布缩放/旋转）

       注意：必须保持在 #app（z-index: 1）之外，否则会被二级/三级面板

       （z-index 50/55，含不透明背景）遮挡导致不可见 */

    .back-btn {

      position: absolute;

      right: calc(clamp(16px, 3vw, 50px) + clamp(44px, 4.2vh, 64px) + 12px);

      bottom: clamp(16px, 4vh, 50px);

      z-index: 85;

      display: flex;

      align-items: center;

      gap: 6px;

      height: clamp(44px, 4.2vh, 64px);

      padding: 0 clamp(16px, 1.4vw, 24px);

         background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(220, 221, 223, 0.8));

      /* background: linear-gradient(135deg, rgba(255,138,91,0.95), rgba(255,107,53,0.95)); */

      border: none;

      border-radius: 50px;

      color: #333;

      font-size: clamp(14px, 1.2vw, 18px);

      /* font-weight: 700; */

      cursor: pointer;

      outline: none;

      -webkit-appearance: none; appearance: none;

      box-shadow: 0 6px 20px rgba(112, 112, 112, 0.4);

      opacity: 0;

      pointer-events: none;

      transform: translateX(30px);

      transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s, background 0.2s;

      letter-spacing: 1px;

    }

    .back-btn.show {

      opacity: 1;

      pointer-events: auto;

      transform: translateX(0);

    }

    .back-btn:active { transform: scale(0.94); }

    .back-btn .arrow {

      font-size: 1.2em;

      line-height: 0;

      margin-right: 2px;

    }



    /* 分享按钮 */

    .share-btn {

      position: absolute;

      right: clamp(16px, 3vw, 50px);

      bottom: clamp(16px, 4vh, 50px);

      z-index: 85;

      display: flex;

      align-items: center;

      justify-content: center;

      width: clamp(44px, 4.2vh, 64px);

      height: clamp(44px, 4.2vh, 64px);      

      background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(220, 221, 223, 0.8));

      border: none;

      border-radius: 50%;

      color: #3a3a3a;

      font-size: clamp(18px, 1.6vw, 24px);

      cursor: pointer;

      outline: none;

      -webkit-appearance: none; appearance: none;

      box-shadow: 0 6px 20px rgba(105, 105, 105, 0.4);

      opacity: 0;

      pointer-events: none;

      transform: translateX(30px);

      transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s, background 0.2s;

    }

    .share-btn.show {

      opacity: 1;

      pointer-events: auto;

      transform: translateX(0);

    }

    .share-btn:active { transform: scale(0.94); }

    .share-btn .iconfont { line-height: 1; }



    /* 竖屏适配：与返回按钮同一行水平排列 */

    #app.portrait .share-btn {

      right: auto;

      left: clamp(16px, 3vw, 50px);

      bottom: clamp(16px, 4vh, 50px);

    }



    /* ========== 轻提示 Toast ========== */

    .toast {

      position: fixed;

      left: 50%;

      bottom: clamp(80px, 12vh, 140px);

      transform: translateX(-50%) translateY(10px);

      z-index: 9999;

      max-width: 80vw;

      padding: 12px 22px;

      background: rgba(100, 100, 100, 0.96);

      color: #fff;

      font-size: 15px;

      letter-spacing: 1px;

      border: 1px solid rgba(255,255,255,0.18);

      border-radius: 999px;

      box-shadow: 0 8px 28px rgba(87, 87, 87, 0.45);

      opacity: 0;

      pointer-events: none;

      transition: opacity 0.3s ease, transform 0.3s ease;

    }

    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    .toast.ok {  }

    .toast.err { border-color: rgba(255,93,93,0.7); background: rgba(58,20,32,0.96); }



    /* ========== 竖屏适配 ==========

       二级/三级/内容/菜单/模态框面板已移入 #app 内，

       随舞台一起旋转 90°，方向与场景内容一致，无需单独旋转。 */



    /* 竖屏适配：返回按钮与分享按钮水平排列 */

    #app.portrait .back-btn {

      right: auto;

      left: calc(clamp(16px, 3vw, 50px) + clamp(44px, 4.2vh, 64px) + 12px);

      bottom: clamp(16px, 4vh, 50px);

      top: auto;

    }



    /* 竖屏适配：公司介绍模态框卡片尺寸参照旋转后的坐标

       （宽用 vh、高上限用 vw），保证旋转后观感与横屏一致。 */

    #app.portrait .info-modal .info-modal-card {

      width: min(680px, 86vh);

      max-height: 86vw;

    }



    /* 竖屏适配：联系我们模态框卡片同理参照旋转后的坐标 */

    #app.portrait .contact-modal .contact-modal-card {

      width: min(980px, 88vh);

      max-height: 90vw;

    }

    #app.portrait .contact-modal-body {

      min-height: 0;

    }



    /* 竖屏适配：加载遮罩在 body 层（视口固定），与 #app 采用相同的旋转方式。

       遮罩在 #app 之前，故用 body:has() 选择器；

       旋转后 logo 描边动画、进度条、跳过按钮方向与场景内容一致。 */

    body:has(#app.portrait) #page-loader {

      left: 50%;

      top: 50%;

      right: auto;

      bottom: auto;

      width: var(--app-h, 100vh);

      height: var(--app-w, 100vw);

      transform: translate(-50%, -50%) rotate(90deg);

    }



    /* 防止动画期间用户误触 */

    body.zooming { pointer-events: none; }

    body.zooming .back-btn { pointer-events: none; }



    /* ========== 页面加载动画 ========== */

    /* loader 写在 <style> 顶部内联，确保在所有资源加载前就已渲染 */

    #page-loader {

      position: fixed; inset: 0; z-index: 99999;

      display: flex; flex-direction: column;

      align-items: center; justify-content: center;

      gap: 28px;

      background: linear-gradient(145deg, #0a0a0f 0%, #050510 100%);

      transition: opacity 0.6s ease, visibility 0.6s ease;

    }

    #page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }



    /* 旋转的双环加载图标 */

    .loader-spinner {

      position: relative;

      width: 64px; height: 64px;

    }

    .loader-spinner .ring {

      position: absolute; inset: 0;

      border-radius: 50%;

      border: 3px solid transparent;

    }

    .loader-spinner .ring-outer {

      border-top-color: #ff6b35;

      border-right-color: #ff8a5b;

      animation: loaderSpin 1s linear infinite;

    }

    .loader-spinner .ring-inner {

      inset: 10px;

      border-bottom-color: #3b82f6;

      border-left-color: #60a5fa;

      animation: loaderSpinReverse 0.8s linear infinite;

    }

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

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



    /* 进度条 */

    .loader-bar {

      width: 200px; max-width: 60vw; height: 3px;

      background: rgba(255,255,255,0.1);

      border-radius: 2px; overflow: hidden;

    }

    .loader-bar-fill {

      width: 0%; height: 100%;

      background: linear-gradient(90deg, #ff6b35, #ff8a5b);

      border-radius: 2px;

      transition: width 0.3s ease;

    }



    /* 加载页 logo（克隆 #logo-svg，使用加载页专属动画）。

       高度由原 clamp(90px, 14vh, 150px) 缩小约 25%，视觉更精致 */

    .loader-logo-wrap {

      display: flex; align-items: center; justify-content: center;

      height: clamp(66px, 10vh, 116px);

    }

    .loader-logo-wrap svg {

      width: auto;

      height: 100%;

      max-width: 58vw;

    }



    /* 加载页 logo 专属动画：一次性描边绘制 → 填充淡入 → 保持显示，

       区别于主界面 logoCycle（无限循环反复描边） */

    @keyframes loaderLogoCycle {

      0% {

        stroke-dashoffset: var(--len);

        fill-opacity: 0;

        stroke-width: 0.5;

        --shadow-opacity: 0;

      }

      55% {

        stroke-dashoffset: 0;

        fill-opacity: 0.55;

        --shadow-opacity: 0.3;

      }

      75% {

        stroke-dashoffset: 0;

        fill-opacity: 1;

        stroke-width: 0.5;

        --shadow-opacity: 0.4;

      }

      100% {

        stroke-dashoffset: 0;

        fill-opacity: 1;

        stroke-opacity: 1;

        stroke-width: 0.5;

        --shadow-opacity: 0.4;

      }

    }



    /* 跳过按钮 */

    .loader-skip {

      position: absolute;

      right: clamp(16px, 3vw, 28px);

      bottom: clamp(16px, 3vw, 28px);

      min-width: 92px;

      padding: 10px 22px;

      border: 1px solid rgba(255,255,255,0.3);

      border-radius: 999px;

      background: rgba(255,255,255,0.08);

      color: rgba(255,255,255,0.85);

      font-size: 13px;

      letter-spacing: 2px;

      cursor: pointer;

      user-select: none;

      transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;

      -webkit-tap-highlight-color: transparent;

    }

    .loader-skip:hover { background: rgba(255,255,255,0.16); color: #fff; }

    .loader-skip:active { transform: scale(0.94); }



    /* 进度百分比文字 */

    .loader-percent {

      font-size: 13px; 

      color: rgba(255,255,255,0.6);

      letter-spacing: 1px;

      font-variant-numeric: tabular-nums;

    }

    /* 提示文字 */

    .loader-text {

      font-size: 11px; font-weight: 400;

      color: rgba(255,255,255,0.3);

      letter-spacing: 2px;

    }



/* 定义动画变量，放在外层类上 */

.topbar-btn-wrap {

  --anim--hover-time: 220ms;

  --anim--hover-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --angle-1: 0deg;

  --angle-2: 45deg;

}



/* ========== BUTTON ========== */



/* Button Wrap Container */

.button-wrap {

  position: relative;

  z-index: 2;

  border-radius: 999vw;

  background: transparent;

  pointer-events: auto; /* 关键：包裹层需接收事件，否则内部 inline 按钮的命中区域会错位/失效 */

  transition: all var(--anim--hover-time, 0.2s) var(--anim--hover-ease, ease-out);

}



/* Button Shadow Container */

.button-shadow {

  --shadow-cuttoff-fix: 2em;

  position: absolute;

  width: calc(100% + var(--shadow-cuttoff-fix));

  height: calc(100% + var(--shadow-cuttoff-fix));

  top: calc(0% - var(--shadow-cuttoff-fix) / 2);

  left: calc(0% - var(--shadow-cuttoff-fix) / 2);

  filter: blur(clamp(2px, 0.125em, 12px));

  -webkit-filter: blur(clamp(2px, 0.125em, 12px));

  -moz-filter: blur(clamp(2px, 0.125em, 12px));

  -ms-filter: blur(clamp(2px, 0.125em, 12px));

  overflow: visible;

  pointer-events: none;

}



/* Shadow */

.button-shadow::after {

  content: "";

  position: absolute;

  z-index: 0;

  inset: 0;

  border-radius: 999vw;

  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));

  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);

  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);

  top: calc(var(--shadow-cuttoff-fix) - 0.5em);

  left: calc(var(--shadow-cuttoff-fix) - 0.875em);

  padding: 0.125em;

  box-sizing: border-box;

  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);

  mask-composite: exclude;

  transition: all var(--anim--hover-time, 0.2s) var(--anim--hover-ease, ease-out);

  overflow: visible;

  opacity: 1;

}



/* ========== BUTTON BASE STYLES ========== */



.fancy-generate-btn2{

  --border-width: clamp(1px, 0.0625em, 4px);

  all: unset;

  display: inline-flex; /* 关键：覆盖 all:unset 回退的 inline，使命中框=视觉框，避免点击区域错位 */

  align-items: center;

  justify-content: center;

  cursor: pointer;

  position: relative;

  pointer-events: auto;

  color: #000;

  background-color: #fff;

  z-index: 3;  border-radius: 999vw;

  transition: all var(--anim--hover-time) var(--anim--hover-ease);

}

/* Button Text */

.fancy-generate-btn2 span {

  position: relative;

  display: block;

  user-select: none;

  -webkit-user-select: none;

  -moz-user-select: none;

  -ms-user-select: none;

  letter-spacing: -0.05em;

  /* font-weight: 500; */

  /* font-size: 0.5em; */

  color: rgba(50, 50, 50, 1);

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  /* text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1); */

  transition: all var(--anim--hover-time) var(--anim--hover-ease);

  padding-inline: 1.5em;

  padding-block: 0.875em;

}



.fancy-generate-btn2 .text-btn {

  font-size: 0.8em!important;

  line-height: 1.25;

}



/* 仅作用于特定按钮 */

.fancy-generate-btn {

  /* Basic Styling */

  --border-width: clamp(1px, 0.0625em, 4px);

  --angle-1: 0deg;

  --angle-2: 0deg;

  --anim--hover-time: 0.2s;

  --anim--hover-ease: ease-out;

  

  all: unset;

  display: inline-flex; /* 关键：覆盖 all:unset 回退的 inline，使命中框=视觉框，避免点击区域错位 */

  align-items: center;

  justify-content: center;

  cursor: pointer;

  position: relative;

  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  pointer-events: auto;

  z-index: 3;

  background: linear-gradient(

    -75deg,

    rgba(255, 255, 255, 0.05),

    rgba(255, 255, 255, 0.2),

    rgba(255, 255, 255, 0.05)

  );

  border-radius: 999vw;

  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),

    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),

    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),

    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),

    0 0 0 0 rgba(255, 255, 255, 1);

  backdrop-filter: blur(clamp(1px, 0.125em, 4px));

  -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));

  -moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px));

  -ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px));

  transition: all var(--anim--hover-time) var(--anim--hover-ease);

}



.fancy-generate-btn:hover {

  transform: scale(0.975);

  backdrop-filter: blur(0.01em);

  -webkit-backdrop-filter: blur(0.01em);

  -moz-backdrop-filter: blur(0.01em);

  -ms-backdrop-filter: blur(0.01em);

  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),

    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),

    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),

    0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),

    0 0 0 0 rgba(255, 255, 255, 1);

}



/* Button Text */

.fancy-generate-btn span {

  position: relative;

  display: block;

  user-select: none;

  -webkit-user-select: none;

  -moz-user-select: none;

  -ms-user-select: none;

  font-family: "Inter", sans-serif;

  letter-spacing: -0.05em;

  /* font-weight: 500; */

  /* font-size: 0.5em; */

  color: rgba(50, 50, 50, 1);

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  /* text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1); */

  transition: all var(--anim--hover-time) var(--anim--hover-ease);

  padding-inline: 1.5em;

  padding-block: 0.875em;

}



.fancy-generate-btn .text-btn {

  font-size: 0.8em!important;

  line-height: 1.25;

}

.text-btn-active{

  font-weight: 700;color: #7504e5!important;

}

.fancy-generate-btn .iconfont {

    font-size: 0.9em!important;

}



.fancy-generate-btn:hover span {

  text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);

}



/* Text shine effect */

.fancy-generate-btn span::after {

  content: "";

  display: block;

  position: absolute;

  z-index: 1;

  width: calc(100% - var(--border-width));

  height: calc(100% - var(--border-width));

  top: calc(0% + var(--border-width) / 2);

  left: calc(0% + var(--border-width) / 2);

  box-sizing: border-box;

  border-radius: 999vw;

  overflow: clip;

  background: linear-gradient(

    var(--angle-2),

    rgba(255, 255, 255, 0) 0%,

    rgba(255, 255, 255, 0.5) 40% 50%,

    rgba(255, 255, 255, 0) 55%

  );

  z-index: 3;

  mix-blend-mode: screen;

  pointer-events: none;

  background-size: 200% 200%;

  background-position: 0% 50%;

  background-repeat: no-repeat;

  transition: background-position calc(var(--anim--hover-time) * 1.25)

      var(--anim--hover-ease),

    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);

}



.fancy-generate-btn:hover span::after {

  background-position: 25% 50%;

}



.fancy-generate-btn:active span::after {

  background-position: 50% 15%;

  --angle-2: -15deg;

}



/* Touch Devices */

@media (hover: none) and (pointer: coarse) {

  .fancy-generate-btn span::after,

  .fancy-generate-btn:active span::after {

    --angle-2: -45deg;

  }

}



/* ========== BUTTON OUTLINE ========== */



/* Outline */

.fancy-generate-btn::after {

  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  border-radius: 999vw;

  width: calc(100% + var(--border-width));

  height: calc(100% + var(--border-width));

  top: calc(0% - var(--border-width) / 2);

  left: calc(0% - var(--border-width) / 2);

  padding: var(--border-width);

  box-sizing: border-box;

  /* background: conic-gradient(

      from var(--angle-1) at 50% 50%,

      rgba(0, 0, 0, 0.5),

      rgba(0, 0, 0, 0) 5% 40%,

      rgba(0, 0, 0, 0.5) 50%,

      rgba(0, 0, 0, 0) 60% 95%,

      rgba(0, 0, 0, 0.5)

    ),

    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)); */

  /* mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);

  mask-composite: exclude; */

  transition: all var(--anim--hover-time) var(--anim--hover-ease),

    --angle-1 500ms ease;

  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);

}



.fancy-generate-btn:hover::after {

  --angle-1: -125deg;

}



.fancy-generate-btn:active::after {

  --angle-1: -75deg;

}



@media (hover: none) and (pointer: coarse) {

  .fancy-generate-btn::after,

  .fancy-generate-btn:hover::after,

  .fancy-generate-btn:active::after {

    --angle-1: -75deg;

  }

}



/* Shadow Hover */

.button-wrap:has(.fancy-generate-btn:hover) .button-shadow {

  filter: blur(clamp(2px, 0.0625em, 6px));

  -webkit-filter: blur(clamp(2px, 0.0625em, 6px));

  -moz-filter: blur(clamp(2px, 0.0625em, 6px));

  -ms-filter: blur(clamp(2px, 0.0625em, 6px));

  transition: filter var(--anim--hover-time) var(--anim--hover-ease);

}



.button-wrap:has(.fancy-generate-btn:hover) .button-shadow::after {

  top: calc(var(--shadow-cuttoff-fix) - 0.875em);

  opacity: 1;

}



/* Rotation on active */

.button-wrap:has(.fancy-generate-btn:active) {

  transform: rotate3d(1, 0, 0, 25deg);

}



.button-wrap:has(.fancy-generate-btn:active) .fancy-generate-btn {

  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),

    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),

    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),

    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),

    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),

    0 0.25em 0 0 rgba(255, 255, 255, 0.75),

    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);

}



.button-wrap:has(.fancy-generate-btn:active) .button-shadow {

  /* filter: blur(clamp(2px, 0.125em, 12px));

  -webkit-filter: blur(clamp(2px, 0.125em, 12px));

  -moz-filter: blur(clamp(2px, 0.125em, 12px));

  -ms-filter: blur(clamp(2px, 0.125em, 12px)); */

}



.button-wrap:has(.fancy-generate-btn:active) .button-shadow::after {

  top: calc(var(--shadow-cuttoff-fix) - 0.5em);

  opacity: 0.75;

}



.button-wrap:has(.fancy-generate-btn:active) .fancy-generate-btn span {

  text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12);

}



.content-panel{

  background-color: #fff;

  background-image: url(../img/background.jpg);

  background-size: cover;

  background-repeat: no-repeat;

}