  /* 消息提示动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.note-success-message, .note-warning-message {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.note-success-message {
    background: #27ae60;
    color: white;
}

.note-warning-message {
    background: #f39c12;
    color: white;
}
/* 可选：更丰富的图标样式 */
.custom-confirm-icon.success {
    color: #27ae60;
}

.custom-confirm-icon.warning {
    color: #f39c12;
}

.custom-confirm-icon.error {
    color: #cb3536;
}

.custom-confirm-icon.info {
    color: #3498db;
}

/* 可选：不同主题的确认框 */
.custom-confirm-box.warning {
    border-top: 4px solid #f39c12;
}

.custom-confirm-box.error {
    border-top: 4px solid #cb3536;
}

.custom-confirm-box.success {
    border-top: 4px solid #27ae60;
}

        /* 原有样式保持不变 */
        .category-selector {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }

        .category-selector label {
            font-size: 16px;
            color: #333;
            font-weight: 500;
            margin-bottom: 8px;
            display: block;
        }

        .category-level {
            margin-bottom: 15px;
            margin-left: 20px;
        }

        .category-level select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: white;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: border-color 0.3s;
            width: 200px;
        }

        .category-level select:hover {
            border-color: #cb3536;
        }

        .category-level select:focus {
            outline: none;
            border-color: #cb3536;
            box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
        }

        .exam-list {
            margin-top: 20px;
        }

        .exam-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #eee;
            transition: background-color 0.2s;
        }

        .exam-item:hover {
            background-color: #f9f9f9;
        }

        .exam-info {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            flex: 1;
        }

        .exam-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .exam-icon img {
            width: 24px;
            height: 24px;
        }

        .exam-content {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .exam-title {
            font-size: 16px;
            color: #333;
            font-weight: 500;
        }

        .exam-description {
            font-size: 14px;
            color: #888;
            line-height: 1.4;
        }

        .exam-action {
            flex-shrink: 0;
            display: flex;
            gap: 10px;
        }

        .start-btn {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            background-color: white;
            color: #cb3536;
            text-decoration: none;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 14px;
            border: 2px solid #cb3536;
            font-weight: 500;
        }

        .start-btn:hover {
            background-color: #cb3536;
            color: white;
        }

        .arrow {
            margin-left: 5px;
            transition: transform 0.3s ease;
        }

        .start-btn:hover .arrow {
            transform: translateX(3px);
        }

        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .title {
            font-size: 20px;
            font-weight: bold;
            color: #333;
        }

        .title span {
            color: #666;
            font-weight: normal;
        }

        .exam-tip {
            text-align: right;
            color: #cb3536;
            font-size: 12px;
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px dashed #eee;
            line-height: 1.5;
        }

        /* 优化后的自定义确认弹框样式 */
        .custom-confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(2px);
        }

        .custom-confirm-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .custom-confirm-box {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            transform: translateY(-30px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            border: 1px solid rgba(231, 76, 60, 0.1);
        }

        .custom-confirm-overlay.active .custom-confirm-box {
            transform: translateY(0) scale(1);
        }

        .custom-confirm-header {
            padding: 24px 24px 16px;
            text-align: center;
            position: relative;
        }

        .custom-confirm-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            background-color: rgba(231, 76, 60, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #cb3536;
            font-size: 28px;
        }

        .custom-confirm-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin: 0;
        }

        .custom-confirm-body {
            padding: 0 24px 24px;
            text-align: center;
            font-size: 16px;
            color: #666;
            line-height: 1.6;
        }

        .custom-confirm-footer {
            padding: 16px 24px 24px;
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        .custom-confirm-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .custom-confirm-btn:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .custom-confirm-btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .custom-confirm-cancel {
            background-color: #f8f9fa;
            color: #666;
            border: 1px solid #e0e0e0;
        }

        .custom-confirm-cancel:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .custom-confirm-ok {
            background: linear-gradient(135deg, #cb3536 0%, #c0392b 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
        }

        .custom-confirm-ok:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
        }

        .custom-confirm-ok:active {
            transform: translateY(0);
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .content-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .exam-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .exam-action {
                align-self: flex-end;
                flex-wrap: wrap;
            }

            .exam-tip {
                text-align: center;
            }
            
            .custom-confirm-box {
                width: 95%;
                margin: 20px;
            }
            
            .custom-confirm-footer {
                flex-direction: column;
            }
            
            .custom-confirm-btn {
                width: 100%;
            }
        }
        
        #categoryLevels{display: flex;align-items: center;}