/* v12.css — 11 迭代组件层：指标解读 FAB + 解读 bottom sheet（设计基准 docs/迭代/2026-08-14-登录时长与聪明钱接入与指标解读/）
   全部走 tokens——暗色由 theme-dark.css 令牌重映射自动适配。逻辑在 drawer.js，文案在 indicator-guides.js。 */

/* ---------- 解读 FAB：分享 FAB（绿=主 CTA）正上方 10px；白底描边=辅助层级 ---------- */
.guide-fab {
  position: absolute; right: 20px; bottom: max(82px, calc(74px + env(safe-area-inset-bottom)));
  width: 48px; height: 48px; border-radius: var(--r-circle); border: 1px solid var(--line); cursor: pointer;
  background: var(--bg); display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(20, 23, 27, .10); z-index: 5; color: var(--ink-2);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.guide-fab:hover { transform: translateY(-1px); color: var(--ink); }
/* 分享 FAB 隐藏（广场白读 owned:false / 游客个股无分享）时下移占底位，不留空（评审补强 2026-08-15） */
.guide-fab.is-solo { bottom: max(24px, calc(16px + env(safe-area-inset-bottom))); }

/* ---------- 解读 bottom sheet：挂 drawer 容器内贴底拉起，桌面/移动同挂点 ---------- */
.gs-ovl {
  position: absolute; inset: 0; z-index: 8; background: rgba(20, 23, 27, .32);
  opacity: 0; pointer-events: none; transition: opacity .16s var(--ease);
}
.gs-ovl.is-open { opacity: 1; pointer-events: auto; }
.guide-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72%; max-height: calc(100% - 56px);
  background: var(--soft); border-radius: 16px 16px 0 0; box-shadow: var(--sh-pop); z-index: 9;
  transform: translateY(102%); transition: transform .22s var(--ease);
  display: flex; flex-direction: column; visibility: hidden;
}
/* 底色分层（2026-08-15 生产反馈①）：浅色 soft 灰与正文白拉开；暗色弹层亮一档在 theme-dark.css（--pop） */
.guide-sheet.is-open { transform: translateY(0); visibility: visible; }
.gs-grab { flex: none; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 0; }
/* 版心对齐（2026-08-15 生产反馈二轮修订）：解读文字与背后报告正文同版心——
   标题与正文内容限宽 content-max(760) 居中（与 .drawer-body > .report-body 同款），不再全宽铺开；
   关闭钮贴浮窗右缘（同 drawer-close 位）。移动 ≤720 版心大于视口自动全宽，仅留 24px 边距。 */
.gs-head { flex: none; position: relative; padding: 8px 30px 10px; border-bottom: 1px solid var(--line-2); }
.gs-title { display: block; max-width: var(--content-max); margin-inline: auto; padding-right: 36px; font-size: 15px; font-weight: var(--fw-extrabold); letter-spacing: -.2px; color: var(--ink); }
.gs-x { position: absolute; top: 5px; right: 20px; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-3); font-size: 15px; }
.gs-x:hover { background: var(--line-2); color: var(--ink); }
.gs-body { flex: 1; overflow-y: auto; padding: 4px 30px 28px; overscroll-behavior: contain; }
.gs-body > * { max-width: var(--content-max); margin-inline: auto; }
@media (max-width: 720px) {
  .gs-head { padding: 8px 24px 10px; }
  .gs-body { padding: 4px 24px 28px; }
}
.gs-body h4 { font-size: 13.5px; font-weight: var(--fw-extrabold); color: var(--ink); margin-block: 18px 6px; }
.gs-body p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin-block: 6px; }
.gs-body ul { padding-left: 18px; margin-block: 6px; }
.gs-body li { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin-block: 6px; }
.gs-body b { color: var(--ink); font-weight: var(--fw-bold); }
