/* 原有样式保持不变 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }
        
        /* 横屏提示 */
        .orientation-warning {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
        }
        
        .orientation-warning i {
            font-size: 5rem;
            margin-bottom: 20px;
            color: #ffcc00;
            animation: rotate 2s infinite linear;
        }
        
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(90deg); }
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }
        
        header {
            text-align: center;
            padding: 20px 0;
            width: 100%;
        }
        
        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            background: linear-gradient(to right, #ffcc00, #ff6b6b);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .progress-container {
            width: 100%;
            max-width: 800px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .progress-title {
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.8rem;
            color: #ffcc00;
        }
        
        .steps {
            display: flex;
            justify-content: space-between;
            position: relative;
        }
        
        .steps::before {
            content: '';
            position: absolute;
            top: 25px;
            left: 0;
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            z-index: 1;
        }
        
        .progress-bar {
            position: absolute;
            top: 25px;
            left: 0;
            height: 8px;
            background: linear-gradient(to right, #4facfe, #00f2fe);
            border-radius: 4px;
            z-index: 2;
            transition: width 0.5s ease;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 3;
            position: relative;
            width: 33.33%;
        }
        
        .step-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #2c3e50;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            border: 3px solid rgba(255, 255, 255, 0.3);
        }
        
        .step.completed .step-icon {
            background: #27ae60;
            border-color: #2ecc71;
        }
        
        .step.active .step-icon {
            background: #3498db;
            border-color: #2980b9;
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
        }
        
        .step-label {
            text-align: center;
            font-weight: 500;
            font-size: 1.1rem;
        }
        
        .step-status {
            margin-top: 5px;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        .step.completed .step-status {
            color: #2ecc71;
            font-weight: bold;
        }
        
        .panels {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }
        
        .panel {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .panel:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        }
        
        .panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, #ff9a9e, #fad0c4);
        }
        
        .panel:nth-child(2)::before {
            background: linear-gradient(to right, #a1c4fd, #c2e9fb);
        }
        
        .panel:nth-child(3)::before {
            background: linear-gradient(to right, #ffecd2, #fcb69f);
        }
        
        .panel-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .panel-icon {
            font-size: 2.5rem;
            margin-right: 15px;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .panel-title {
            font-size: 1.8rem;
            font-weight: 600;
        }
        
        .panel-content {
            margin-bottom: 25px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.85);
        }
        
        .btn {
            display: inline-block;
            padding: 14px 30px;
            background: linear-gradient(to right, #3498db, #2980b9);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
            box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
            width: 100%;
            letter-spacing: 1px;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(41, 128, 185, 0.6);
            background: linear-gradient(to right, #2980b9, #3498db);
        }
        
        .btn:active {
            transform: translateY(1px);
        }
        
        .btn.completed {
            background: linear-gradient(to right, #27ae60, #2ecc71);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
            cursor: not-allowed;
        }
        
        .btn.completed:hover {
            transform: none;
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
        }
        
        .btn.completed::after {
            content: " \2713";
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background: linear-gradient(145deg, #2c3e50, #1a2a6c);
            width: 90%;
            max-width: 600px;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 1.8rem;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.6);
            transition: color 0.3s;
        }
        
        .close-modal:hover {
            color: white;
        }
        
        .modal-title {
            font-size: 2.2rem;
            margin-bottom: 25px;
            color: #ffcc00;
            text-align: center;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        label {
            display: block;
            margin-bottom: 10px;
            font-size: 1.1rem;
            font-weight: 500;
        }
        
        input, select, textarea {
            width: 100%;
            padding: 15px;
            border-radius: 10px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.1rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #3498db;
            background: rgba(255, 255, 255, 0.15);
        }
        
        textarea {
            min-height: 120px;
            resize: vertical;
        }
        
        .gender-group {
            display: flex;
            gap: 15px;
        }
        
        .gender-option {
            flex: 1;
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }
        
        .gender-option.selected {
            background: rgba(52, 152, 219, 0.3);
            border-color: #3498db;
        }
        
        .gender-option i {
            font-size: 2rem;
            margin-bottom: 10px;
            display: block;
        }
        
        .save-btn {
            background: linear-gradient(to right, #27ae60, #2ecc71);
            display: block;
            width: 100%;
            padding: 16px;
            font-size: 1.2rem;
            margin-top: 20px;
        }
        
        .save-btn:hover {
            background: linear-gradient(to right, #2ecc71, #27ae60);
        }
        
        .completed-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 15px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .completed-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        .completed-overlay i {
            font-size: 4rem;
            color: #2ecc71;
            margin-bottom: 15px;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .completed-text {
            font-size: 2rem;
            font-weight: bold;
            color: #2ecc71;
        }
        
        footer {
            margin-top: 40px;
            text-align: center;
            padding: 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            width: 100%;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2.2rem;
            }
            
            .panels {
                grid-template-columns: 1fr;
            }
            
            .panel {
                padding: 25px;
            }
            
            .step-label {
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .panel-title {
                font-size: 1.5rem;
            }
            
            .step-icon {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .steps::before, .progress-bar {
                top: 20px;
            }
        }
        
        /* 横屏检测 */
        @media screen and (min-width: 768px) and (max-aspect-ratio: 1/1) {
            .orientation-warning {
                display: flex;
            }
        }
        /* 新增问卷容器样式 */
        .questionnaire-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1a2a6c, #2c3e50);
            z-index: 2000;
            padding: 20px;
            overflow-y: auto;
            display: none;
        }
        
        .questionnaire-header {
            text-align: center;
            padding: 30px 0;
            margin-bottom: 30px;
        }
        
        .questionnaire-title {
            font-size: 2.5rem;
            margin-bottom: 15px;
            background: linear-gradient(to right, #4facfe, #00f2fe);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .questionnaire-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
            color: #e0e0e0;
        }
        
        .progress-container {
            margin-bottom: 30px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 15px;
        }
        
        .progress-bar {
            height: 12px;
            background: linear-gradient(to right, #4facfe, #00f2fe);
            border-radius: 6px;
            width: 0%;
            transition: width 0.5s ease;
        }
        
        .progress-text {
            text-align: right;
            margin-top: 5px;
            font-size: 0.9rem;
            color: #4facfe;
        }
        
        .question {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            border-left: 4px solid #4facfe;
            transition: all 0.3s ease;
        }
        
        .question:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .question-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .question-number {
            width: 40px;
            height: 40px;
            background: #4facfe;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .question-text {
            font-size: 1.2rem;
            font-weight: 500;
        }
        
        .options {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        
        .option {
            padding: 15px;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            border: 1px solid transparent;
        }
        
        .option:hover {
            background: rgba(79, 172, 254, 0.15);
            border-color: rgba(79, 172, 254, 0.3);
        }
        
        .option.selected {
            background: rgba(79, 172, 254, 0.25);
            border-color: #4facfe;
        }
        
        .option input {
            margin-right: 12px;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        
        .option-label {
            font-size: 1.05rem;
            flex-grow: 1;
        }
        
        .btn-container {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .btn-questionnaire {
            padding: 14px 30px;
            background: linear-gradient(to right, #3498db, #2980b9);
            color: white;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            text-decoration: none;
            box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
        }
        
        .btn-questionnaire:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(41, 128, 185, 0.6);
        }
        
        .btn-submit {
            background: linear-gradient(to right, #27ae60, #2ecc71);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
        }
        
        .btn-submit:hover {
            background: linear-gradient(to right, #2ecc71, #27ae60);
        }
        
        .result-container {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            display: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .result-icon {
            font-size: 4rem;
            color: #2ecc71;
            margin-bottom: 20px;
        }
        
        .result-title {
            font-size: 2rem;
            margin-bottom: 15px;
            color: #4facfe;
        }
        
        .result-score {
            font-size: 3.5rem;
            font-weight: bold;
            background: linear-gradient(to right, #ff9a9e, #fad0c4);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin: 20px 0;
        }
        
        .result-message {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .loading {
            text-align: center;
            padding: 40px 0;
            display: none;
        }
        
        .loading i {
            font-size: 3rem;
            color: #4facfe;
            margin-bottom: 20px;
            animation: spin 1.5s linear infinite;
        }
        /* 新增填空题型样式 */
        .fill-answer {
            padding: 15px;
            background: rgba(255, 255, 255, 0.07);
            border-radius: 8px;
            margin-top: 15px;
        }

        .fill-answer input {
            width: 100%;
            padding: 10px;
            border-radius: 5px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* 多选题选中样式 */
        .option.multiselected {
            background: rgba(79, 172, 254, 0.25);
            border-color: #4facfe;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .close-questionnaire {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: #fff;
            cursor: pointer;
            z-index: 10;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .questionnaire-title {
                font-size: 2rem;
            }
            
            .question {
                padding: 20px 15px;
            }
            
            .question-text {
                font-size: 1.1rem;
            }
            
            .btn-questionnaire {
                padding: 12px 20px;
                font-size: 1rem;
            }
        }
        /* 新增加载动画样式 */
        .loader {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
            vertical-align: middle;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }