 /* 黑色透明遮罩层 */
 .card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1031;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 活动卡片容器 */
.card-overlay .promo-card {
    border-radius: 12px;
    overflow: visible; /* 修改为visible让关闭按钮可以显示 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    margin-bottom: 50px; /* 为关闭按钮留出空间 */
    cursor: pointer;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片图片 */
.card-overlay .promo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; 
    transition: all 0.8s ease-in-out;
}

.card-overlay .promo-image:hover{
    transform: scale(1.06);
}

/* 关闭按钮 - 修复后的样式 */
.card-overlay .close-btn {
    position: absolute;
    bottom: -60px; /* 调整位置，不再隐藏在卡片下方 */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    color: #ffff;
    background: #868686;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    z-index: 1032; /* 确保在遮罩层上方 */
}

.card-overlay .close-btn:hover {
    background: rgb(0, 168, 255);
    transform: translateX(-50%) scale(1.1);
}

.card-overlay .close-btn::before {
    content: "×";
    font-size: 24px;
    color: #ffff;
    background: transparent; /* 移除背景色，避免与按钮背景重叠 */
    line-height: 1;
}

/* 隐藏状态 */
.card-overlay-hidden {
    display: none !important;
}

/* 手机端布局 */  
@media (max-width: 768px) {
    .card-overlay .promo-image {
        width: 250px;
    }
}