/* assets/css/modal.css */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7);
    z-index: 1000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--white-color); padding: 20px; border-radius: 8px;
    width: 90%; max-width: 500px; position: relative;
    transform: scale(0.9); transition: transform 0.3s; display: none;
}
.modal-overlay.active .modal.active { transform: scale(1); display: block; }

/* (新) 为秘密内容弹窗设置一个更合适的宽度和样式 */
#secretContentModal .modal-content {
    text-align: left;
    line-height: 1.8;
}
#secretContentModal .modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.modal-close {
    position: absolute; top: 10px; right: 15px; background: transparent;
    border: none; font-size: 1.8rem; cursor: pointer; color: #aaa;
    line-height: 1;
}

.modal-content { text-align: center; }
.modal-content h3 { margin-bottom: 15px; }
.modal-content input {
    width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px;
}
.modal-actions .btn-cancel { background: #6c757d; }

.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.secret-icon {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background: var(--primary-color); color: var(--white-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    cursor: pointer; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}