
/* 所有样式都加上 .custom-class-popup-1 前缀，防止影响全局 */
.custom-class-popup-1 {
    max-width: 100% ;
    background: rgba(255, 255, 255, 0) ;
    position: relative;
    width: auto;
    margin: auto;
    box-shadow: none ;
}

.custom-class-popup-1 .popup-content {
    width: 100%;
    position: relative;
    color: #000;
    background-color: #fff;
    line-height: 1.5;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .popup-content {
        max-width: 300px ;
    }
}

/* 订阅前/后 通用区块 */
.custom-class-popup-1 .subscription-before,
.custom-class-popup-1 .subscription-after {
    padding: 50px 80px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .subscription-before,
    .custom-class-popup-1 .subscription-after {
        padding: 40px 30px 30px;
    }
}

.custom-class-popup-1 .title {
    font-size: 38px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    word-break: break-word;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .title {
        font-size: 32px;
    }
}

.custom-class-popup-1 .subtitle {
    margin-top: 16px;
    padding: 0 10px;
    font-size: 12px;
    word-break: break-word;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .subtitle {
        margin-top: 25px;
    }
}

/* 输入框区域 */
.custom-class-popup-1 .input-box {
    margin-top: 40px;
    display: flex;
    width: 100%;
    justify-content: center;
    height: 50px;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .input-box {
        margin-top: 24px;
        flex-direction: column;
        height: auto;
    }
}

.custom-class-popup-1 .input-box input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}
.custom-class-popup-1 .input-box input::placeholder {
    color: #666666;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .input-box input {
        padding: 0 10px;
        height: 42px;
        flex: auto;
    }
}

.custom-class-popup-1 .input-box .button {
    box-sizing: border-box;
    padding: 0 25px;
    height: 50px;
    line-height: 50px;
    outline: none;
    cursor: pointer;
    border-left: none !important;
    white-space: nowrap;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .input-box .button {
        height: 43px;
        line-height: 43px;
        margin-top: 20px;
    }
}

.custom-class-popup-1 .cancel-btn {
    margin-top: 52px;
    cursor: pointer;
    display: inline-block;
    text-decoration: underline;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .cancel-btn {
        margin-top: 45px;
    }
}

/* 优惠券区域 */
.custom-class-popup-1 .discount-coupon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.custom-class-popup-1 .coupon-number {
    font-size: 25px;
    cursor: pointer;
    font-weight: 600;
}

.custom-class-popup-1 .coupon-copy {
    font-size: 12px;
    cursor: pointer;
    margin-top: 5px;
}

.custom-class-popup-1 .continue-btn-box {
    padding: 0 100px;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .continue-btn-box {
        padding: 0;
    }
}

.custom-class-popup-1 .continue-btn {
    margin-top: 40px;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .continue-btn {
        padding: 0 25px;
        margin-top: 25px;
        margin-bottom: 20px;
        height: 43px;
    }
}

.custom-class-popup-1 .close-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #000000;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

@media (max-width: 769px) {
    .custom-class-popup-1 .close-icon {
        font-size: 16px;
    }
}

.custom-class-popup-1 .error-message {
    font-size: 12px;
    color: #f56c6c;
    margin-top: 5px;
    text-align: left;
    padding-left: 10px;
    position: absolute;
}

/* 预览模式无关闭按钮等 (逻辑控制) */
.custom-class-popup-1.preview-mode .close-icon,
.custom-class-popup-1.preview-mode .cancel-btn {
    pointer-events: none;
    opacity: 0.5;
}

/* 简单动画 */
.custom-class-popup-1 .pointer {
    cursor: pointer;
}