.container {max-width: 1200px!important;}
/* 模态框基础样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-in-out;
    max-width:100vw !important;
    padding: 0!important;
}

/* 模态框内容区域 */
.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 2% auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

/* 模态框头部 */
.modal-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* 关闭按钮 */
.close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    transform: scale(1.1);
}

/* 模态框主体内容 */
.modal-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: #f8fafc;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 内容框架 */
.content-frame {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* 模态框底部 */
.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
}

/* 全屏模式 */
.modal.fullscreen .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
}