/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    width: 1000px;
    height: 80vh;
    border-radius: 5px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    top: 45px;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 15px 20px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    transform: rotate(90deg);
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-content {
    flex: 1;
    overflow: hidden;
}

.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(106, 17, 203, 0.2);
    border-radius: 50%;
    border-top-color: #6a11cb;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.features {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 200px;
    margin: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 850px) {
    .modal {
        width: 95%;
    }
}