/* 个股页：投资团队研判 + 买卖点解释弹窗 */

.team-wrap { margin: 14px 22px 0; }
.team-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.team-title { font-size: 15px; font-weight: 700; }
.team-sub { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; }

/* 五个视角固定 3 列（宽屏）/ 2 列（中屏）/ 1 列（手机），避免被挤成一行窄条 */
.team-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.team-empty, .team-loading { color: var(--muted); font-size: 13px; padding: 20px 2px; }

.tm-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-top-width: 2px;
  border-radius: 12px; padding: 13px 15px; min-width: 0;
}
.tm-card.st-bull { border-top-color: rgba(240,69,58,.75); }
.tm-card.st-bear { border-top-color: rgba(18,196,107,.75); }
.tm-card.st-neutral { border-top-color: #2a3444; }
.tm-card.chief { border-color: #2f4166; border-top-color: #4a8cff; background: #141c2a; grid-column: 1 / -1; }
/* 最后一张跨两列，补掉「5 张排 3 列」时的右下角空位 */
.tm-card.last-span2 { grid-column: span 2; }

.tm-head { display: flex; align-items: center; gap: 8px; }
.tm-emoji { font-size: 17px; }
.tm-role { font-size: 13.5px; font-weight: 700; flex: 1; min-width: 0; }
.tm-badge {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 2px 8px;
  border-radius: 6px; margin-left: auto; white-space: nowrap;
}
.tm-badge.bull { background: rgba(240,69,58,.16); color: #ff8b80; }
.tm-badge.bear { background: rgba(18,196,107,.15); color: #42d98c; }
.tm-badge.neutral { background: #1c2432; color: #93a1b3; }
.tm-headline {
  font-size: 12.5px; color: #8fb6ff; margin: 7px 0 9px;
  padding-bottom: 8px; border-bottom: 1px dashed #1e2733;
}
.tm-points { margin: 0; padding-left: 16px; }
.tm-points li {
  font-size: 12.5px; color: #aab6c6; line-height: 1.8; margin-bottom: 4px;
  /* 悬挂缩进：换行后的文字与第一行对齐，不再顶到项目符号下面 */
  padding-left: 2px;
}
.tm-points li b { color: #e2e8f0; }
.tm-points li::marker { color: #4d5867; }
/* 局限栏固定在底部：同一行的卡片高度一致、内容也对齐 */
.tm-caveats { margin-top: auto; padding-top: 9px; border-top: 1px dashed #1e2733; }
.tm-caveats .tm-cav-title { font-size: 11px; color: #e8c46a; margin-bottom: 4px; }
.tm-caveats li { font-size: 11.5px; color: #8a94a4; line-height: 1.8; }
.tm-caveats ul { margin: 0; padding-left: 16px; }
.tm-caveats li::marker { color: #4d5867; }

@media (max-width: 1400px) {
  .team-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 卡片点击看依据：不放按钮、不放长提示，只用一个小图标 + 悬停说明 */
[data-explain] { cursor: pointer; transition: border-color .13s; }
[data-explain]:hover { border-color: #34445c; }
.explain-dot {
  float: right; font-size: 11px; color: #3f4a58; font-weight: 400;
  line-height: 1; padding-top: 1px; cursor: help;
}
[data-explain]:hover .explain-dot { color: #8fb6ff; }

/* 弹窗 */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(4,7,12,.72); backdrop-filter: blur(2px);
  align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 760px; background: #131a24; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 700;
}
.modal-close {
  margin-left: auto; background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 14px 18px 20px; }

.why-block { margin-bottom: 16px; }
.why-h { font-size: 12.5px; color: #8fb6ff; font-weight: 700; margin-bottom: 7px; }
.why-text { font-size: 12.5px; color: #aab6c6; line-height: 1.9; }
.why-text b { color: #e2e8f0; }
.why-sig {
  display: flex; gap: 9px; align-items: flex-start; padding: 7px 0;
  border-bottom: 1px dashed #1e2733; font-size: 12.5px;
}
.why-sig:last-child { border-bottom: none; }
.why-sig .ws-side { flex: 0 0 38px; font-weight: 700; }
.why-sig .ws-side.buy { color: #f0453a; }
.why-sig .ws-side.sell { color: #12c46b; }
.why-sig .ws-main { min-width: 0; }
.why-sig .ws-name { color: #e2e8f0; font-weight: 600; }
.why-sig .ws-theory { color: #66748a; font-size: 11.5px; }
.why-sig .ws-desc { color: #93a1b3; font-size: 12px; line-height: 1.75; margin-top: 2px; }
.why-foot { font-size: 11.5px; color: #5f6a79; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 10px; }

@media (max-width: 768px) {
  .team-wrap { margin: 12px 12px 0; }
  .team-body { grid-template-columns: 1fr; }
  .tm-card.last-span2 { grid-column: auto; }
  .modal-mask { padding: 16px 10px; }
  .modal-body { padding: 12px 14px 18px; }
}

/* 投资团队的操作结论：放在整块最前面，给一句能执行的话 + 价位 */
/*
 * 操作结论：**左右两栏**排满整行（用户反复提过「右边太空了」）。
 * 左栏 = 结论 + 怎么做；右栏 = 买入参考/止损/目标/盈亏比/仓位 做成小色块竖排。
 * 窄屏（≤900px）自动退回单栏。
 */
/*
 * 操作结论：单栏、低密度边框。之前试过"左文字 + 右五个小色块"的两栏，
 * 用户反馈「这个布局太难看了」——五个嵌套灰框又重又空。改成：
 *   第一行：结论徽标 + 一句话；第二行：怎么做；第三行：关键数字**行内一行**（用 · 分隔）。
 */
.tm-action {
  grid-column: 1 / -1; background: #101722; border: 1px solid #24304a;
  border-left: 3px solid #4a8cff; border-radius: 12px; padding: 12px 15px;
}
.tm-act-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-act-verdict { font-size: 14px; font-weight: 800; padding: 2px 10px; border-radius: 7px; white-space: nowrap; }
.tm-act-verdict.ok { background: rgba(240,69,58,.16); color: #ff8b80; }
.tm-act-verdict.mid { background: rgba(240,178,58,.14); color: #e8c46a; }
.tm-act-verdict.bad { background: rgba(18,196,107,.15); color: #42d98c; }
.tm-act-oneline { font-size: 12.5px; color: #93a1b3; }
.tm-act-how { margin-top: 6px; font-size: 12.5px; line-height: 1.9; color: #dbe3ee; }
.tm-act-basis {
  margin: 8px 0 0; padding-left: 18px; color: #93a1b3;
  font-size: 11.5px; line-height: 1.75;
}
.tm-act-basis li { margin: 2px 0; }
/* 关键数字：一行排开、用中点分隔，不做成嵌套小框 */
.tm-act-kv {
  margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 4px 10px; font-size: 12px; color: #7f8b9c;
}
.tm-act-kv > span { display: inline-flex; align-items: baseline; gap: 5px; }
.tm-act-kv > span + span::before { content: '·'; color: #3a4453; margin-right: 5px; }
.tm-act-kv b { color: #e8c46a; font-variant-numeric: tabular-nums; font-weight: 600; }
.tm-act-note { margin-top: 7px; font-size: 11px; color: #5f6a79; }
