/* ============================================================================
 * 影造AI · 桌面端设计系统 dk（批2.2 Task11，规划书 §8.3/§8.4/§8.5）
 * ----------------------------------------------------------------------------
 * 分两层：
 *   1) :root --dk-* token（自定义属性，全站可用，不影响任何旧页面渲染）；
 *   2) .dk-* 组件与五原型布局——基础态跨档（.dk-shell 手机 display:contents），
 *      三栏/网格/文档/数据等桌面结构在文件末尾 @media(min-width:1024) 内。
 * 旧页面继续用 design-system.css 的 --gold/--r-* 等旧变量，本批不改旧页、零回归；
 * 批3.x 起重做的页面只允许引用 --dk-*，TR-11.1 机验「新页死色值=0」。
 * 断点唯一口径（§8.1）：860 / 1024，桌面细分 1440 / 1600；禁止再出现 768/992/1200。
 * ========================================================================== */

:root {
  /* §8.3 品牌色（值为规划书权威值；与旧 --gold/--purple 同色，供 dk 组件独立引用） */
  --dk-brand: #C7F36A;
  --dk-brand-2: #93B4FF;
  --dk-brand-soft: #1a2410;
  --dk-brand-hover: #D9366B;
  /* 底色 */
  --dk-bg: #0E1216;
  --dk-surface: #141A20;
  --dk-surface-2: #F6F2FB;
  --dk-line: #232B32;
  --dk-line-strong: #d8d0e6;
  /* 文字 */
  --dk-text-1: #251c27;
  --dk-text-2: #D8DEE3;
  --dk-text-3: #827784;
  --dk-text-on-brand: #141A20;
  /* 功能色（生成成功/失败/警示/信息，供 §8.7 交互契约使用） */
  --dk-success: #1f9d62;
  --dk-danger: #d83a52;
  --dk-warning: #b98014;
  /* 圆角四档（§8.3：10/14/18/22） */
  --dk-r-sm: 10px;
  --dk-r-md: 14px;
  --dk-r-lg: 18px;
  --dk-r-xl: 22px;
  --dk-r-full: 999px;
  /* 阴影三档（§8.3） */
  --dk-shadow-1: 0 1px 2px rgba(37, 28, 39, .05);
  --dk-shadow-2: 0 6px 18px rgba(37, 28, 39, .08);
  --dk-shadow-3: 0 16px 48px rgba(37, 28, 39, .14);
  --dk-shadow-brand: 0 6px 18px rgba(199, 243, 106, .22);
  /* 间距/栅格（§8.2：列距 24、页边 32、导航 220/72、顶 56、底操作条 64） */
  --dk-gap: 24px;
  --dk-pad: 32px;
  --dk-nav-w: 220px;
  --dk-nav-fold: 72px;
  --dk-topbar-h: 56px;
  --dk-bar-h: 64px;
  /* 五原型容器宽度（§8.2/§8.5） */
  --dk-w-workbench: 1600px;
  --dk-w-gallery: 1440px;
  --dk-w-guide: 880px;
  --dk-w-doc: 720px;
  --dk-w-form: 720px;
  --dk-w-data-main: 1080px;
  --dk-w-aside: 200px;
  --dk-w-config: 420px;   /* §8.4 配置区 400–440 */
  --dk-w-preview: 520px;  /* §8.4 预览区 ≥520 */
  --dk-w-result: 340px;   /* §8.4 结果区 320–360 */
  /* 字体（§8.3：system-ui + 苹方/雅黑；数字等宽） */
  --dk-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --dk-font-num: "DIN Alternate", "Helvetica Neue", system-ui, sans-serif;
}

/* ============================================================================
 * §8.4 dk 组件库 —— 基础态（跨档；手机端流式/弹性，桌面三栏见文件尾媒体查询）
 * 批3.x 重做页面统一套用这些类；类名/变量即契约，不得再各页自造同义组件。
 * ========================================================================== */

/* 外壳：手机 display:contents 不产生任何盒（沿用原生流），桌面由底部 JS 壳接管布局 */
.dk-shell { display: contents; }
.dk-config,
.dk-preview,
.dk-result,
.dk-bar,
.dk-card,
.dk-field,
.dk-price,
.dk-samples,
.dk-empty,
.dk-steps,
.dk-table,
.dk-modal { box-sizing: border-box; }

/* 卡片 / 字段 */
.dk-card {
  background: var(--dk-surface);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  box-shadow: var(--dk-shadow-1);
  padding: 20px;
}
.dk-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dk-field > label { font-size: 13px; font-weight: 700; color: var(--dk-text-2); }
.dk-field > input,
.dk-field > select,
.dk-field > textarea {
  width: 100%; min-height: 42px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--dk-line-strong); border-radius: var(--dk-r-sm);
  background: var(--dk-surface); color: var(--dk-text-1); font: 14px var(--dk-font);
}
.dk-field > input:focus,
.dk-field > select:focus,
.dk-field > textarea:focus { outline: 2px solid rgba(199, 243, 106, .25); border-color: var(--dk-brand); }

/* 按钮：主按钮玫红实底高 44，.dk-page 内全页仅 1 个 .dk-btn-primary（TR 配合 d2 主 CTA 检查） */
.dk-btn-primary,
.dk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--dk-r-full);
  font: 700 15px var(--dk-font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.dk-btn-primary { background: var(--dk-brand); color: var(--dk-text-on-brand); box-shadow: var(--dk-shadow-brand); }
.dk-btn-primary:hover { background: var(--dk-brand-hover); }
.dk-btn { background: var(--dk-surface); color: var(--dk-text-2); border-color: var(--dk-line-strong); }
.dk-btn:hover { border-color: var(--dk-brand); color: var(--dk-brand); }
/* 灰态（§8.7-7：未开放功能，不跳、不 loading） */
.dk-soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--dk-r-full);
  background: var(--dk-surface-2); color: var(--dk-text-3); border: 1px dashed var(--dk-line-strong);
  font: 600 14px var(--dk-font); cursor: not-allowed;
}

/* 价格（明码实扣，数字等宽） */
.dk-price { display: inline-flex; align-items: baseline; gap: 4px; color: var(--dk-brand); font-weight: 800; }
.dk-price .dk-price-num { font-family: var(--dk-font-num); font-size: 20px; }
.dk-price .dk-price-unit { font-size: 12px; color: var(--dk-text-3); font-weight: 600; }

/* 样片带（§8.7 游客也可浏览样片） */
.dk-samples { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid var(--dk-line); border-radius: var(--dk-r-md); background: var(--dk-surface-2); }
.dk-samples > * { flex: 0 0 auto; }

/* 空态（§8.7-5：一句解释 + 1 主 CTA，禁「暂无数据」） */
.dk-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--dk-text-2); border: 1px dashed var(--dk-line-strong); border-radius: var(--dk-r-lg); background: var(--dk-surface-2); }
.dk-empty .dk-empty-t { font-size: 15px; font-weight: 700; color: var(--dk-text-1); }
.dk-empty .dk-empty-d { font-size: 13px; color: var(--dk-text-3); max-width: 420px; }

/* 步骤条（原型 C 向导） */
.dk-steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.dk-steps .dk-step { display: inline-flex; align-items: center; gap: 8px; color: var(--dk-text-3); font-size: 13px; font-weight: 600; }
.dk-steps .dk-step .dk-step-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--dk-surface-2); border: 1px solid var(--dk-line-strong); font-size: 12px; }
.dk-steps .dk-step.is-on { color: var(--dk-brand); }
.dk-steps .dk-step.is-on .dk-step-dot { background: var(--dk-brand); border-color: var(--dk-brand); color: #fff; }
.dk-steps .dk-step-sep { width: 32px; height: 1px; background: var(--dk-line-strong); margin: 0 6px; }

/* 表格 */
.dk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dk-table th, .dk-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--dk-line); }
.dk-table th { color: var(--dk-text-3); font-weight: 700; background: var(--dk-surface-2); }

/* 弹层（生成确认 §8.7-1） */
.dk-modal { position: fixed; inset: 0; z-index: var(--z-modal, 500); display: none; align-items: center; justify-content: center; padding: 24px; }
.dk-modal.is-open { display: flex; }
.dk-modal-mask { position: absolute; inset: 0; background: rgba(37, 28, 39, .45); }
.dk-modal-card { position: relative; width: 100%; max-width: 480px; background: var(--dk-surface); border-radius: var(--dk-r-xl); box-shadow: var(--dk-shadow-3); padding: 24px; }

/* 操作条（§8.2：高 64 fixed，左缘从导航右缘；手机贴底全宽） */
.dk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky, 100);
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-height: var(--dk-bar-h); padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--dk-line);
}

/* ============================================================================
 * §8.5 五原型 —— 手机/通用基础态：全部单列自然堆叠，桌面三栏/网格见文件尾媒体查询。
 * 每页归且仅归一种原型：body[data-dk="a|b|c|d|e"] 或主区直接用 .dk-proto-*。
 * ========================================================================== */
.dk-proto-a, .dk-proto-b, .dk-proto-c, .dk-proto-d, .dk-proto-e { display: block; }
.dk-proto-b .dk-grid { display: grid; grid-template-columns: 1fr; gap: var(--dk-gap); }
.dk-proto-d .dk-toc, .dk-proto-e .dk-subnav { display: none; } /* 手机不设右目录/左二级 */

/* ============================================================================
 * 以下为桌面壳既有规则（v10 Task3 起）
 * ========================================================================== */
@media (min-width: 1024px) {
  /* ---------- 导航宽度变量（JS 注入的 body padding-left 读取同一变量） ---------- */
  body[data-shell="desktop"] { --desk-nav-w: 220px; }
  body[data-shell="desktop"].bt-side-fold { --desk-nav-w: 72px; }

  /* ======================================================================
   * 左侧固定窄导航 .bt-side（DOM 由 /js/bottom-tab.js 注入，数据同底部 TABS）
   * ==================================================================== */
  .bt-side {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--desk-nav-w, 220px);
    z-index: var(--z-tabbar, 200);
    display: flex; flex-direction: column;
    background: #0E1216;
    border-right: 1px solid #232B32;
    box-sizing: border-box;
    transition: width .22s ease;
  }
  .bt-side-head {
    flex: none; height: 60px;
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid #f0ecf5;
  }
  .bt-side-logo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; text-decoration: none; }
  .bt-logo-mark {
    flex: none; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #F0C96A, #C7F36A);
    color: #fff; font-size: 15px; font-weight: 900;
  }
  .bt-logo-word {
    white-space: nowrap; font-size: 18px; font-weight: 800; letter-spacing: .02em;
    background: linear-gradient(135deg, #C7F36A, #93B4FF);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .bt-side .bt-side-fold {
    flex: none; width: 28px; height: 28px; padding: 0;
    display: grid; place-items: center;
    border: 0; border-radius: 8px;
    background: transparent; color: #9a92ab; cursor: pointer;
    transition: background .18s, color .18s;
  }
  .bt-side .bt-side-fold:hover { background: #f1edf6; color: #C7F36A; }
  .bt-side .bt-side-fold svg { width: 16px; height: 16px; transition: transform .22s ease; }
  body.bt-side-fold .bt-side-fold svg { transform: rotate(180deg); }

  .bt-side-nav {
    flex: 1; min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 12px;
  }
  .bt-side-item {
    display: flex; align-items: center; gap: 11px;
    height: 46px; padding: 0 14px;
    border-radius: 14px;
    color: #D8DEE3; font-size: 14.5px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .18s, color .18s, box-shadow .18s;
  }
  .bt-side-item .bt-ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
  .bt-side-item .bt-ic svg { width: 100%; height: 100%; }
  .bt-side-item:hover { background: rgba(199, 243, 106, .07); color: #C7F36A; }
  .bt-side-item.on {
    background: #C7F36A; color: #fff;
    box-shadow: 0 6px 16px rgba(199, 243, 106, .28);
  }
  .bt-side-item.on .bt-ic { color: #fff; }
  /* 创作 Tab 保留品牌色暗示（未选中态） */
  .bt-side-item.bt-side-create:not(.on) .bt-ic { color: #C7F36A; }

  .bt-side-bottom {
    flex: none; display: flex; flex-direction: column; gap: 8px;
    padding: 12px;
    border-top: 1px solid #f0ecf5;
  }
  .bt-side-bal {
    display: flex; align-items: center; justify-content: space-between;
    height: 40px; padding: 0 14px;
    border-radius: 12px; background: #141A20; border: 1px solid #232B32;
    color: #D8DEE3; font-size: 13px; font-weight: 600;
    text-decoration: none; box-sizing: border-box;
  }
  .bt-side-bal b { color: #C7F36A; font-size: 15px; font-family: var(--font-num, inherit); }
  .bt-side-login {
    display: flex; align-items: center; justify-content: center;
    height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #F0C96A, #C7F36A);
    color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(199, 243, 106, .25);
  }
  .bt-side-acct {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border-radius: 12px;
    color: #D8DEE3; text-decoration: none; min-width: 0;
  }
  .bt-side-acct:hover { background: #f4f0f9; }
  .bt-side-avatar {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, #C7F36A, #9BC940);
    color: #fff; font-size: 14px; font-weight: 800;
  }
  .bt-side-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .bt-side-uname {
    min-width: 0; flex: 1;
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* 折叠态 72px：文字全部收起，图标居中；与 body padding-left 同一变量联动 */
  body.bt-side-fold .bt-side-head { padding: 0; justify-content: center; }
  body.bt-side-fold .bt-side-logo { flex: none; justify-content: center; }
  body.bt-side-fold .bt-side-fold { display: none; }
  body.bt-side-fold .bt-side-nav { padding: 14px 0; align-items: center; }
  body.bt-side-fold .bt-side-item { width: 48px; justify-content: center; padding: 0; }
  body.bt-side-fold .bt-side-bottom { padding: 12px 0; align-items: center; }
  body.bt-side-fold .bt-side-acct { justify-content: center; padding: 0; width: 48px; }
  /* 折叠态登录入口收进「我的」Tab（未登录访问 profile 会自然跳登录），底部只留余额与头像 */
  body.bt-side-fold .bt-side-login { display: none; }
  body.bt-side-fold .bt-side-bal { width: 44px; padding: 0; justify-content: center; }
  body.bt-side-fold .bt-logo-word,
  body.bt-side-fold .bt-side-lbl,
  body.bt-side-fold .bt-side-uname,
  body.bt-side-fold .bt-side-bal-lbl { display: none; }

  /* ======================================================================
   * v10 Task5（2026-11-01）：桌面左栏 = 8 组 30 项功能导航（数据源 window.YZ_NAV）
   * 结构：.bt-nav-sec >（可选 .bt-nav-grp 分组标题）+ .bt-nav-list > .bt-side-item
   *   · 分组折叠只收列表，侧栏宽度始终 220px，不影响正文左留白
   *   · 导航区 .bt-side-nav 自身 overflow-y:auto 滚动（30 项在 900px 高内也够滚）
   *   · 底部 .bt-side-bottom 为 flex:none，Y币余额 / 头像不随滚动
   * ==================================================================== */
  .bt-side-nav { padding: 10px 10px 14px; gap: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(154, 146, 171, .45) transparent; }
  .bt-side-nav::-webkit-scrollbar { width: 6px; }
  .bt-side-nav::-webkit-scrollbar-track { background: transparent; }
  .bt-side-nav::-webkit-scrollbar-thumb { background: rgba(154, 146, 171, .45); border-radius: 3px; }
  .bt-side-nav::-webkit-scrollbar-thumb:hover { background: rgba(199, 243, 106, .5); }

  .bt-nav-sec { flex: none; display: flex; flex-direction: column; gap: 2px; }
  .bt-nav-sec + .bt-nav-sec { margin-top: 4px; }
  /* 邀请返佣（无分组标题的独立段）：细线隔开，始终可点 */
  .bt-nav-sec-plain { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0ecf5; }

  .bt-nav-grp {
    display: flex; align-items: center; gap: 6px;
    width: 100%; height: 30px; padding: 0 10px;
    border: 0; border-radius: 9px; background: transparent;
    color: #9a92ab; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    cursor: pointer; white-space: nowrap; box-sizing: border-box;
    transition: background .18s, color .18s;
  }
  .bt-nav-grp:hover { background: #f4f0f9; color: #C7F36A; }
  .bt-nav-grp-txt { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .bt-nav-grp svg { flex: none; width: 14px; height: 14px; opacity: .65; transition: transform .22s ease; }
  .bt-nav-grp[aria-expanded="false"] svg { transform: rotate(-90deg); }

  .bt-nav-list { display: flex; flex-direction: column; gap: 2px; }
  .bt-nav-list.is-collapsed { display: none; }
  .bt-nav-list .bt-side-item { height: 36px; padding: 0 10px; gap: 9px; font-size: 13.5px; border-radius: 10px; }
  .bt-nav-list .bt-side-item .bt-ic { width: 18px; height: 18px; }
  .bt-nav-list .bt-side-item .bt-ic svg { width: 18px; height: 18px; }

  /* 邀请返佣：独立高亮项（玫红渐变实底白字，与上方分组拉开层级） */
  .bt-nav-accent { background: linear-gradient(135deg, #C7F36A, #D4F67A); color: #fff !important; font-weight: 700; }
  .bt-nav-accent .bt-ic { color: #fff; }
  .bt-nav-accent:hover { background: linear-gradient(135deg, #C7F36A, #D4F67A); color: #fff; opacity: .94; }
  .bt-nav-accent.on { background: linear-gradient(135deg, #C7F36A, #D4F67A) !important; color: #fff !important; }

  /* 折叠态 72px：分组标题收起，条目只留图标；分组折叠状态在此态下忽略，图标一律可见 */
  body.bt-side-fold .bt-side-nav { padding: 12px 0; }
  body.bt-side-fold .bt-nav-grp { display: none; }
  body.bt-side-fold .bt-nav-sec { align-items: center; }
  body.bt-side-fold .bt-nav-sec-plain { border-top: 0; margin-top: 4px; padding-top: 0; }
  body.bt-side-fold .bt-nav-list { display: flex !important; align-items: center; }
  body.bt-side-fold .bt-nav-list .bt-side-item { width: 48px; padding: 0; justify-content: center; }

  /* ======================================================================
   * 老页面旧侧栏：桌面壳下一律隐藏（导航职能由 .bt-side 接管）
   * ==================================================================== */
  /* 20261114 老板拍板方案一：电脑端点亮左侧导航，以下压制已停用 */
  /* body[data-shell="desktop"] aside.sidebar { display: none !important; } */

  /* ======================================================================
   * 桌面内容容器：统一 1280 限宽居中（.yz-desk-wrap 为新增工具类，
   * 其余为全站各壳主内容区自动套用，消除宽屏拉伸）
   * ==================================================================== */
  .yz-desk-wrap {
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 28px 32px;
    box-sizing: border-box;
  }
  /* 新 IA 页（home/create/templates/lab…） */
  body[data-shell="desktop"] .yz-page { max-width: 1280px !important; margin-left: auto !important; margin-right: auto !important; }
  /* 老 app-shell 页（works/profile/recharge/roles/media-library…） */
  body[data-shell="desktop"] .app-shell .app-main > .page-body {
    width: 100%; max-width: 1280px !important;
    margin-left: auto !important; margin-right: auto !important;
    box-sizing: border-box;
  }
  /* 独立玩法页 *-wrap 手机壳（与 fullwidth.css / desktop-play.css 同约定，桌面统一收口 1280） */
  body[data-shell="desktop"] .am-wrap,
  body[data-shell="desktop"] .ap-wrap,
  body[data-shell="desktop"] .at-wrap,
  body[data-shell="desktop"] .bt-wrap,
  body[data-shell="desktop"] .cs-wrap,
  body[data-shell="desktop"] .dl-wrap,
  body[data-shell="desktop"] .ds-wrap,
  body[data-shell="desktop"] .duo-wrap,
  body[data-shell="desktop"] .chat-wrap,
  body[data-shell="desktop"] .eg-wrap,
  body[data-shell="desktop"] .fs-wrap,
  body[data-shell="desktop"] .gv-wrap,
  body[data-shell="desktop"] .hs-wrap,
  body[data-shell="desktop"] .op-wrap,
  body[data-shell="desktop"] .os-wrap,
  body[data-shell="desktop"] .pa-wrap,
  body[data-shell="desktop"] .pd-wrap,
  body[data-shell="desktop"] .pr-wrap,
  body[data-shell="desktop"] .ps-wrap,
  body[data-shell="desktop"] .sv-wrap {
    max-width: 1280px !important;
    margin-left: auto !important; margin-right: auto !important;
  }
  /* merchant-hub / sub-features 等 <main class="container"> 页 */
  body[data-shell="desktop"] main.container {
    width: 100%; max-width: 1280px !important;
    margin-left: auto !important; margin-right: auto !important;
    box-sizing: border-box;
  }

  /* ======================================================================
   * 网格加列（内容 1280 居中；超宽屏不继续拉宽，只增大留白）
   * 首页轨道卡：桌面 3 列起步，≥1280 视口 4 列（1920 仍 4 列居中）
   * 创作墙/作品瀑布流/模板墙：≥1024 4 列、≥1280 5 列、≥1600 6 列
   * ==================================================================== */
  body[data-shell="desktop"] .yz-trackgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px;
  }
  body[data-shell="desktop"] .yz-wall,
  body[data-shell="desktop"] .yz-waterfall,
  body[data-shell="desktop"] .works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
  }
  body[data-shell="desktop"] .works-grid { gap: 18px !important; }
  @media (min-width: 1280px) {
    body[data-shell="desktop"] .yz-trackgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    body[data-shell="desktop"] .yz-wall,
    body[data-shell="desktop"] .yz-waterfall,
    body[data-shell="desktop"] .works-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  }
  @media (min-width: 1600px) {
    body[data-shell="desktop"] .yz-wall,
    body[data-shell="desktop"] .yz-waterfall,
    body[data-shell="desktop"] .works-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  }

  /* 卡片 hover：桌面下加深投影 + 主色描边微光（上浮已有，此处只增强） */
  @media (hover: hover) {
    body[data-shell="desktop"] .yz-tcard:hover,
    body[data-shell="desktop"] .yz-fcard:hover,
    body[data-shell="desktop"] .yz-wcard:hover,
    body[data-shell="desktop"] .yz-qcard:hover,
    body[data-shell="desktop"] .yz-toolcard:hover,
    body[data-shell="desktop"] .yz-row:hover {
      transform: translateY(-4px);
      border-color: rgba(199, 243, 106, .45);
      box-shadow: 0 18px 42px rgba(199, 243, 106, .16), 0 0 0 1px rgba(199, 243, 106, .12);
    }
    body[data-shell="desktop"] .yz-tpl:hover {
      transform: translateY(-3px);
      border-color: var(--gold-line, rgba(199, 243, 106, .5));
      box-shadow: 0 16px 38px rgba(199, 243, 106, .18);
    }
  }

  /* ======================================================================
   * 弹层：桌面统一居中卡片（560–720 / 圆角 20 / max-height 85vh 内部滚动）。
   * 手机端底抽屉（.modal ≤768 / .as-sheet / 各页抽屉）不在本媒体查询内，原样不动。
   * ==================================================================== */
  body[data-shell="desktop"] .yz-mask {
    align-items: center; justify-content: center;
    padding: 32px;
  }
  body[data-shell="desktop"] .yz-modal {
    max-width: 600px;
    max-height: 85vh; overflow: auto;
    border-radius: 20px;
  }
  body[data-shell="desktop"] .yz-video-modal { max-width: 720px; }

  /* ======================================================================
   * 老页面 fixed 元素左缘归正：position:fixed 不随 body padding 右移，
   * 吸底操作条/全屏 embed 层需从桌面导航右缘起算，避免压到左栏或偏左。
   * （静态/相对定位元素带 -foot 名时 left 属性自动失效，不受影响。）
   * ==================================================================== */
  /* data-bt-shell 仅在真实挂了左栏的顶层页存在；?embed=1 内嵌页视口内无导航，不偏移 */
  body[data-shell="desktop"][data-bt-shell] .sticky-bar,
  body[data-shell="desktop"][data-bt-shell] .mf-foot,
  body[data-shell="desktop"][data-bt-shell] .cf-footer,
  body[data-shell="desktop"][data-bt-shell] [class$='-foot'] {
    left: var(--desk-nav-w, 220px) !important;
  }
  body[data-shell="desktop"][data-bt-shell] .yz-ebox { left: var(--desk-nav-w, 220px) !important; }
  body[data-shell="desktop"][data-bt-shell].bt-side-fold .sticky-bar,
  body[data-shell="desktop"][data-bt-shell].bt-side-fold .mf-foot,
  body[data-shell="desktop"][data-bt-shell].bt-side-fold .cf-footer,
  body[data-shell="desktop"][data-bt-shell].bt-side-fold [class$='-foot'],
  body[data-shell="desktop"][data-bt-shell].bt-side-fold .yz-ebox {
    left: var(--desk-nav-w, 72px) !important;
  }

  /* 老页面顶部面包屑条：桌面壳下贴内容区顶缘，避免与左栏折角 */
  body[data-shell="desktop"] .topbar { background: rgba(251, 250, 254, .92); }
}

/* v10 Task4：桌面下 27 工具列表两列网格，提升信息密度（手机仍单列横条） */
@media(min-width:1024px){
  body[data-page="lab"] .yz-narrow{max-width:1080px;}
  .yz-toollist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:1080px}
  /* v10c：feature-samples 自动注入的样片横条，在两栏壳里跨整行，避免被 grid 排成单独一列 */
  body[data-shell="desktop"] .ac-shell > [data-feature-samples],
  body[data-shell="desktop"] .cp-shell > [data-feature-samples]{grid-column:1 / -1;}
}
@media(min-width:1440px){
  body[data-page="lab"] .yz-narrow{max-width:1120px;}
  .yz-toollist{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1120px}
}

  /* ======================================================================
   * §8.5 五原型桌面布局（批2.2 Task11）—— 独立 @media(1024) 块（本文件末尾的 lab
   * 段是顶层独立 @media，外层大块此前已闭合，故此处自带媒体包裹，切勿移到块外）。
   * 批3.x 重做页面时给 body 标 data-dk 或主区加 .dk-proto-*；每页归且仅归一种。
   * ==================================================================== */
@media (min-width: 1024px) {
  /* A 工作台：左配置 420 ｜ 中预览(≥520 弹性) ｜ 右结果 340 sticky；容器 1600 */
  .dk-proto-a{
    display:grid;grid-template-columns:var(--dk-w-config) minmax(var(--dk-w-preview),1fr) var(--dk-w-result);
    gap:var(--dk-gap);align-items:start;
    max-width:var(--dk-w-workbench);margin:0 auto;padding:var(--dk-pad);
  }
  .dk-proto-a .dk-config{min-width:0;}
  .dk-proto-a .dk-preview{min-width:0;}
  .dk-proto-a .dk-result{position:sticky;top:calc(var(--dk-topbar-h) + 16px);min-width:0;}
  .dk-proto-a .dk-bar{left:var(--desk-nav-w,220px);}
  body.bt-side-fold .dk-proto-a .dk-bar{left:var(--dk-nav-fold,72px);}
  /* 1440 以下三栏挤：配置收到 400，结果收 320（§8.4 区间下限） */
  @media (max-width:1439px){
    .dk-proto-a{grid-template-columns:400px minmax(0,1fr) 320px;}
  }

  /* B 画廊：筛选条 56 + 网格 5 列（≥1600 6 列）；容器 1440 */
  .dk-proto-b{max-width:var(--dk-w-gallery);margin:0 auto;padding:var(--dk-pad);}
  .dk-proto-b .dk-filterbar{display:flex;align-items:center;gap:14px;min-height:78px;position:sticky;top:var(--dk-topbar-h);z-index:50;background:var(--dk-bg);}
  .dk-proto-b .dk-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--dk-gap);}
  @media (min-width:1600px){
    .dk-proto-b{max-width:var(--dk-w-workbench);}
    .dk-proto-b .dk-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
  }

  /* C 向导：步骤条 + 中央卡 880 + 右摘要 300 sticky */
  .dk-proto-c{max-width:calc(var(--dk-w-guide) + 300px + var(--dk-gap));margin:0 auto;padding:var(--dk-pad);}
  .dk-proto-c .dk-steps{margin-bottom:24px;}
  .dk-proto-c .dk-guide-body{display:grid;grid-template-columns:minmax(0,var(--dk-w-guide)) 300px;gap:var(--dk-gap);align-items:start;}
  .dk-proto-c .dk-guide-aside{position:sticky;top:calc(var(--dk-topbar-h) + 16px);}

  /* D 文档：正文 720 居中 + 右目录 240 sticky */
  .dk-proto-d{max-width:calc(var(--dk-w-doc) + 240px + 48px + var(--dk-gap));margin:0 auto;padding:var(--dk-pad);
    display:grid;grid-template-columns:minmax(0,var(--dk-w-doc)) 240px;gap:48px;align-items:start;}
  .dk-proto-d .dk-toc{display:block;position:sticky;top:calc(var(--dk-topbar-h) + 16px);font-size:13px;}
  .dk-proto-d .dk-toc a{display:block;padding:6px 0;color:var(--dk-text-3);text-decoration:none;}
  .dk-proto-d .dk-toc a:hover{color:var(--dk-brand);}

  /* E 数据：左二级导航 200 + 主区 1080 */
  .dk-proto-e{max-width:calc(var(--dk-w-aside) + var(--dk-w-data-main) + var(--dk-gap));margin:0 auto;padding:var(--dk-pad);
    display:grid;grid-template-columns:var(--dk-w-aside) minmax(0,var(--dk-w-data-main));gap:var(--dk-gap);align-items:start;}
  .dk-proto-e .dk-subnav{display:block;position:sticky;top:calc(var(--dk-topbar-h) + 16px);}
  .dk-proto-e .dk-subnav a{display:block;padding:9px 12px;border-radius:var(--dk-r-sm);color:var(--dk-text-2);text-decoration:none;font-size:14px;}
  .dk-proto-e .dk-subnav a.on,.dk-proto-e .dk-subnav a:hover{background:var(--dk-brand-soft);color:var(--dk-brand);}
}

/* ============================================================================
 * 批3.1 Task17 · B 画廊骨架（仅 ≥1024 桌面；≤860 手机样式零改动，保 d5 390 基线）
 * 钩子：<body data-dk="b">。model-center 系老板 2026-10-03 拍板合并到 templates 的
 * meta-refresh 跳转存根（隐藏 DOM 不重排，实物为准），故本批 B 化共 6 个真实页：
 * home/create/templates/works/lab/track。
 * 规格依据：规划书 §8.2（画廊容器 1440、超宽 1600）、§8.5 B（筛选 56、5 列/≥1600 6 列）。
 * ========================================================================== */
@media (min-width: 1024px) {
  /* 画廊容器 1280 → 1440；desktop.css 既有 body[data-shell] 规则带 !important，故同权覆盖 */
  body[data-dk="b"] .yz-page{max-width:var(--dk-w-gallery) !important;}
  body[data-dk="b"] .app-shell .app-main > .page-body{max-width:var(--dk-w-gallery) !important;}
  @media (min-width: 1600px) {
    body[data-dk="b"] .yz-page,
    body[data-dk="b"] .app-shell .app-main > .page-body{max-width:var(--dk-w-workbench) !important;}
  }

  /* templates：搜索框 + 赛道胶囊合并为 56px 吸顶筛选条（紧贴 56px 全局顶条下沿） */
  body[data-page="templates"][data-dk="b"] .t17-filter{
    display:flex; align-items:center; gap:16px;
    position:sticky; top:var(--dk-topbar-h); z-index:60;
    min-height:78px; margin:0 -8px 12px; padding:8px 8px;
    background:var(--dk-bg);
  }
  body[data-page="templates"][data-dk="b"] .t17-filter .yz-search{flex:0 0 340px; margin:0; min-width:220px;}
  body[data-page="templates"][data-dk="b"] .t17-filter .yz-chips{
    flex:1 1 auto; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:0;
  }
  body[data-page="templates"][data-dk="b"] .t17-filter .yz-chips::-webkit-scrollbar{display:none;}

  /* create：分类胶囊行即筛选条，吸顶不跟滚 */
  body[data-page="create"][data-dk="b"] .yz-chips#yzCats{
    position:sticky; top:var(--dk-topbar-h); z-index:60;
    display:flex; align-items:center; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;
    min-height:78px; margin:0 -8px 16px; padding:8px; background:var(--dk-bg);
  }
  body[data-page="create"][data-dk="b"] .yz-chips#yzCats::-webkit-scrollbar{display:none;}

  /* lab：yz-narrow 工具单/双列 → B 画廊 4 列（≥1280 5 列、≥1600 6 列），工具卡纵向化 */
  body[data-page="lab"][data-dk="b"] .yz-narrow{max-width:var(--dk-w-gallery) !important;}
  body[data-page="lab"][data-dk="b"] .yz-toollist{
    max-width:none;
    grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px;
  }
  body[data-page="lab"][data-dk="b"] .yz-toolcard{flex-direction:column;align-items:stretch;gap:14px;}
  body[data-page="lab"][data-dk="b"] .yz-toolcard .yz-tool-preview{display:none;}
  body[data-page="lab"][data-dk="b"] .yz-toolcard .yz-tool-icon img{width:40px;height:40px;}
  @media (min-width: 1280px) {
    body[data-page="lab"][data-dk="b"] .yz-toollist{grid-template-columns:repeat(5,minmax(0,1fr));}
  }
  @media (min-width: 1600px) {
    body[data-page="lab"][data-dk="b"] .yz-toollist{grid-template-columns:repeat(6,minmax(0,1fr));}
  }

  /* track：赛道详情按 B 收口；横滑样片/案例条桌面转网格（4 列，≥1280 5 列） */
  body[data-page="track"][data-dk="b"] .yz-narrow{max-width:var(--dk-w-gallery) !important;}
  body[data-page="track"][data-dk="b"] .yz-hscroll{
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px;
    overflow:visible; scroll-snap-type:none; padding-bottom:0;
  }
  @media (min-width: 1280px) {
    body[data-page="track"][data-dk="b"] .yz-hscroll{grid-template-columns:repeat(5,minmax(0,1fr));}
  }
  body[data-page="track"][data-dk="b"] .yz-hscroll .yz-scard{width:auto;min-width:0;margin:0;}
  body[data-page="track"][data-dk="b"] .yz-hscroll .yz-sc-media img{width:100%;}
  /* 教程按钮降为次级描边：全页仅 1 个玫红主 CTA「一键开始制作」（§19.3、d2 主 CTA 唯一） */
  body[data-page="track"][data-dk="b"] .yz-tutbtn{
    background:var(--dk-surface); color:var(--dk-text-2);
    border:1px solid var(--dk-line-strong); box-shadow:none;
  }
  body[data-page="track"][data-dk="b"] .yz-tutbtn:hover{border-color:var(--dk-brand);color:var(--dk-brand);}
}

/* ============================================================================
 * 批3.2 Task18 · A 工作台（goods-video / shop-visit 等 yz-split 页共享）
 * 钩子 body[data-dk="a"]：左模板墙 400 ｜ 中预览舞台(弹性) ｜ 右配置/结果面板 320；
 * ≥1440 标准档 420 / ≥520 / 340，容器 1600（§8.4/§8.5）。≤1023 不动 yz-split 原双栏。
 * ========================================================================== */
@media (min-width: 1024px) {
  /* tool-page 被 design-system 三重类 1200px !important 封顶、page-body 被 critical 1280 封顶，
     A 三栏（固定 420/340 + 弹性中栏）放不下；A 工作台页放开外层容器，由 .yz-split 自身 1600 居中收口 */
  body[data-dk="a"] .app-shell .app-main > .page-body{max-width:none !important;}
  /* 对抗 design-system 的 5 重类封顶（0,0,5,1）：5 重类 + body 属性 + html，特异性 (0,0,6,2) */
  html body[data-dk="a"] .tool-page.tool-page.tool-page.tool-page.tool-page{max-width:1600px !important;padding-inline:0 !important;}
  body[data-dk="a"] .yz-split{
    box-sizing:border-box;
    max-width:var(--dk-w-workbench,1600px);
    margin:0 auto;
    /* 批3.3 Task19：1024–1139 可用宽仅 ~772，三列中栏放不下——此档用「墙+面板」两列，
       舞台整行排到下一行（≥1140 才恢复 400/弹/320 三列，见下方媒体块） */
    padding:0 16px;
    grid-template-columns:360px minmax(0,1fr);
    gap:16px;
  }
  body[data-dk="a"] .yz-split > .wb-wall{grid-column:1;grid-row:1;min-width:0;}
  body[data-dk="a"] .yz-split > .wb-stage{
    grid-column:1/-1;grid-row:2;min-width:0;align-self:start;
    position:static;max-height:none;overflow:visible;
    background:var(--dk-surface,#fff);border:1px solid var(--dk-line,#232B32);
    border-radius:var(--dk-r-lg,18px);padding:18px;
  }
  body[data-dk="a"] .yz-split > .wb-panel{
    grid-column:2 !important;grid-row:1;width:auto;
    min-height:0;max-height:none;overflow:visible;
    border-radius:var(--dk-r-lg,18px);
  }
  /* 模板墙在 400 配置列内排 2 列，避免 1 列把页面拖成长条 */
  body[data-dk="a"] .wb-wall .yz-tpl-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  /* 中栏舞台内容 */
  .wb-stage-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px;}
  .wb-stage-head h2{margin:0;font-size:15px;font-weight:800;color:var(--dk-text-1,#251c27);}
  .wb-stage-head span{font-size:12px;color:var(--dk-text-3,#827784);}
  .wb-stage-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  .wb-stage-frame{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:#141A20;border:1px solid var(--dk-line,#232B32);}
  .wb-stage-frame img{width:100%;height:100%;object-fit:cover;display:block;}
  .wb-stage-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;font-size:12px;line-height:1.7;color:var(--dk-text-3,#827784);}
  .wb-stage-frame .wb-stage-tag{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:999px;background:rgba(37,28,39,.72);color:#fff;font-size:11px;}
  .wb-stage-script{margin-top:16px;}
  .wb-stage-script .wb-pre{margin-bottom:10px;}
}
/* 1140：可用宽度充足后恢复三列 400/弹/320（舞台回中栏 sticky）；1440 升 420/340；1600 中栏给 520 底线 */
@media (min-width: 1140px) {
  body[data-dk="a"] .yz-split{padding:0 24px;grid-template-columns:400px minmax(0,1fr) 320px;gap:var(--dk-gap,24px);}
  body[data-dk="a"] .yz-split > .wb-wall{grid-column:1;grid-row:1;}
  body[data-dk="a"] .yz-split > .wb-stage{
    grid-column:2;grid-row:1;
    position:sticky;top:calc(var(--dk-topbar-h,56px) + 16px);
    max-height:calc(100vh - var(--dk-topbar-h,56px) - 32px);
    overflow-y:auto;overscroll-behavior:contain;
  }
  body[data-dk="a"] .yz-split > .wb-panel{grid-column:3 !important;grid-row:1;}
}
@media (min-width: 1440px) {
  body[data-dk="a"] .yz-split{grid-template-columns:420px minmax(0,1fr) 340px;}
}
@media (min-width: 1600px) {
  body[data-dk="a"] .yz-split{grid-template-columns:420px minmax(520px,1fr) 340px;}
}
/* ---- 批3.2 Task18 · A 双区变体 a2（digital-human：形象库 + 编辑工作台，无独立中栏） ----
 * 形象库内部滚动封顶（线上数百张 9:16 卡不再把页面拖到 46000px，PC-5 ≤2400）；
 * 面板 sticky。≤1023 不动原 yz-split 双栏。 */
@media (min-width: 1024px) {
  body[data-dk="a2"] .app-shell .app-main > .page-body{max-width:none !important;}
  html body[data-dk="a2"] .tool-page.tool-page.tool-page.tool-page.tool-page{max-width:1600px !important;padding-inline:0 !important;}
  body[data-dk="a2"] .yz-split{
    box-sizing:border-box;max-width:var(--dk-w-workbench,1600px);margin:0 auto;padding:0 24px;
    grid-template-columns:400px minmax(0,1fr);gap:var(--dk-gap,24px);align-items:start;
  }
  body[data-dk="a2"] .yz-split > .wb-wall{
    grid-column:1;grid-row:1;min-width:0;
    position:sticky;top:calc(var(--dk-topbar-h,56px) + 16px);
    max-height:calc(100vh - var(--dk-topbar-h,56px) - 32px);
    overflow-y:auto;overscroll-behavior:contain;
  }
  body[data-dk="a2"] .wb-wall .yz-tpl-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  body[data-dk="a2"] .yz-split > .wb-panel{
    grid-column:2 !important;grid-row:1;width:auto;
    align-self:start;position:sticky;top:calc(var(--dk-topbar-h,56px) + 16px);
    max-height:calc(100vh - var(--dk-topbar-h,56px) - 32px);
    overflow-y:auto;overscroll-behavior:contain;
    border-radius:var(--dk-r-lg,18px);
  }
  @media (min-width: 1440px) {
    body[data-dk="a2"] .yz-split{grid-template-columns:420px minmax(560px,1fr);}
  }
}

/* 手机≤860：舞台排在模板墙后、配置面板前（桌面 sticky/限高不生效） */
@media (max-width: 860px) {
  .yz-split > .wb-wall{order:1;}
  .yz-split > .wb-stage{order:2;margin-top:4px;}
  .yz-split > .wb-panel{order:3;}
  /* shop-visit 手机既有动线是 素材①门店②品类③（DOM 面板在前），舞台装素材后显式定序 */
  body[data-page="shop-visit"] .yz-split > .wb-stage{order:1;}
  body[data-page="shop-visit"] .yz-split > .wb-panel{order:2;}
  body[data-page="shop-visit"] .yz-split > .wb-wall{order:3;}
}

/* track 主 CTA 价格前置（§19.1-4/N-1）：真实价来自 FEATURE_COSTS，无真值不渲染；手机桌面共用 */
.t17-cta-price{display:block;margin-bottom:8px;text-align:center;color:var(--dk-brand,#C7F36A);font-size:13px;font-weight:700;}
.t17-cta-price .t17-cp-num{font-family:var(--dk-font-num,ui-monospace,Menlo,Consolas,monospace);font-size:18px;font-weight:800;margin:0 2px;}
.t17-cta-price[hidden]{display:none;}

/* ============================================================================
 * 批3.5 Task24 · C/D/E 目录/账户/文档原型桌面容器（仅 ≥1024；手机零改动）
 * C 中央卡/营销：≤1080 居中；D 文档：720 正文居中；E 账户/数据：≤1280 居中。
 * 页面内部的二级导航/目录 sticky 与表格由各页 @media(1024) 自行收口（页高≤2400）。
 * ========================================================================== */
@media (min-width: 1024px) {
  body[data-dk="c"] .app-shell .app-main > .page-body,
  body[data-dk="c"] .container,
  body[data-dk="c"] main.container { max-width: 1080px !important; margin-inline: auto !important; }
  body[data-dk="d"] .app-shell .app-main > .page-body,
  body[data-dk="d"] .container,
  body[data-dk="d"] main.container { max-width: 880px !important; margin-inline: auto !important; }
  body[data-dk="e"] .app-shell .app-main > .page-body,
  body[data-dk="e"] .container,
  body[data-dk="e"] main.container { max-width: 1280px !important; margin-inline: auto !important; }
  /* 480 手机居中型容器在桌面原型下放开（账户/文档页不再是一根手机长条） */
  body[data-dk="d"] .receipt-wrap,
  body[data-dk="d"] .usage-wrap,
  body[data-dk="e"] .receipt-wrap,
  body[data-dk="e"] .usage-wrap,
  body[data-dk="c"] .recharge-wrap,
  body[data-dk="c"] .vip-wrap { max-width: none !important; margin-inline: 0 !important; }
}

/* ====================================================================
 * 20261114 老板拍板方案一：电脑端点亮左侧导航（第二刀）
 * bottom-tab.js 在 ≥861px 注入的样式把 aside.sidebar 压成 display:none!important，
 * 且让手机底条 .bt-bar 铺到电脑屏。本规则用更高优先级在桌面壳（≥1024）反压：
 * 带侧栏的页面点亮侧栏并藏掉手机底条；手机端、平板档不受影响。
 * ==================================================================== */
@media (min-width: 1024px) {
  html body[data-shell="desktop"] aside.sidebar { display: block !important; }
  html body[data-shell="desktop"]:has(aside.sidebar) .bt-bar { display: none !important; }
}

/* ====================================================================
 * 20261114 老板拍板：点亮电脑端全局顶条（bt-dtop，批2.1做好的桌面顶栏）
 * bottom-tab.js 里基础样式与861媒体查询都把 .bt-dtop 压成 display:none(!important)，
 * 此处用更高优先级在桌面壳（>=1024）反压点亮。
 * 左边距适配方案一侧栏：带侧栏的页 232px，无侧栏的页 0。
 * 顶条高 64px，正文整体下移 64px。手机端、平板档不受影响。
 * ==================================================================== */
@media (min-width: 1024px) {
  html body[data-shell="desktop"] .bt-dtop { display: flex !important; left: 0 !important; }
  html body[data-shell="desktop"]:has(aside.sidebar) .bt-dtop { left: 232px !important; }
  html body[data-shell="desktop"] { padding-top: 64px !important; }
}

/* ====================================================================
 * 20261114 复检修复批：
 * 1) 双导航收口：没有 aside.sidebar 的桌面页（约20页）点亮批2.1左栏
 *    .bt-side（本来就是给这些页设计的），同屏隐藏手机五标签底条，
 *    正文右移220px、顶条左缘对齐左栏；有侧栏的四页维持方案一不动；
 *    不挂 bottom-tab 的工具页/登录页无 .bt-side 元素，规则不命中，零影响。
 * 2) 双头收口：漫剧页与创作流页自带的"创作头"（标题+返回+教程）
 *    在桌面壳(>=1024)下退场，顶部只留全局顶条；手机端原样保留。
 * ==================================================================== */
@media (min-width: 1024px) {
  html body[data-shell="desktop"]:has(.bt-side):not(:has(aside.sidebar)) .bt-side { display: flex !important; }
  html body[data-shell="desktop"]:has(.bt-side):not(:has(aside.sidebar)) .bt-bar { display: none !important; }
  html body[data-shell="desktop"]:has(.bt-side):not(:has(aside.sidebar)) { padding-left: var(--desk-nav-w, 220px) !important; }
  html body[data-shell="desktop"]:has(.bt-side):not(:has(aside.sidebar)) .bt-dtop { left: var(--desk-nav-w, 220px) !important; }
  html body[data-shell="desktop"] .mh-ref-topbar,
  html body[data-shell="desktop"] .cf-topbar { display: none !important; }
}
