﻿/* 遮罩层基础样式：覆盖全屏、半透明、居中弹性布局 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* 弹框容器基础样式 */
.popup-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 90%;
    max-width: 633px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

/* 关闭按钮通用样式 */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}
/* 标题样式 */
.popup-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
/* 描述文本样式 */
.popup-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    /*margin-bottom: 20px;*/
    font-weight: 300;
}
/* 按钮通用样式 */
.popup-btn {
    background: #1abc9c;
    color: #fff;
    border: none;
    /*padding: 10px 24px;
      font-size: 16px;*/
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s;
    width: 75%;
}

    .popup-btn:hover {
        background: #16a085;
    }
/* 演示用：触发按钮样式（可根据实际场景调整或删除） */
.open-btn {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
}

/************************************************/
/* PC 端专属样式：固定宽高、完整圆角 */
@media (min-width: 768px) {
    .popup-container {
        width: 633px;
        height: 351px;
        border-radius: 12px;
        justify-content: center;
    }

    .popup-title {
        font-size: 28px;
        /*margin-top: -40px;*/
        margin-top: -66px;
    }

    .popup-desc {
        font-size: 25px;
        margin-top: 20px;
    }

    .popup-btn {
        position: absolute;
        bottom: 60px;
        font-size: 25px;
        line-height: 65px;
    }
}
/* 手机端专属样式：固定底部、调整宽高和圆角 */
@media (max-width: 767px) {
    .popup-overlay {
        align-items: flex-end;
        background: transparent;
    }

    .popup-container {
        width: 100%;
        max-width: 375px;
        height: 160px;
        border-radius: 12px 12px 0 0;
        padding: 16px;
    }

    .popup-title {
        font-size: 16px;
        margin-top: 10px;
    }

    .popup-desc {
        font-size: 14px;
        margin-top: 0px;
    }

    .popup-btn {
        position: absolute;
        bottom: 24px;
        font-size: 16px;
        line-height: 44px;
        width: 90%;
    }
}
