/* 2026-11-18 大盘信号两页改版（锚 docs/迭代/2026-11-18-信号页排版改版/UI规格.md）
   排在 v20-insight.css 之后、theme-dark.css 之前；颜色全走令牌。只改 ≥1100，<1100 与 ≤720 只多一个页头 logo。
   ≥1100：上行 = 左格品牌（logo + 页名 + 数据截至）+ 右格 AI 概览卡；下行 = 左栏（指标导航 + 指标说明）+ 右图区。
   浮窗页头整条收起（品牌进了左格，✕ 不再显示：页面是新标签打开的，logo 回首页）。
   滚动：浮窗正文是滚动容器，上行随页面上滑；下行最高一屏（100cqh 减上下内边距），放不下的在各自卡片里滚。
   10-29 的做法是第二行恒为一屏高；这里改成 fit-content：内容一屏放得下就不多出滚动距离。
   固定前左栏与图区加 .is-lock 不自己滚（drawer.js sgpDockSync），滚轮与触控先带页面走 */
/* 读数框第一次悬停前没有定位值，会按正常流排在图例下面、把图表卡撑出几像素滚动；先放在左上角（不可见），悬停时由脚本定位 */
.sig-chart-host .sig-tooltip { top: 0; left: 0; }
.sgx-logo { flex: none; display: inline-flex; width: 28px; height: 28px; margin-right: 10px; border-radius: 7px; }
.sgx-logo img { width: 100%; height: 100%; object-fit: contain; }
.sgx-brand { display: none; }
.sgi-more { display: none; }                           /* 概览「展开 / 收起」只在 ≥1100 的页眉里用 */

@media (min-width: 1100px) {
  .drawer.is-sigpage .drawer-head { display: none; }
  .drawer.is-sigpage .drawer-body {
    display: block; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin;
    container-type: size;                                  /* 下行「最高一屏」用 100cqh 取这里的可视高 */
  }
  .drawer.is-sigpage .drawer-body > .sgp.sgx {
    --sgx-pad: var(--sp-9); --sgx-max: calc(100cqh - 2 * var(--sgx-pad));
    flex: none; width: auto; max-width: none; min-height: 0; margin: 0; overflow: visible;
    padding: var(--sgx-pad) max(var(--sp-9), calc((100% - var(--pg-w)) / 2));
    grid-template-rows: auto fit-content(var(--sgx-max)); align-content: start; gap: 20px 24px;
  }
  /* 上行是一条页眉，不是卡片（用户 11-18 测试站反馈）：左 = 大 logo + 两排页名 + 数据截至，右 = 概览（标题 + 「AI 解读」徽标 + 正文）直接落在页面底色上。
     顶对齐、不随概览高度居中：等解读的 1.5 秒里品牌格先出，解读到了位置不能跳 */
  .sgx .sgx-brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 4px 0; }
  .sgx-brand-row { display: flex; align-items: center; min-width: 0; }
  .sgx-brand .sgx-logo { width: 64px; height: 64px; margin-right: 14px; border-radius: 14px; }
  .sgx-h1 { min-width: 0; font-size: var(--fs-28); font-weight: 800; line-height: 32px; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; }
  .sgx-h1 > span { display: block; }
  .sgx-sub { font-size: var(--fs-12); line-height: 18px; color: var(--ink-3); }
  .sgx-sub .sig-lag { color: var(--ink-2); font-weight: 600; }

  /* 概览：左右内缩 22，与下面图表卡的内容左缘对齐。DOM 不变（<1100 仍是原样），用 order 把徽标排到标题后；
     「依据截至… · 仅供参考…」一行不显示 */
  .sgx .sgi {
    grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
    padding: 4px 22px 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none;
  }
  .sgx .sgi-top { display: contents; }
  .sgx .sgi-date, .sgx .sgi-note { display: none; }
  .sgx .sgi-h { order: 1; min-width: 0; margin: 0; font-size: var(--fs-16); line-height: 24px; }
  .sgx .sgi-tag { order: 2; flex: none; }
  /* 正文：行高 22、段落连排不另起行（段距与行距统一为 0），标题 24 + 三行 66 = 90，正好等于左侧 logo 64 + 间距 8 + 数据截至 18。
     超过三行收起（max-height），末行右端「展开」盖一段渐隐；展开后钮跟在文末 */
  .sgx .sgi-body {
    order: 3; flex: 0 0 100%; position: relative; max-width: none; max-height: 66px; margin-top: 0; overflow: hidden;
    font-size: var(--fs-14); line-height: 22px; color: var(--ink); text-wrap: wrap;   /* 不用 pretty：展开时钮进了文末，pretty 会把前面几行重新断行 */
    text-align: justify;                                   /* 两端对齐（用户 11-18）：每行右缘齐到图表卡内容右缘，「展开」钮才和上面几行对得上；末行仍左对齐 */
  }
  .sgx .sgi-body p { display: inline; line-height: 22px; }
  .sgx .sgi-body p + p { margin-top: 0; }
  .sgx .sgi.is-open .sgi-body { max-height: none; }
  .sgx .sgi.has-more .sgi-more {
    display: inline-block; position: absolute; right: 0; bottom: 0; height: 22px; padding: 0 0 0 44px; border: 0;
    background: linear-gradient(90deg, transparent, var(--page) 32px); color: var(--green);
    font: inherit; font-size: var(--fs-13); font-weight: 600; line-height: 22px; cursor: pointer;
  }
  .sgx .sgi.has-more.is-open .sgi-more { position: static; padding-left: 8px; background: none; }
  .sgx .sgi-more:hover { text-decoration: underline; }
  .sgx:not(.has-sgi) .sgx-brand { grid-column: 1 / -1; }

  .sgx .sgx-side {
    display: flex; flex-direction: column; gap: 16px; min-width: 0;
    max-height: var(--sgx-max); overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: thin;
  }
  .sgx .sgp-list { flex: none; max-height: none; overflow: visible; }
  .sgx .sgp-main { max-height: var(--sgx-max); overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
  .sgx .is-lock { overflow-y: hidden; }
  .sgx .sgx-side .sig-desc {
    margin: 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: 20px;
    background: var(--card); box-shadow: var(--sh-card);
  }
  .sgx .sgx-side .sig-desc-h { margin-bottom: 8px; font-size: var(--fs-13); font-weight: 700; line-height: 20px; color: var(--ink); }
  .sgx .sgx-side .sig-desc p { font-size: var(--fs-13); line-height: 1.75; color: var(--ink-2); }
}
@media (max-width: 1099px) {
  .sgx:not(.has-sgi) .sig-desc-h { display: none; }   /* 没有解读的窄屏：指标说明不加小标题，和原来一样 */
}
