/* public/css/index.css */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(10px); 
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(1.1);
}

.modal.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.modal.hide {
    opacity: 0;
    transform: scale(1.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #222;
    color: #fff;
    margin: 10% auto; 
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #555;
    width: 80%; 
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: modalContentFadeIn 0.7s ease-in-out;
}

@keyframes modalContentFadeIn {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

.language-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.language-buttons button {
    background: linear-gradient(45deg, #6a82fb, #fc5c7d);
    border: none;
    color: #fff;
    padding: 15px 20px;
    margin: 10px 0;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 48%;
    max-width: 200px;
}

.language-buttons button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.language-buttons button:active {
    transform: translateY(1px);
}

.hidden {
    display: none !important;
}

#siteClosedMessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: center;
    z-index: 1002;
}

#siteClosedMessage h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

#siteClosedMessage p {
    font-size: 1.2em;
}

/* 客服模态框 */
.chat-modal-content {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 80%;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #555;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.chat-modal-content .close:hover,
.chat-modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.chat-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
