/* Q-Learning 页面样式 */
@import url('linear-regression.css');

.pixi-container {
    width: 320px;
    margin: 1rem auto;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
}

.pixi-container canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 480px) {
    .pixi-container { width: 100%; }
}

.echarts-container {
    width: 100%;
    height: 400px;
    margin: 1rem 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.q-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.q-table th, .q-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.q-table th { background: #f8f9fa; font-weight: 600; }
.q-table td:first-child { background: #f8f9fa; font-weight: 500; }

.manual-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.result-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.result-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.result-label { font-size: 0.85rem; color: #6c757d; margin-bottom: 0.25rem; }
.result-value { font-size: 1.1rem; font-weight: 600; color: #212529; font-family: 'Courier New', monospace; }
