/* AGU 交易终端 v1 - 样式表 */

body { background-color: #1a1d21; font-size: 15px; }

/* ===== 检查单提醒横幅 ===== */
.checklist-banner {
  background: linear-gradient(135deg, #dc3545, #c0392b);
  color: white;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
  animation: banner-pulse 2s infinite;
}

.checklist-banner:hover {
  background: linear-gradient(135deg, #e74c3c, #dc3545);
}

.checklist-banner-text {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-banner-hint {
  font-size: 12px;
  opacity: 0.85;
}

@keyframes banner-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

/* ===== 顶部导航 ===== */
.topbar {
  background: #212529; border-bottom: 1px solid #373b3e;
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.topbar-brand { font-size: 18px; font-weight: 700; color: #0dcaf0; letter-spacing: 3px; }

/* ===== 布局 ===== */
.layout { display: flex; min-height: calc(100vh - 57px); }

.sidebar {
  width: 300px; min-width: 300px; background: #212529;
  border-right: 1px solid #373b3e; padding: 20px;
  overflow-y: auto; position: sticky; top: 57px; height: calc(100vh - 57px);
}

.main-content { flex: 1; padding: 24px; overflow-x: hidden; }

/* ===== 卡片 ===== */
.agu-card { background: #212529; border: 1px solid #373b3e; border-radius: 8px; margin-bottom: 24px; }
.agu-card-header {
  padding: 14px 20px; border-bottom: 1px solid #373b3e;
  display: flex; align-items: center; justify-content: space-between;
}
.agu-card-title { font-size: 15px; font-weight: 600; color: #dee2e6; display: flex; align-items: center; gap: 8px; }
.agu-card-body { padding: 20px; }

/* ===== 大环境 ===== */
.env-item { background: #2b3035; border-radius: 8px; padding: 16px 20px; }
.env-label { font-size: 12px; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.env-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.env-sub { font-size: 12px; color: #6c757d; margin-top: 4px; }
.jianyi-bar {
  background: rgba(13,202,240,0.1); border-left: 4px solid #0dcaf0;
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  color: #0dcaf0; font-size: 14px; margin-top: 16px;
}

/* ===== 板块排行 ===== */
.bankuai-item {
  display: flex; align-items: center; padding: 8px 12px;
  border-radius: 6px; margin-bottom: 4px; background: #2b3035;
}
.bankuai-rank { width: 24px; font-size: 12px; color: #6c757d; font-weight: 600; }
.bankuai-name { flex: 1; font-size: 13px; }
.bankuai-lead { font-size: 11px; color: #6c757d; margin-right: 10px; }
.bankuai-pct { font-size: 13px; font-weight: 600; min-width: 55px; text-align: right; }

/* ===== 分析记录 ===== */
.fenxi-list { display: flex; flex-direction: column; gap: 10px; }
.fenxi-item {
  background: #2b3035; border-radius: 8px; padding: 14px 16px;
  border-left: 3px solid #373b3e; position: relative;
}
.fenxi-item.leixing-kaipan { border-left-color: #0dcaf0; }
.fenxi-item.leixing-panzhong { border-left-color: #ffc107; }
.fenxi-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fenxi-date { font-size: 12px; color: #6c757d; }
.fenxi-time { font-size: 12px; color: #6c757d; }
.fenxi-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.fenxi-content { font-size: 14px; line-height: 1.7; color: #adb5bd; white-space: pre-wrap; }
.fenxi-del {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: #495057;
  cursor: pointer; font-size: 13px; padding: 2px 6px;
  border-radius: 4px; transition: all 0.15s;
}
.fenxi-del:hover { color: #dc3545; background: rgba(220,53,69,0.1); }

/* ===== 热力图 ===== */
.heatmap-wrap { overflow-x: auto; margin-top: 8px; }
.heatmap-table { border-collapse: separate; border-spacing: 2px; min-width: 100%; }
.heatmap-table th {
  font-size: 11px; color: #6c757d; text-align: center;
  padding: 4px 6px; white-space: nowrap; font-weight: 400;
  background: transparent; border: none;
}
.heatmap-table td {
  width: 52px; min-width: 52px; height: 32px;
  text-align: center; font-size: 11px; font-weight: 500;
  border-radius: 3px; cursor: default;
  white-space: nowrap; padding: 0 2px;
}
.heatmap-table td:hover { opacity: 0.8; }
.heatmap-name {
  font-size: 12px; color: #adb5bd; text-align: right;
  padding-right: 10px !important; white-space: nowrap;
  width: 90px; min-width: 90px; background: transparent !important;
}

/* ===== 分时图 ===== */
.chart-wrap { position: relative; height: 120px; margin-top: 8px; }
canvas#indexChart { width: 100% !important; height: 120px !important; }

/* ===== 检查单 ===== */
.check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #373b3e;
  cursor: pointer; user-select: none;
}
.check-item:last-child { border-bottom: none; }
.check-box {
  width: 20px; height: 20px; border: 2px solid #495057; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; font-size: 12px;
}
.check-item.done .check-box { background: #198754; border-color: #198754; color: white; }
.check-item.done .check-label { color: #6c757d; text-decoration: line-through; }
.check-label { font-size: 14px; color: #dee2e6; }

/* ===== 侧边栏 ===== */
.sidebar-title {
  font-size: 11px; font-weight: 600; color: #6c757d;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #373b3e;
}
.sidebar-section { margin-bottom: 24px; }

/* ===== 统计 ===== */
.stat-box { background: #2b3035; border-radius: 8px; padding: 16px 20px; text-align: center; }
.stat-label { font-size: 12px; color: #6c757d; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; }

.month-box { background: #2b3035; border-radius: 8px; padding: 14px 16px; }
.month-label { font-size: 12px; color: #6c757d; margin-bottom: 4px; }
.month-pnl { font-size: 20px; font-weight: 700; }
.month-count { font-size: 12px; color: #6c757d; margin-top: 2px; }

/* ===== 通用 ===== */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #198754;
  display: inline-block; animation: blink 2s infinite; margin-right: 4px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.row-alarm { animation: alarm 1s infinite; }
@keyframes alarm { 0%,100%{background:rgba(220,53,69,0.1)} 50%{background:rgba(220,53,69,0.25)} }

.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #6c757d; font-weight: 500; white-space: nowrap; }
.table td { font-size: 14px; vertical-align: middle; white-space: nowrap; }

.toast-box { position: fixed; bottom: 24px; right: 24px; z-index: 9999; min-width: 200px; }
.section-sub { font-size: 11px; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
