/* ============================================================
   安全运营中心 · 新增页面组件样式（仪表盘/统计/响应/报告/图表）
   ============================================================ */

/* ---- 通用工具栏 / 卡片网格 ---- */
.toolbar .tt { font-size: 18px; font-weight: 600; }
.toolbar .ts { font-size: 12px; color: var(--text-placeholder); margin-top: 2px; }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 150px; }
.stat-card .sub { font-size: 12px; color: var(--text-placeholder); }
.stat-card .drag-hint { font-size: 11px; color: var(--text-placeholder); margin-top: 2px; }
.stat-card .up { color: var(--error); font-size: 12px; }
.stat-card .down { color: var(--success); font-size: 12px; }

/* ---- 图表面板 ---- */
.chart-panel { padding: 20px; }
.chart-panel .section-header { margin-bottom: 8px; }
.legend-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.legend-row .li { display: flex; align-items: center; gap: 6px; }
.legend-row .sw { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---- 仪表盘筛选条 ---- */
.filter-bar .sel { height: 34px; }
.filter-bar .date-in { width: 150px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 10px; font-size: 13px; background: var(--bg-component); }
.filter-bar .custom-range { display: none; align-items: center; gap: 8px; }
.filter-bar.custom .custom-range { display: flex; }
.filter-bar .refresh-time { font-size: 12px; color: var(--text-placeholder); font-family: "Inter", sans-serif; }

/* ---- 统计页面 ---- */
.stat-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: var(--bg-container); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.stat-controls .field { display: flex; flex-direction: column; gap: 6px; }
.stat-controls .field label { font-size: 12px; color: var(--text-secondary); }
.stat-controls select, .stat-controls input { height: 34px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 10px; font-size: 13px; background: #fff; }
.stat-controls .input { width: 200px; }

.dist-bars { display: flex; flex-direction: column; gap: 8px; }
.dist-bars .row { display: flex; align-items: center; gap: 12px; }
.dist-bars .rb-label { width: 150px; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-bars .rb-track { flex: 1; height: 22px; background: var(--bg-component); border-radius: var(--radius-sm); overflow: hidden; }
.dist-bars .rb-fill { display: block; height: 100%; border-radius: var(--radius-sm); transition: width .4s; }
.dist-bars .rb-val { width: 120px; text-align: right; font-size: 13px; font-family: "Inter", sans-serif; color: var(--text-primary); }
.dist-bars .rb-val .pct { color: var(--text-placeholder); margin-left: 6px; font-size: 12px; }

.tbl .clickable { cursor: pointer; }
.tbl .clickable:hover { color: var(--brand); }

/* ---- 响应中心工单 ---- */
.ticket-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; background: var(--bg-page); border: 1px dashed var(--border); border-radius: var(--radius-md); margin-bottom: 16px; }
.ticket-form .field { display: flex; flex-direction: column; gap: 6px; }
.ticket-form .field label { font-size: 12px; color: var(--text-secondary); }
.ticket-form select, .ticket-form input, .ticket-form textarea { height: 36px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 10px; font-size: 13px; background: #fff; min-width: 160px; }
.ticket-form textarea { height: 60px; padding: 8px 10px; min-width: 280px; }
.src-picker { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 280px; }
.src-picker select { width: 100%; }
.resp-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.resp-stats .rs { flex: 1; background: var(--bg-container); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 18px; }
.resp-stats .rs .n { font-size: 24px; font-weight: 700; font-family: "Inter", sans-serif; }
.resp-stats .rs .l { font-size: 12px; color: var(--text-placeholder); }
.timeline-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--brand); margin-right: 6px; }
.badge-src-event { background: rgba(213,73,65,0.12); color: var(--error); }
.badge-src-vuln { background: rgba(227,115,24,0.12); color: var(--warning); }
.badge-src-manual { background: rgba(0,82,217,0.10); color: var(--brand); }

/* ---- 报告中心 ---- */
.gauge-wrap { display: flex; align-items: center; gap: 24px; }
.dim-bars { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.risk-table .score-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: "Inter", sans-serif; }
.score-hi { background: rgba(213,73,65,0.12); color: var(--error); }
.score-mid { background: rgba(227,115,24,0.12); color: var(--warning); }
.score-lo { background: rgba(43,164,113,0.12); color: var(--success); }
.org-bars { display: flex; flex-direction: column; gap: 8px; }
.org-bars .row { display: flex; align-items: center; gap: 12px; }
.org-bars .ol { width: 130px; font-size: 13px; color: var(--text-primary); }
.org-bars .ot { flex: 1; height: 20px; background: var(--bg-component); border-radius: var(--radius-sm); overflow: hidden; }
.org-bars .of { display: block; height: 100%; border-radius: var(--radius-sm); transition: width .4s; }
.org-bars .ov { width: 70px; text-align: right; font-family: "Inter", sans-serif; font-size: 13px; }

/* ---- SOC 大屏：攻击弧线动画（合规抽象，无国界） ---- */
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes pulse { 0%,100% { r: 4; opacity: 1; } 50% { r: 7; opacity: 0.5; } }
.attack-line { fill: none; stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
.pulse-pt { animation: pulse 1.8s ease-in-out infinite; }

/* ---- 大屏情报轮播 ---- */
.soc-feed .fi { animation: fadein .5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- 导入页：数据集标签 ---- */
.ds-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty-tip { color: var(--text-placeholder); font-size: 13px; padding: 20px 0; text-align: center; }
