* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 25px;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        h2 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: #4e73df;
        }
        
        h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #4e73df;
        }
        
        .section {
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
            display: none;
        }
        
        .active {
            display: block;
        }
        
        .user-info-form {
            background-color: #f8f9fc;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 15px;
        }
        
        .form-group {
            flex: 1;
            min-width: 250px;
            margin-bottom: 15px;
            position: relative;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        .form-group input, .form-group select {
            width: 100%;
            padding: 12px;
            border: 1px solid #d1d3e2;
            border-radius: 5px;
            font-size: 1rem;
        }
        
        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #4e73df;
            box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
        }
        
        .gender-options {
            display: flex;
            gap: 10px;
            margin-top: 5px;
        }
        
        .gender-option {
            flex: 1;
            padding: 12px;
            text-align: center;
            background-color: #f8f9fc;
            border: 1px solid #e3e6f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .gender-option:hover {
            background-color: #eaecf4;
        }
        
        .gender-option.selected {
            background-color: #4e73df;
            color: white;
            border-color: #4e73df;
        }
        
        .error-message {
            color: #e74a3b;
            font-size: 0.85rem;
            margin-top: 5px;
            display: none;
        }
        
        .test-selection {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 20px;
        }
        
        .test-card {
            flex: 1;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            min-height: 280px;
            position: relative;
            overflow: hidden;
        }
        
        .test-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .test-card.status-not-started {
            border: 3px solid #e74a3b;
        }
        
        .test-card.status-in-progress {
            border: 3px solid #f6c23e;
        }
        
        .test-card.status-completed {
            border: 3px solid #1cc88a;
        }
        
        .test-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .test-icon {
            width: 50px;
            height: 50px;
            background-color: #4e73df;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 1.5rem;
        }
        
        .test-card-title {
            flex: 1;
            text-align: left;
        }
        
        .test-card-title h3 {
            color: #4e73df;
            margin-bottom: 5px;
        }
        
        .test-status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 5px;
        }
        
        .status-not-started .test-status-badge {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        .status-in-progress .test-status-badge {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .status-completed .test-status-badge {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        
        .test-card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            text-align: left;
        }
        
        .test-card-content p {
            color: #666;
            margin-bottom: 15px;
            flex: 1;
        }
        
        .test-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: #858796;
        }
        
        .test-progress {
            margin-bottom: 15px;
        }
        
        .progress-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        
        .progress-bar-container {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background-color: #4e73df;
            border-radius: 4px;
            width: 0%;
            transition: width 0.5s ease-in-out;
        }
        
        .status-not-started .progress-bar {
            background-color: #e74a3b;
        }
        
        .status-in-progress .progress-bar {
            background-color: #f6c23e;
        }
        
        .status-completed .progress-bar {
            background-color: #1cc88a;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: #4e73df;
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s;
            text-decoration: none;
        }
        
        .btn:hover {
            background-color: #2e59d9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .btn:disabled {
            background-color: #b7b7b7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid #4e73df;
            color: #4e73df;
        }
        
        .btn-outline:hover {
            background-color: #4e73df;
            color: white;
        }
        
        .btn-locked {
            background-color: #858796;
            position: relative;
            padding-left: 45px;
        }
        
        .btn-locked:before {
            content: "🔒";
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .test-container {
            display: none;
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .test-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .test-title {
            font-size: 1.5rem;
            color: #4e73df;
        }
        
        .question {
            font-size: 1.3rem;
            margin-bottom: 20px;
            font-weight: 500;
        }
        
        .options {
            margin-bottom: 25px;
        }
        
        .option {
            display: block;
            padding: 15px;
            margin-bottom: 10px;
            background-color: #f8f9fc;
            border: 1px solid #e3e6f0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .option:hover {
            background-color: #eaecf4;
        }
        
        .option.selected {
            background-color: #4e73df;
            color: white;
            border-color: #4e73df;
        }
        
        .progress-container {
            margin-bottom: 20px;
        }
        
        .progress-text {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .progress {
            height: 10px;
            background-color: #e9ecef;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        
        .navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .result-container {
            display: none;
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .result-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .result-title {
            color: #4e73df;
            margin-bottom: 20px;
        }
        
        .comprehensive-result {
            padding: 25px;
            background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
            border-radius: 8px;
            border-left: 4px solid #4e73df;
            text-align: center;
        }
        
        .comprehensive-result h3 {
            color: #4e73df;
            margin-bottom: 15px;
        }
        
        .footer {
            text-align: center;
            margin-top: 40px;
            color: #858796;
            font-size: 0.9rem;
        }
        
        .completion-status {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
        }
        
        .status-item {
            text-align: center;
        }
        
        .status-badge {
            display: inline-block;
            width: 30px;
            height: 30px;
            line-height: 30px;
            border-radius: 50%;
            background-color: #e9ecef;
            color: #858796;
            margin-bottom: 5px;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .status-badge.completed {
            background-color: #4e73df;
            color: white;
        }
        
        .back-btn {
            margin-bottom: 20px;
        }
        
        .loading-container {
            display: none;
            text-align: center;
            padding: 30px;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #4e73df;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-text {
            font-size: 1.1rem;
            color: #4e73df;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            color: white;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.3s, transform 0.3s;
        }
        
        .notification.success {
            background-color: #1cc88a;
        }
        
        .notification.error {
            background-color: #e74a3b;
        }
        
        .notification.warning {
            background-color: #f6c23e;
            color: #333;
        }
        
        .notification.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .completion-indicator {
            position: absolute;
            top: 0;
            right: 0;
            padding: 5px 10px;
            background-color: #4e73df;
            color: white;
            font-size: 0.8rem;
            border-bottom-left-radius: 8px;
            border-top-right-radius: 6px;
        }
        
        .status-not-started .completion-indicator {
            background-color: #e74a3b;
        }
        
        .status-in-progress .completion-indicator {
            background-color: #f6c23e;
        }
        
        .status-completed .completion-indicator {
            background-color: #1cc88a;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .test-selection {
                flex-direction: column;
            }
            
            .test-card {
                margin-bottom: 20px;
            }
            
            .form-group {
                min-width: 100%;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            h2 {
                font-size: 1.5rem;
            }
        }

        .api-error {
            text-align: center;
            padding: 20px;
            background-color: #f8d7da;
            color: #721c24;
            border-radius: 8px;
            margin: 20px 0;
        }

        .retry-btn {
            margin-top: 15px;
        }
        
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            display: none;
        }
        
        .loading-content {
            text-align: center;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }