/* ===== 盘前机会与风险（对齐平台设计语言：app.css 令牌） ===== */
/* 平台令牌：主色 #27548c · 边框 #e3e4e6 · 底色 #f3f5f9 · 正文 #0a0a0a · 次级 #8a93a5 */

/* ---- Hero（对齐平台共享 .hero：白底浅渐变，统计走 .tags 胶囊） ---- */
.ev-hero2 { background:transparent;border:0;border-radius:0;box-shadow:none; padding: 14px 0 10px; }
.ev-hero2 h1 { font-size: 20px; margin-bottom: 4px; }
.ev-hero2 p { font-size: 12px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hero2 .tags span b { font-variant-numeric: tabular-nums; }

/* ---- 布局 ---- */
.ev-body { display: flex; gap: 14px; align-items: flex-start; }

/* ---- 左侧筛选区（设计版：彩色决策类 + 树形导轨） ---- */
.ev-side { width: 244px; flex: none; background: #fff; border: 1px solid #e3e4e6; border-radius: 12px;
  padding: 6px 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.ev-side::before { content: ''; display: block; height: 3px; margin: 0 12px 4px; border-radius: 99px;
  background: linear-gradient(90deg, #4dabf7, #27548c 55%, #7c5cff); opacity: .85; }
.ev-side-h { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: #9aa3b2; padding: 12px 16px 6px; letter-spacing: 2px; }
.ev-side-h::before { content: ''; width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(135deg, #4dabf7, #27548c); opacity: .5; }
.ev-tree { display: flex; flex-direction: column; padding: 0 8px; }

/* 决策型分类：四色身份 */
.ev-act { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 7px 10px 7px 14px; margin: 1px 0; cursor: pointer; font-size: 13px; font-weight: 600;
  color: #0a0a0a; user-select: none; border-radius: 8px; transition: background .15s, color .15s; }
.ev-act::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; flex: none;
  background: #c2c9d6; transition: background .15s, box-shadow .15s; }
.ev-act[data-act="机会"]::before { background: #e03131; }
.ev-act[data-act="风险"]::before { background: #0ca678; }
.ev-act[data-act="重点"]::before { background: #f59f00; }
.ev-act[data-act="中性"]::before { background: #adb5bd; }
.ev-act > span:first-of-type, .ev-dim > span:first-of-type { flex: 1; }
.ev-act:hover { background: #f1f4fa; }
.ev-act.on { background: linear-gradient(90deg, #eaf0ff, #f5f8ff); color: #27548c; }
.ev-act.on::after { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, #4dabf7, #27548c); }
.ev-act .n, .ev-dim > .n { font-size: 11px; color: #9aa3b2; font-variant-numeric: tabular-nums;
  background: #f1f4fa; border-radius: 9px; min-width: 22px; text-align: center; padding: 1px 6px; }
.ev-act.on .n { background: #d9e6ff; color: #27548c; font-weight: 700; }

/* 维度型分类：可折叠 + 箭头旋转 */
.ev-dim { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 7px 10px 7px 14px; margin: 1px 0; cursor: pointer; font-size: 13px; font-weight: 600;
  color: #0a0a0a; user-select: none; border-radius: 8px; transition: background .15s, color .15s; }
.ev-dim::before { content: '▸'; margin-right: 8px; flex: none; color: #b3bac8; font-size: 11px;
  transition: transform .18s; }
.ev-dim.open::before { transform: rotate(90deg); color: #27548c; }
.ev-dim:hover { background: #f1f4fa; }
.ev-dim.on { background: linear-gradient(90deg, #eaf0ff, #f5f8ff); color: #27548c; }
.ev-dim.on::after { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 99px; background: linear-gradient(180deg, #4dabf7, #27548c); }
.ev-dim.on > .n { background: #d9e6ff; color: #27548c; font-weight: 700; }

/* 事件类型：树形导轨缩进 */
.ev-items { display: none; padding: 2px 0 4px; }
.ev-dim.open + .ev-items, .ev-items.open { display: block; }
.ev-it { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 5px 10px 5px 30px; margin: 1px 0 1px 14px; cursor: pointer; font-size: 12.5px;
  color: #5a6478; user-select: none; border-left: 2px solid #e3e4e6; border-radius: 0 8px 8px 0;
  transition: background .15s, color .15s, border-color .15s; }
.ev-it::before { content: ''; position: absolute; left: -2px; top: 50%; width: 8px; height: 2px;
  background: #e3e4e6; transition: background .15s; }
.ev-it:hover { background: #f1f4fa; border-left-color: #b3c7e2; }
.ev-it:hover::before { background: #b3c7e2; }
.ev-it.on { background: #eaf0ff; border-left-color: #27548c; color: #27548c; font-weight: 700; }
.ev-it.on::before { background: #27548c; }
.ev-it .n { color: #b3bac8; font-size: 11px; font-variant-numeric: tabular-nums; }
.ev-it.on .n { color: #27548c; }
.ev-it.off { color: #c2c9d6; cursor: default; }
.ev-it.off:hover { background: none; border-left-color: #e3e4e6; }
.ev-it.off:hover::before { background: #e3e4e6; }
.ev-side-tip { font-size: 11px; color: #9aa3b2; padding: 10px 16px 0; border-top: 1px dashed #eef0f6; margin-top: 10px; line-height: 1.7; }

/* ---- 主区 ---- */
.ev-main { flex: 1; min-width: 0; }

/* 工具栏 */
.ev-bar { background: #fff; border: 1px solid #e3e4e6; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.ev-date { color: #5a6478; display: flex; align-items: center; gap: 6px; }
.ev-bar input[type=date] { border: 1px solid #e3e4e6; border-radius: 6px; padding: 5px 8px; font-size: 12.5px;
  color: #0a0a0a; background: #fff; outline: none; }
.ev-bar input[type=date]:focus { border-color: #27548c; }
.ev-btn, .ev-btn-primary { border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; }
.ev-btn { background: #fff; color: #5a6478; border-color: #e3e4e6; }
.ev-btn:not(:disabled):hover { border-color: #27548c; color: #27548c; }
.ev-btn:disabled { opacity: .5; cursor: not-allowed; }
.ev-btn-primary { background: #27548c; border-color: #27548c; color: #fff; font-weight: 600; }
.ev-btn-primary:hover { background: #245cd8; }
.ev-sep { width: 1px; height: 18px; background: #e3e4e6; }
.ev-hint { color: #8a93a5; font-size: 12px; margin-left: auto; }

/* 快捷日期档 */
.ev-presets { display: flex; gap: 5px; }
.ev-preset { border: 1px solid #e3e4e6; background: #fff; border-radius: 14px; padding: 4px 11px;
  font-size: 12px; color: #5a6478; cursor: pointer; transition: all .15s; white-space: nowrap; }
.ev-preset:hover { border-color: #27548c; color: #27548c; }
.ev-preset.on { background: #eaf0ff; border-color: #27548c; color: #27548c; font-weight: 600; }

/* 数据陈旧提示条 */
.ev-stale { background: #fff8e6; border: 1px solid #f2d98c; color: #8a6d1a; border-radius: 8px;
  padding: 8px 14px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.6; }

/* 个股反查搜索框 */
.ev-stock-box { position: relative; display: flex; align-items: center; }
.ev-stock-ico { position: absolute; left: 10px; font-size: 12px; pointer-events: none; opacity: .6; }
#evStock { width: 250px; border: 1px solid #e3e4e6; border-radius: 6px; padding: 7px 10px 7px 28px;
  font-size: 13px; color: #0a0a0a; outline: none; transition: border-color .15s, box-shadow .15s; }
#evStock:focus { border-color: #27548c; box-shadow: 0 0 0 3px rgba(39,84,140,.12); }
#evStock::placeholder { color: #b3bac8; }
.ev-drop { position: absolute; top: 36px; left: 0; width: 320px; background: #fff; border: 1px solid #e3e4e6;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(20,40,90,.16); overflow: hidden; z-index: 40; max-height: 320px; overflow-y: auto; }
.ev-drop-it { padding: 8px 13px; cursor: pointer; font-size: 13px; display: flex; justify-content: space-between;
  align-items: center; gap: 8px; color: #0a0a0a; }
.ev-drop-it:hover, .ev-drop-it.hl { background: #f0f4ff; }
.ev-drop-it .c { color: #9aa3b2; font-size: 12px; font-family: Consolas, monospace; }
.ev-drop-it .n2 { color: #8a93a5; font-size: 11.5px; }
/* 关键词筛选项（下拉末尾） */
.ev-drop-kw { border-top: 1px dashed #e3e8f0; color: #27548c; }
.ev-drop-kw:hover, .ev-drop-kw.hl { background: #eaf3ff; }
.ev-drop-kw .n2 { color: #27548c; font-weight: 600; }
.ev-drop-empty { padding: 12px 13px; color: #9aa3b2; font-size: 12.5px; }
/* 已选个股 chip */
.ev-stock-chip { display: inline-flex; align-items: center; gap: 7px; background: #eaf0ff;
  border: 1px solid #b3c7e2; border-radius: 20px; padding: 5px 8px 5px 12px; font-size: 12.5px; color: #27548c; }
/* ★display:inline-flex 会压掉 hidden 属性的 UA 样式，必须显式补回，否则未选个股时空壳胶囊常驻 */
.ev-stock-chip[hidden] { display: none; }
.ev-stock-chip b { font-weight: 700; }
.ev-stock-chip .cd { color: #7c96d9; font-family: Consolas, monospace; }
.ev-stock-chip button { border: 0; background: #d9e6ff; color: #27548c; width: 18px; height: 18px;
  border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ev-stock-chip button:hover { background: #27548c; color: #fff; }

/* 数据核心区 */
.ev-core { background: #fff; border: 1px solid #e3e4e6; border-radius: 10px; min-height: 420px;
  padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); overflow-x: auto; }
/* 空态 */
.ev-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 0; }
.ev-empty[hidden] { display: none; }
.ev-empty-ring { width: 74px; height: 74px; border-radius: 50%; border: 3px solid #eef0f6;
  border-top-color: #b3c7e2; animation: evspin 1.6s linear infinite; }
@keyframes evspin { to { transform: rotate(360deg); } }
.ev-empty-t { margin-top: 18px; color: #8a93a5; font-size: 15px; }
.ev-empty-s { margin-top: 6px; color: #b3bac8; font-size: 12.5px; }
.ev-empty-s b { color: #8a93a5; }
.ev-empty-btn { display: inline-block; margin: 14px 0 0 12px; padding: 7px 16px; border: none; border-radius: 18px;
  background: linear-gradient(120deg, #27548c, #5a8bff); color: #fff; font-size: 12.5px; cursor: pointer;
  box-shadow: 0 3px 10px rgba(39,84,140,.25); }
.ev-empty-btn:hover { filter: brightness(1.06); }

/* 表格 */
.ev-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ev-tbl th { background: #f8fafd; color: #5a6478; font-weight: 600; text-align: left; padding: 8px 9px;
  border-bottom: 1px solid #e3e4e6; white-space: nowrap; position: sticky; top: 0; }
.ev-tbl th.sortable { cursor: pointer; }
.ev-tbl th.sortable:hover { color: #27548c; }
.ev-tbl th.sorted::after { content: '▾'; color: #27548c; font-size: 10px; }
.ev-tbl th.sorted.asc::after { content: '▴'; }
.ev-tbl td { padding: 7px 9px; border-bottom: 1px solid #f0f2f7; color: #333f5c; vertical-align: top; }
.ev-tbl tbody tr:hover { background: #f8faff; }
.ev-tbl .nw { white-space: nowrap; }
.ev-tbl td.code { font-family: Consolas, monospace; color: #27548c; }
.ev-tbl td.idx { color: #9aa3b2; }
.ev-tag { display: inline-block; border-radius: 4px; padding: 1px 6px; font-size: 11px; white-space: nowrap; }
.ev-tag.机会 { background: #fdecec; color: #e03131; }
.ev-tag.风险 { background: #e7f6f0; color: #0ca678; }
.ev-tag.中性 { background: #f1f4fa; color: #8a93a5; }
.ev-tag.重点 { background: #fff4e0; color: #b96a00; font-weight: 600; }
/* 未来日程预告标识 */
.ev-future { display: inline-block; background: #fff4e0; color: #b96a00; border-radius: 4px;
  padding: 0 5px; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.ev-sum { color: #5a6478; line-height: 1.5; }
.ev-link { color: #27548c; text-decoration: none; font-size: 12px; white-space: nowrap; }
.ev-link:hover { text-decoration: underline; }
/* 个股360° 直通链接 */
.ev-lk360 { margin-left: 8px; color: #7c5cff; font-weight: 600; }
.ev-lk360:hover { color: #5a3fd6; }
.ev-stock-chip .chip360 { margin-left: 2px; color: #7c5cff; font-size: 11.5px; font-weight: 700;
  text-decoration: none; padding: 2px 6px; background: #f1edff; border-radius: 9px; }
.ev-stock-chip .chip360:hover { background: #7c5cff; color: #fff; }
.ev-name { font-weight: 600; color: #0a0a0a; cursor: pointer; border-bottom: 1px dashed transparent; }
.ev-name:hover { color: #27548c; border-bottom-color: #27548c; }

/* 表尾 */
.ev-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.ev-count { color: #8a93a5; font-size: 12.5px; }
.ev-pager { display: flex; gap: 5px; }
.ev-pager button { min-width: 30px; height: 28px; border: 1px solid #e3e4e6; background: #fff; border-radius: 6px;
  font-size: 12.5px; color: #5a6478; cursor: pointer; }
.ev-pager button.on { background: #27548c; border-color: #27548c; color: #fff; }
.ev-pager button:disabled { color: #c2c9d6; cursor: default; }

@media (max-width: 900px) {
  .ev-body { flex-direction: column; }
  .ev-side { width: 100%; position: static; max-height: 300px; }
  #evStock { width: 100%; }
  .ev-stock-box { flex: 1 1 240px; min-width: 0; }
  .ev-core { overflow-x: auto; }
  .ev-main { width: 100%; min-width: 0; }
  .ev-bar > * { max-width: 100%; }
  .ev-tbl { min-width: 660px; }
  .ev-presets { flex-wrap: wrap; }
  .ev-stale { margin-bottom: 10px; }
}

/* ★2026-10-15 证券名称列不换行（列宽自适应撑开，避免名称折行） */
.ev-tbl td.name { white-space: nowrap; }
