/* ===== 情绪·开户人数 页面样式 ===== */

/* hero 数据条 */
.sent-hs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: #6b7789; margin-top: 6px; }
.sent-hs b { color: #1f2d40; font-weight: 600; }
.sent-hs span { white-space: nowrap; }

/* 分组标题 */
.sent-grp { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0; }
.sent-grp b { font-size: 13px; color: #1f2d40; }
.sent-grp span { font-size: 11.5px; color: #9aa3b2; }
.sent-grp i { margin-left: auto; font-style: normal; font-size: 11.5px; color: #8a93a5; }

/* 概览卡 */
.sent-stat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
.sent-stat .s { background: #fff; border: 1px solid #e7ecf3; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.sent-stat .k { font-size: 11.5px; color: #8a93a5; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sent-stat .v { font-size: 20px; font-weight: 700; color: #1f2d40; line-height: 1.25; white-space: nowrap; }
.sent-stat .d { font-size: 11px; color: #9aa3b2; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sent-stat .v.up { color: var(--up, #e03131); }
.sent-stat .v.dn { color: var(--dn, #0ca678); }
.sent-stat .v small { font-size: 12px; font-weight: 600; color: #8a93a5; }
.sent-stat.stat-off .s { background: #fafbfd; border-color: #eef1f6; }
.sent-stat.stat-off .v { color: #6b7789; }
.sent-stat.stat-off .k::after {
  content: '停更'; font-size: 9.5px; color: #b45309; border: 1px solid #f0d6bb;
  border-radius: 4px; padding: 0 3px; margin-left: 5px; vertical-align: 1px; font-weight: 600;
}

/* 卡片 */
.sent-card { background: #fff; border: 1px solid #e7ecf3; border-radius: 22px; padding: 16px 18px; margin: 14px 0; min-width: 0; }
.sent-sech { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.sent-sech h4 { margin: 0; font-size: 15px; color: #1f2d40; white-space: nowrap; }
.sent-sech .n { font-size: 11.5px; color: #9aa3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sent-sech .line { flex: 1; height: 1px; background: #f0f0f2; align-self: center; }

.sent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sent-grid .sent-card { margin: 0; }

/* 工具条 */
.sent-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 10px; }
.sent-bar .lab { font-size: 11.5px; color: #8a93a5; }
.sent-bar .sp { flex: 1; }
.sent-bar .hint { font-size: 11px; color: #9aa3b2; }
.sent-chips { display: flex; gap: 6px; }
.sent-chips button {
  border: 1px solid #e3e9f3; background: #fff; color: #5b6779; font-size: 11.5px;
  padding: 3px 10px; border-radius: 6px; cursor: pointer; line-height: 1.6;
}
.sent-chips button:hover { border-color: #c3cfe0; color: #27548c; }
.sent-chips button.on { background: #27548c; border-color: #27548c; color: #fff; }
.sent-btn {
  border: 1px solid #e3e9f3; background: #fff; color: #27548c; font-size: 11.5px;
  padding: 3px 12px; border-radius: 6px; cursor: pointer; line-height: 1.6; font-weight: 600;
}
.sent-btn:hover { background: #f4f8fd; border-color: #c3cfe0; }

/* 明细表 */
.sent-tbl { overflow-x: auto; }
.sent-tbl table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; min-width: 760px; }
.sent-tbl th, .sent-tbl td { padding: 6px 6px; border-bottom: 1px solid #f0f3f8; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sent-tbl th.l, .sent-tbl td:first-child { text-align: left; }
.sent-tbl thead th { color: #8a93a5; font-weight: 600; font-size: 11px; border-bottom: 1px solid #e7ecf3; cursor: pointer; user-select: none; }
.sent-tbl thead th:hover { color: #27548c; }
.sent-tbl thead th.on { color: #27548c; }
.sent-tbl thead th i { font-style: normal; font-size: 8px; margin-left: 2px; vertical-align: 1px; }
.sent-tbl tbody tr:hover { background: #f8fafd; }
.sent-tbl td.m { font: 600 11px/1 ui-monospace, Consolas, monospace; color: #5b6779; }
.sent-tbl td b { color: #1f2d40; }
.sent-tbl td.up { color: var(--up, #e03131); }
.sent-tbl td.dn { color: var(--dn, #0ca678); }
.sent-tbl td.empty { text-align: center; color: #9aa3b2; padding: 18px 0; }
.sent-tnote { font-size: 11px; color: #9aa3b2; margin-top: 8px; line-height: 1.7; }

/* 历史位置对照 */
.sent-vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.sent-vs .b { background: #f8fafd; border: 1px solid #eef1f6; border-radius: 12px; padding: 11px 13px; }
.sent-vs .h { font-size: 12px; font-weight: 700; color: #1f2d40; margin-bottom: 8px; }
.sent-vs .r { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; padding: 3px 0; }
.sent-vs .r span { color: #8a93a5; flex: 0 0 112px; }
.sent-vs .r b { color: #1f2d40; font-weight: 700; }
.sent-vs .r i { font-style: normal; color: #9aa3b2; font-size: 11px; margin-left: auto; text-align: right; }
.sent-vs .f { font-size: 10.5px; color: #9aa3b2; margin-top: 6px; line-height: 1.6; }

/* 折叠口径说明 */
.sent-fold { background: #fff; border: 1px solid #e7ecf3; border-radius: 16px; margin: 14px 0; }
.sent-fold > summary {
  cursor: pointer; list-style: none; padding: 13px 18px; font-size: 13px; color: #5b6779; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.sent-fold > summary::-webkit-details-marker { display: none; }
.sent-fold > summary::before { content: '▸'; color: #9aa3b2; font-size: 11px; }
.sent-fold[open] > summary::before { content: '▾'; }
.sent-fold[open] > summary { border-bottom: 1px solid #f0f3f8; color: #1f2d40; }
.sent-fold .sent-notes { padding: 12px 18px 16px; }
.sent-notes { display: flex; flex-direction: column; gap: 10px; }
.sent-notes .note { font-size: 12.5px; line-height: 1.75; color: #4a5872; background: #f8fafd; border: 1px solid #f0f0f2; border-radius: 8px; padding: 10px 14px; }
.sent-notes .note b { color: #1f2d40; }
.sent-notes .note a { color: #27548c; text-decoration: none; }
.sent-notes .note a:hover { text-decoration: underline; }
.sent-notes .note.mut { color: #8a93a5; }

@media (max-width: 1100px) {
  .sent-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sent-grid { grid-template-columns: minmax(0, 1fr); }
  .sent-vs { grid-template-columns: minmax(0, 1fr); }
}

/* 悬浮提示（自绘，替代原生 title：悬停即显、不受表格裁切影响） */
.sent-tipbox {
  position: fixed; z-index: 9999; max-width: 300px; padding: 8px 11px;
  background: #1f2d40; color: #eef3fa; font-size: 12px; line-height: 1.66;
  border-radius: 7px; box-shadow: 0 8px 24px rgba(31, 45, 64, .22);
  pointer-events: none; opacity: 0; transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease;
}
.sent-tipbox.on { opacity: 1; transform: translateY(0); }
