/* ======================================= */
/* 1. 弹窗背景遮罩 (Overlay)               */
/* ======================================= */
#wum-popup-overlay {
    position: fixed;
    /* 强化定位，确保覆盖全屏 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw; /* 使用视口宽度单位确保撑满 */
    height: 100vh; /* 使用视口高度单位确保撑满 */
    
    /* 【修改点】按照您的要求，将背景改为完全透明 */
    background-color: transparent; 

    z-index: 99998;
    display: flex; /* 使用flexbox居中 */
    align-items: center;
    justify-content: center;
    opacity: 0; /* 初始透明度为0，用于淡入动画 */
    visibility: hidden; /* 默认隐藏，不占用布局 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* 添加过渡效果 */
}

#wum-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ======================================= */
/* 2. 弹窗内容区域 (Content)               */
/* ======================================= */
#wum-popup-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px 40px; /* 增加内边距 */
    border-radius: 12px; /* 更圆润的边角 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* 更深、更柔和的阴影 */
    max-width: 450px; /* 稍微宽一点 */
    width: 90%;
    text-align: center;
    z-index: 99999;
    transform: translateY(20px); /* 初始位置稍微下移，用于向上弹出动画 */
    opacity: 0; /* 初始透明度为0 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* 添加动画 */
}

#wum-popup-overlay.is-visible #wum-popup-content {
    transform: translateY(0); /* 动画到原始位置 */
    opacity: 1;
}

/* ======================================= */
/* 3. 关闭按钮 (Close Button)              */
/* ======================================= */
#wum-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px; /* 稍微大一点 */
    line-height: 1;
    cursor: pointer;
    color: #a0a0a0; /* 柔和一点的颜色 */
    transition: color 0.2s ease-in-out;
}
#wum-popup-close:hover {
    color: #555; /* 鼠标悬停时颜色变深 */
}

/* ======================================= */
/* 4. 表单容器和文本 (Form Container & Text) */
/* ======================================= */
.wum-subscription-form-container h3 {
    margin-top: 5px; /* 调整标题上边距 */
    margin-bottom: 10px;
    font-size: 26px; /* 稍微大一点的标题 */
    color: #333;
}
.wum-subscription-form-container p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

/* ======================================= */
/* 5. 输入框 (Input Field)               */
/* ======================================= */
.wum-subscription-form-container input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.wum-subscription-form-container input[type="email"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* ======================================= */
/* 6. 提交按钮 (Submit Button)             */
/* ======================================= */
.wum-subscription-form-container button#wum-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #0073aa;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    letter-spacing: 0.5px;
}
.wum-subscription-form-container button#wum-submit-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}
.wum-subscription-form-container button#wum-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* ======================================= */
/* 7. 消息区域 (Message Area)              */
/* ======================================= */
.wum-form-message {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
    padding: 10px;
    border-radius: 4px;
}
.wum-form-message[style*="color: green"] {
    color: #3c763d !important;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
}
.wum-form-message[style*="color: red"] {
    color: #a94442 !important;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

/* ======================================= */
/* 8. 响应式调整 (Responsive Adjustments)  */
/* ======================================= */
@media (max-width: 600px) {
    #wum-popup-content {
        padding: 20px 25px;
        max-width: 90%;
        margin: 0 15px;
    }
}
