        :root {
            --primary-color: #4361ee;
            --primary-light: #e6ebff;
            --step-active: #4361ee;
            --step-completed: #06d6a0;
            --step-pending: #dee2e6;
            --text-primary: #2b2d42;
            --text-secondary: #6c757d;
            --border-color: #dee2e6;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', sans-serif;
        }

        body {
            background-color: #f5f7fb;
            color: var(--text-primary);
        }

        /* 顶部导航栏 - 使用navbar.css中的样式 */
        

        /* 主内容区 - 与 index.html 相同 */
        .main-container {
            width: 100%;
            padding: 16px 20px;
            margin: 0 auto;
        }

        /* 主容器 - 现在在.main-container内部 */
        .wizard-container {
            width: 100%;
            background: white;
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }

        /* 步骤指示器 */
        .step-indicator {
            display: flex;
            background: white;
            padding: 16px 40px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .step {
            flex: 1;
            text-align: center;
            position: relative;
            padding-bottom: 20px;
        }

        .step-number {
            width: 36px;
            height: 36px;
            line-height: 36px;
            border-radius: 50%;
            background: var(--step-pending);
            color: white;
            display: inline-block;
            margin-bottom: 10px;
            font-weight: 600;
            font-size: 14px;
            z-index: 2;
            position: relative;
        }

        .step.active .step-number {
            background: var(--step-active);
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
        }

        .step.completed .step-number {
            background: var(--step-completed);
        }

        .step.completed .step-number::after {
            content: '✓';
        }

        .step-label {
            font-weight: 500;
            color: var(--text-secondary);
            font-size: 13px;
        }

        .step.active .step-label {
            color: var(--step-active);
            font-weight: 600;
        }

        /* 步骤连接线 */
        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 18px;
            left: 50%;
            width: 100%;
            height: 2px;
            background: var(--step-pending);
            z-index: 1;
        }

        .step.completed::after {
            background: var(--step-completed);
        }

        /* 步骤内容区 */
        .step-content {
            display: none;
            padding: 30px; /* 从40px减小到30px */
            animation: fadeIn 0.4s ease;
        }

        .step-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0.6;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 表单样式 */
        .step-title {
            font-size: 24px;
            margin-bottom: 8px; /* 从10px减小到8px */
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .step-title i {
            color: var(--primary-color);
        }

        .step-subtitle {
            color: var(--text-secondary);
            margin-bottom: 20px; /* 从30px减小到20px */
            font-size: 15px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px; /* 从25px减小到15px */
        }

        .form-group {
    margin-bottom: 15px; /* 从25px减小到15px */
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

        .full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            font-weight: 500;
            margin-bottom: 8px; /* 从10px减小到8px */
            color: var(--text-primary);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px; /* 从14px 18px减小到12px 15px */
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }

        /* 上传区域 - 与 lesson_plan.css 保持一致 */
        .upload-section {
            text-align: center;
            padding: 24px;
            border: 2px dashed var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            background: #fafbfc;
        }

        .upload-section:hover {
            border-color: var(--primary-color);
            background: #f5f9ff;
        }

        .upload-section.dragover {
            border-color: var(--primary-color);
            background: #f5f9ff;
            transform: scale(1.02);
        }

        .upload-content i {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 12px;
        }

        .upload-content p {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .upload-content span {
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }

        /* 已上传文件显示 - 与 lesson_plan.css 保持一致 */
        .uploaded-file-info {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: #e6ebff;
            border: 1px solid var(--primary-color);
            border-radius: 6px;
            width: 100%;
        }

        .uploaded-file-info i.fa-file-pdf {
            color: var(--primary-color);
            font-size: 1.25rem;
        }

        .uploaded-file-info span {
            flex: 1;
            font-size: 0.9375rem;
            color: var(--text-primary);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .btn-remove-file {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-remove-file:hover {
            color: #ff6b6b;
            background: rgba(255, 107, 107, 0.1);
        }

        /* 题型配置区域 - 滑动条容器 */
        .type-slider-container {
            position: relative;
            margin: 25px 0;
            padding: 0 40px;
        }

        .type-slider-wrapper {
            overflow: hidden;
            position: relative;
            border-radius: 12px;
            background: #f8f9fa;
            padding: 15px 0;
        }

        .type-cards-container {
            display: flex;
            transition: transform 0.3s ease;
            gap: 20px;
            padding: 0 10px;
        }

        .type-slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .type-slider-btn:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .type-slider-btn.prev {
            left: 0;
        }

        .type-slider-btn.next {
            right: 0;
        }

        .type-slider-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            background: #f8f9fa;
        }

        .type-slider-btn.disabled:hover {
            background: #f8f9fa;
            color: var(--text-primary);
            border-color: var(--border-color);
        }

        .type-slider-indicators {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
        }

        .type-slider-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #dee2e6;
            cursor: pointer;
            transition: all 0.2s;
        }

        .type-slider-indicator.active {
            background: var(--primary-color);
            transform: scale(1.2);
        }

        /* 题型配置卡片 */
        .question-type-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 18px;
            transition: all 0.2s;
            flex: 0 0 calc(33.333% - 14px);
            min-width: 0;
        }

        .question-type-card.active {
            border-color: var(--primary-color);
            background-color: #f8faff;
        }

        .type-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .type-name {
            font-weight: 600;
            font-size: 17px;
        }

        .type-desc {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .type-toggle {
            position: relative;
            width: 50px;
            height: 26px;
        }

        .type-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .type-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #d1d9e6;
            border-radius: 34px;
            transition: .4s;
        }

        .type-toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background: white;
            border-radius: 50%;
            transition: .4s;
        }

        input:checked + .type-toggle-slider {
            background: var(--primary-color);
        }

        input:checked + .type-toggle-slider:before {
            transform: translateX(24px);
        }

        .type-controls {
            display: flex;
            gap: 20px;
        }

        .type-control {
            flex: 1;
        }

        .type-control label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .type-control input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
        }

        /* 题型配置步骤特定样式 */
        #step-2.step-content {
            padding: 30px;
        }

        /* 题型总分显示 */
        .total-score-display {
            background: linear-gradient(135deg, #4361ee, #3a56d4);
            color: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .total-score-label {
            font-size: 16px;
        }

        .total-score-value {
            font-size: 36px;
            font-weight: 700;
        }

        .target-score-control {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.15);
            padding: 12px 20px;
            border-radius: 10px;
            margin-top: 10px;
        }

        .target-score-control label {
            font-size: 14px;
            margin-bottom: 0;
        }

        .target-score-control input {
            width: 100px;
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
        }

        /* 完成生成步骤特定样式 */
        #step-4.step-content {
            padding: 30px;
        }

        .final-step-content {
            text-align: center;
            padding: 30px 15px;
        }

        .final-step-icon {
            font-size: 40px;
            color: #06d6a0;
            margin-bottom: 15px;
        }

        .final-step-title {
            font-size: 28px;
            margin-bottom: 12px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .final-step-subtitle {
            color: var(--text-secondary);
            font-size: 16px;
            max-width: 600px;
            margin: 0 auto 25px;
            line-height: 1.5;
        }

        .final-preview {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            max-width: 600px;
            margin: 0 auto 30px;
        }

        .final-preview-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .preview-section-title {
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-primary);
            font-size: 15px;
        }

        .preview-section-content {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.4;
        }

        .preview-section-content div {
            margin-bottom: 4px;
        }

        .preview-divider {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .preview-divider-title {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-primary);
            font-size: 15px;
        }

        .preview-divider-content {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.4;
        }

        /* 滑块设置 */
        .slider-container {
            margin-top: 15px;
        }

        .slider-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin: 10px 0;
        }

        .slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #e9ecef;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        /* 全局设置中的智能排版与排序区域 */
        .layout-sorting-container {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            margin-top: 20px;
        }

        .layout-title {
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }

        .layout-title i {
            color: var(--primary-color);
        }

        .layout-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .layout-option {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* 题型排序控制区域 */
        .sorting-controls {
            margin-top: 25px;
            padding-top: 25px;
            border-top: 1px solid var(--border-color);
        }

        .sorting-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .sorting-description {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .type-sort-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .sortable-type-item {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: move;
            user-select: none;
            transition: all 0.2s;
        }

        .sortable-type-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        }

        .sortable-type-item.dragging {
            opacity: 0.6;
            background: var(--primary-light);
        }

        .drag-handle {
            color: var(--text-secondary);
            cursor: move;
        }

        .type-sort-name {
            font-weight: 500;
            flex-grow: 1;
        }

        .type-sort-count {
            background: var(--primary-light);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .sort-method-select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 15px;
            margin-top: 15px;
        }

        /* 操作按钮 */
        .step-actions {
            display: flex;
            justify-content: space-between;
            padding: 30px 40px;
            border-top: 1px solid var(--border-color);
            background: #fafbfc;
        }

        .btn {
            padding: 14px 32px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            border: none;
            transition: all 0.2s;
        }

        .btn-prev {
            background: white;
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .btn-prev:hover {
            background: #f8f9fa;
        }

        .btn-next {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
        }

        .btn-next:hover {
            background: #3a56d4;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(67, 97, 238, 0.35);
        }

        .btn-generate {
            background: linear-gradient(135deg, #06d6a0, #05b888);
            color: white;
            box-shadow: 0 4px 12px rgba(6, 214, 160, 0.25);
        }

        .btn-generate:hover {
            background: linear-gradient(135deg, #05b888, #049e76);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(6, 214, 160, 0.35);
        }

        .avatar .fa-spinner {
            font-size: 16px;
        }

        .dropdown-avatar .fa-spinner {
            font-size: 24px;
        }

        /* 页脚 */
        .footer {
            text-align: center;
            padding: 30px 20px;
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 50px;
            width: 100%;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .main-container {
                padding: 20px 15px;
            }

            .step-indicator {
                padding: 20px 15px 0;
            }

            .step-content, .step-actions {
                padding: 25px 20px;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .type-controls {
                flex-direction: column;
                gap: 10px;
            }

            .target-score-control {
                flex-direction: column;
                align-items: flex-start;
            }

            .layout-grid {
                grid-template-columns: 1fr;
            }

            .type-slider-container {
                padding: 0 30px;
            }

            .question-type-card {
                flex: 0 0 calc(100% - 10px);
            }

            .type-slider-btn {
                width: 32px;
                height: 32px;
            }
        }