*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Microsoft YaHei','Segoe UI',sans-serif;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100vh;padding:20px}
.container{max-width:1400px;margin:0 auto;background:#fff;border-radius:15px;box-shadow:0 10px 40px rgba(0,0,0,.1);overflow:hidden}
.header{background:linear-gradient(135deg,#1a3c6e,#2c5282);color:#fff;padding:22px 40px;text-align:center;border-bottom:4px solid #d4a853}
.header h1{font-size:28px;font-weight:700;letter-spacing:4px}
.header .subtitle{font-size:15px;margin-top:4px;opacity:.9}

.control-panel{padding:12px 25px;background:#f5f7fa;border-bottom:1px solid #e0e0e0;display:flex;flex-direction:column;gap:10px}
.ctrl-section{background:#fff;border-radius:8px;padding:10px 14px;border:1px solid #e8e8e8}
.ctrl-section h4{color:#1a3c6e;font-size:14px;margin-bottom:6px}
.ctrl-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.control-item{display:flex;align-items:center;gap:5px}
.control-item label{font-weight:600;color:#333;font-size:13px;white-space:nowrap}
.control-item select{padding:4px 8px;font-size:13px;border:2px solid #ccc;border-radius:5px;background:#fff;cursor:pointer}
.control-item select:focus{outline:none;border-color:#1a3c6e}
.control-item input[type="range"]{width:100px;height:4px;border-radius:2px;background:#ddd;outline:none;-webkit-appearance:none}
.control-item input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:#d4a853;cursor:pointer}
.tf-display{margin-top:6px;background:#f8fafc;padding:8px 12px;border-radius:6px;border:1px solid #e2e8f0;min-height:36px}
.tf-row{display:flex;gap:15px;align-items:center}
.tf-box{flex:1;background:#fff;padding:6px 10px;border-radius:5px;border:1px solid #e2e8f0}
.tf-label{font-weight:700;color:#1a3c6e;font-size:12px;margin-right:6px}

/* 多频分量 */
.multi-header{display:flex;align-items:center;gap:10px;margin-bottom:6px;font-size:13px;color:#555}
.btn{padding:4px 12px;border:none;border-radius:5px;font-size:12px;font-weight:600;cursor:pointer;background:#1a3c6e;color:#fff}
.btn:hover{background:#2c5282}
.btn-sm{padding:3px 10px;font-size:11px}
#compList{display:flex;flex-wrap:wrap;gap:6px;max-height:100px;overflow-y:auto}
.comp-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;padding:5px 8px;font-size:12px;display:flex;align-items:center;gap:4px}
.comp-item label{font-size:11px;color:#666}
.comp-item input[type="range"]{width:60px;height:3px}
.comp-item input[type="checkbox"]{width:13px;height:13px}
.comp-remove{background:none;border:none;color:#dc2626;cursor:pointer;font-size:14px}

/* 公式显示区 */
.formula-panel{margin:0 25px;padding:12px 18px;background:#f5f7fa;border-radius:8px;border:1px solid #e2e8f0}
.formula-row{display:flex;gap:20px;flex-wrap:wrap}
.formula-box{flex:1;min-width:300px;font-size:14px}
.formula-label{font-weight:700;color:#1a3c6e;margin-right:8px}

.charts-row{display:flex;gap:15px;padding:12px 25px}
.chart-box{flex:1;background:#f8f9fa;border-radius:10px;padding:12px}
.chart-box h3{color:#1a3c6e;font-size:16px;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #d4a853}
.chart-box canvas{width:100%;height:auto;background:#fff;border-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.06)}

.analysis-row{display:flex;gap:12px;padding:0 25px 15px}
.analysis-card{flex:1;background:#f8f9fa;border-radius:10px;padding:12px}
.analysis-card h4{color:#1a3c6e;font-size:14px;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid #e2e8f0}
.indicator-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ind-item{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:5px 8px;border-radius:4px;font-size:13px}
.ind-label{color:#666}
.ind-val{font-weight:700;color:#1a3c6e}
.analysis-card canvas{width:100%;height:auto;background:#fff;border-radius:4px}

.footer{padding:16px 40px 20px;text-align:center}
.footer-divider{height:3px;background:linear-gradient(90deg,transparent,#1a3c6e 20%,#d4a853 50%,#1a3c6e 80%,transparent);margin-bottom:10px}
.footer-text{color:#1a3c6e;font-size:15px;font-weight:500;letter-spacing:4px}

@media(max-width:900px){
    .charts-row,.analysis-row{flex-direction:column}
    .ctrl-row{flex-direction:column;align-items:flex-start}
}
