/* 整体滚动条 */
::-webkit-scrollbar {
    width: 12px; /* 对于垂直滚动条 */
    height: 12px; /* 对于水平滚动条 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: #dad9d9;
    border-radius: 2px;
}

/* 滑块在悬停状态 */
::-webkit-scrollbar-thumb:hover {
    background: #adadad;
}

/* ========== 弹窗样式 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e74c3c;
    margin-right: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
}

.btn-modal {
    padding: 10px 32px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-confirm {
    background: #667eea;
    border: 1px solid #667eea;
    color: #fff;
}

.btn-confirm:hover {
    background: #5568d3;
    border-color: #5568d3;
}

/* ========== Toast 轻提示 ========== */
.toast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.toast-overlay.active {
    display: flex;
}

.toast-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 32px 40px;
    text-align: center;
    max-width: 360px;
    animation: toastIn 0.3s ease;
}

.toast-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1;
}

.toast-success .toast-icon {
    background: #e8f8ef;
    color: #27ae60;
}

.toast-error .toast-icon {
    background: #fde8e8;
    color: #e74c3c;
}

.toast-message {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
