        /* ==================== 额外内嵌样式 ==================== */

        /* 可访问性：linklike 按钮复位（div/span onclick 语义化改造配套，与 styles.css 同步） */
        .linklike, button.linklike {
            background: none;
            border: 0;
            padding: 0;
            font: inherit;
            color: inherit;
            cursor: pointer;
            text-align: left;
        }

        /* 导航步骤间箭头 */
        .top-nav .nav-step-sep {
            color: var(--color-border);
            font-size: 12px;
            user-select: none;
        }

        /* 难度筛选 chip 栏 */
        .difficulty-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }
        .difficulty-filter .chip {
            padding: 7px 18px;
            border: 1px solid var(--color-border);
            border-radius: 999px;
            background: var(--color-card);
            color: var(--color-text-muted);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.18s ease;
            user-select: none;
        }
        .difficulty-filter .chip:hover {
            border-color: var(--color-primary, #4a7cff);
            color: var(--color-text);
        }
        .difficulty-filter .chip.active {
            background: var(--color-primary, #4a7cff);
            border-color: var(--color-primary, #4a7cff);
            color: #fff;
            font-weight: 600;
        }

        /* ===== 任务中心：搜索 / 筛选 / 分页 ===== */
        .case-toolbar {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }
        .case-search {
            position: relative;
            flex: 1 1 280px;
            min-width: 220px;
        }
        .case-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            opacity: 0.6;
            pointer-events: none;
        }
        .case-search .form-input {
            padding-left: 34px;
            width: 100%;
        }
        .case-status-filter {
            flex: 0 0 auto;
        }
        .case-status-filter .form-select {
            min-width: 130px;
        }
        .case-cat-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        .case-cat-chip {
            padding: 6px 14px;
            border: 1px solid var(--color-border);
            border-radius: 999px;
            background: var(--color-card);
            color: var(--color-text-muted);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.18s ease;
            user-select: none;
        }
        .case-cat-chip:hover { border-color: var(--color-primary, #4a7cff); color: var(--color-text); }
        .case-cat-chip.active {
            background: var(--color-primary, #4a7cff);
            border-color: var(--color-primary, #4a7cff);
            color: #fff;
            font-weight: 600;
        }
        .case-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-top: 22px;
            padding-top: 16px;
            border-top: 1px solid var(--color-border-light, #eee);
        }
        .page-btn {
            padding: 8px 16px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            background: var(--color-card);
            color: var(--color-text);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .page-btn:hover:not(:disabled) { border-color: var(--color-primary, #4a7cff); color: var(--color-primary, #4a7cff); }
        .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .page-info { font-size: 13px; color: var(--color-text-muted); }

        /* 案例卡片：分类徽标 + 进度状态徽标 */
        .badge-category {
            background: rgba(74, 124, 255, 0.12);
            color: var(--color-primary, #4a7cff);
            border: 1px solid rgba(74, 124, 255, 0.25);
        }
        .case-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }
        .case-status-badge {
            flex: 0 0 auto;
            font-size: 12px;
            padding: 3px 11px;
            border-radius: 999px;
            font-weight: 600;
            white-space: nowrap;
        }
        .case-status-badge.status-not_started { background: rgba(120,120,120,0.12); color: #888; }
        .case-status-badge.status-in_progress { background: rgba(245, 166, 35, 0.15); color: #d98e1f; }
        .case-status-badge.status-completed { background: rgba(103, 194, 124, 0.15); color: #3a9d57; }

        .loading-inline {
            display: inline-block;
            width: 13px; height: 13px;
            border: 2px solid var(--color-border, #ddd);
            border-top-color: var(--color-primary, #4a7cff);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            vertical-align: -2px;
            margin-right: 6px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* 侧边栏分隔线与次级（非旅程）导航项 */
        .sidebar .nav-divider {
            height: 1px;
            background: var(--color-border-light, #eee);
            margin: 10px 14px;
        }
        .sidebar .nav-item-secondary .nav-num {
            color: var(--color-text-muted);
            font-weight: 400;
        }

        /* 用户头像下拉菜单（工业级） */
        .user-menu {
            position: relative;
            display: inline-flex;
            align-items: center;
        }
        .user-menu .user-avatar {
            cursor: pointer;
        }
        .user-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 180px;
            background: var(--color-card, #fff);
            border: 1px solid var(--color-border, #eee);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            z-index: 100000;
            overflow: hidden;
        }
        .user-dropdown.show { display: block; }
        .user-dropdown-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--color-border-light, #f0f0f0);
        }
        .user-dropdown-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-text);
        }
        .user-dropdown-role {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-top: 2px;
        }
        .user-dropdown-item {
            padding: 10px 16px;
            font-size: 14px;
            color: var(--color-text);
            cursor: pointer;
            transition: background 0.15s;
        }
        .user-dropdown-item:hover {
            background: var(--color-bg-hover, #f5f5f5);
        }
        .user-dropdown-danger {
            color: var(--color-danger, #e74c3c);
        }
        /* button 化菜单项：压过本文件 .linklike 复位（源顺序在此之后），保持与菜单头左对齐 */
        button.user-dropdown-item {
            display: block;
            width: 100%;
            padding: 10px 16px;
            font-size: 14px;
            font-weight: 400;
            color: var(--color-text);
        }
        button.user-dropdown-item.user-dropdown-danger {
            color: var(--color-danger, #e74c3c);
        }
        button.user-dropdown-item:hover {
            background: var(--color-bg-hover, #f5f5f5);
        }

        /* 案例大卡片 */
        .case-card {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-card);
            padding: 28px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 20px;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .case-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }
        .case-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 14px;
            gap: 16px;
        }
        .case-card-title-wrap {
            display: flex;
            align-items: baseline;
            gap: 10px;
            flex-wrap: wrap;
        }
        .case-card-num {
            font-size: 13px;
            color: var(--color-text-muted);
            font-weight: 500;
        }
        .case-card-title {
            font-size: 19px;
            font-weight: 600;
            color: var(--color-text);
        }
        .case-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }
        .case-desc {
            color: var(--color-text);
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 12px;
        }
        .case-goal {
            background: rgba(139, 111, 71, 0.06);
            border-left: 3px solid var(--color-primary);
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            color: var(--color-text);
            margin-bottom: 16px;
        }
        .case-goal .goal-label {
            font-weight: 600;
            color: var(--color-primary);
            margin-right: 6px;
        }

        /* 训练页面布局：单列聚焦（对话 + 输入），任务/情境/观察收进胶囊与抽屉 */
        .training-page {
            min-width: 0;
        }
        .training-topbar {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .training-topbar .progress-card {
            flex: 1 1 340px;
            margin-bottom: 0;
        }
        @media (max-width: 768px) {
            .training-topbar { gap: 10px; margin-bottom: 12px; }
            .training-topbar .progress-card { flex: 1 1 100%; }
        }

        /* 对话区滚动（高度模型：桌面由 .training-page 的 flex 决定；手机端整页滚动，见下方媒体查询） */
        .dialogue-scroll {
            overflow-y: auto;
            padding: 20px;
            background: var(--color-bg);
            border: 1px solid var(--color-border-light);
            border-radius: var(--radius-card);
            margin-bottom: 16px;
        }
        .dialogue-scroll::-webkit-scrollbar {
            width: 6px;
        }
        .dialogue-scroll::-webkit-scrollbar-thumb {
            background: var(--color-border);
            border-radius: 3px;
        }
        .dialogue-message .dialogue-bubble .branch-tag.tag-good { background: #6B8E7C; color: white; border: none; }
        .dialogue-message .dialogue-bubble .branch-tag.tag-average { background: #888; color: white; border: none; }
        .dialogue-message .dialogue-bubble .branch-tag.tag-weak { background: #C4785B; color: white; border: none; }
        .dialogue-message .dialogue-bubble .branch-tag.tag-off_track { background: #D4956A; color: white; border: none; }
        .role-opening-banner {
            background: rgba(139, 111, 71, 0.06);
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 16px;
            font-size: 13px;
            color: var(--color-text);
            border-left: 3px solid var(--color-primary);
        }
        .role-opening-banner .banner-label {
            font-weight: 600;
            color: var(--color-primary);
            margin-right: 6px;
        }

        /* 输入区 loading */
        .input-area.disabled {
            opacity: 0.6;
            pointer-events: none;
        }
        /* 提交态下"停止等待"仍需可点击（P-4 取消） */
        .input-area.disabled #cancel-submit-btn {
            pointer-events: auto;
        }
        .btn .loading {
            width: 14px;
            height: 14px;
            border-width: 2px;
            margin-right: 4px;
        }

        /* 提示方向浮层 */
        .hint-directions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .hint-direction-item {
            padding: 12px 14px;
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            color: var(--color-text);
        }
        .hint-direction-item:hover {
            border-color: var(--color-primary);
            background: rgba(139, 111, 71, 0.05);
        }
        .hint-direction-item .hint-num {
            display: inline-flex;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--color-primary);
            color: white;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            margin-right: 8px;
            font-weight: 600;
        }

        /* ==================== 案例简报卡（对标甲方 CaseCard） ==================== */
        .case-brief {
            display: grid;
            grid-template-columns: 1.25fr 0.75fr;
            gap: 24px;
            margin-top: 6px;
        }
        .case-brief-left {
            min-width: 0;
        }
        .brief-section {
            margin-bottom: 18px;
        }
        .brief-section:last-child {
            margin-bottom: 0;
        }
        .brief-title {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 13px;
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 9px;
        }
        .brief-title::before {
            content: '';
            width: 4px;
            height: 14px;
            background: var(--color-primary);
            border-radius: 2px;
        }
        .brief-text {
            font-size: 14px;
            line-height: 1.75;
            color: var(--color-text);
        }
        .brief-observations {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        .brief-obs-item {
            background: rgba(139, 111, 71, 0.05);
            border: 1px solid var(--color-border-light);
            border-radius: 10px;
            padding: 12px;
        }
        .brief-obs-item .obs-num {
            font-size: 11px;
            font-weight: 600;
            color: var(--color-primary);
        }
        .brief-obs-item .obs-text {
            margin-top: 6px;
            font-size: 13px;
            line-height: 1.7;
            color: var(--color-text);
        }
        .brief-goals {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .brief-goal-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 10px;
            padding: 10px 12px;
            box-shadow: var(--shadow-sm);
        }
        .brief-goal-num {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(139, 111, 71, 0.15);
            color: var(--color-primary);
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
        }
        .brief-goal-item span:last-child {
            font-size: 14px;
            line-height: 1.6;
            color: var(--color-text);
        }
        .brief-entry {
            background: rgba(139, 111, 71, 0.08);
            border-radius: 10px;
            padding: 12px 14px;
            font-size: 13px;
            line-height: 1.7;
            color: var(--color-primary);
            margin-bottom: 14px;
        }
        .brief-entry .brief-entry-label {
            font-weight: 600;
        }
        .brief-side {
            display: flex;
            flex-direction: column;
        }
        .brief-side .btn-lg {
            width: 100%;
        }
        /* 案例卡"重新开始"次级按钮：与主按钮的间距 */
        .brief-side .btn-sm {
            margin-top: 8px;
        }
        .brief-resume {
            margin-top: 10px;
            text-align: center;
            font-size: 12px;
            color: var(--color-text-muted);
            line-height: 1.7;
        }
        @media (max-width: 900px) {
            .case-brief {
                grid-template-columns: 1fr;
            }
            .brief-observations {
                grid-template-columns: 1fr;
            }
        }

        /* ==================== 训练引导条（entryHint / resumeHint） ==================== */
        .training-guide {
            background: rgba(139, 111, 71, 0.06);
            border-left: 3px solid var(--color-primary);
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 16px;
            font-size: 13px;
            color: var(--color-text);
            line-height: 1.7;
        }
        .training-guide .guide-label {
            font-weight: 600;
            color: var(--color-primary);
            margin-right: 6px;
        }

        /* ==================== 训练页输入区：框内图标（提示/提交）+ 等待浮标（桌面/移动共用结构） ==================== */
.input-area { position: relative; }   /* 「停止等待」浮标的定位基准 */
/* 「停止等待」浮标：绝对定位在输入框上方右侧，不参与吸底条高度计算（仅等待态出现） */
.input-actions {
    position: absolute;
    right: 0;
    top: -40px;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}
.input-actions[hidden] { display: none; }

.input-box { position: relative; }
.input-box textarea { padding-left: 56px; padding-right: 56px; }   /* 左侧让位给「提示」，右侧让位给圆形提交钮 */
.input-hint-btn {
    position: absolute;
    left: 8px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.input-hint-btn svg { width: 19px; height: 19px; }
.input-hint-btn:hover { color: var(--color-primary); background: rgba(139, 111, 71, 0.08); }
.input-hint-btn.btn-used {
    color: var(--color-primary);
    background: rgba(139, 111, 71, 0.12);
}
.input-hint-btn:disabled { opacity: 0.6; cursor: default; }
.input-send-btn {
            position: absolute;
            right: 8px;
            bottom: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 50%;
            background: var(--color-primary);
            color: #fff;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .input-send-btn svg { width: 19px; height: 19px; }
        .input-send-btn:hover { opacity: 0.88; }
        .input-send-btn:disabled { opacity: 0.6; cursor: default; }

        /* ==================== 训练信息内容分区（手机 Sheet 与桌面右列面板共用同一份内容源） ==================== */
        #trainingSheetBody .sheet-section,
        .js-info-panel-body .sheet-section { margin-bottom: 18px; }
        #trainingSheetBody .sheet-section:last-child,
        .js-info-panel-body .sheet-section:last-child { margin-bottom: 0; }
        #trainingSheetBody .sheet-section-title,
        .js-info-panel-body .sheet-section-title {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--color-text-muted);
            margin-bottom: 8px;
        }
        #trainingSheetBody .sheet-section-text,
        .js-info-panel-body .sheet-section-text {
            font-size: 14px;
            line-height: 1.7;
            color: var(--color-text);
        }
        /* 容器内已有分组间距，去掉引导条自带下边距 */
        #trainingSheetBody .training-guide,
        .js-info-panel-body .training-guide { margin-bottom: 0; }
        #trainingSheetBody .obs-note,
        .js-info-panel-body .obs-note {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-bottom: 10px;
        }

        /* ==================== 提示面板（浮层：锚定在输入框上方，分级示范） ==================== */
        /* 浮层不占版面：内部限高滚动，任何长度都不会把输入框顶出屏幕 */
        #hint-panel-container {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 100%;
            z-index: 5;
        }
        #hint-panel-container .hint-panel {
            display: flex;
            flex-direction: column;
            max-height: min(56vh, 420px);
            margin-bottom: 10px;
        }
        #hint-panel-container .hint-panel-header { flex: 0 0 auto; }
        #hint-panel-container .hint-panel-body {
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        .hint-ref-details > summary {
            margin-top: 14px;
            font-size: 12px;
            color: var(--color-text-muted);
            cursor: pointer;
            user-select: none;
        }
        .hint-ref-details .hint-ref { margin-top: 8px; }

        .hint-panel {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            margin-bottom: 14px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }
        .hint-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
            background: rgba(139, 111, 71, 0.06);
            border-bottom: 1px solid var(--color-border-light);
        }
        .hint-panel-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-primary);
        }
        .hint-panel-body {
            padding: 14px 16px;
        }
        .hint-dirs-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-muted);
            margin-bottom: 8px;
        }
        .hint-dir-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 14px;
        }
        .hint-dir-chip {
            display: inline-block;
            padding: 5px 12px;
            border: 1px solid var(--color-border-light);
            border-radius: 999px;
            font-size: 12px;
            color: var(--color-text-muted);
            background: var(--color-bg);
            user-select: none;
        }
        .hint-suggestions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .hint-suggestions .hint-sugs-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-muted);
        }
        /* 示范卡：平铺直达，点击整卡填入输入框 */
        .hint-suggestion {
            border: 1px solid var(--color-border);
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
        }
        .hint-suggestion.strong {
            border-color: rgba(107, 142, 124, 0.55);
        }
        .hint-suggestion:hover {
            border-color: var(--color-primary);
            box-shadow: var(--shadow-sm);
        }
        .hint-suggestion.active {
            border-color: var(--color-success);
            background: rgba(107, 142, 124, 0.05);
        }
        .hint-suggestion-head {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            background: var(--color-card);
            user-select: none;
        }
        .hint-suggestion.strong .hint-suggestion-head {
            background: rgba(107, 142, 124, 0.08);
        }
        .hint-suggestion.active .hint-suggestion-head {
            background: rgba(107, 142, 124, 0.12);
        }
        .hint-sug-num {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(139, 111, 71, 0.15);
            color: var(--color-primary);
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .hint-suggestion.strong .hint-sug-num {
            background: rgba(107, 142, 124, 0.2);
            color: var(--color-success);
        }
        .hint-quality {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
            flex-shrink: 0;
        }
        .hint-quality.strong {
            background: rgba(107, 142, 124, 0.15);
            color: var(--color-success);
        }
        .hint-quality.developing {
            background: rgba(212, 149, 106, 0.15);
            color: var(--color-warning);
        }
        .hint-sug-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--color-text);
        }
        .hint-fill-tip {
            margin-left: auto;
            font-size: 11px;
            color: var(--color-text-muted);
            opacity: 0;
            transition: opacity 0.18s;
            flex-shrink: 0;
        }
        .hint-suggestion:hover .hint-fill-tip {
            opacity: 1;
        }
        .hint-suggestion.active .hint-fill-tip {
            opacity: 1;
            color: var(--color-success);
            font-weight: 600;
        }
        /* 示范全文平铺（无折叠），对齐序号缩进 */
        .hint-suggestion-body {
            padding: 0 12px 12px 42px;
            font-size: 13px;
            line-height: 1.8;
            color: var(--color-text);
        }
        .hint-panel .hint-ref {
            margin-top: 14px;
            background: rgba(107, 142, 124, 0.08);
            border-radius: 10px;
            padding: 12px;
            font-size: 13px;
            line-height: 1.7;
            color: var(--color-text);
        }
        .hint-panel .hint-ref .hint-ref-title {
            font-weight: 600;
            color: var(--color-success);
            margin-bottom: 6px;
        }

        /* 提示统计条（复盘页） */
        .hint-stats-bar {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            background: rgba(139, 111, 71, 0.06);
            border: 1px solid var(--color-border-light);
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 13px;
            color: var(--color-text);
        }
        .hint-stats-bar .hint-stat-label {
            font-weight: 600;
            color: var(--color-primary);
        }
        .hint-stats-bar .hint-stat-value {
            font-weight: 600;
        }

        /* 已使用提示的按钮状态 */
        .btn-used {
            background: rgba(107, 142, 124, 0.12);
            border-color: var(--color-success);
            color: var(--color-success);
        }
        .btn-used:hover {
            background: rgba(107, 142, 124, 0.18);
            color: var(--color-success);
        }

        /* 反馈页面 */
        .feedback-summary {
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
            color: white;
            border-radius: var(--radius-card);
            padding: 28px;
            margin-bottom: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        .feedback-summary .summary-left {
            flex: 1;
            min-width: 240px;
        }
        .feedback-summary .summary-case {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .feedback-summary .summary-time {
            font-size: 13px;
            opacity: 0.85;
        }
        .feedback-summary .summary-score {
            text-align: center;
            padding: 0 20px;
        }
        .feedback-summary .score-value {
            font-size: 56px;
            font-weight: 700;
            line-height: 1;
        }
        .feedback-summary .score-unit {
            font-size: 16px;
            opacity: 0.85;
        }
        .feedback-summary .summary-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }
        .level-badge {
            display: inline-block;
            padding: 6px 18px;
            border-radius: var(--radius-badge);
            font-size: 15px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
        }
        .feedback-summary .btn-secondary {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border-color: rgba(255, 255, 255, 0.4);
        }
        .feedback-summary .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .feedback-layout {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 24px;
            align-items: start;
        }
        @media (max-width: 1024px) {
            .feedback-layout {
                grid-template-columns: 1fr;
            }
        }

        .feedback-card {
            padding: 14px 16px;
            border-radius: 10px;
            margin-bottom: 10px;
            font-size: 14px;
            line-height: 1.6;
        }
        .feedback-card.good {
            background: rgba(107, 142, 124, 0.08);
            border-left: 3px solid var(--color-success);
        }
        .feedback-card.weak {
            background: rgba(196, 120, 91, 0.08);
            border-left: 3px solid var(--color-danger);
        }
        .feedback-card .card-tag {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 4px;
            display: block;
        }
        .feedback-card.good .card-tag { color: var(--color-success); }
        .feedback-card.weak .card-tag { color: var(--color-danger); }

        .feedback-card.suggestion {
            background: rgba(122, 156, 176, 0.08);
            border-left: 3px solid var(--color-info);
        }
        .feedback-card.suggestion .card-tag { color: var(--color-info); }
        .feedback-card.next-steps {
            background: rgba(139, 111, 71, 0.06);
            border-left: 3px solid var(--color-primary);
        }
        .feedback-card.next-steps .card-tag { color: var(--color-primary); }
        .feedback-card.safety {
            background: rgba(196, 120, 91, 0.1);
            border-left: 3px solid var(--color-danger);
        }
        .feedback-card.safety .card-tag { color: var(--color-danger); }
        .next-steps-list {
            margin: 0;
            padding-left: 20px;
        }
        .next-steps-list li {
            margin-bottom: 6px;
        }

        /* 对话回放 */
        .replay-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--color-border-light);
        }
        .replay-item:last-child {
            border-bottom: none;
        }
        .replay-node {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-bottom: 6px;
        }
        .replay-teacher {
            background: var(--color-primary);
            color: white;
            padding: 8px 12px;
            border-radius: 10px;
            border-top-right-radius: 2px;
            margin-bottom: 6px;
            font-size: 13px;
            margin-left: 40px;
        }
        .replay-role {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            padding: 8px 12px;
            border-radius: 10px;
            border-top-left-radius: 2px;
            font-size: 13px;
            margin-right: 40px;
        }

        /* 雷达图区 */
        .radar-card {
            text-align: center;
        }
        .radar-card .card-title {
            text-align: left;
        }
        .radar-card canvas {
            display: block;
            margin: 0 auto;
        }
        .radar-scores {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-top: 16px;
        }
        .radar-score-item {
            text-align: center;
        }
        .radar-score-item .dim-name {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-bottom: 2px;
        }
        .radar-score-item .dim-score {
            font-size: 18px;
            font-weight: 700;
            color: var(--color-primary);
        }
        .radar-score-item .dim-level {
            font-size: 11px;
            color: var(--color-text-muted);
        }

        /* 成长档案 */
        .session-row {
            display: grid;
            grid-template-columns: 1fr auto auto auto auto;
            gap: 16px;
            align-items: center;
            padding: 14px 18px;
            border-bottom: 1px solid var(--color-border-light);
            cursor: pointer;
            transition: background 0.2s;
        }
        .session-row:hover {
            background: var(--color-border-light);
        }
        /* 整行 button 化后铺满列表宽度、文字左对齐 */
        button.session-row {
            width: 100%;
            text-align: left;
        }
        .session-row:last-child {
            border-bottom: none;
        }
        .session-row .session-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--color-text);
        }
        .session-row .session-meta {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-top: 2px;
        }
        .session-status {
            font-size: 12px;
            padding: 3px 10px;
            border-radius: var(--radius-badge);
            font-weight: 500;
        }
        .session-status.completed { background: rgba(107, 142, 124, 0.15); color: var(--color-success); }
        .session-status.in_progress { background: rgba(212, 149, 106, 0.15); color: var(--color-warning); }
        .session-status.awaiting_feedback { background: rgba(122, 156, 176, 0.15); color: var(--color-info); }
        .session-status.abandoned { background: rgba(138, 138, 138, 0.15); color: #888; }
        .session-actions {
            display: flex;
            gap: 6px;
            min-width: 80px;
            justify-content: flex-end;
        }
        .session-actions .btn {
            padding: 4px 10px;
            font-size: 12px;
        }
        .session-score {
            font-size: 16px;
            font-weight: 600;
            color: var(--color-primary);
            min-width: 50px;
            text-align: right;
        }
        .session-time {
            font-size: 12px;
            color: var(--color-text-muted);
            min-width: 130px;
            text-align: right;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--color-text-muted);
        }
        .empty-state .empty-icon {
            font-size: 40px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        /* 章节标题 */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
        .section-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--color-text);
        }
        .section-desc {
            font-size: 13px;
            color: var(--color-text-muted);
            margin-top: 2px;
        }
        /* 页头：主标题 + 副说明排在同一行（宽度不足时自然换行到下一行） */
        .section-heading {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 4px 12px;
            min-width: 0;
        }
        .section-heading .section-desc {
            margin-top: 0;
        }

        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }

        .complete-banner {
            text-align: center;
            padding: 24px;
            background: linear-gradient(135deg, rgba(107, 142, 124, 0.1), rgba(139, 111, 71, 0.08));
            border-radius: var(--radius-card);
            margin-top: 16px;
        }
        .complete-banner .banner-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--color-success);
            margin-bottom: 8px;
        }
        .complete-banner .banner-desc {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-bottom: 16px;
        }

        /* ==================== 规则追溯抽屉 ==================== */
        .rule-trace-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(61, 47, 31, 0.45);
            z-index: 1500;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .rule-trace-overlay.show { opacity: 1; }
        .rule-trace-drawer {
            position: fixed;
            top: 0; right: 0; bottom: 0;
            width: 400px;
            max-width: 90vw;
            background: var(--color-card);
            z-index: 1501;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: -4px 0 24px rgba(139, 111, 71, 0.2);
        }
        .rule-trace-drawer.show { transform: translateX(0); }
        .rule-trace-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--color-border);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            flex-shrink: 0;
        }
        .rule-trace-header .header-label {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-bottom: 4px;
        }
        .rule-trace-header .header-rule-id {
            font-size: 16px;
            font-weight: 700;
            color: var(--color-primary);
        }
        .rule-trace-header .header-title {
            font-size: 14px;
            color: var(--color-text);
            margin-top: 2px;
        }
        .rule-trace-close {
            background: none;
            border: none;
            font-size: 22px;
            color: var(--color-text-muted);
            cursor: pointer;
            padding: 4px;
            flex-shrink: 0;
            line-height: 1;
        }
        .rule-trace-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px 24px;
        }
        .rule-trace-section { margin-bottom: 22px; }
        .rule-trace-section .section-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--color-text);
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--color-border-light);
        }
        .rule-trace-evidence {
            background: rgba(139, 111, 71, 0.05);
            border-left: 3px solid var(--color-primary);
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            color: var(--color-text);
            line-height: 1.7;
            margin-bottom: 8px;
        }
        .rule-trace-steps {
            margin: 0;
            padding-left: 20px;
            font-size: 13px;
            color: var(--color-text);
            line-height: 1.8;
        }
        .rule-trace-steps li { margin-bottom: 4px; }
        .rule-trace-clues {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .rule-trace-clue-tag {
            display: inline-block;
            padding: 3px 10px;
            border-radius: var(--radius-badge);
            font-size: 12px;
            background: rgba(122, 156, 176, 0.12);
            color: var(--color-info);
        }
        .rule-trace-rule-text {
            font-size: 13px;
            color: var(--color-text);
            line-height: 1.7;
            background: var(--color-bg);
            padding: 12px 14px;
            border-radius: 8px;
            border: 1px solid var(--color-border-light);
        }
        .rule-trace-review { font-size: 13px; }
        .rule-trace-review .review-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid var(--color-border-light);
        }
        .rule-trace-review .review-row:last-child { border-bottom: none; }
        .rule-trace-review .review-key { color: var(--color-text-muted); }
        .rule-trace-review .review-val {
            color: var(--color-text);
            font-weight: 500;
            text-align: right;
            max-width: 60%;
        }
        .rule-trace-empty {
            text-align: center;
            padding: 30px 20px;
            color: var(--color-text-muted);
            font-size: 13px;
        }

        /* 规则编号可点击按钮 */
        .rule-tag-btn {
            display: inline-block;
            padding: 1px 8px;
            margin: 0 2px;
            border: 0;
            border-radius: 4px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 600;
            background: var(--color-primary);
            color: white;
            cursor: pointer;
            transition: background 0.2s;
            vertical-align: middle;
            border: none;
            font-family: var(--font-sans);
        }
        .rule-tag-btn:hover { background: var(--color-primary-dark); }

        /* ==================== 过程观察面板 ==================== */
        .process-observation { min-height: 60px; }
        .process-observation .obs-placeholder {
            font-size: 13px;
            color: var(--color-text-muted);
            line-height: 1.6;
            padding: 8px 0;
        }
        .process-observation .obs-group { margin-bottom: 12px; }
        .process-observation .obs-group:last-child { margin-bottom: 0; }
        .process-observation .obs-group-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-muted);
            margin-bottom: 6px;
        }
        .process-observation .obs-item {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 6px;
            padding: 6px 8px;
            border-radius: 6px;
        }
        .process-observation .obs-item.noticed {
            color: var(--color-success);
            background: rgba(107, 142, 124, 0.06);
        }
        .process-observation .obs-item.improve {
            color: var(--color-warning);
            background: rgba(212, 149, 106, 0.06);
        }
        .process-observation .obs-icon {
            flex-shrink: 0;
            font-weight: 700;
            font-size: 14px;
        }

        /* ==================== 反馈来源条 ==================== */
        .feedback-source-bar {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-card);
            padding: 20px 24px;
            margin-bottom: 24px;
        }
        .feedback-source-bar .source-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .feedback-source-bar .source-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--color-text);
        }
        .feedback-source-bar .source-badge {
            display: inline-block;
            padding: 3px 12px;
            border-radius: var(--radius-badge);
            font-size: 12px;
            font-weight: 500;
            background: rgba(107, 142, 124, 0.15);
            color: var(--color-success);
        }
        .feedback-source-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
        }
        @media (max-width: 1024px) {
            .feedback-source-grid { grid-template-columns: repeat(2, 1fr); }
        }
        .feedback-source-item {
            padding: 12px 14px;
            background: var(--color-bg);
            border: 1px solid var(--color-border-light);
            border-radius: 10px;
            text-align: center;
        }
        .feedback-source-item .source-item-label {
            font-size: 11px;
            color: var(--color-text-muted);
            margin-bottom: 6px;
        }
        .feedback-source-item .source-item-value {
            font-size: 13px;
            font-weight: 500;
            color: var(--color-text);
            line-height: 1.4;
        }

        /* ==================== 能力画像卡 ==================== */
        .ability-portrait-card {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-card);
            padding: 28px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
        }
        .ability-portrait-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .ability-portrait-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--color-text);
        }
        .ability-portrait-tags {
            display: flex;
            gap: 8px;
        }
        .ability-portrait-tag {
            display: inline-block;
            padding: 4px 12px;
            border-radius: var(--radius-badge);
            font-size: 12px;
            font-weight: 500;
        }
        .ability-portrait-tag.updated {
            background: rgba(107, 142, 124, 0.12);
            color: var(--color-success);
        }
        .ability-portrait-tag.stage {
            background: rgba(139, 111, 71, 0.1);
            color: var(--color-primary);
        }
        .ability-portrait-body {
            display: flex;
            gap: 32px;
            align-items: center;
            flex-wrap: wrap;
        }
        .ability-portrait-radar { flex-shrink: 0; }
        .ability-portrait-scores {
            flex: 1;
            min-width: 280px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }
        .dim-score-card {
            padding: 16px;
            background: var(--color-bg);
            border: 1px solid var(--color-border-light);
            border-radius: 12px;
            text-align: center;
        }
        .dim-score-card .dim-code {
            font-size: 12px;
            color: var(--color-text-muted);
            margin-bottom: 4px;
        }
        .dim-score-card .dim-name {
            font-size: 13px;
            color: var(--color-text);
            margin-bottom: 8px;
        }
        .dim-score-card .dim-num {
            font-size: 28px;
            font-weight: 700;
            color: var(--color-primary);
        }
        .dim-score-card .dim-max {
            font-size: 13px;
            color: var(--color-text-muted);
        }

        /* ==================== 本次成长记录卡 ==================== */
        .growth-record-card {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-card);
            padding: 24px 28px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
        }
        .growth-record-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
        .growth-record-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--color-text);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .growth-record-arrow {
            color: var(--color-success);
            font-size: 20px;
            font-weight: 700;
        }
        .growth-record-stats {
            display: flex;
            gap: 24px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .growth-record-stat .stat-label {
            font-size: 13px;
            color: var(--color-text-muted);
            margin-bottom: 4px;
        }
        .growth-record-stat .stat-num {
            font-size: 24px;
            font-weight: 700;
            color: var(--color-primary);
        }
        .growth-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        .growth-tag {
            display: inline-block;
            padding: 4px 12px;
            border-radius: var(--radius-badge);
            font-size: 13px;
            font-weight: 500;
            background: rgba(107, 142, 124, 0.12);
            color: var(--color-success);
        }
        .growth-tag.flat {
            background: rgba(138, 138, 138, 0.12);
            color: #888;
        }
        .growth-evidence {
            background: rgba(139, 111, 71, 0.05);
            border-left: 3px solid var(--color-primary);
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 13px;
            color: var(--color-text);
            line-height: 1.7;
            margin-bottom: 14px;
        }
        .growth-saved {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--color-success);
        }

        /* ==================== 下一阶段训练推荐卡 ==================== */
        .next-training-card {
            background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
            border-radius: var(--radius-card);
            padding: 28px;
            margin-bottom: 20px;
            color: white;
            box-shadow: var(--shadow-md);
        }
        .next-training-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
        .next-training-title {
            font-size: 20px;
            font-weight: 600;
        }
        .next-training-badge {
            display: inline-block;
            padding: 4px 14px;
            border-radius: var(--radius-badge);
            font-size: 12px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .next-training-reason {
            font-size: 14px;
            line-height: 1.7;
            opacity: 0.92;
            margin-bottom: 16px;
        }
        .next-training-targets {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }
        .next-training-target {
            display: inline-block;
            padding: 4px 12px;
            border-radius: var(--radius-badge);
            font-size: 12px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
        }
        .next-training-card .btn-next {
            background: white;
            color: var(--color-primary-dark);
            border: none;
        }
        .next-training-card .btn-next:hover {
            background: var(--color-bg);
            box-shadow: var(--shadow-md);
        }

        /* ==================== 成长档案新增模块样式 ==================== */

        .profile-weak-card {
            background: #FDF3EC;
            border: 1px solid #E8C9B5;
            border-left: 4px solid var(--color-danger, #C4785B);
            border-radius: var(--radius-card);
            padding: 14px 18px;
            margin-bottom: 18px;
        }
        .profile-weak-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-text);
            margin-bottom: 10px;
        }
        .profile-weak-body {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .profile-weak-tag {
            background: #fff;
            border: 1px solid #E8C9B5;
            border-radius: 999px;
            padding: 5px 12px;
            font-size: 13px;
            color: var(--color-text);
        }
        .profile-weak-tag strong { color: var(--color-danger, #C4785B); }
        .profile-weak-desc {
            font-size: 12px;
            color: var(--color-text-muted);
        }

        .chart-wrap {
            margin-top: 8px;
            overflow-x: auto;
        }
        .chart-wrap canvas {
            display: block;
            width: 100%;
            height: 220px;
        }

        .radar-legend {
            display: flex;
            gap: 14px;
            justify-content: center;
            margin-top: 8px;
            font-size: 12px;
            color: var(--color-text-muted);
        }
        .radar-legend-item { display: inline-flex; align-items: center; gap: 5px; }
        .radar-legend-item i {
            display: inline-block;
            width: 12px;
            height: 4px;
            border-radius: 2px;
        }

        .suggestion-item {
            background: var(--color-card);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 12px;
        }
        .suggestion-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .suggestion-dim {
            font-size: 14px;
            font-weight: 600;
            color: var(--color-text);
        }
        .suggestion-gap {
            font-size: 12px;
            color: var(--color-danger, #C4785B);
        }
        .suggestion-bar-wrap {
            height: 8px;
            background: #EDE4D2;
            border-radius: 999px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .suggestion-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--color-primary, #8B6F47), var(--color-success, #6B8E7C));
            border-radius: 999px;
        }
        .suggestion-text {
            font-size: 13px;
            color: var(--color-text-muted);
        }

        .dim-level {
            font-size: 11px;
            color: var(--color-success, #6B8E7C);
            margin-top: 2px;
        }

        .modal-overlay .form-label {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            color: var(--color-text-muted);
        }

        /* ==================== 移动端适配（≤768px） ==================== */
        /* 仅作用于小屏：修复进度条、对话区、雷达图、训练记录行在小屏的挤压与溢出 */
        @media (max-width: 768px) {
            /* 训练进度条：小屏允许横向滑动，避免节点被压缩到不可读 */
            .progress-card { padding: 10px 12px; }
            .progress-bar {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 4px;
            }

            /* 对话区：取消内层固定高度，改为整页滚动，规避移动端嵌套滚动陷阱 */
            .dialogue-scroll { max-height: none; overflow: visible; }
            .input-area textarea { min-height: 96px; }

            /* 能力雷达图：画布按容器缩放，避免 320px 画布撑破小屏 */
            .radar-card canvas { max-width: 100%; height: auto; }
            .radar-scores { grid-template-columns: repeat(3, 1fr); }

            /* 成长档案「能力画像」：雷达卡与图例本身固定 380px，小屏会撑出横向溢出
               （横溢会撑宽移动端布局视口，把固定定位的底部导航推到屏幕外、并挤掉末项文字） */
            .ability-portrait-radar { flex: 1 1 100%; min-width: 0; }
            .ability-portrait-radar canvas { max-width: 100%; height: auto; }
            .ability-portrait-scores { flex: 1 1 100%; min-width: 0; }

            /* 兜底：任何单页横向溢出都不允许撑宽布局视口（clip 不产生新滚动容器，不影响整页滚动） */
            .main-content { overflow-x: clip; }

            /* 训练记录行：由 5 列网格改为换行流式布局，消除横向挤压 */
            .session-row {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 8px 12px;
                padding: 14px;
            }
            .session-row > div:first-child { flex: 1 1 100%; }
            .session-actions {
                flex: 1 1 100%;
                display: flex;
                gap: 8px;
                flex-wrap: wrap;
            }
        }

        /* ==================== 训练页：信息入口（任务 / 情境 / 观察） ==================== */
        /* 同一份内容源，两端形态不同：桌面 = 右列常驻 Tab（见下方桌面 MQ），手机 = 胶囊 + 底部 Sheet */
        .training-info-chips {
            display: flex;
            gap: 8px;
            flex: 0 0 auto;
        }
        .info-chip {
            position: relative;   /* 「有新观察」红点的定位基准 */
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 36px;
            padding: 0 14px;
            border: 1px solid var(--color-border-light);
            border-radius: 999px;
            background: var(--color-card);
            color: var(--color-text);
            font: inherit;
            font-size: 13px;
            cursor: pointer;
        }
        /* 胶囊与桌面 Tab 共用同一套图标尺寸（模板由 INFO_SECTIONS 统一产出） */
        .info-sec-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--color-primary); }
        .info-chip:active { background: rgba(139, 111, 71, 0.08); }
        /* 有新过程观察时的提示点（取消右侧观察栏后的信号补偿） */
        .info-chip.has-update::after {
            content: '';
            position: absolute;
            top: 5px;
            right: 9px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--color-warning, #D4956A);
        }

        @media (max-width: 768px) {
            /* 手机端：三项等分、触区 ≥44px */
            .training-info-chips { flex: 1 1 100%; }
            .info-chip { flex: 1 1 0; min-height: 44px; padding: 0 8px; }
        }

        /* 桌面右列 Tab：默认隐藏，仅桌面 MQ 内显示（模板由 training.js 的 INFO_SECTIONS 产出） */
        .info-tablist, .info-panel-body { display: none; }
        .info-tab {
            position: relative;   /* 「有新观察」红点的定位基准 */
            flex: 1 1 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 40px;
            padding: 0 10px;
            border: 1px solid var(--color-border-light);
            border-radius: 10px;
            background: var(--color-card);
            color: var(--color-text);
            font: inherit;
            font-size: 13px;
            cursor: pointer;
        }
        .info-tab.active {
            border-color: var(--color-primary);
            background: rgba(139, 111, 71, 0.10);
            color: var(--color-primary);
            font-weight: 600;
        }
        .info-tab:active { background: rgba(139, 111, 71, 0.16); }
        /* 有新过程观察且当前未停留在「观察」Tab 时的提示点（与手机胶囊同机制） */
        .info-tab.has-update::after {
            content: '';
            position: absolute;
            top: 5px;
            right: 8px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--color-warning, #D4956A);
        }

        /* ==================== 桌面端（≥769px）：右列常驻 Tab + 左列「对话 + 输入」双列 ==================== */
        /* 桌面不再使用底部 Sheet / 侧滑抽屉：#trainingSheet 保持基础 .sheet 的 display:none 即可 */
        @media (min-width: 769px) {
            /* 高度预算：100dvh - 顶部栏 60 - main-content 上下 padding 64；极矮视口回落整页滚动 */
            .training-page {
                display: grid;
                grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 380px);
                /* 4 行：页头 / 进度卡·Tab 头 / 对话区(吸收剩余) / 输入区（结束后由完成横幅接手同一格） */
                grid-template-rows: auto auto minmax(0, 1fr) auto;
                gap: 12px 16px;
                height: calc(100dvh - 60px - 64px);
                min-height: 420px;
                overflow: hidden;          /* 整页不出滚动条：滚动只发生在对话区与右列面板内部 */
            }
            /* 第 1 行：页头横贯两列 */
            .training-page .section-header { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
            /* 第 2 行：左列进度卡 / 右列 Tab 头 → 自动等高，Tab 头与进度卡等宽对齐 */
            .training-page .training-topbar { grid-column: 1; grid-row: 2; margin-bottom: 0; }
            .training-page .training-topbar .progress-card { margin-bottom: 0; }
            .training-page .training-info-chips { display: none; }   /* 桌面已用 Tab，撤掉胶囊避免两套入口 */
            .training-page .info-tablist { grid-column: 2; grid-row: 2; display: flex; align-items: stretch; gap: 6px; }
            /* 第 3~4 行：左列对话区 + 输入区；右列面板贯穿两行，底边与左列对齐 */
            .training-page .dialogue-scroll {
                grid-column: 1; grid-row: 3;
                min-height: 0;             /* 关键：允许在 grid 行内收缩，滚动交给自身 */
                margin-bottom: 0;
                overflow-y: auto;
                overscroll-behavior: contain;
            }
            .training-page .input-area {
                grid-column: 1; grid-row: 4;
                max-width: none;           /* 覆盖 styles.css 的 700px 居中：输入框与进度卡同宽 */
                margin: 0;
            }
            .training-page .info-panel-body {
                grid-column: 2; grid-row: 3 / 5;
                display: block;
                min-height: 0;
                overflow-y: auto;
                overscroll-behavior: contain;
                padding: 14px 16px;
                border: 1px solid var(--color-border-light);
                border-radius: 14px;
                background: var(--color-card);
            }
            /* 训练结束后输入区被移除，完成横幅接手左列第 4 格 → 右列面板底边始终与左列底边对齐 */
            .training-page #complete-banner { grid-column: 1; grid-row: 4; }
        }
        /* 抽屉 / Sheet 打开时锁底页滚动 */
        body.sheet-open { overflow: hidden; }

        @media (max-width: 768px) {
            /* ---- A：进度条瘦身 —— 圆圈数字已表意，隐藏冗余「节点N」文字，5 节点一行放得下 ---- */
            .progress-card { padding: 8px 12px; margin-bottom: 12px; }
            .progress-bar {
                justify-content: space-between;
                overflow-x: visible;    /* 内容可压缩到容器内，去掉横滑观感 */
                padding-bottom: 0;
            }
            .progress-step { gap: 0; }
            .progress-step .step-label { display: none; }
            .progress-step .step-circle {
                width: 22px;
                height: 22px;
                font-size: 11px;
                border-width: 1.5px;
            }
            .progress-line {
                width: auto;
                flex: 1 1 auto;
                min-width: 10px;
                margin: 0 6px;
            }

            /* ---- B：信息收进胶囊 + 底部 Sheet（桌面端的右侧抽屉在手机档由基础 Sheet 规则接管） ---- */

            /* ---- C：对话与输入紧凑化（把纵向空间还给问答区） ---- */
            .dialogue-scroll { padding: 12px; margin-bottom: 12px; }
            .dialogue-message { gap: 8px; margin-bottom: 12px; }
            .dialogue-bubble { max-width: 88%; padding: 10px 12px; }  /* 覆盖 styles.css 的 82% */
            /* 框内左右两枚圆钮（提示 / 提交）同为 36×36 触区，文字两侧留出让位 */
            .input-area textarea { min-height: 72px; padding: 12px 52px; }
            .input-hint-btn { left: 8px; bottom: 8px; width: 36px; height: 36px; }

            /* ---- D：输入区吸底 —— 悬浮在底部导航之上，随时可写（页面末尾预留等高空间，不遮挡内容） ---- */
            .input-area {
                position: fixed;
                left: 0;
                right: 0;
                bottom: calc(56px + env(safe-area-inset-bottom));
                z-index: 40;
                max-width: 700px;
                margin: 0 auto;
                padding: 8px 12px 0;
                background: var(--color-bg);
                box-shadow: 0 -8px 12px -10px rgba(139, 111, 71, 0.35);
            }
            /* 吸底条高度需稳定，避免拖拽撑高后遮挡对话内容 */
            .input-area textarea { resize: none; }
            .input-send-btn { width: 36px; height: 36px; bottom: 8px; right: 8px; }
            /* 提交等待态：吸底条本体保持不透明（否则下方内容透出），仅输入框变淡 */
            .input-area.disabled { opacity: 1; }
            .input-area.disabled textarea { opacity: 0.55; }
            /* 为吸底输入区预留空间：页面末尾内容（提示面板 / 完成横幅）滚到底时不被遮挡
             * 高度预算：上 padding 8 + 输入框 72 = 80（「停止等待」为浮标，不占高度），留 16px 余量 */
            .main-content:has(.input-area) {
                padding-bottom: calc(56px + env(safe-area-inset-bottom) + 96px);
            }
        }

        /* ==================== 移动端：筛选折叠 + 底部 Sheet + 案例卡摘要化 ==================== */
        /* 默认（桌面）隐藏：手机端专有的控件一律不参与桌面布局 */
        .case-filter-btn { display: none; }
        .case-active-filters { display: none; }
        .sheet-scrim { display: none; }
        .sheet { display: none; }

        @media (max-width: 768px) {
            /* ---- 筛选：搜索常驻，其余条件收进底部 Sheet ---- */
            .case-status-filter,
            .case-cat-filter,
            .difficulty-filter { display: none; }

            .case-toolbar { gap: 8px; }
            .case-search { flex: 1 1 auto; min-width: 0; }

            .case-filter-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                flex: 0 0 auto;
                min-width: 44px;
                min-height: 44px;
                padding: 10px 12px;
                white-space: nowrap;
            }
            .case-filter-btn .case-filter-icon {
                width: 18px;
                height: 18px;
                display: block;
            }
            .case-filter-btn .filter-count {
                min-width: 18px;
                height: 18px;
                padding: 0 5px;
                border-radius: 999px;
                background: var(--color-primary);
                color: #fff;
                font-size: 11px;
                font-weight: 600;
                line-height: 18px;
                text-align: center;
            }
            .case-filter-btn .filter-count[hidden] { display: none; }

            /* 已选条件回显（可点击移除） */
            .case-active-filters {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 12px;
            }
            .case-active-filters:empty { display: none; }
            .case-active-filters .active-chip {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 5px 10px;
                border-radius: 999px;
                font-size: 12px;
                background: var(--color-card);
                border: 1px solid var(--color-border);
                color: var(--color-text);
                min-height: 32px;
            }
            .case-active-filters .active-chip .x {
                color: var(--color-text-muted);
                font-size: 14px;
                line-height: 1;
            }

            /* ---- 案例卡：仅保留摘要，详情改为整卡点击打开 ---- */
            .case-card { padding: 18px 16px; }
            .case-card-title { font-size: 17px; }
            /* 整卡可点开详情：给出可点击光标（属性仅在手机端由 JS 注入） */
            .case-card[role="button"] { cursor: pointer; }
            /* 标签行：压成一行紧凑元信息——隐藏「难度：/时长：/角色：」前缀，收窄内边距与字号
               （仅卡片列表；详情 Sheet 内保留完整前缀与常规字号。实测 14 个案例最宽一组约 294px，
                卡片可用宽度 309px；超长内容仍会优雅换行） */
            #cases-list .case-tags { gap: 5px; margin-bottom: 12px; }
            #cases-list .case-tags .badge { padding: 3px 8px; font-size: 11px; }
            #cases-list .case-tags .badge-label { display: none; }
            .case-brief { grid-template-columns: 1fr; gap: 16px; }
            /* 左栏仅保留「情景背景」（首个 brief-section），其余收起 */
            .case-brief-left .brief-section:not(:first-child) { display: none; }
            .case-brief-left .brief-section:first-child .brief-text {
                display: -webkit-box;
                -webkit-line-clamp: 3;
                line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            /* 右栏训练目标 / 提示 / 底部说明收起，仅留操作按钮 */
            .case-brief .brief-side .brief-section { display: none; }
            .case-brief .brief-side .brief-entry,
            .case-brief .brief-side .brief-resume { display: none; }
            /* 摘要卡右栏只剩主操作按钮（进行中时另有「再次练习」）：补 10px 间距避免紧贴 */
            .case-brief .brief-side { gap: 10px; }
            .case-brief .brief-side .btn-sm { margin-top: 0; }
            /* 页头说明：小屏下 12px 才能不折行（13px 需 364px，容器仅 343px） */
            .section-heading .section-desc { font-size: 12px; }

            /* ---- 手机端统一收起页面大标题 ---- */
            /* 当前所在页面由底部导航高亮标示，页头大标题重复且占位，统一隐藏。
             * 副标题分两类：说明性文字（任务中心/专家复盘/训练记录/成长档案）整块页头一并收起；
             * 情境训练的副标题承载真实信息（案例名 · 角色），故只隐标题、保留该行作为上下文。
             * 用 :has(页面唯一节点) 限定，避免误伤其他页面。 */
            .main-content .section-title { display: none; }
            .main-content:has(#cases-list) .section-header,
            .main-content:has(#feedback-tabs) .section-header,
            .main-content:has(#records-content) .section-header,
            .main-content:has(#profile-content) .section-header { display: none; }
            /* 搜索 + 筛选吸顶到顶部栏（56px）下方：长列表滚动时筛选入口常驻，卡片从其下方上移穿过。
             * z-index 低于顶部栏（100），背景取页面底色以遮住下方滚过的卡片 */
            .case-toolbar {
                position: sticky;
                top: 56px;
                z-index: 90;
                margin-bottom: 8px;
                padding: 6px 0 8px;
                background: var(--color-bg);
            }

            /* ---- 底部 Sheet（筛选 / 案例详情共用） ---- */
            .sheet-scrim {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(61, 47, 31, 0.45);
                z-index: 1900;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.22s ease;
            }
            .sheet-scrim[hidden] { display: none; }
            .sheet-scrim.show { opacity: 1; pointer-events: auto; }

            .sheet {
                display: block;
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 1950;
                max-height: 86dvh;
                background: var(--color-card);
                border-radius: 16px 16px 0 0;
                box-shadow: var(--shadow-lg);
                transform: translateY(100%);
                transition: transform 0.25s ease;
                padding-bottom: env(safe-area-inset-bottom);
                overscroll-behavior: contain;
            }
            .sheet[hidden] { display: none; }
            .sheet.show { transform: translateY(0); }

            .sheet-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 14px 16px;
                border-bottom: 1px solid var(--color-border-light);
                background: var(--color-card);
                border-radius: 16px 16px 0 0;
            }
            .sheet-title { font-size: 15px; font-weight: 600; }
            .sheet-close {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                border: 0;
                border-radius: 10px;
                background: var(--color-border-light);
                color: var(--color-text-muted);
                font-size: 18px;
                line-height: 1;
                cursor: pointer;
            }
            .sheet-body {
                padding: 16px;
                overflow-y: auto;
                max-height: calc(86dvh - 64px);
            }
            .sheet .brief-section { margin-bottom: 18px; }
            .sheet .brief-observations { grid-template-columns: 1fr; }

            .filter-group { margin-bottom: 18px; }
            .filter-group:last-of-type { margin-bottom: 20px; }
            .filter-group-label {
                font-size: 12px;
                font-weight: 700;
                letter-spacing: 1px;
                color: var(--color-text-muted);
                margin-bottom: 10px;
            }
            /* Sheet 内的筛选控件需重新显示（覆盖上方隐藏规则） */
            .sheet .case-status-chips { display: flex; flex-wrap: wrap; gap: 8px; }
            .sheet .case-cat-filter { display: flex; margin-bottom: 0; }
            .sheet .difficulty-filter { display: flex; margin-bottom: 0; }

            .sheet-actions { display: flex; gap: 10px; }
            .sheet-actions .btn { flex: 1 1 0; }

            body.sheet-open { overflow: hidden; }
        }
