/* ============================================================
   量化选股 - 样式
   ============================================================ */

.qs-page { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }
.qs-hero { margin-bottom: 20px; }
.qs-hero h1 { font-size: 28px; margin: 0 0 6px; }
.qs-hero p { color: var(--muted); font-size: 14px; margin: 0; }

.qs-config { padding: 22px; background: rgba(10,14,12,0.88); border: 1px solid rgba(59,130,246,.08); border-radius: 10px; margin-bottom: 16px; }
.qs-input-area { margin-bottom: 16px; }
.qs-input-area label { display: block; font-size: 13px; color: #94a3b8; font-weight: 600; margin-bottom: 6px; }
.qs-textarea { width: 100%; background: rgba(15,23,42,0.6); border: 1px solid rgba(59,130,246,.22); color: #f1f5f9; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: "Roboto Mono", monospace; resize: vertical; }
.qs-textarea:focus { border-color: #3b82f6; outline: none; }

.qs-factor-area { margin-bottom: 16px; }
.qs-factor-area label { display: block; font-size: 13px; color: #94a3b8; font-weight: 600; margin-bottom: 8px; }
.qs-factors { display: flex; flex-wrap: wrap; gap: 10px; }
.qs-factor { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; background: rgba(15,23,42,0.6); border: 1px solid rgba(59,130,246,.22); border-radius: 8px; cursor: pointer; transition: all .2s; }
.qs-factor:hover { border-color: #3b82f6; }
.qs-factor input { margin: 0; accent-color: #3b82f6; }
.qs-factor span { font-size: 13px; color: #e2e8f0; font-weight: 600; }
.qs-factor small { font-size: 11px; color: #64748b; }
.qs-factor:has(input:checked) { border-color: #3b82f6; background: rgba(59,130,246,0.12); }

.qs-run-btn { background: #3b82f6; color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s; }
.qs-run-btn:hover { background: #2563eb; }
.qs-run-btn:active { transform: scale(0.97); }

.qs-options { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.qs-opt-field { display: flex; flex-direction: column; gap: 5px; }
.qs-opt-field label { font-size: 13px; color: #94a3b8; font-weight: 600; }
.qs-opt-field select, .qs-opt-field input { background: rgba(15,23,42,0.6); border: 1px solid rgba(59,130,246,.22); color: #f1f5f9; border-radius: 6px; padding: 7px 10px; font-size: 14px; min-width: 100px; }
.qs-opt-field select:focus, .qs-opt-field input:focus { border-color: #3b82f6; outline: none; }

.qs-quick-fill { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.qs-quick-fill span { font-size: 13px; color: #64748b; }
.qs-quick-fill button { padding: 5px 12px; border: 1px solid rgba(59,130,246,.08); border-radius: 20px; background: transparent; color: #94a3b8; font-size: 12px; cursor: pointer; transition: all .2s; }
.qs-quick-fill button:hover { border-color: #3b82f6; color: #3b82f6; }

.qs-results { margin-top: 10px; }
.qs-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qs-results-header h3 { font-size: 18px; margin: 0; color: var(--ink); }
.qs-count { font-size: 13px; color: var(--muted); }
.qs-errors-note { font-size: 12px; color: #d28a16; margin-bottom: 10px; padding: 6px 10px; background: rgba(210,138,22,0.08); border-radius: 6px; }

.qs-table-wrap { background: rgba(10,14,12,0.88); border: 1px solid rgba(59,130,246,.08); border-radius: 10px; overflow: hidden; }
.qs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qs-table th { text-align: left; padding: 10px 12px; color: #94a3b8; font-weight: 600; border-bottom: 1px solid rgba(59,130,246,.22); position: sticky; top: 0; background: rgba(15,23,42,0.6); white-space: nowrap; }
.qs-table td { padding: 8px 12px; color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.qs-table tr:hover td { background: rgba(59,130,246,0.06); }
.qs-rank { font-weight: 700; font-size: 15px; color: #94a3b8; text-align: center; }
.qs-top .qs-rank { color: #3b82f6; font-size: 18px; }
.qs-name { font-weight: 600; }
.qs-pos { color: #ef4444; }
.qs-neg { color: #22c55e; }
.qs-score { font-weight: 700; font-size: 15px; color: #3b82f6; font-family: "Roboto Mono", monospace; }

.qs-disclaimer { margin-top: 20px; padding: 14px 16px; background: rgba(210,138,22,0.08); border: 1px solid rgba(210,138,22,0.2); border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; }
.qs-disclaimer i { width: 18px; height: 18px; color: #d28a16; flex-shrink: 0; margin-top: 1px; }
.qs-disclaimer p { margin: 0; font-size: 12px; color: #d28a16; line-height: 1.6; }

@media (max-width: 768px) {
  .qs-factors { flex-direction: column; }
  .qs-table { font-size: 12px; }
  .qs-table th, .qs-table td { padding: 6px 8px; }
}
