/**
 * @Plugin Name:允梦授权插件
 * @Plugin URI:https://www.mengdo.cn/
 * @Author: YunMen Net
 * @Author URI: https://www.mengdo.cn/
 * @Date: 2023-12-31 19:59:12
 * @LastEditors: YunMen Net
 * @LastEditTime: 2026-07-22 09:40:00
 * @Description: 感谢您使用允梦授权插件，插件源码有详细的注释，支持二次开发。
 * @Remind me: 无利不起早，使用盗版插件会存在各种未知风险。支持正版，从我做起！
 */

 .single-product .products-container {
    margin-top: -21px;
}

.single-product .products-box {
    padding: 60px 0;
    color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #88c0fd 10%, #0757af 100%);
}

.single-product .products-background {
    background: linear-gradient(135deg, #28b1bb 0%, #5038c8 100%);
}

.single-product .products-box .products-row {
    padding: 0 20px;
    max-width: 1400px;
    margin: auto;
}

.single-product .products-row .payrow-6 {
    padding: 0 10px;
    display: inline-block;
    vertical-align: middle;
    width: calc(50% - 10px);
}

@media (max-width: 768px) {
    .single-product .products-row .payrow-6 {
        padding: 10px;
        width: 100%;
    }

    .single-product .products-box .products-row {
        text-align: center;
    }

    .single-product .products-details {
        margin: auto;
    }
}

.single-product .pay-content {
    max-width: 400px;
    margin: auto;
}

.single-product .products-header {
    font-size: 24px;
    letter-spacing: .1em;
}

.single-product .products-doc {
    opacity: .8;
    margin: 20px 0;
}

.single-product .more-but {
    margin-top: 30px;
}

.single-product .more-but .but.hollow {
    margin: 0 10px;
    padding: 0.5em 1.5em;
    margin: 0 10px;
}

.single-product .products-pay {
    margin: 20px 0;
}

.single-product .products-pay .but {
    padding: 0.5em 2em;
    margin: 0;
}

.single-product .products-pay .but+.but {
    margin-left: 20px;
}

.single-product .products-details {
    background: rgba(0, 0, 0, 0.1);
    opacity: .6;
    max-width: 300px;
    text-align: left;
}

.single-product .pay-content .share-btn text {
    display: none;
}

/* ======================================================
 *  弹窗 v2 - 套餐选择卡片（参考截图 4）
 * ====================================================== */

.men-pay-form {
    padding: 4px;
}

/* 套餐区小标题 */
.men-pkg-section-title {
    font-size: 14px;
    color: #555;
    margin: 6px 0 10px;
    font-weight: 600;
}

/* 套餐网格 */
.men-pkg-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

/* 套餐卡片 */
.men-pkg-card {
    position: relative;
    flex: 1 1 calc(50% - 10px);
    min-width: calc(50% - 10px);
    box-sizing: border-box;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 10px;
    padding: 12px 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    overflow: hidden;
}

.men-pkg-card:hover {
    border-color: #ff5b5b;
    box-shadow: 0 2px 10px rgba(255, 91, 91, .12);
}

.men-pkg-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 选中态 */
.men-pkg-card.is-checked,
.men-pkg-card input[type="radio"]:checked + .men-pkg-check + .men-pkg-price {
    /* 选中描边由 JS 加 .is-checked 触发 */
}

/* 站长推荐 角标 */
.men-pkg-recommend {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #ff7a45, #ff4d4f);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px 5px;
    border-radius: 10px 0 10px 0;
    font-weight: 600;
}

.men-pkg-card.is-recommend {
    border-color: #ff5b5b;
}

/* 选中后右上角小对勾 */
.men-pkg-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #f3f3f3;
    color: #fff;
    font-size: 11px;
    transition: background .15s;
}

.men-pkg-card.is-checked .men-pkg-check {
    background: #ff4d4f;
}

/* 价格 */
.men-pkg-price {
    color: #ff4d4f;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

.men-pkg-mark {
    font-size: 13px;
    margin-right: 1px;
    font-weight: 600;
}

/* 套餐名称 */
.men-pkg-name {
    color: #555;
    font-size: 13px;
    margin-top: 4px;
}

/* 促销标签（套餐上方） */
.men-pkg-promotion {
    background: #fff7e6;
    color: #d4380d;
    border: 1px solid #ffd591;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 原价小标 */
.men-pkg-original {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
    margin: 4px 2px 8px;
    text-align: right;
}

/* 服务说明 */
.men-pkg-service {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 10px 12px;
    color: #666;
    font-size: 12px;
    line-height: 1.9;
    margin-top: 10px;
}

.men-pkg-service span {
    color: #333;
    font-weight: 600;
    margin-right: 4px;
}

/* 余额 */
.men-pkg-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    color: #333;
    font-size: 13px;
}

.men-pkg-balance-num {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: 700;
}

/* 支付按钮容器 */
.men-pkg-paybtn-wrap {
    margin-top: 12px;
}

.men-pkg-paybtn-wrap .but,
.men-pkg-paybtn-wrap button[type="submit"] {
    width: 100%;
    background: linear-gradient(90deg, #ff9a44, #ff4d4f);
    border: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(255, 91, 91, .25);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.men-pkg-paybtn-wrap .but:hover,
.men-pkg-paybtn-wrap button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 91, 91, .35);
}

@media (max-width: 480px) {
    .men-pkg-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
