/* v11.css —— 11 组件层：外观切换（两档 浅色/深色）+ 客服二维码显性 dock 与居中弹窗。
   来源：暗色模式设计稿定稿（docs/前端参考/2026-08-03-暗色模式/，§13/§14 亮暗通用基础样式迁入）；
   暗色差异在 theme-dark.css §13。精确值勿改——改前对齐设计稿交付说明。 */

/* ============ 外观切换（头像菜单内；两档，默认浅色，交互在 app.js wireTheme） ============ */
.theme-sec { padding: 4px 6px 8px; }
.theme-sec-label { font-size: var(--fs-11); color: var(--ink-3); padding: 2px 6px 6px; }
.theme-seg { display: flex; gap: 2px; background: var(--seg-bg); border-radius: 9px; padding: 2px; }
.theme-opt { flex: 1; height: 26px; border: 0; border-radius: 7px; background: transparent; font-size: var(--fs-11); font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.theme-opt:hover { color: var(--ink); }
.theme-opt.is-active { background: var(--bg); color: var(--green-d); font-weight: 700; box-shadow: 0 1px 3px rgba(20, 23, 27, .10); }
.theme-sep { height: 1px; background: var(--line); margin: 2px 6px 4px; }

/* ============ 客服入口（11 版主页面改版三 / 四轮，画布 docs/前端参考/2026-09-23-11主页面改版/；交互在 support.js） ============
   主区左下 44 圆钮（品牌绿底 + 白图标 + CTA 阴影，与「研究个股」/ 发送钮同一 CTA 语言；打开态 ink 底 ✕）；
   面板 292 宽从钮上方左对齐展开：入群交流（码图底恒白，暗色也白框，扫码可读）+ 分割线 + 产品建议外链。
   钮常显（不再依赖二维码）；码缺失 / 过期 / 拉取失败只收起入群段与分割线。定位在 v14.css（桌面）/ mobile.css（≤720）。
   10 版前的二维码 dock（.qr-dock）与居中弹窗（.spx-*）已退役。 */
.support-root { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sp-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; padding: 0;
  background: var(--green-solid); color: #fff; box-shadow: var(--sh-cta);
  transition: transform .12s, box-shadow .15s, background .15s;
}
.sp-btn:active { transform: scale(.94); }

.sp-btn .sp-ico-x { display: none; }
.sp-btn.is-open { background: var(--ink); color: var(--card); box-shadow: 0 4px 14px rgba(20, 23, 27, .16); }
.sp-btn.is-open .sp-ico-open { display: none; }
.sp-btn.is-open .sp-ico-x { display: block; }
.sp-pop {
  width: 292px; max-width: calc(100vw - 28px); background: var(--pop); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--sh-pop); padding: 20px; animation: mg-pop .18s ease both;
}
.sp-sec { display: flex; flex-direction: column; gap: 8px; }
.sp-h { display: flex; align-items: center; gap: 7px; }
.sp-h-t { margin: 0; font-size: var(--fs-13); font-weight: 800; letter-spacing: -.14px; color: var(--ink); }
.sp-note { margin: 0; font-size: var(--fs-12); color: var(--ink-2); }
.sp-qr { align-self: center; width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.sp-qr img { width: 100%; height: 100%; display: block; object-fit: contain; cursor: zoom-in; }
.sp-div { height: 1px; background: var(--line); margin: 16px -4px; }
.sp-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 700; color: var(--green-d); text-decoration: none; }
.sp-link:hover { color: var(--green); text-decoration: underline; }
