/* 学习数据看板 */
.ldash {
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.ldash .page-header h1 {
    color: #3A3038;
}

.ldash .live-badge {
    display: inline-block;
    background: #8E6C88;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.ldash-kpis {
    margin-bottom: 20px;
}

.ldash .stat-card::after {
    background: linear-gradient(to bottom, #8E6C88, #C4A8BE);
}

.ldash .stat-trend.up { color: #2e7d4f; }
.ldash .stat-trend.down { color: #c0392b; }
.ldash .stat-trend.flat { color: #8A7A85; font-size: 13px; }

.ldash-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ldash-chart-row-wide {
    grid-template-columns: 1fr;
}

.ldash-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 18px 8px;
    box-shadow: 0 2px 14px rgba(58, 48, 56, 0.06);
    border: 1px solid #EEE4EA;
}

.ldash-card h3 {
    margin: 0;
    font-size: 16px;
    color: #3A3038;
}

.ldash-hint {
    margin: 4px 0 8px;
    font-size: 12px;
    color: #8A7A85;
}

.ldash-chart {
    height: 280px;
}

.ldash-chart-heat {
    height: 220px;
}

.ldash-table-wrap {
    max-height: 280px;
    overflow: auto;
    margin-bottom: 12px;
}

.ldash-table-tall {
    max-height: 420px;
}

.ldash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ldash-table th,
.ldash-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #F3EAF0;
}

.ldash-table th {
    color: #8A7A85;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #fff;
}

.ldash-empty {
    color: #999;
    padding: 16px !important;
}

.ldash-table td.up { color: #2e7d4f; font-weight: 600; }
.ldash-table td.down { color: #c0392b; font-weight: 600; }

@media (max-width: 900px) {
    .stats-grid.ldash-kpis,
    .ldash-chart-row {
        grid-template-columns: 1fr;
    }
}
