/* ========================================
   AI短线交易系统 - 样式文件 v2
   新增: 调试面板 + 轮询提示
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-main: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-button: #2a2a3e;
  --bg-button-hover: #3a3a5e;
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #666;
  --color-accent: #1e90ff;
  --color-accent-secondary: #4169e1;
  --color-success: #00d4aa;
  --color-warning: #ffa500;
  --color-danger: #ff4757;
  --color-up: #ff4757;
  --color-down: #00d4aa;
  --border-color: #2a2a3e;
  --gradient-active: linear-gradient(135deg, #1e90ff, #4169e1);
  --font-main: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
}
html, body { height: 100%; font-family: var(--font-main); font-size: 14px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-main); overflow: hidden; }

/* 主容器 */
.container { display: flex; flex-direction: column; height: 100vh; max-width: 1920px; margin: 0 auto; padding: 0 20px; }
.top-section { flex-shrink: 0; height: 12vh; min-height: 90px; max-height: 120px; display: flex; flex-direction: column; justify-content: center; padding-top: 0; }

/* 标题栏 */
.header { margin: 0; padding: 10px 0 0.5vh 0; text-align: center; background: transparent; }
.header h1 { font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 0 20px rgba(30,144,255,0.5); animation: fadeInUp 0.6s ease-out; margin: 0; }
.header .subtitle { margin: 3px 0 0; font-size: 12px; color: var(--text-secondary); display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.header .subtitle span { display: inline-flex; align-items: center; gap: 6px; }
.header .subtitle i { color: var(--color-accent); font-size: 12px; }
.header .subtitle .separator { color: var(--text-muted); margin: 0 2px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* 导航栏 */
.navbar { display: flex; justify-content: space-between; align-items: center; margin: 3px 0; padding: 3px 0; gap: 15px; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-button { padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text-primary); background-color: var(--bg-button); border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition-normal) ease; white-space: nowrap; }
.nav-button:hover { background-color: var(--bg-button-hover); }
.nav-button.active { background: var(--gradient-active); color: #fff; box-shadow: 0 4px 15px rgba(30,144,255,0.3); }
.date-picker-container { display: flex; align-items: center; gap: 6px; }
.date-nav-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-primary); background-color: var(--bg-button); border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition-normal) ease; }
.date-nav-btn:hover { background-color: var(--bg-button-hover); }
.date-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.date-controls { display: flex; align-items: center; gap: 0; margin-left: auto; }
.date-picker { background: transparent; border: 0; border-radius: 0; padding: 2px 10px; color: #e9ecef; font-size: 12px; padding-right: 20px; position: relative; font-family: var(--font-mono); }
.date-picker::-webkit-clear-button, .date-picker::-webkit-inner-spin-button { display: none; }
.date-picker::-webkit-calendar-picker-indicator { position: absolute; right: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.date-input { padding: 6px 10px; font-size: 12px; font-family: var(--font-mono); color: var(--text-primary); background-color: transparent; border: 0; border-radius: 0; outline: none; cursor: pointer; }
.date-input:hover, .date-picker:hover { opacity: 0.8; }
.date-input:focus, .date-picker:focus { outline: none; }
.date-input:disabled, .date-picker:disabled { opacity: 0.3; cursor: not-allowed; }
.date-input.error, .date-picker.error { animation: errorFlash 0.5s ease; border-color: var(--color-danger); }
@keyframes errorFlash { 0%,100% { border-color: var(--color-danger); } 50% { border-color: var(--border-color); } }

/* 内容区 */
.content { flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 20px; background-color: var(--bg-card); border-radius: 12px; margin: 15px 0; }
.content::-webkit-scrollbar { display: none; }

/* 骨架屏 */
.skeleton { padding: 20px; }
.skeleton-line { height: 16px; background: linear-gradient(90deg,#2a2a3e 25%,#3a3a5e 50%,#2a2a3e 75%); background-size: 200% 100%; border-radius: 4px; margin-bottom: 12px; animation: skeleton-loading 1.5s infinite; }
.skeleton-line:nth-child(1) { width: 80%; }
.skeleton-line:nth-child(2) { width: 60%; }
.skeleton-line:nth-child(3) { width: 70%; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 等待动画 */
.waiting-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-secondary); }
.waiting-spinner { width: 50px; height: 50px; border: 3px solid var(--bg-button); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-text { font-size: 16px; animation: textBlink 1.5s ease-in-out infinite; }
@keyframes textBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 报告内容 */
.report-content { color: var(--text-primary); line-height: 1.8; }
.report-content h2 { font-size: 20px; font-weight: 600; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); color: #fff; }
.report-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 10px; color: var(--color-accent); }
.report-content p { margin-bottom: 12px; }
.report-content strong { color: #fff; font-weight: 600; }
.report-content em { color: var(--text-secondary); font-style: italic; }
.report-content table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 13px; }
.report-content th, .report-content td { padding: 5px 6px; text-align: left; border: 1px solid var(--border-color); }
.report-content th { background-color: var(--bg-button); font-weight: 600; color: #fff; }
.report-content tr { cursor: pointer; transition: background-color 0.2s ease; }
.report-content tr:hover { background-color: rgba(30,144,255,0.08); }
.report-content ul, .report-content ol { margin: 12px 0; padding-left: 25px; }
.report-content li { margin-bottom: 8px; }
.stock-code { color: var(--color-accent); cursor: pointer; font-family: var(--font-mono); }
.stock-code:hover { text-decoration: underline; }
.up { color: var(--color-up); font-weight: 500; }
.down { color: var(--color-down); font-weight: 500; }
.risk-low { color: var(--color-success); }
.risk-medium { color: var(--color-warning); }
.risk-high { color: var(--color-danger); }
.alert { padding: 12px 15px; border-radius: 8px; margin: 15px 0; }
.alert-warning { background-color: rgba(255,165,0,0.1); border-left: 3px solid var(--color-warning); color: var(--color-warning); }
.alert-info { background-color: rgba(30,144,255,0.1); border-left: 3px solid var(--color-accent); color: var(--color-accent); }
.alert strong { color: inherit; }

/* 底部栏 */
.footer { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); }
.version { font-family: var(--font-mono); }

/* 报告扩展样式 */
.card { background: rgba(26,26,46,0.6); border-radius: 12px; padding: 3px; margin-bottom: 3px; border: 1px solid rgba(255,255,255,0.05); }
.card-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 3px; }
.stat-box { background: rgba(42,42,62,0.5); border-radius: 8px; padding: 3px; text-align: center; }
.stat-box .label { font-size: 12px; color: #888; margin-bottom: 3px; }
.stat-box .value { font-size: 18px; font-weight: 600; color: #e0e0e0; font-family: var(--font-mono); }
.indicator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 3px; }
.indicator { background: rgba(42,42,62,0.4); border-radius: 6px; padding: 3px; text-align: center; }
.indicator .k { font-size: 11px; color: #888; margin-bottom: 2px; }
.indicator .v { font-size: 14px; font-weight: 600; font-family: var(--font-mono); }
.sector-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sector-row:last-child { border-bottom: none; }
.sector-rank { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#ffd700,#ffa502); color: #0f0f1a; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sector-info { flex: 1; }
.sector-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sector-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.tag-main { background: linear-gradient(135deg,rgba(255,71,87,0.2),rgba(255,215,0,0.2)); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.tag-sub { background: rgba(0,212,255,0.15); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.tag-watch { background: rgba(130,100,255,0.15); color: #8264ff; border: 1px solid rgba(130,100,255,0.3); }
.hot-bar-wrap { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.hot-bar-fill { height: 100%; border-radius: 2px; }
.sector-meta { font-size: 12px; color: #aaa; line-height: 1.8; }
.dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.emotion-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.emotion-退潮期 { background: rgba(255,71,87,0.15); color: #ff4757; border: 1px solid rgba(255,71,87,0.3); }
.emotion-上升期 { background: rgba(0,212,170,0.15); color: #00d4aa; border: 1px solid rgba(0,212,170,0.3); }
.dragon-card { background: rgba(42,42,62,0.4); border-radius: 10px; padding: 16px; margin-bottom: 12px; border: 1px solid rgba(255,215,0,0.1); }
.dragon-name { font-size: 15px; font-weight: 600; color: #ffd700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dragon-meta { font-size: 12px; color: #aaa; line-height: 1.8; }
.dragon-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.tag-dragon1 { background: rgba(255,215,0,0.2); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.tag-dragon2 { background: rgba(0,212,255,0.2); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.tag-hot { background: rgba(255,71,87,0.2); color: #ff4757; border: 1px solid rgba(255,71,87,0.3); }
.tag-real { background: rgba(0,212,170,0.2); color: #00d4aa; border: 1px solid rgba(0,212,170,0.3); }
.signal-box, .signal-avoid, .signal-sell { background: rgba(42,42,62,0.4); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.signal-box { border-left: 3px solid #2ed573; }
.signal-avoid { border-left: 3px solid #ff4757; background: rgba(255,71,87,0.05); }
.signal-sell { border-left: 3px solid #ffa502; background: rgba(255,165,0,0.05); }
.signal-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.signal-detail { font-size: 12px; color: #aaa; line-height: 1.7; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 12px; }
.rule-card { background: rgba(42,42,62,0.4); border-radius: 8px; padding: 14px; }
.stars { color: #ffd700; font-family: var(--font-mono); font-size: 11px; }
.neutral { color: #aaa; font-weight: 500; }
.analysis-text { font-size: 13px; line-height: 1.9; color: #ccc; }
.meta-time { font-size: 12px; color: #888; text-align: center; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.subtitle { font-size: 13px; color: #888; margin-top: 6px; }

/* 任务状态清单 */
.no-report-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; color: var(--text-secondary); }
.no-report-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.no-report-text { font-size: 16px; color: #888; }
.task-status-container { display: flex; flex-direction: column; align-items: center; padding: 30px 20px; width: 100%; }
.task-status-header { font-size: 18px; font-weight: bold; margin: 20px 0; color: #fff; text-align: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.task-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 600px; }
.task-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(42,42,62,0.5); border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.2s ease; }
.task-item:hover { transform: translateX(4px); }
.task-time { flex-shrink: 0; width: 60px; padding: 6px 12px; background: #1a1a2e; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #e0e0e0; text-align: center; }
.task-name { flex: 1; font-size: 15px; font-weight: 500; color: #fff; }
.task-status { flex-shrink: 0; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; text-align: center; min-width: 70px; }
.task-status-completed { background: linear-gradient(135deg,#00d4aa,#00b894); color: #fff; }
.task-status-running { background: linear-gradient(135deg,#1e90ff,#4169e1); color: #fff; }
.task-status-waiting { background: #3a3a4e; color: #888; }
.task-status-holiday { background: rgba(150,150,150,0.3); color: rgba(150,150,150,0.8); }
.task-running { position: relative; overflow: hidden; border: 1px solid rgba(30,144,255,0.3); }
.task-running::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg,transparent 0%,rgba(30,144,255,0.1) 25%,rgba(30,144,255,0.2) 50%,rgba(30,144,255,0.1) 75%,transparent 100%); animation: scan-line 2s linear infinite; pointer-events: none; }
@keyframes scan-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.task-running .task-status { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 5px rgba(30,144,255,0.3); } 50% { box-shadow: 0 0 15px rgba(30,144,255,0.6); } }

/* 轮询提示 */
.polling-hint { margin-top: 20px; text-align: center; font-size: 13px; color: #888; display: flex; align-items: center; justify-content: center; gap: 8px; }
.polling-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1e90ff; animation: polling-blink 1.5s ease-in-out infinite; }
@keyframes polling-blink { 0%,100% { opacity: 1; box-shadow: 0 0 4px rgba(30,144,255,0.6); } 50% { opacity: 0.3; box-shadow: none; } }

/* AI选股表格 */
#reportContent * { margin: 0px; }
.monitor-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.monitor-header h3 { font-size: 16px; color: #e0e0e0; display: flex; align-items: center; gap: 8px; }
.monitor-info { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.stock-count { color: #888; }
.monitor-table-wrapper { overflow-x: auto; overflow-y: auto; max-height: calc(100vh - 180px); scrollbar-width: thin; scrollbar-color: #444 #1a1a1a; }
.monitor-table-wrapper::-webkit-scrollbar { width: 5px; height: 5px; }
.monitor-table-wrapper::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 3px; }
.monitor-table-wrapper::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.monitor-table-wrapper::-webkit-scrollbar-thumb:hover { background: #555; }
.monitor-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.monitor-table thead { background: rgba(255,255,255,0.05); }
.monitor-table th { padding: 0 10px; height: 20px; text-align: left; font-weight: 600; color: #888; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; position: sticky; top: 0; z-index: 2; background: var(--bg-card); }
.monitor-table tr { height: 20px; }
.monitor-table td { padding: 2px; margin: 2px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #e0e0e0; white-space: nowrap; }
.name-cell { min-width: 80px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.monitor-row { transition: background-color 0.2s ease; cursor: pointer; }
.monitor-row:hover { background-color: #2a2a2a; }
.monitor-row.selected { background-color: #800080 !important; }
.type-cell { color: #ffa502; font-weight: 500; }
.code-cell { color: #1e90ff; font-family: var(--font-mono); cursor: pointer; }
.name-cell { color: #e0e0e0; }
.change-cell.up { color: #ff4757; }
.change-cell.down { color: #00d4aa; }
.netflow-cell { text-align: right; font-family: var(--font-mono); }
.netflow-cell.up { color: #ff4757; }
.netflow-cell.down { color: #00d4aa; }
.strategy-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aaa; font-size: 12px; }
.probability-cell { display: flex; align-items: center; gap: 6px; }
.probability-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; min-width: 45px; }
.probability-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.probability-fill.high { background: linear-gradient(90deg,#ff4d4f,#ff7875); }
.probability-fill.medium { background: linear-gradient(90deg,#fa8c16,#ffa940); }
.probability-fill.low { background: linear-gradient(90deg,#52c41a,#73d13d); }
.probability-value { font-weight: bold; min-width: 36px; text-align: right; font-size: 12px; }
.probability-value.high { color: #ff4d4f; }
.probability-value.medium { color: #fa8c16; }
.probability-value.low { color: #52c41a; }
.no-data-message { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #666; }
.no-data-message i { font-size: 48px; margin-bottom: 16px; color: #444; }
.no-data-message p { margin: 4px 0; }
.no-data-message .hint { font-size: 12px; color: #555; }
.sector-cell { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85em; color: #aaa; }
.emotion-cell { text-align: center; }
.emotion-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; font-weight: 500; }
.emotion-consistent { background: rgba(0,255,136,0.15); color: #00ff88; border: 1px solid rgba(0,255,136,0.3); }
.emotion-weak2strong { background: rgba(0,212,255,0.15); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.emotion-divergent { background: rgba(255,165,2,0.15); color: #ffa502; border: 1px solid rgba(255,165,2,0.3); }
.emotion-stable { background: rgba(150,150,150,0.15); color: #bbb; border: 1px solid rgba(150,150,150,0.3); }

/* ========== 调试面板 ========== */
.debug-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  border-top: 2px solid #ff4757;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 35vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.debug-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #0f0f1a;
  border-bottom: 1px solid #2a2a3e;
  flex-shrink: 0;
}
.debug-title {
  color: #ff4757;
  font-weight: 600;
  font-size: 13px;
}
.debug-count {
  color: #ffa502;
  font-size: 11px;
  margin-left: auto;
}
.debug-btn {
  padding: 2px 10px;
  background: #2a2a3e;
  color: #e0e0e0;
  border: 1px solid #3a3a5e;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--font-mono);
}
.debug-btn:hover { background: #3a3a5e; }
.debug-close { color: #ff4757; border-color: #ff4757; }
.debug-close:hover { background: rgba(255,71,87,0.2); }
.debug-log {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
  max-height: 30vh;
}
.debug-line {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  word-break: break-all;
  line-height: 1.5;
}
.debug-error { color: #ff4757; }
.debug-reject { color: #ff6b81; }
.debug-warn { color: #ffa502; }
.debug-info { color: #70a1ff; }
.debug-stack { color: #888; font-size: 11px; padding-left: 16px; }

/* ========================================
   午盘风控报告样式 (midday_risk_report)
   与 review 报告共享 .report-content 容器
   ======================================== */
.report-content .data-dashboard { background:#0f141c; border-radius:20px; padding:18px; margin-bottom:24px; border:1px solid #28323f; display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; }
.report-content .data-item { display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; border-bottom:1px dashed #1f2833; font-size:14px; }
.report-content .data-item:last-child { border-bottom:none; }
.report-content .data-label { color:#8699ad; letter-spacing:0.3px; font-weight:450; }
.report-content .data-value { font-weight:600; font-size:15px; color:#f0f4fa; background:#1c2632; padding:0 10px; border-radius:30px; line-height:1.7; letter-spacing:0.2px; white-space:nowrap; }
.report-content .data-value.green { color:#7ddfa6; background:#14261e; }
.report-content .data-value.red { color:#f78b8b; background:#261818; }
.report-content .data-value.yellow { color:#f5c97a; background:#241f14; }
.report-content .badge { display:inline-block; font-size:11px; font-weight:600; padding:0 8px; border-radius:40px; line-height:1.8; background:#1f2937; color:#b4c8e0; }
.report-content .badge.red { background:#3d1e1e; color:#f6a1a1; }
.report-content .badge.yellow { background:#3d311a; color:#f3d37c; }
.report-content .badge.green { background:#14362a; color:#7cdb9e; }
.report-content .section-title { font-size:18px; font-weight:600; letter-spacing:-0.3px; margin:26px 0 14px; border-left:5px solid #3b6ef0; padding-left:14px; color:#dce6f2; display:flex; align-items:center; gap:10px; }
.report-content .section-title .sub { font-size:13px; font-weight:400; color:#7a8fa5; margin-left:4px; }
.report-content .rpt-card { background:#10171f; border-radius:18px; padding:16px 14px; margin-bottom:16px; border:1px solid #232d3a; box-shadow:0 4px 8px rgba(0,0,0,0.3); }
.report-content .table-wrap { overflow-x:auto; margin:6px 0 4px; border-radius:14px; }
.report-content .rpt-card table { width:100%; border-collapse:collapse; font-size:13px; min-width:580px; margin:0; }
.report-content .rpt-card th { text-align:left; color:#889fb8; font-weight:500; padding:10px 8px 6px; border-bottom:1px solid #26303e; font-size:12px; letter-spacing:0.4px; text-transform:uppercase; background:#0d131b; }
.report-content .rpt-card td { padding:10px 8px; border-bottom:1px solid #1d2632; vertical-align:middle; color:#d3deec; }
.report-content .rpt-card tr:last-child td { border-bottom:none; }
.report-content .highlight-red { color:#f78b8b; font-weight:500; }
.report-content .highlight-green { color:#7ddfa6; }
.report-content .highlight-yellow { color:#f5c97a; }
.report-content .checklist { display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; margin-top:6px; }
.report-content .checklist-item { display:flex; align-items:center; gap:8px; font-size:13.5px; padding:5px 0; border-bottom:1px dotted #1b2531; }
.report-content .checklist-item .box { width:18px; height:18px; border:2px solid #3b4d62; border-radius:6px; background:#0e151e; display:inline-flex; align-items:center; justify-content:center; font-size:14px; color:#60b0f4; flex-shrink:0; }
.report-content .checklist-item .box.checked { background:#1b3d5a; border-color:#3b8cff; }
.report-content .checklist-item .box.cross { color:#d97a7a; border-color:#7a4a4a; }
.report-content .risk-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; margin-top:6px; }
.report-content .quick-ref { background:#0d141e; border-radius:18px; padding:14px 16px; margin-top:16px; border:1px solid #28323f; display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px 10px; font-size:13px; }
.report-content .quick-ref .qr-item { display:flex; flex-direction:column; background:#121a24; padding:6px 12px; border-radius:40px; border-left:3px solid #3b6ef0; }
.report-content .qr-item .label { font-size:10px; color:#6e859d; text-transform:uppercase; letter-spacing:0.4px; }
.report-content .qr-item .value { font-weight:600; color:#eef4fc; }
.report-content .footer-note { margin-top:28px; border-top:1px solid #232e3c; padding-top:18px; display:flex; flex-wrap:wrap; justify-content:space-between; font-size:13px; color:#6e859d; }
@media(max-width:600px) {
  .report-content .data-dashboard { grid-template-columns:1fr; gap:6px; }
  .report-content .checklist { grid-template-columns:1fr; }
  .report-content .risk-grid { grid-template-columns:1fr; }
  .report-content .quick-ref { grid-template-columns:1fr 1fr; }
  .report-content .section-title { font-size:16px; }
}

/* 龙标记 / 主线标记 */
.dragon-badge { background: #ff6b35; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.main-badge { background: #00d4aa; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-left: 4px; }
/* 连板梯队 */
.ladder-group { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ladder-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ladder-stock { padding: 6px 0; display: flex; justify-content: space-between; align-items: center; }
.stock-name { font-size: 13px; color: #e0e6ed; }
.stock-note { font-size: 12px; color: #8892a4; }
/* 明日观察池 */
.watch-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.watch-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.watch-code { font-size: 12px; color: #8892a4; font-family: var(--font-mono); }
.watch-name { font-size: 13px; color: #e0e6ed; font-weight: 600; }
.watch-note { font-size: 12px; color: #8892a4; }
/* 信号框 */
.signal-box { border-left: 3px solid #00ff88; padding: 10px 14px; margin: 8px 0; background: rgba(0,255,136,0.06); border-radius: 0 8px 8px 0; }
.signal-avoid { border-left: 3px solid #ffa502; padding: 10px 14px; margin: 8px 0; background: rgba(255,165,2,0.06); border-radius: 0 8px 8px 0; }
.signal-sell { border-left: 3px solid #ff4757; padding: 10px 14px; margin: 8px 0; background: rgba(255,71,87,0.06); border-radius: 0 8px 8px 0; }
/* 情绪/风控徽章 */
.emotion-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.emotion-high { background: rgba(255,71,87,0.2); color: #ff4757; border: 1px solid rgba(255,71,87,0.3); }
.emotion-mid { background: rgba(255,165,2,0.2); color: #ffa502; border: 1px solid rgba(255,165,2,0.3); }
.emotion-low { background: rgba(46,213,115,0.2); color: #2ed573; border: 1px solid rgba(46,213,115,0.3); }
.emotion-ice { background: rgba(108,122,138,0.3); color: #6c7a8a; border: 1px solid rgba(108,122,138,0.4); }
/* 规则卡片 */
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-card { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; border-left: 3px solid rgba(255,255,255,0.2); }
.rule-card.danger { border-left-color: #ff4757; }
.rule-card.warning { border-left-color: #ffa502; }
.rule-card.safe { border-left-color: #2ed573; }
.rule-card.info { border-left-color: #00d4ff; }
.rule-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.rule-desc { font-size: 12px; color: #8892a4; line-height: 1.5; }
/* 进度条 */
.hot-bar-wrap { background: rgba(255,255,255,0.06); border-radius: 4px; height: 6px; margin-top: 4px; overflow: hidden; }
.hot-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.analysis-text { font-size: 13px; line-height: 1.8; color: #e0e0e0; }
.emoji { margin-right: 4px; }

/* 响应式 */
@media (max-width: 1600px) { .container { padding: 0 15px; } }
@media (max-width: 1366px) {
  .header h1 { font-size: 24px; }
  .nav-button { padding: 8px 16px; font-size: 13px; }
  .content { padding: 15px; }
  .report-content table { font-size: 12px; }
}
@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 15px; }
  .button-group { width: 100%; justify-content: center; }
  .nav-button { padding: 8px 12px; font-size: 12px; }
  .footer { flex-direction: column; gap: 5px; text-align: center; }
  .dual-col { grid-template-columns: 1fr; }
}
