﻿/* 加载层样式 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 弹出层样式 */
.popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

    .popup-mask.show {
        opacity: 1;
        pointer-events: auto;
    }

.popup-wrap {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.popup-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.popup-mask.show .popup-container {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    padding: 12px 16px;
    background-color: #e9ecef;
    color: #495057;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .popup-close-btn:hover {
        color: #495057;
    }

.popup-content {
    padding: 16px;
    overflow: auto;
    flex-grow: 1;
}

    .popup-content img {
        max-width: 100%;
        height: auto;
        display: block;
    }

/* 隐藏的内容样式 */
.hidden {
    display: none !important;
}