/* 炫酷弹窗提示系统样式 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.modal-container.modal-show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 400px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
}

.modal-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: iconPulse 2s infinite;
}

.modal-icon-success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.2);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.modal-icon-error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.modal-icon-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.modal-icon-info {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.modal-icon-question {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.modal-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    text-align: center;
}

.modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn-primary {
    background: linear-gradient(145deg, #d4af37, #b8941f);
    color: #000;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-btn-primary:hover {
    background: linear-gradient(145deg, #e6c547, #d4af37);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-btn-secondary {
    background: linear-gradient(145deg, #4a4a4a, #2d2d2d);
    color: #e5e5e5;
    border: 1px solid #666;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-btn-secondary:hover {
    background: linear-gradient(145deg, #5a5a5a, #4a4a4a);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* 抖动效果类 */
.shake-animation {
    animation: shake 0.6s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        min-width: 300px;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 10px 20px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-btn:last-child {
        margin-bottom: 0;
    }
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.captcha-container img {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.captcha-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}