/* 弹框样式 */
.ewmLayer,
.miniLayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ewmLayer.show,
.miniLayer.show {
    opacity: 1;
    visibility: visible;
}

.ewmLayer > div,
.miniLayer > div {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 320px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.ewmLayer.show > div,
.miniLayer.show > div {
    transform: scale(1);
}

.ewmLayer h1,
.miniLayer h1 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    position: relative;
    padding-bottom: 10px;
}

.ewmLayer h1::after,
.miniLayer h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #42A5F5;
    border-radius: 2px;
}

.ewmLayer h1 .close,
.miniLayer h1 .close {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #42A5F5;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.4);
}

.ewmLayer h1 .close:hover,
.miniLayer h1 .close:hover {
    background-color: #1976D2;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.6);
}

.ewmLayer img,
.miniLayer img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ewmLayer img:hover,
.miniLayer img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media screen and (max-width: 480px) {
    .ewmLayer > div,
    .miniLayer > div {
        padding: 20px;
        width: 280px;
    }
    
    .ewmLayer h1,
    .miniLayer h1 {
        font-size: 18px;
    }
    
    .ewmLayer img,
    .miniLayer img {
        width: 180px;
        height: 180px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ewmLayer.show > div,
.miniLayer.show > div {
    animation: fadeIn 0.3s ease forwards;
}
