/* ==================== 移动端适配 ==================== */

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 57px);
        height: calc(100dvh - 57px);
    }

    .sidebar {
        display: none;
    }

    /* 移动端顶部进度条 */
    .mobile-progress {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
    }

    .mobile-step-dot {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 600;
        border: 2px solid var(--border);
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .mobile-step-dot.active {
        border-color: var(--primary);
        background: var(--primary);
        color: white;
    }

    .mobile-step-dot.completed {
        border-color: var(--success);
        background: var(--success);
        color: white;
    }

    .mobile-progress-line {
        width: 16px;
        height: 2px;
        background: var(--border);
        flex-shrink: 0;
    }

    .mobile-progress-line.completed {
        background: var(--success);
    }

    /* 问卷 */
    .questionnaire-container {
        padding: 20px 16px;
    }

    .option-group {
        flex-direction: column;
    }

    .option-item {
        width: 100%;
    }

    .row-input {
        flex-wrap: wrap;
    }

    /* 聊天 */
    .chat-container {
        padding: 16px;
    }

    .message { max-width: 92%; }

    .input-area {
        padding: 12px 16px;
    }

    /* 报告 */
    .report-page {
        padding: 20px 16px;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-meta {
        flex-direction: column;
        gap: 4px;
    }

    /* Header */
    .header-title {
        font-size: 15px;
    }

    .header-code {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Score table */
    .score-table, .behavior-table {
        font-size: 12px;
    }

    .score-table td:first-child, .behavior-table td:first-child {
        max-width: 140px;
    }
}

@media (min-width: 769px) {
    .mobile-progress {
        display: none !important;
    }
}
