/* ==========================================================================
   腾龙发科 · V61 后台新模块样式（超级采集中心 / AI大模型训练中心）
   admin-v61-mod.css   前缀 av61- ，叠加于 common.css / admin.css /
   admin-v53.css / admin-v54.css / admin-sync-v60.css 之上。
   ========================================================================== */
.av61-wrap { color: #d7e3ff; }

.av61-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.av61-head h2 { margin: 0; font-size: 18px; color: #eaf1ff; }
.av61-head .av61-sub { font-size: 12.5px; color: #8fa0c8; }

.av61-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.av61-kpi {
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(150deg, rgba(34, 44, 88, .9), rgba(16, 22, 48, .9));
  border: 1px solid rgba(96, 150, 255, .20);
}
.av61-kpi b { display: block; font-size: 22px; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.av61-kpi span { display: block; margin-top: 4px; font-size: 12px; color: #93a4cc; }
.av61-kpi.ok b { color: #6ee7b7; }
.av61-kpi.warm b { color: #fbbf24; }
.av61-kpi.hot b { color: #f472b6; }

.av61-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid rgba(96, 150, 255, .16); padding-bottom: 10px; }
.av61-tab {
  padding: 7px 15px; border-radius: 9px; cursor: pointer; font-size: 13px;
  color: #b6c3e0; background: rgba(30, 40, 78, .5);
  border: 1px solid rgba(96, 150, 255, .16); transition: .18s;
}
.av61-tab:hover { border-color: rgba(140, 180, 255, .45); color: #eaf1ff; }
.av61-tab.on { color: #04121f; background: linear-gradient(135deg, #22d3ee, #5b8cff); border-color: transparent; font-weight: 600; }

.av61-panel { display: none; }
.av61-panel.on { display: block; }

.av61-card {
  padding: 16px 18px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(160deg, rgba(28, 36, 70, .82), rgba(14, 19, 42, .82));
  border: 1px solid rgba(96, 150, 255, .20);
}
.av61-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.av61-card-hd h3 { margin: 0; font-size: 15px; color: #eaf1ff; }

.av61-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 9px;
  font-size: 12.5px; cursor: pointer; color: #dbe6ff; background: rgba(45, 60, 118, .7);
  border: 1px solid rgba(96, 150, 255, .28); transition: .18s;
}
.av61-btn:hover { background: rgba(60, 80, 150, .78); }
.av61-btn.pri { color: #04121f; background: linear-gradient(135deg, #22d3ee, #5b8cff); border-color: transparent; font-weight: 600; }
.av61-btn.danger { color: #ffd7d7; background: rgba(120, 35, 45, .7); border-color: rgba(239, 68, 68, .4); }
.av61-btn.sm { padding: 5px 10px; font-size: 12px; }

.av61-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.av61-table th { text-align: left; padding: 10px 10px; color: #8fa0c8; font-weight: 500; border-bottom: 1px solid rgba(96, 150, 255, .18); white-space: nowrap; }
.av61-table td { padding: 10px 10px; color: #cfdaf5; border-bottom: 1px solid rgba(96, 150, 255, .10); }
.av61-table tr:hover td { background: rgba(91, 140, 255, .07); }
.av61-table code { color: #9ecbff; font-family: ui-monospace, Menlo, Consolas, monospace; }

.av61-chip { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 11.5px; background: rgba(148, 163, 184, .18); color: #b6c3e0; }
.av61-chip.ok { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.av61-chip.warn { background: rgba(251, 191, 36, .18); color: #fbbf24; }
.av61-chip.err { background: rgba(239, 68, 68, .18); color: #fca5a5; }

/* 开关 */
.av61-sw { position: relative; display: inline-block; width: 40px; height: 22px; }
.av61-sw input { opacity: 0; width: 0; height: 0; }
.av61-sw i { position: absolute; inset: 0; border-radius: 12px; background: rgba(120, 132, 160, .5); transition: .2s; cursor: pointer; }
.av61-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.av61-sw input:checked + i { background: linear-gradient(135deg, #22d3ee, #5b8cff); }
.av61-sw input:checked + i::after { transform: translateX(18px); }

/* 输入 */
.av61-inp {
  width: 100%; height: 34px; padding: 0 11px; border-radius: 9px;
  background: rgba(9, 13, 30, .72); border: 1px solid rgba(96, 150, 255, .24);
  color: #dbe6ff; font-size: 12.5px; font-family: inherit; outline: none;
}
.av61-inp:focus { border-color: rgba(140, 180, 255, .6); }
textarea.av61-inp { height: auto; min-height: 76px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
select.av61-inp { cursor: pointer; }
.av61-field { margin-bottom: 12px; }
.av61-label { display: block; margin-bottom: 5px; font-size: 12px; color: #93a4cc; }
.av61-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.av61-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* 流水线 */
.av61-flow { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding: 6px 0 12px; }
.av61-node {
  flex: 1 0 148px; padding: 14px 12px; border-radius: 11px; text-align: center;
  background: linear-gradient(150deg, rgba(45, 60, 118, .9), rgba(20, 27, 58, .9));
  border: 1px solid rgba(96, 150, 255, .3);
}
.av61-node b { display: block; font-size: 13px; color: #eaf1ff; }
.av61-node span { display: block; margin-top: 5px; font-size: 11.5px; color: #8fa0c8; }
.av61-node.run { border-color: rgba(34, 211, 238, .7); box-shadow: 0 0 0 1px rgba(34, 211, 238, .3); }
.av61-arrow { align-self: center; color: #5b8cff; font-size: 17px; }

/* 日志流 */
.av61-log {
  height: 260px; overflow-y: auto; padding: 12px 14px; border-radius: 10px;
  background: rgba(5, 9, 22, .86); border: 1px solid rgba(96, 150, 255, .2);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.85;
}
.av61-log div { color: #8ce9c8; }
.av61-log div.warn { color: #fbbf24; }
.av61-log div.err { color: #fca5a5; }
.av61-log div.info { color: #9ecbff; }

/* 条形 */
.av61-barrow { margin-bottom: 11px; }
.av61-barhd { display: flex; justify-content: space-between; font-size: 12px; color: #a9b7d8; margin-bottom: 5px; }
.av61-bar { height: 8px; border-radius: 5px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.av61-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #22d3ee, #5b8cff); }
.av61-w1 i { width: 10%; } .av61-w2 i { width: 20%; } .av61-w3 i { width: 30%; } .av61-w4 i { width: 40%; }
.av61-w5 i { width: 50%; } .av61-w6 i { width: 60%; } .av61-w7 i { width: 70%; } .av61-w8 i { width: 80%; }
.av61-w9 i { width: 90%; } .av61-w10 i { width: 100%; }

/* 弹窗 */
.av61-mask { position: fixed; inset: 0; z-index: 1200; background: rgba(4, 7, 18, .68); display: flex; align-items: center; justify-content: center; padding: 20px; }
.av61-modal { width: min(560px, 94vw); max-height: 88vh; overflow: auto; border-radius: 14px; background: linear-gradient(160deg, #1b2347, #111631); border: 1px solid rgba(96, 150, 255, .3); }
.av61-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(96, 150, 255, .16); }
.av61-modal-hd h3 { margin: 0; font-size: 15px; color: #eaf1ff; }
.av61-modal-hd span { cursor: pointer; color: #93a4cc; font-size: 20px; line-height: 1; }
.av61-modal-bd { padding: 18px 20px; }
.av61-modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(96, 150, 255, .16); }

/* 轻提示 */
.av61-toast {
  position: fixed; left: 50%; top: 78px; transform: translateX(-50%);
  padding: 11px 22px; border-radius: 10px; font-size: 13.5px; color: #fff; z-index: 1500;
  background: rgba(59, 130, 246, .96); box-shadow: 0 12px 36px rgba(0, 0, 0, .45); max-width: 82vw; text-align: center;
}
.av61-toast.ok { background: rgba(16, 185, 129, .96); }
.av61-toast.err { background: rgba(239, 68, 68, .96); }

@media (max-width: 1280px) { .av61-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .av61-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av61-grid2, .av61-grid3 { grid-template-columns: 1fr; }
  .av61-card { overflow-x: auto; }
}

.av61-mt16 { margin-top: 16px; }
.av61-mt12 { margin-top: 12px; }
