/* 全局自定义样式和模态框样式 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
}
.modal-close:hover {
    color: #374151;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* 表单通用样式 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}
.form-label .required-mark { color: #ef4444; }

.form-input, .form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 统一定义按钮样式 */
.btn {
    transition: all 0.2s ease-out; font-weight: 500; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; border-radius: 0.5rem; padding: 0.6rem 1.2rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background-color: #3b82f6; color: white; box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2); }
.btn-primary:hover { background-color: #2563eb; }
.btn-success { background-color: #10b981; color: white; box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2); }
.btn-success:hover { background-color: #059669; }
.btn-danger { background-color: #ef4444; color: white; box-shadow: 0 2px 5px rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background-color: #dc2626; }
.btn-secondary { background-color: #f1f5f9; color: #475569; }
.btn-secondary:hover { background-color: #e2e8f0; }
.btn-text { background: transparent; color: #64748b; font-weight: 500; }
.btn-text:hover { color: #3b82f6; }