/* ============================================================
       二维码扫码阅读 Modal & 功法资产详单 Modal
       ============================================================ */
    #qrModal {
      z-index: 150 !important;
    }
    .qr-modal-box {
      width: min(92vw, 640px) !important;
      padding: 24px 28px 22px;
    }
    .qr-content {
      display: flex; gap: 24px; align-items: stretch; margin-top: 14px;
    }
    .qr-frame {
      flex: 0 0 240px;
      width: 240px;
      height: 240px;
      min-width: 0;
      max-width: min(240px, 100%);
      aspect-ratio: 1 / 1;
      border-radius: 10px;
      position: relative;
      border: 0.5px solid var(--rim);
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
      margin: 0 auto;
    }
    .qr-frame img, .qr-frame svg, .qr-canvas-box {
      width: 220px;
      height: 220px;
      max-width: 100%;
      max-height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      display: block;
      margin: auto;
    }
    .qr-canvas-box {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .qr-canvas-box canvas, .qr-canvas-box img {
      width: 200px !important;
      height: 200px !important;
      max-width: 100% !important;
      max-height: 100% !important;
      aspect-ratio: 1 / 1 !important;
      object-fit: contain !important;
      margin: auto !important;
    }
    /* qrcode.js 生成后会把 canvas 隐藏、改用导出的 img 显示；
       上方规则不得强制 display，否则隐藏的兜底元素被 !important
       重新显示，两份 200px 内容并排溢出容器，二维码即错位残缺 */
    .qr-canvas-box canvas[style*="display: none"], .qr-canvas-box img[style*="display: none"] {
      display: none !important;
    }
    .qr-laser {
      position: absolute; left: 0; right: 0; height: 2px;
      /* 扫描线置顶：扫过二维码中央的头像徽章 (z-index:2) 时保持在其上方穿过 */
      z-index: 3;
      background: linear-gradient(90deg, transparent, #6366f1, transparent);
      box-shadow: 0 0 10px #6366f1;
      animation: scanLaser 2.6s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes scanLaser {
      0% { top: 6%; opacity: 0.2; }
      50% { opacity: 0.9; }
      100% { top: 92%; opacity: 0.2; }
    }
    .qr-center-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: #ffffff;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
      border: 3px solid #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      pointer-events: none;
    }
    .qr-center-icon svg {
      width: 28px;
      height: 28px;
      display: block;
    }
    .qr-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; }
    .qr-head-row { display: flex; align-items: center; gap: 16px; }
    .qr-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
    .qr-brand-logo {
      width: 68px; height: 68px; border-radius: 50%; overflow: hidden;
      flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
      border: 1px solid rgba(151, 162, 180, 0.28);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
    .qr-brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
    .qr-vol {
      font-family: var(--font-cn); font-weight: 600; font-size: var(--fs-xs);
      letter-spacing: 0.04em; color: #6366f1;
    }
    .qr-vol.is-red {
      color: #ff2442 !important;
    }
    .qr-tabs {
      display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px;
    }
    .qr-tab-btn {
      appearance: none; border: 0.5px solid var(--hairline);
      background: rgba(255, 255, 255, 0.04);
      color: var(--dim); font-size: var(--fs-xs); font-weight: 500;
      padding: 4px 10px; border-radius: 4px; cursor: pointer;
      transition: all 0.18s ease;
    }
    .qr-tab-btn:hover {
      background: rgba(99, 102, 241, 0.15); color: var(--text); border-color: rgba(99, 102, 241, 0.4);
    }
    .qr-tab-btn.active {
      background: #6366f1; color: #ffffff; border-color: #6366f1;
      font-weight: 600; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    }
    .qr-title {
      font-family: var(--font-cn); font-weight: 600; font-size: var(--fs-lg);
      line-height: 1.4; color: var(--text);
    }
    .qr-desc {
      font-size: var(--fs-sm); color: var(--dim); line-height: 1.6;
      /* 正文两端对齐;西文配 hyphens 连字符断词(html lang 由 i18n 动态写入)避免大空隙 */
      text-align: justify; text-justify: inter-word;
      -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
    }
    .qr-tips {
      font-size: var(--fs-xs); color: var(--faint); line-height: 1.5;
      padding: 6px 10px; border-radius: 4px;
      background: rgba(255, 255, 255, 0.035);
      border: 0.5px solid var(--hairline-soft);
    }
    html[data-theme="light"] .qr-tips { background: rgba(15, 23, 42, 0.035); }
    .desktop-tip { display: block; }
    .mobile-tip { display: none; }
    .qr-jump-btn {
      margin-top: auto; /* 单卡排版：信息块上对齐、行动按钮吸底 */
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 36px; border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      border: 0.5px solid var(--hairline);
      color: var(--text); font-size: var(--fs-sm); font-weight: 500;
      text-decoration: none; transition: all 0.18s ease;
    }
    .qr-jump-btn:hover {
      background: var(--text);
      color: var(--void);
      border-color: var(--text);
      transform: translateY(-1px);
    }
    html[data-theme="light"] .qr-jump-btn {
      background: #f1f5f9;
      border-color: rgba(15, 23, 42, 0.18);
      color: #0f172a;
    }
    html[data-theme="light"] .qr-jump-btn:hover {
      background: #0f172a;
      color: #ffffff;
      border-color: #0f172a;
    }
    .qr-jump-btn.is-red,
    html[data-theme="light"] .qr-jump-btn.is-red {
      background: #ff2442 !important;
      border-color: #ff2442 !important;
      color: #ffffff !important;
      font-weight: 600;
      box-shadow: 0 2px 10px rgba(255, 36, 66, 0.28);
    }
    .qr-jump-btn.is-red:hover,
    html[data-theme="light"] .qr-jump-btn.is-red:hover {
      background: #e01735 !important;
      border-color: #e01735 !important;
      color: #ffffff !important;
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(255, 36, 66, 0.4);
    }
    .qr-jump-btn.is-red svg {
      stroke: #ffffff !important;
    }
    .qr-jump-btn.is-red span {
      color: #ffffff !important;
    }
    .qr-jump-btn.is-bili,
    html[data-theme="light"] .qr-jump-btn.is-bili {
      background: #00b3ef !important;
      border-color: #00b3ef !important;
      color: #ffffff !important;
      font-weight: 600;
      box-shadow: 0 2px 10px rgba(0, 179, 239, 0.35);
    }
    .qr-jump-btn.is-bili:hover,
    html[data-theme="light"] .qr-jump-btn.is-bili:hover {
      background: #0096cb !important;
      border-color: #0096cb !important;
      color: #ffffff !important;
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(0, 179, 239, 0.48);
    }
    .qr-jump-btn.is-bili svg {
      stroke: #ffffff !important;
    }
    .qr-jump-btn.is-bili span {
      color: #ffffff !important;
    }
    .qr-vol.is-bili {
      color: #00b3ef !important;
    }
    /* B站小电视图标：仅 B站弹窗的跳转按钮显示，其它弹窗自动隐藏 */
    .qr-jump-btn .bili-tv { display: none; }
    .qr-jump-btn.is-bili .bili-tv { display: inline-block; }

    .qr-group-num {
      appearance: none;
      -webkit-appearance: none;
      border: 0.5px solid var(--hairline-soft);
      background: rgba(255, 255, 255, 0.04);
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: var(--fs-xs);
      color: var(--dim);
      padding: 5px 12px;
      border-radius: 6px;
      transition: all 0.16s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 2px;
      user-select: none;
      -webkit-user-select: none;
    }
    .qr-group-num:hover {
      color: #6366f1;
      border-color: rgba(99, 102, 241, 0.4);
      background: rgba(99, 102, 241, 0.08);
      transform: translateY(-1px);
    }
    .qr-group-num .qr-copy-icon {
      stroke: currentColor;
      transition: stroke 0.16s ease;
      flex-shrink: 0;
    }
    .qr-group-num.copied {
      color: #10b981 !important;
      border-color: #10b981 !important;
      background: rgba(16, 185, 129, 0.1) !important;
      font-weight: 600;
    }
    .qr-group-num.copied .qr-copy-icon {
      stroke: #10b981 !important;
    }
    html[data-theme="light"] .qr-group-num {
      background: rgba(15, 23, 42, 0.04);
      border-color: rgba(15, 23, 42, 0.12);
      color: #334155;
    }
    html[data-theme="light"] .qr-group-num:hover {
      background: rgba(99, 102, 241, 0.08);
      border-color: rgba(99, 102, 241, 0.4);
      color: #4f46e5;
    }

    /* 全局轻量浮动提示 */
    .oq-toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: rgba(15, 23, 42, 0.94);
      color: #ffffff;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 0.5px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
      padding: 9px 20px;
      font-size: var(--fs-sm);
      font-weight: 500;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 99999;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .oq-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    html[data-theme="light"] .oq-toast {
      background: rgba(255, 255, 255, 0.96);
      color: #0f172a;
      border-color: rgba(15, 23, 42, 0.15);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    /* 多卡片并列容器（微信双公众号 2列 / QQ群 3列） */
    .qr-modal-box.is-dual {
      width: min(94vw, 720px) !important;
    }
    .qr-modal-box.is-triple {
      width: min(96vw, 900px) !important;
      max-height: min(90dvh, 860px);
      overflow-y: auto;
    }
    /* QQ 频道与分割线 */
    .qr-channel-divider {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 6px 0 0;
      width: 100%;
    }
    .qr-channel-divider-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--hairline), transparent);
    }
    .qr-channel-divider-badge {
      display: inline-flex;
      align-items: center;
      font-size: var(--fs-xs);
      font-weight: 600;
      letter-spacing: 0.04em;
      color: #1296db;
      background: rgba(18, 150, 219, 0.08);
      border: 0.5px solid rgba(18, 150, 219, 0.25);
      border-radius: 999px;
      padding: 3px 14px;
      user-select: none;
    }
    html[data-theme="light"] .qr-channel-divider-badge {
      background: rgba(18, 150, 219, 0.06);
      border-color: rgba(18, 150, 219, 0.3);
    }
    .qr-channel-card {
      grid-column: 1 / -1;
      background: rgba(255, 255, 255, 0.025);
      border: 0.5px solid var(--hairline);
      border-radius: 8px;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      gap: 20px;
      transition: all 0.2s ease;
      text-align: left;
    }
    html[data-theme="light"] .qr-channel-card {
      background: rgba(15, 23, 42, 0.02);
    }
    .qr-channel-card:hover {
      border-color: rgba(18, 150, 219, 0.4);
      background: rgba(18, 150, 219, 0.03);
    }
    .qr-channel-frame {
      width: 124px !important;
      height: 124px !important;
      min-width: 124px !important;
      max-width: 124px !important;
      margin: 0 !important;
      flex-shrink: 0;
    }
    .qr-channel-body {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .qr-channel-top {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .qr-channel-vol {
      font-size: var(--fs-xs);
      font-weight: 600;
      color: #1296db;
      display: inline-flex;
      align-items: center;
    }
    .qr-channel-title {
      font-size: var(--fs-lg);
      font-weight: 600;
      color: var(--fg);
      margin: 0;
    }
    .qr-channel-desc {
      font-size: var(--fs-sm);
      color: var(--dim);
      margin: 0;
      line-height: 1.45;
    }
    .qr-channel-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 4px;
      flex-wrap: wrap;
    }
    .qr-channel-jump {
      height: 30px;
      padding: 0 14px;
      font-size: var(--fs-xs);
      background: #1296db !important;
      color: #ffffff !important;
      border: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.16s ease;
    }
    .qr-channel-jump:hover {
      background: #0f7bb3 !important;
      transform: translateY(-1px);
    }
    .qr-channel-jump svg {
      stroke: #ffffff !important;
    }
    @media (max-width: 768px) {
      .qr-channel-card {
        flex-direction: column;
        text-align: center;
        padding: 16px 14px;
      }
      .qr-channel-frame {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        margin: 0 auto !important;
      }
      .qr-channel-top {
        justify-content: center;
      }
      .qr-channel-actions {
        justify-content: center;
      }
    }
    .qr-multi-content {
      display: grid;
      gap: 16px;
      margin-top: 16px;
    }
    .qr-multi-content.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }
    .qr-multi-content.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }
    .qr-multi-card {
      background: rgba(255, 255, 255, 0.025);
      border: 0.5px solid var(--hairline);
      border-radius: 8px;
      padding: 14px 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
    }
    html[data-theme="light"] .qr-multi-card {
      background: rgba(15, 23, 42, 0.02);
    }
    .qr-multi-card:hover {
      border-color: rgba(99, 102, 241, 0.4);
      background: rgba(99, 102, 241, 0.04);
      transform: translateY(-2px);
    }
    .qr-multi-frame {
      width: 155px;
      height: 155px;
      min-width: 155px;
      max-width: 155px;
      aspect-ratio: 1 / 1;
      border-radius: 8px;
      background: #ffffff;
      padding: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
      border: 0.5px solid var(--rim);
      flex-shrink: 0;
      margin: 0 auto;
      cursor: pointer;
      position: relative;
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
      -webkit-touch-callout: default !important;
      user-select: auto;
      -webkit-user-select: auto;
    }
    .qr-multi-frame:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
      border-color: rgba(99, 102, 241, 0.5);
    }
    .qr-multi-frame:active {
      transform: scale(0.98);
    }
    .cols-2 .qr-multi-frame {
      width: min(100%, 195px);
      height: auto;
      min-width: 0;
      max-width: 195px;
      padding: 10px;
    }
    .cols-3 .qr-multi-frame {
      width: min(100%, 210px);
      height: auto;
      min-width: 0;
      max-width: 210px;
    }
    .qr-multi-frame img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      display: block;
      border-radius: 4px;
      pointer-events: auto;
      -webkit-touch-callout: default !important;
      user-select: auto;
      -webkit-user-select: auto;
    }
    .qr-multi-body {
      display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%;
    }
    .qr-multi-vol {
      font-family: var(--font-dis); font-size: var(--fs-xs); font-weight: 700;
      letter-spacing: 0.08em; color: #6366f1;
    }
    .qr-multi-title {
      font-family: var(--font-cn); font-size: var(--fs-md); font-weight: 600;
      color: var(--text); margin: 0;
    }
    .qr-multi-desc {
      font-size: var(--fs-xs); color: var(--dim); line-height: 1.45; margin: 0;
      min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      max-height: 2.92em; /* clamp 失效兜底：2 行 × 1.45 行高 */
    }
    .qr-multi-btn {
      width: 100%; height: 32px; font-size: var(--fs-xs); margin-top: 4px;
    }
    /* 移动端社群弹窗紧凑化：QQ 三群+频道 2×2 四码同屏、微信双码并列、单卡收窄 */
    @media (max-width: 768px) {
      #qrModal {
      z-index: 150 !important;
    }
    .qr-modal-box {
        width: min(78vw, 640px) !important;
        padding: 16px 16px 14px;
      }
      .qr-modal-box.is-dual { width: min(86vw, 720px) !important; }
      .qr-modal-box.is-triple {
        width: min(88vw, 900px) !important;
        max-height: min(88dvh, 860px);
      }
      .qr-modal-box .modal-head { padding-bottom: 8px; margin-bottom: 10px; }
      .qr-tips { font-size: var(--fs-xs); padding: 6px 9px; }

      /* QQ：三群 + 官方频道 → 2×2 四码同屏；微信：双码并列
         （minmax(0,1fr) 等分列宽：长群号数字的 min-content 不会把某列撑宽） */
      .qr-multi-content.cols-3,
      .qr-multi-content.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
      }
      .qr-multi-card { padding: 10px 8px; gap: 6px; }
      .cols-3 .qr-multi-frame,
      .cols-2 .qr-multi-frame {
        width: min(100%, 118px);
        height: auto;
        padding: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      }
      .qr-multi-title {
        font-size: var(--fs-sm);
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .qr-multi-desc { min-height: auto; font-size: var(--fs-2xs); }
      .qr-multi-card .qr-group-num { font-size: var(--fs-2xs); padding: 0 9px; height: 24px; }

      /* 分割线在 2×2 网格中冗余（频道卡自带官方频道徽标），移动端隐藏 */
      .qr-channel-divider { display: none; }
      /* 频道卡降为网格第 4 格：与群卡片同构纵排居中 */
      .qr-channel-card {
        grid-column: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 10px 8px;
      }
      .qr-channel-frame {
        width: min(100%, 118px) !important;
        height: auto !important;
        min-width: 0 !important;
        max-width: 118px !important;
        margin: 0 auto !important;
        padding: 6px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
      }
      .qr-channel-top { justify-content: center; gap: 6px; }
      .qr-channel-title {
        font-size: var(--fs-sm);
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      /* 频道卡与群卡同构等高：徽标与描述移动端隐藏（标题已含"官方频道"），
         操作只留单行"进入 QQ 频道"主按钮，即「标题 + 行动」两行形态 */
      .qr-channel-vol { display: none; }
      .qr-channel-desc { display: none; }
      .qr-channel-actions .qr-group-num { display: none; }
      .qr-channel-actions { justify-content: center; gap: 6px; margin-top: 2px; }
      .qr-channel-actions .qr-jump-btn {
        height: 24px; padding: 0 12px; font-size: var(--fs-2xs); margin-top: 0;
        font-family: var(--font-mono);
      }

      /* 单卡（B站/小红书/付费文章等）移动端：纵排布局 —— 二维码居中收小、
         信息块全宽、行动按钮通栏；根治 240px 固定码框把右列挤成窄条导致的按钮溢出 */
      .qr-content { flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
      .qr-frame {
        flex: 0 0 auto;
        width: 180px; height: 180px; max-width: 180px;
      }
      .qr-frame img, .qr-frame svg, .qr-canvas-box { width: 158px; height: 158px; }
      .qr-canvas-box canvas, .qr-canvas-box img {
        width: 158px !important; height: 158px !important;
        max-width: 100% !important; max-height: 100% !important;
      }
      .qr-details { width: 100%; }
      /* 头部（头像 + 文字）居中纵排：头像在上、标签/标题/描述居中跟随，
         与居中二维码、通栏按钮形成统一中轴，消除左右参差 */
      .qr-head-row { flex-direction: column; gap: 8px; text-align: center; }
      .qr-brand-logo { order: -1; width: 54px; height: 54px; }
      .qr-head-text { align-items: center; gap: 6px; }
      .qr-details .qr-jump-btn { width: 100%; }
      .qr-details .qr-tips { font-size: var(--fs-2xs); text-align: center; }
    }

    /* 功法资产详单 Modal(加 .modal-backdrop 前缀提升特异性,避免被后置的通用 .modal-box 覆盖)
       购买卡片:横屏左右布局(左多图画廊 + 右购买信息),竖屏上下布局;点图看大图(lightbox) */
    .modal-backdrop .vault-modal-box {
      width: min(94vw, 1040px);
      padding: 20px 24px 18px;
      /* 等高分栏:盒子高度为确值(视口上限 620px),左画廊按 3:4 竖幅反推宽度,
         左右两栏严格等高;右栏内容超出时在自身栏内滚动 */
      height: min(calc(100vh - 32px), 620px);
      display: flex; flex-direction: column;
      overflow: hidden;
      /* 底部弹层入场滑动(窄屏 translateY(28px)→0);桌面无位移,不受影响 */
      transition: transform 0.25s var(--ease-out, ease);
    }
    /* 移动端浏览器动态地址栏:dvh 跟随实际视口 */
    @supports (height: 100dvh) {
      .modal-backdrop .vault-modal-box { height: min(calc(100dvh - 32px), 620px); }
    }
    .vault-modal-box .modal-head { flex-shrink: 0; }
    /* 弹窗关闭按钮:此前 .atlas-close 全站无样式定义,渲染为浏览器默认灰色按钮;
       统一为圆形幽灵按钮,随主题取色,悬停走品牌强调色 */
    .modal-backdrop .atlas-close {
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: var(--fs-sm); line-height: 1;
      color: var(--dim, #b4c2d3); background: transparent;
      border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
      cursor: pointer; flex-shrink: 0;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .modal-backdrop .atlas-close:hover {
      color: var(--accent, #f43f5e);
      border-color: rgba(var(--accent-rgb, 244, 63, 94), 0.5);
      background: rgba(var(--accent-rgb, 244, 63, 94), 0.06);
    }
    .vault-modal-content {
      display: flex; flex-direction: row; gap: 16px;
      margin-top: 12px; flex: 1; min-height: 0;
      /* 桌面两栏:整体不滚,滚动权移交右栏 .vm-info(左画廊固定 3:4 常驻可见);
         竖屏/窄屏媒体查询里把整体滚动还给她 */
      overflow: hidden;
    }
    /* 左:多图画廊舞台(撑满左栏，悬浮卡片在图片底部重叠呈现) */
    .vm-gallery {
      flex: 0 0 380px; width: 380px; min-width: 0;
      height: 100%; min-height: 0;
      display: flex; flex-direction: column; position: relative;
    }
    .vm-stage {
      position: relative;
      /* 3:4 竖幅预览:高度吃满左栏,宽度按比例反推并 clamp 在栏宽内
         (视口过矮时宽度顶满 380,比例优雅降级为满栏裁切) */
      flex: 1 1 auto; min-height: 0;
      align-self: center;
      width: auto; max-width: 100%;
      aspect-ratio: 3 / 4;
      border-radius: 10px; overflow: hidden;
      border: 1px solid var(--line); cursor: zoom-in;
      -webkit-tap-highlight-color: transparent;
      background: rgba(0, 0, 0, 0.35);
    }
    /* 支付区作为整体卡片悬浮在左图窗口底部:左栏常驻不滚动,二维码/价格/跳转整体化展示;
       移动端由 JS 按断点搬回信息栏末尾走文档流(选择器随之失效) */
    .vm-gallery .vm-pay-row {
      position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
      margin: 0; padding: 9px 11px; gap: 12px;
      background: rgba(17, 21, 30, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 10px;
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      cursor: default;
    }
    html[data-theme="light"] .vm-gallery .vm-pay-row {
      background: rgba(255, 255, 255, 0.88);
      border-color: rgba(15, 23, 42, 0.12);
    }
    .vm-gallery .vm-pay-row .vm-price-tip,
    .vm-gallery .vm-pay-row .vm-qr-sub { color: var(--faint, #b4c2d3); }
    .vm-gallery .vm-pay-row .vm-qr img,
    .vm-gallery .vm-pay-row .vm-qr { --qr-sz: 84px; }
    .vm-gallery .vm-pay-row .vm-qr .vm-qr-img { width: var(--qr-sz, 84px); height: var(--qr-sz, 84px); }
    .vm-gallery .vm-pay-row .vm-buy-btn { height: 36px; }
    /* 桌面悬浮支付卡覆盖图片底部:多图计数器移到右上角、GIF 角标移到徽章下方避让;
       竖屏/窄屏下支付卡走文档流,选择器失效,计数器回到图片右下角 */
    @media (orientation: landscape) and (min-width: 681px) {
      .vm-gallery .vm-gal-count { top: 10px; right: 12px; bottom: auto; z-index: 4; }
      .vm-gallery .vm-gif-tag { top: 36px; left: 10px; bottom: auto; }
    }
    .vm-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
    .vm-spec-tag {
      font-size: var(--fs-xs); font-family: var(--font-mono);
      padding: 2px 7px; border-radius: 4px;
      background: rgba(var(--accent-rgb), 0.08); color: var(--text);
      border: 1px solid var(--line);
    }
    .vm-manifest {
      margin: 4px 0 8px; padding: 10px 12px;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid var(--line-soft); border-radius: 8px;
    }
    .vm-mf-title {
      font-size: var(--fs-xs); font-weight: 700; color: var(--text);
      display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
      letter-spacing: 0.04em;
    }
    .vm-mf-icon { width: 13px; height: 13px; color: #10b981; flex-shrink: 0; }
    .vm-mf-list {
      list-style: none; margin: 0; padding: 0;
      display: flex; flex-direction: column; gap: 4px;
    }
    .vm-mf-list li {
      display: flex; align-items: flex-start; gap: 6px;
      font-size: var(--fs-sm); color: var(--dim); line-height: 1.45;
    }
    .vm-mf-dot {
      width: 4px; height: 4px; border-radius: 50%;
      background: var(--accent); margin-top: 5px; flex-shrink: 0;
    }
    .vm-mf-text { flex: 1; }

    /* 手风琴详述模块 (全部默认收起，单开互斥，紧凑且支持富文本交互) */
    .vm-accordion {
      display: flex; flex-direction: column; gap: 6px;
      margin: 4px 0 8px;
    }
    .vm-acc-item {
      border: 1px solid var(--line-soft);
      background: rgba(255, 255, 255, 0.025);
      border-radius: 8px;
      overflow: hidden;
      transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    }
    .vm-acc-item:hover {
      border-color: rgba(var(--accent-rgb), 0.35);
      background: rgba(255, 255, 255, 0.04);
    }
    .vm-acc-item.open {
      border-color: rgba(var(--accent-rgb), 0.55);
      background: rgba(var(--accent-rgb), 0.035);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }
    .vm-acc-header {
      padding: 7px 10px;
      display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; user-select: none;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.2s ease;
    }
    .vm-acc-header:hover {
      background: rgba(255, 255, 255, 0.02);
    }
    .vm-acc-title {
      display: flex; align-items: center; gap: 7px;
      font-size: var(--fs-xs); font-weight: 700; color: var(--text);
      letter-spacing: 0.02em;
    }
    .vm-acc-icon {
      width: 14px; height: 14px;
      display: inline-flex; align-items: center; justify-content: center;
      color: var(--accent); flex-shrink: 0;
    }
    .vm-acc-icon svg { width: 13px; height: 13px; display: block; }
    .vm-acc-arrow {
      width: 13px; height: 13px; color: var(--faint);
      transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
      flex-shrink: 0;
    }
    .vm-acc-item.open .vm-acc-arrow {
      transform: rotate(180deg);
      color: var(--accent);
    }
    .vm-acc-body {
      /* grid 0fr→1fr 折叠:高度精确跟随内容真实高度,无 max-height 魔法数上限
         (旧写法 0→360px 截长留短,展开有台阶感,长内容还会出现嵌套滚动条) */
      display: grid; grid-template-rows: 0fr;
      opacity: 0; overflow: hidden;
      transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
      padding: 0 10px;
      /* 正文两端对齐,随继承覆盖手风琴内的段落与列表 */
      text-align: justify; text-justify: inter-word;
      -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
    }
    .vm-acc-inner { min-height: 0; overflow: hidden; }
    .vm-acc-item.open .vm-acc-body {
      grid-template-rows: 1fr; opacity: 1;
      padding: 6px 10px 10px;
      border-top: 1px dashed var(--line-soft);
    }
    .vm-acc-body .md-p {
      margin: 4px 0; font-size: var(--fs-md); color: var(--dim); line-height: 1.55;
    }
    .vm-acc-body .md-ul, .vm-acc-body .md-ol {
      margin: 4px 0; padding-left: 16px;
    }
    .vm-acc-body li {
      font-size: var(--fs-xs); color: var(--dim); line-height: 1.5; margin: 3px 0;
    }
    .vm-acc-body strong { color: var(--text); font-weight: 600; }
    .vm-acc-body code {
      font-family: var(--font-mono); font-size: var(--fs-xs);
      background: var(--line-soft); padding: 1px 4px; border-radius: 3px;
      color: var(--accent);
    }

    /* 行内 QQ 群直达胶囊按钮 */
    .vm-inline-qq-btn {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 1px 8px; margin: 0 3px; border-radius: 12px;
      font-size: var(--fs-xs); font-family: var(--font-mono); font-weight: 600;
      background: rgba(18, 150, 219, 0.12); color: #1296db;
      border: 1px solid rgba(18, 150, 219, 0.32);
      cursor: pointer; vertical-align: middle;
      transition: all 0.2s ease;
      box-shadow: 0 1px 4px rgba(18, 150, 219, 0.1);
      text-decoration: none; outline: none;
    }
    .vm-inline-qq-btn:hover {
      background: rgba(18, 150, 219, 0.24);
      border-color: #1296db;
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(18, 150, 219, 0.3);
      color: #38bdf8;
    }
    .vm-inline-qq-btn:active {
      transform: translateY(0);
    }
    .vm-inline-qq-btn .vm-qq-icon {
      width: 12px; height: 12px; fill: currentColor; flex-shrink: 0;
    }
    .vm-inline-qq-btn .vm-arrow-icon {
      width: 9px; height: 9px; stroke: currentColor; opacity: 0.8;
    }
    .vm-wx-guide {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 8px; border-radius: 4px;
      font-size: var(--fs-xs); font-weight: 600;
      background: rgba(7, 193, 96, 0.12); color: #07c160;
      border: 1px solid rgba(7, 193, 96, 0.32);
      width: fit-content; margin-bottom: 0;
    }
    .vm-wx-icon { width: 13px; height: 13px; flex-shrink: 0; }
    .vm-price-row { display: flex; align-items: baseline; gap: 8px; }
    .vm-price-tip { font-size: var(--fs-xs); color: var(--faint); }
    .vm-qr-sub { font-size: var(--fs-2xs); color: var(--faint); margin-top: 3px; }
    /* 二维码角注按端切换:桌面「微信扫一扫获取资源包」(触屏的「长按识别」在竖屏查询里换回) */
    .vm-qr-sub-longpress { display: none; }
    /* 点按二维码的全屏大图浮层:白底卡片 = 高清码 + 资源名/价格(名字已烘进图片,
       长按保存与截图都自带资源上下文);角注同样按端切换 */
    .vm-qr-sheet {
      position: fixed; inset: 0; z-index: 320;
      display: none; align-items: center; justify-content: center;
      background: rgba(2, 6, 23, 0.88);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      padding: 20px;
    }
    .vm-qr-sheet.open { display: flex; }
    .vm-qr-sheet-card {
      background: #ffffff; border-radius: 16px;
      padding: 18px 18px 12px;
      width: min(84vw, 380px);
      display: flex; flex-direction: column; align-items: center; gap: 10px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    }
    .vm-qr-sheet-card img {
      width: 100%; height: auto; display: block;
      -webkit-user-select: none; user-select: none;
    }
    .vm-qr-sheet-tips {
      font-size: var(--fs-xs); color: #475569; font-weight: 600;
      text-align: center; padding-bottom: 4px;
    }
    .vm-stage img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.3s ease;
    }
    .vm-stage:hover img {
      transform: scale(1.02);
    }
    .vm-stage .vm-badges {
      position: absolute; left: 10px; top: 10px; z-index: 2;
      max-width: calc(100% - 20px);
      display: flex; flex-wrap: nowrap; gap: 5px; pointer-events: none;
      overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
      mask-image: linear-gradient(90deg, #000 82%, transparent);
    }
    /* 类型徽章胶囊:此前 .vm-badge-tag 全站无样式定义(裸文本直接压在图片上),
       原 .vm-badge 规则指向从未存在的类,属死代码,已一并废弃 */
    .vm-badge-tag {
      font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 600;
      letter-spacing: 0.05em; line-height: 1.5;
      padding: 1px 7px; border-radius: 4px; white-space: nowrap;
      background: rgba(15, 23, 42, 0.68); color: #dce5f1;
      border: 1px solid rgba(255, 255, 255, 0.14);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .vm-gal-btn {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
      width: 30px; height: 30px; border-radius: 50%; border: none;
      background: rgba(15, 23, 42, 0.55); color: #fff;
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      font-size: var(--fs-lg); line-height: 1; cursor: pointer; padding: 0;
      display: none; align-items: center; justify-content: center;
    }
    .vm-gal-btn:hover { background: rgba(15, 23, 42, 0.78); }
    .vm-gal-prev { left: 8px; }
    .vm-gal-next { right: 8px; }
    .vm-gal-count {
      position: absolute; right: 10px; bottom: 8px; z-index: 2;
      font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.06em;
      background: rgba(15, 23, 42, 0.55); color: #fff;
      padding: 2px 8px; border-radius: 10px; display: none;
    }
    .vm-stage.multi .vm-gal-btn, .vm-stage.multi .vm-gal-count { display: flex; }
    /* GIF 动图角标:当前展示帧为动图时由 JS 点亮 (单图也可显示) */
    .vm-gif-tag {
      position: absolute; left: 10px; bottom: 8px; z-index: 2;
      font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.08em;
      background: rgba(244, 63, 94, 0.92); color: #fff;
      padding: 2px 8px; border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      pointer-events: none;
    }
    .vm-badge {
      font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em;
      padding: 2px 7px; border-radius: 3px;
      background: rgba(244, 63, 94, 0.15); color: #f43f5e;
      border: 0.5px solid rgba(244, 63, 94, 0.35);
    }
    /* 右:购买信息列(桌面端独立上下滚动,画廊常驻;移动端由竖屏查询还原为不滚) */
    .vm-info {
      flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      padding-right: 4px; /* 细滚动条不贴内容 */
      scrollbar-gutter: stable; /* 滚动条槽位常驻:手风琴展开/收起时内容不再被压窄重排 */
    }
    /* 细滚动条,匹配站点胶囊风格(Firefox 走标准属性,Chromium/Safari 走 webkit 伪元素) */
    @supports not selector(::-webkit-scrollbar) {
      .vm-info { scrollbar-width: thin; scrollbar-color: rgba(127, 138, 158, 0.45) transparent; }
    }
    .vm-info::-webkit-scrollbar { width: 6px; }
    .vm-info::-webkit-scrollbar-track { background: transparent; }
    .vm-info::-webkit-scrollbar-thumb {
      background: rgba(127, 138, 158, 0.4);
      border-radius: 999px;
    }
    .vm-info::-webkit-scrollbar-thumb:hover { background: rgba(127, 138, 158, 0.62); }
    .vm-title {
      font-family: var(--font-cn); font-weight: 600; font-size: var(--fs-lg);
      color: var(--text); line-height: 1.4;
    }
    .vm-price {
      font-family: var(--font-dis); font-weight: 700; font-size: var(--fs-xl); color: #f43f5e;
      flex-shrink: 0; line-height: 1.1;
    }
    .vm-desc {
      font-size: var(--fs-md); color: var(--dim); line-height: 1.6;
      /* 正文两端对齐;西文配 hyphens 连字符断词(html lang 由 i18n 动态写入)避免大空隙 */
      text-align: justify; text-justify: inter-word;
      -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
    }
    /* 支付结算卡片：整体化包装 (微信支付二维码 + 扫码引导 + 价格保障 + 跳转原文) */
    .vm-pay-row {
      display: flex; gap: 14px; align-items: center;
      margin-top: auto; padding: 12px 14px;
      background: rgba(255, 255, 255, 0.028);
      border: 1px solid var(--line-soft);
      border-radius: 10px;
      transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    }
    .vm-pay-row:hover {
      border-color: rgba(var(--accent-rgb), 0.35);
      background: rgba(255, 255, 255, 0.04);
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    html[data-theme="light"] .vm-pay-row {
      background: rgba(15, 23, 42, 0.03);
      border-color: rgba(15, 23, 42, 0.09);
    }
    html[data-theme="light"] .vm-pay-row:hover {
      background: rgba(15, 23, 42, 0.05);
      border-color: rgba(var(--accent-rgb), 0.4);
    }
    .vm-pay-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
    /* 竖屏/窄屏:底部弹层上下堆叠。头图采用「折叠式」交互:
       图固定高 240px,滚动时先被视口裁掉一段,余 110px 冻结成常驻小条
       (sticky top = -(240-110)),继续滚动只剩下方文字栏滚动 */
    @media (orientation: portrait), (max-width: 680px) {
      .modal-backdrop .vault-modal-box {
        width: min(88vw, 430px); padding: 18px 16px 16px;
        height: min(calc(100vh - 24px), 700px);
      }
      @supports (height: 100dvh) {
        .modal-backdrop .vault-modal-box { height: min(calc(100dvh - 24px), 700px); }
      }
      .vault-modal-content {
        flex-direction: column; gap: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
      }
      .vm-info { overflow: visible; padding-right: 0; }
      /* height:auto 覆盖桌面端的 height:100%:否则画廊在竖屏滚动容器里被撑成一屏高,
         240px 舞台下方悬空出大段空白,把标题/简介顶出很远 */
      .vm-gallery { flex: none; width: 100%; height: auto; position: sticky; top: -130px; z-index: 1; }
      .vm-stage { flex: none; align-self: stretch; margin: 0; width: 100%; height: 240px; aspect-ratio: auto; max-width: none; }
      /* 文字框自身 sticky(top:46) + 渐变背景框(顶 24px 透明→实色):
         起始态图文不重叠,默认图文间距压到 ~32px;上滑后文字框钉在安全线,
         冻结图条保底可见 ~70px 不被完全遮盖;渐变是文字框的背景,与文字永远一体移动 */
      .vm-info {
        overflow: visible; padding-right: 0;
        position: sticky; top: 46px; z-index: 2;
        padding-top: 24px;
        background: linear-gradient(to bottom, rgba(18, 22, 31, 0) 0px, #12161f 24px);
      }
      html[data-theme="light"] .vm-info {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0px, #ffffff 24px);
      }
      .vm-badge-tag { font-size: var(--fs-2xs); padding: 1px 5px; }
      /* 触屏端换回「长按识别」角注 */
      .vm-qr-sub-longpress { display: inline; }
      .vm-qr-sub-scan { display: none; }
      /* 二维码放大到 100px(桌面同款边长):小屏 76px 长按识别吃力 */
      .vm-qr { --qr-sz: 100px; }
      .vm-qr > img, .vm-qr .vm-qr-img { width: var(--qr-sz, 100px); height: var(--qr-sz, 100px); }
      /* 「阅读原文」改内容宽:二维码放大后右列收窄,按钮不再整行铺满 */
      .vm-pay-col .vm-buy-btn { width: auto; align-self: flex-start; padding: 0 18px; }
      .vm-price-row { flex-wrap: wrap; } /* 极窄屏价格与保障文案自动换行,不挤压二维码 */
    }
    /* Markdown 详述排版：# 为 md-h1(h3)，## 为 md-h2(h4)，### 为 md-h3(h5) */
    .md-body {
      /* 正文两端对齐,随继承覆盖段落/列表/富文本;西文 hyphens 断词防大空隙 */
      text-align: justify; text-justify: inter-word;
      -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
    }
    .md-body .md-h {
      font-family: var(--font-cn); color: var(--text); font-weight: 600; line-height: 1.45;
      display: flex; align-items: center; gap: 8px;
    }
    .md-body .md-h1, .md-body h3.md-h, .md-body h3.md-h1, .md-body h3.md-h3, .md-body h3 {
      font-size: var(--fs-lg); margin: 14px 0 6px; color: var(--text); font-weight: 700;
      display: flex; align-items: center; gap: 8px;
    }
    .md-body .md-h2, .md-body h4.md-h, .md-body h4.md-h2, .md-body h4.md-h4, .md-body h4 {
      font-size: var(--fs-md); margin: 14px 0 6px; color: var(--text); font-weight: 700;
      display: flex; align-items: center; gap: 8px;
    }
    .md-h-icon {
      display: inline-flex; align-items: center; justify-content: center;
      width: 22px; height: 22px; border-radius: 5px;
      background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.32);
      color: #f43f5e; flex-shrink: 0;
    }
    .md-h-icon svg { width: 13px; height: 13px; display: block; }
    .md-body .md-h5, .md-body h5.md-h, .md-body h5.md-h3, .md-body h5.md-h5, .md-body h5 {
      font-size: var(--fs-sm); margin: 10px 0 4px; color: var(--dim); font-weight: 600;
      display: flex; align-items: center; gap: 8px;
    }
    .md-body .md-p { margin: 6px 0; }
    .md-body .md-ul, .md-body .md-ol { margin: 6px 0; padding-left: 20px; }
    .md-body .md-ul { list-style: square; }
    .md-body .md-ol { list-style: decimal; }
    .md-body li { margin: 3px 0; }
    .md-body code { font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--line-soft); padding: 1px 5px; border-radius: 3px; }
    .md-body strong { color: var(--text); }
    .md-body a { color: var(--accent); text-decoration: underline; }
    .md-body .md-hr { border: none; border-top: 1px solid var(--line-soft); margin: 12px 0; }
    .vm-notice {
      display: none; align-items: center; justify-content: flex-start; gap: 8px;
      font-size: var(--fs-xs); color: var(--faint); line-height: 1.5;
    }
    .vm-notice svg { flex-shrink: 0; color: #f43f5e; }
    /* 微信经营账户付款二维码:qrText 实时生成优先,data/packs/<thumb>.qr.png 传图兜底 */
    .vm-qr {
      position: relative; --qr-sz: 100px; /* 二维码边长单一来源,徽标居中定位依赖它 */
      display: flex; flex-direction: column; align-items: center;
      cursor: pointer; /* 点按弹出资源码大图浮层 */
    }
    .vm-qr img, .vm-qr .vm-qr-img {
      width: var(--qr-sz, 100px); height: var(--qr-sz, 100px); flex-shrink: 0;
      object-fit: contain; border-radius: 4px;
      background: #ffffff; padding: 0; box-sizing: border-box;
      box-shadow: none;
      -webkit-user-select: none; user-select: none; pointer-events: auto;
    }
    /* 二维码中心品牌标:微信支付图标(H 级纠错容许中心遮挡;白底圆角块保证对比度) */
    .vm-qr-logo {
      position: absolute; top: 0; left: 0; right: 0;
      height: var(--qr-sz, 100px);
      display: flex; align-items: center; justify-content: center;
      pointer-events: none;
    }
    .vm-qr-logo-in {
      width: 26%; aspect-ratio: 1; box-sizing: border-box; padding: 3px;
      background: #ffffff; border-radius: 22%;
      box-shadow: 0 0 0 2px #ffffff, 0 1px 5px rgba(0, 0, 0, 0.22);
      display: flex; align-items: center; justify-content: center;
    }
    .vm-qr-logo-in svg { width: 100%; height: 100%; display: block; }
    /* QRCode 引擎生成的画布容器:内部 canvas/img 按容器 100% 缩放 */
    .vm-qr .vm-qr-img > canvas,
    .vm-qr .vm-qr-img > img { width: 100% !important; height: 100% !important; display: block; }
    .vm-buy-btn {
      margin-top: 0; flex-shrink: 0; width: 100%;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 40px; border-radius: 5px;
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.8), rgba(225, 29, 72, 0.9));
      color: #ffffff; font-size: var(--fs-md); font-weight: 600;
      text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease;
      box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
    }
    .vm-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(244, 63, 94, 0.45); }

    /* 全屏大图画廊灯箱浮层 (Lightbox) - 左右切换 + 底部缩略图画廊 */
    .vlb-backdrop {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(2, 6, 23, 0.95);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      display: none; flex-direction: column; align-items: center; justify-content: center;
      user-select: none;
    }
    .vlb-backdrop.open { display: flex; }
    .vlb-content {
      position: relative; max-width: 90vw; max-height: calc(85vh - 70px);
      display: flex; align-items: center; justify-content: center;
    }
    .vlb-img {
      max-width: 90vw; max-height: calc(85vh - 70px);
      object-fit: contain; border-radius: 8px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.12);
      transition: opacity 0.18s ease;
      cursor: zoom-in; /* 滚轮缩放提示;放大后切换为抓手(见下) */
      touch-action: none; /* 手势全部接管:双击缩放、双指捏合、拖动平移不经浏览器滚动 */
    }
    /* 滚轮缩放(以指针为锚点)与按住拖动平移的光标反馈 */
    .vlb-img.vlb-zoomed { cursor: grab; will-change: transform; }
    .vlb-img.vlb-grabbing { cursor: grabbing; }
    .vlb-counter {
      position: absolute; right: 12px; bottom: 12px;
      font-family: var(--font-mono); font-size: var(--fs-xs);
      background: rgba(15, 23, 42, 0.75); color: #fff;
      padding: 3px 10px; border-radius: 12px;
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      letter-spacing: 0.06em;
    }
    .vlb-nav-btn {
      position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
      width: 48px; height: 48px; border-radius: 50%;
      background: rgba(15, 23, 42, 0.65); border: 1px solid rgba(255, 255, 255, 0.18);
      color: #fff; font-size: 1.8rem; line-height: 1;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
      transition: all 0.2s ease;
    }
    .vlb-nav-btn:hover {
      background: rgba(244, 63, 94, 0.85); border-color: rgba(244, 63, 94, 0.95);
      transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
    }
    .vlb-prev { left: 24px; }
    .vlb-next { right: 24px; }
    @media (max-width: 640px) {
      .vlb-nav-btn { width: 38px; height: 38px; font-size: var(--fs-xl); }
      .vlb-prev { left: 10px; }
      .vlb-next { right: 10px; }
    }
    .vlb-close {
      position: absolute; right: 20px; top: 18px; z-index: 10;
      background: rgba(15, 23, 42, 0.65); border: 1px solid rgba(255, 255, 255, 0.18);
      color: #fff; width: 38px; height: 38px; border-radius: 50%;
      cursor: pointer; font-size: var(--fs-lg);
      display: flex; align-items: center; justify-content: center;
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      transition: all 0.2s ease;
    }
    .vlb-close:hover {
      background: rgba(239, 68, 68, 0.85); border-color: #ef4444;
      transform: scale(1.08);
    }
    .vlb-thumbs-wrap {
      position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
      max-width: min(92vw, 680px); z-index: 10;
      background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
      border-radius: 12px; padding: 6px 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
      display: flex; justify-content: center;
    }
    .vlb-thumbs {
      display: flex; gap: 8px; overflow-x: auto;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
      padding: 2px 0;
    }
    .vlb-thumbs::-webkit-scrollbar { display: none; }
    .vlb-thumb-item {
      width: 52px; height: 52px; border-radius: 6px; overflow: hidden;
      border: 1.5px solid rgba(255, 255, 255, 0.2); cursor: pointer;
      opacity: 0.55; transition: all 0.2s ease; flex-shrink: 0;
      background: rgba(0, 0, 0, 0.4);
    }
    .vlb-thumb-item img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .vlb-thumb-item:hover {
      opacity: 0.85; border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px);
    }
    .vlb-thumb-item.active {
      opacity: 1; border-color: var(--accent);
      box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
      transform: translateY(-3px) scale(1.06);
    }

    /* 付费文章详单 Modal（与 tutorials.html 统一双栏 1:1 封面 + Markdown 详述架构） */
    .modal-backdrop .tutorial-modal-box {
      width: min(92vw, 800px);
      max-height: min(88vh, 530px);
      display: flex; flex-direction: column;
      overflow: hidden;
      padding: 20px 24px 22px;
    }
    @supports (height: 100dvh) {
      .modal-backdrop .tutorial-modal-box { max-height: min(88dvh, 530px); }
    }
    .tutorial-modal-box .modal-head { flex-shrink: 0; }
    .tutorial-modal-content {
      display: grid;
      grid-template-columns: 260px minmax(0, 1fr);
      grid-template-rows: 1fr auto;
      gap: 16px 24px;
      flex: 1; min-height: 0;
      overflow: hidden;
      margin-top: 10px;
    }
    .tm-frame {
      grid-column: 1;
      grid-row: 1;
      width: 260px; height: 260px; border-radius: 8px; position: relative;
      border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.04);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      overflow: hidden; cursor: zoom-in;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
      transition: border-color 0.2s ease, transform 0.2s ease;
      flex-shrink: 0;
      align-self: start;
    }
    .tm-frame:hover {
      border-color: rgba(244, 63, 94, 0.6);
    }
    .tm-frame img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.3s ease;
    }
    .tm-frame:hover img {
      transform: scale(1.03);
    }
    .tm-frame-hint {
      position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
      font-size: var(--fs-xs); font-weight: 500; color: #fff;
      background: rgba(0, 0, 0, 0.72);
      backdrop-filter: blur(6px);
      padding: 3px 10px; border-radius: 999px;
      display: inline-flex; align-items: center; gap: 5px;
      pointer-events: none; opacity: 0.9;
      transition: opacity 0.2s;
      white-space: nowrap;
    }
    .tm-frame:hover .tm-frame-hint {
      opacity: 1; background: rgba(244, 63, 94, 0.85);
    }
    .tm-details {
      grid-column: 2;
      grid-row: 1;
      min-width: 0; display: flex; flex-direction: column; gap: 10px;
      overflow-y: auto; overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch; padding-right: 6px;
      /* 正文两端对齐,随继承覆盖文内段落 */
      text-align: justify; text-justify: inter-word;
      -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
    }
    .tm-details-head {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }
    .tm-vol { font-family: var(--font-dis); font-weight: 700; font-size: var(--fs-xs); color: #f43f5e; }
    .tm-price { font-family: var(--font-dis); font-weight: 700; font-size: var(--fs-xl); color: #f43f5e; }
    .tm-title { font-family: var(--font-cn); font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; color: var(--text); margin: 0; }
    .tm-specs { display: flex; flex-wrap: wrap; gap: 6px; }
    .tm-spec {
      font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.04em;
      color: var(--faint); background: rgba(255, 255, 255, 0.04);
      padding: 2px 7px; border-radius: 3px; border: 0.5px solid var(--hairline-soft);
    }
    html[data-theme="light"] .tm-spec { background: rgba(15, 23, 42, 0.04); }
    .tm-desc { font-size: var(--fs-sm); color: var(--dim); line-height: 1.7; flex: 1; }
    .tm-jump-btn {
      grid-column: 1 / -1;
      grid-row: 2;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      height: 42px; border-radius: 6px;
      background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(225, 29, 72, 0.95));
      color: #fff; font-size: var(--fs-md); font-weight: 600;
      text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 4px 18px rgba(244, 63, 94, 0.32);
      flex-shrink: 0;
    }
    .tm-jump-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(244, 63, 94, 0.45); }

    /* 高清大图查看灯箱 Lightbox */
    .lightbox-backdrop {
      position: fixed; inset: 0; z-index: 10000;
      background: rgba(0, 0, 0, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
      cursor: zoom-out;
    }
    .lightbox-backdrop.open { opacity: 1; pointer-events: auto; }
    .lightbox-box {
      position: relative; max-width: 94vw; max-height: 94vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      cursor: default;
    }
    .lightbox-img-wrap {
      position: relative; display: inline-flex; align-items: center; justify-content: center;
      max-width: 92vw; max-height: 86vh;
    }
    .lightbox-img {
      max-width: 92vw; max-height: 86vh; object-fit: contain;
      border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.16);
      image-rendering: auto;
      transform: translateZ(0);
      backface-visibility: hidden;
      display: block;
      touch-action: none; /* 双击缩放/拖动手势由 JS 接管,避免浏览器手势抢事件 */
    }
    .lightbox-img.lb-zoomed { cursor: grab; will-change: transform; }
    .lightbox-close {
      position: absolute; top: 12px; right: 12px; z-index: 10;
      background: rgba(15, 23, 42, 0.68);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.35);
      color: #fff; width: 34px; height: 34px; border-radius: 50%;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: var(--fs-lg); line-height: 1; transition: all 0.18s ease;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    }
    .lightbox-close:hover {
      background: rgba(244, 63, 94, 0.88);
      border-color: rgba(244, 63, 94, 0.95);
      transform: scale(1.08);
    }
    .lightbox-caption {
      margin-top: 10px; font-size: var(--fs-sm); color: #e2e8f0;
      letter-spacing: 0.04em; text-align: center;
    }

    /* 窄屏:功法与文章弹窗改底部弹层,购买按钮落在拇指热区,含 iPhone 底部安全区 */
    @media (max-width: 680px) {
      .tutorial-modal-content { display: flex; flex-direction: column; overflow-y: auto; gap: 14px; }
      .tm-frame { width: 100%; height: 200px; flex-shrink: 0; }
      .tm-details { overflow-y: visible; padding-right: 0; }
      .tm-jump-btn { width: 100%; position: sticky; bottom: 0; }
    }
    @media (max-width: 640px) {
      #vaultModal, #tutorialModal { align-items: flex-end; }
      .modal-backdrop .vault-modal-box,
      .modal-backdrop .tutorial-modal-box {
        /* 左右留 5vw 呼吸空间,不再整屏铺满;底座边框恢复,随 .modal-box 基础描边 */
        width: min(88vw, 430px);
        max-height: calc(100vh - 20px);
        border-radius: 14px 14px 0 0;
        padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        transform: translateY(28px);
      }
      @supports (height: 100dvh) {
        .modal-backdrop .vault-modal-box { max-height: calc(100dvh - 20px); }
      }
      /* 展开态复位入场位:此前复位规则只在 components.css 的 .modal-box 上,
         vault.html 盒子没有该类,导致弹窗永久下坠 28px、底部超出屏幕 */
      .modal-backdrop.open .vault-modal-box { transform: none; }
      /* 二维码尺寸不在此重复定义:竖屏查询 (orientation:portrait),(max-width:680px)
         已完整覆盖本断点,靠后声明会反过来压掉 --qr-sz:100px */
      .vm-buy-btn { height: 46px; }
    }

    .mp-launch {
      margin-top: 30px;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      width: 300px; height: 50px; border-radius: 6px;
      border: 1px solid transparent;
      background: var(--pa, var(--gold));
      color: #fff;
      font-family: var(--font-dis); font-weight: 600; font-size: var(--fs-md);
      letter-spacing: 0.16em;
      box-shadow: 0 6px 24px rgba(var(--pa-rgb, 194, 166, 119), 0.35);
      transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
    }
    .mp-launch:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 30px rgba(var(--pa-rgb, 194, 166, 119), 0.45); }
    .mp-launch:active { transform: scale(0.98); box-shadow: 0 0 18px rgba(var(--pa-rgb, 194, 166, 119), 0.25); }
    .mp-dots {
      position: fixed; right: 9px; top: 50%; transform: translateY(-50%);
      z-index: 55; display: flex;
      flex-direction: column; gap: 10px; align-items: center;
    }
    .mp-dots button {
      width: 5px; height: 5px; border-radius: 999px; padding: 0;
      background: rgba(151, 162, 180, 0.35);
      transition: height 0.3s var(--ease-out), background 0.3s ease, box-shadow 0.3s ease;
    }
    .mp-dots button.on {
      height: 16px; background: var(--accent);
      box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    }

    /* 视觉层动效：激光扫描线 + 经纬标线 + 高程注记 */
    .viz-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
    .viz-fx .grat {
      position: absolute; inset: 0;
      transform: translate3d(calc(var(--px, 0) * 20px), calc(var(--py, 0) * 13px), 0);
    }
    .grat .gv { position: absolute; top: 0; bottom: 0; left: 40%; width: 1px; background: rgba(151, 162, 180, 0.14); }
    .grat .gh { position: absolute; left: 0; right: 0; top: 46%; height: 1px; background: rgba(151, 162, 180, 0.14); }
    .grat .gv::before, .grat .gv::after,
    .grat .gh::before, .grat .gh::after {
      content: ""; position: absolute; background: rgba(151, 162, 180, 0.6);
    }
    .grat .gv::before { top: 0; left: -2px; width: 5px; height: 1px; }
    .grat .gv::after { bottom: 0; left: -2px; width: 5px; height: 1px; }
    .grat .gh::before { left: 0; top: -2px; height: 5px; width: 1px; }
    .grat .gh::after { right: 0; top: -2px; height: 5px; width: 1px; }
    .grat .glab {
      position: absolute; font-family: var(--font-mono); font-size: var(--fs-2xs);
      letter-spacing: 0.1em; color: var(--dim);
      background: rgba(7, 9, 13, 0.7); padding: 2px 6px; border-radius: 2px;
    }
    .grat .glab.lat { bottom: 6%; left: 40%; transform: translateX(-50%); }
    .grat .glab.lng { top: 46%; right: calc(4vw + 14px); transform: translateY(-160%); }

    .ret-circ {
      position: absolute; left: 40%; top: 46%; width: 96px; height: 96px;
      transform: translate(-50%, -50%);
      border: 1px solid rgba(var(--accent-rgb), 0.85);
      border-radius: 50%;
      box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.3), inset 0 0 12px rgba(var(--accent-rgb), 0.15);
      opacity: 0; transition: opacity 0.35s ease;
    }
    .ret-circ::before, .ret-circ::after {
      content: ""; position: absolute; background: rgba(var(--accent-rgb), 0.85);
    }
    .ret-circ::before { left: 50%; top: -14px; width: 1px; height: 10px; box-shadow: 0 108px 0 rgba(var(--accent-rgb), 0.85); }
    .ret-circ::after { top: 50%; left: -14px; height: 1px; width: 10px; box-shadow: 108px 0 0 rgba(var(--accent-rgb), 0.85); }
    .viz.reticle .ret-circ { opacity: 1; }

    .chip-elev {
      position: absolute; top: 16%; right: 9%;
      display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
      transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 16px), 0);
    }
    .chip-elev .ev {
      font-family: var(--font-dis); font-weight: 600; font-size: var(--fs-lg);
      color: var(--text); letter-spacing: 0.06em;
      background: rgba(7, 9, 13, 0.66); padding: 4px 10px;
      border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: 3px;
      text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
    }
    .chip-elev .tg {
      font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.16em;
      color: var(--dim);
    }
    .chip-elev .tick { width: 34px; height: 1px; background: rgba(var(--accent-rgb), 0.7); margin-right: 2px; }

    .laser {
      position: absolute; left: 0; right: 0; top: 0; z-index: 3;
      height: 2px;
      background: linear-gradient(90deg, transparent 4%, rgba(var(--accent-rgb), 0.75) 34% 66%, transparent 96%);
      box-shadow: 0 0 16px 2px rgba(var(--accent-rgb), 0.28);
      opacity: 0; 
    }
    .viz-clip .laser.on { opacity: 1; animation: laserScan 9.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
    @keyframes laserScan {
      0% { top: -2%; opacity: 0; }
      8% { opacity: 0.85; }
      50% { top: 102%; opacity: 0.85; }
      58% { opacity: 0; }
      100% { top: -2%; opacity: 0; }
    }
