/* ============================================================
   数卡购 · 订单支付页美化（插件样式）
   作用范围：PC 端 payment/buy.html、手机端 payment/purchase.html
   全部选择器均做了作用域限定，不影响其它页面
   电脑端 / 平板端 / 手机端 三端自适应
   ============================================================ */

/* ==================== 一、PC 端 订单支付页 ==================== */

.public-createorder {
    --cz-primary: #ff5a2d;
    --cz-primary-2: #ff2e63;
    --cz-ink: #101828;
    --cz-ink-2: #475467;
    --cz-ink-3: #667085;
    --cz-line: rgba(16, 24, 40, .08);
    --cz-card-radius: 18px;

    /* 【2026-10-31】宽度 1200 → 1360：原宽度下右侧下单卡片被挤得很窄，
     * 「支付方式」两个按钮换行、QQ号码输入框也偏短。
     * align-items 由 flex-start 改 stretch —— 两栏高度必须一致，
     * 原来左侧 517px / 右侧 485px，底下差一截很难看。 */
    max-width: 1360px;
    margin: 32px auto 72px;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    box-sizing: border-box;
}

/* 外层 .container 默认 max-width 1320，比上面 1360 还窄，
 * 不放开的话加宽会被裁掉。只在「下单页」生效（body 由 pay-layout.js 打标记）。 */
body.cz-pay-page .container {
    max-width: 1400px;
}

.public-createorder *,
.public-createorder *::before,
.public-createorder *::after {
    box-sizing: border-box;
}

/* ---------- 卡片 ---------- */
.public-createorder-info,
.public-createorder-order {
    background: #fff;
    border: 1px solid var(--cz-line);
    border-radius: var(--cz-card-radius);
    box-shadow: 0 12px 40px rgba(16, 24, 40, .07), 0 2px 8px rgba(16, 24, 40, .04);
    padding: 28px 30px;
    /* 【2026-10-31】原来 height: fit-content，两栏各算各的高度；
     * 改成 auto + 父级 stretch，两栏自动等高，高度随内容/宽度自适应。 */
    height: auto;
    min-width: 0;
}

.public-createorder-info {
    /* 【2026-10-31】380 → 420：容器加宽后左栏同步放宽，
     * 商品名称一行放得下，不再挤成两行。 */
    flex: 0 0 420px;
    width: 420px;
}

.public-createorder-order {
    flex: 1 1 auto;
    width: auto;
}

/* ---------- 标题 ---------- */
.public-createorder-info > .title,
.public-createorder-order .top .title {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 16px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cz-ink);
    letter-spacing: .2px;
}

.public-createorder-info > .title::before,
.public-createorder-order .top .title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--cz-primary), var(--cz-primary-2));
}

/* ---------- 订单卡顶部提示 ---------- */
.public-createorder-order .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cz-line);
}

.public-createorder-order .top .tips {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-createorder-order .top .tips span {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 360px;
    height: auto;
    padding: 7px 14px;
    margin-right: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 999px;
}

.public-createorder-order .top .tips em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    font-style: normal;
    color: #fff;
    background: linear-gradient(135deg, var(--cz-primary), var(--cz-primary-2));
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(255, 46, 99, .25);
}

/* ---------- 行 ---------- */
.public-createorder-info .info > .item,
.public-createorder-order .order > .item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    padding: 15px 0;
    border-bottom: 1px dashed var(--cz-line);
}

.public-createorder-info .info > .item:last-child,
.public-createorder-order .order > .item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.public-createorder-info .info > .item > span,
.public-createorder-order .order > .item > span {
    flex: 0 0 88px;
    width: 88px;
    font-size: 14px;
    color: var(--cz-ink-3);
    letter-spacing: .2px;
}

.public-createorder-info .info > .item .fr,
.public-createorder-order .order > .item .fr {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 14px;
    color: var(--cz-ink);
    text-align: right;
    word-break: break-word;
}

.public-createorder-info .info > .item .text {
    font-size: 14px;
    font-weight: 500;
    color: var(--cz-ink);
}

/* 商品图：整列居中 + 完整显示，不裁切 */
.public-createorder-info .info > .item .img {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    text-align: center;
}

.public-createorder-info .info > .item .img img {
    width: 168px;
    height: 168px;
    padding: 5px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cz-line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .10);
    box-sizing: border-box;
}

/* 单价 */
.public-createorder-info .info > .item .money {
    font-size: 20px;
    font-weight: 800;
    color: var(--cz-primary-2);
    letter-spacing: .3px;
}

/* 优惠券行 */
.public-createorder-info .info > .item.sk-coupon-row {
    align-items: flex-start;
}

/* ---------- 表单控件 ---------- */
.public-createorder-order .order > .item input.fr,
.public-createorder-order .order > .item select.fr,
.public-createorder-order .order > .item .user-select,
.public-createorder-order .order > .item input[type="number"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 42px;
    text-indent: 0;
    text-align: left;
    color: var(--cz-ink);
    background: #fbfcfe;
    border: 1.5px solid var(--cz-line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.public-createorder-order .order > .item select.fr,
.public-createorder-order .order > .item .user-select {
    background-image: linear-gradient(45deg, transparent 50%, #98a2b3 50%),
                      linear-gradient(135deg, #98a2b3 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.public-createorder-order .order > .item input.fr:focus,
.public-createorder-order .order > .item select.fr:focus,
.public-createorder-order .order > .item .user-select:focus,
.public-createorder-order .order > .item input[type="number"]:focus {
    background: #fff;
    border-color: var(--cz-primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 45, .12);
}

/* 单选 */
.public-createorder-order .order > .item input[type="radio"] {
    accent-color: var(--cz-primary);
    margin-right: 6px;
}

/* ---------- 支付方式 ---------- */
.public-createorder-order .order > .item .pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.public-createorder-order .order > .item .pay .pay-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cz-ink-2);
    background: #fff;
    border: 1.5px solid var(--cz-line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
    user-select: none;
}

.public-createorder-order .order > .item .pay .pay-item img {
    height: 20px;
    width: auto;
    margin-right: 0 !important;
}

.public-createorder-order .order > .item .pay .pay-item:hover {
    border-color: rgba(255, 90, 45, .55);
    background: #fff8f5;
    transform: translateY(-1px);
}

.public-createorder-order .order > .item .pay .pay-item.hover,
.public-createorder-order .order > .item .pay .pay-item.active,
.public-createorder-order .order > .item .pay .pay-item.selected {
    color: var(--cz-primary-2);
    background: #fff5f8;
    border-color: var(--cz-primary-2);
    box-shadow: 0 8px 20px rgba(255, 46, 99, .16);
}

/* ---------- 订单价格 ---------- */
.public-createorder-order .order > .item .money {
    flex: 1 1 auto;
    text-align: right;
}

.public-createorder-order .order > .item .money font[name="amoney"] {
    font-size: 26px !important;
    font-weight: 800;
    line-height: 1.3;
    color: var(--cz-primary-2);
    letter-spacing: .4px;
}

/* ---------- 提交按钮 ---------- */
.public-createorder-order .order > .item .paybut {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background-color: var(--cz-primary);
    background-image: linear-gradient(135deg, var(--cz-primary), var(--cz-primary-2));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(255, 46, 99, .28);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.public-createorder-order .order > .item .paybut:hover {
    background-image: linear-gradient(135deg, var(--cz-primary), var(--cz-primary-2));
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 46, 99, .34);
}

.public-createorder-order .order > .item .paybut:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 46, 99, .26);
}

/* 售罄按钮 */
.public-createorder-order .order > .item .paybut[style*="#afafaf"] {
    box-shadow: none;
    filter: grayscale(.2);
    cursor: not-allowed;
    transform: none;
}

/* ---------- 规格选择 ---------- */
.public-createorder-order .spec-value-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 38px;
    margin: 0 8px 8px 0;
    padding: 0 14px;
    font-size: 14px;
    color: var(--cz-ink-2);
    background: #fff;
    border: 1.5px solid var(--cz-line);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

.public-createorder-order .spec-value-item:hover {
    border-color: rgba(255, 90, 45, .55);
    background: #fff8f5;
}

.public-createorder-order .spec-value-item.selected {
    color: var(--cz-primary-2) !important;
    background: #fff5f8 !important;
    border-color: var(--cz-primary-2) !important;
    font-weight: 600;
}

/* ==================== 二、平板端（≤1199px） ==================== */
@media (max-width: 1199px) {
    .public-createorder {
        max-width: 100%;
        padding: 0 20px;
        gap: 20px;
    }

    .public-createorder-info {
        flex: 0 0 330px;
        width: 330px;
    }

    .public-createorder-info,
    .public-createorder-order {
        padding: 24px 22px;
    }
}

/* ==================== 三、平板竖屏 / 小屏（≤991px） ==================== */
@media (max-width: 991px) {
    .public-createorder {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin: 22px auto 48px;
    }

    .public-createorder-info,
    .public-createorder-order {
        flex: 1 1 auto;
        width: 100%;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .public-createorder-order .top {
        padding-bottom: 16px;
    }

    /* 平板上支付方式按钮更宽松，方便点按 */
    .public-createorder-order .order > .item .pay .pay-item {
        padding: 12px 20px;
    }
}

/* ==================== 四、手机端（≤767px） ==================== */
@media (max-width: 767px) {
    .public-createorder {
        margin: 14px auto 32px;
        padding: 0 12px;
        gap: 14px;
    }

    .public-createorder-info,
    .public-createorder-order {
        padding: 18px 16px;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(16, 24, 40, .06);
    }

    .public-createorder-info > .title,
    .public-createorder-order .top .title {
        font-size: 17px;
        padding-left: 14px;
    }

    .public-createorder-info > .title::before,
    .public-createorder-order .top .title::before {
        width: 3px;
        height: 16px;
    }

    /* 顶部提示条在手机上隐藏，避免挤占空间 */
    .public-createorder-order .top .tips span {
        display: none;
    }

    .public-createorder-order .top .tips em {
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 10px;
    }

    .public-createorder-info .info > .item,
    .public-createorder-order .order > .item {
        gap: 10px;
        padding: 13px 0;
    }

    .public-createorder-info .info > .item > span,
    .public-createorder-order .order > .item > span {
        flex: 0 0 76px;
        width: 76px;
        font-size: 13px;
    }

    .public-createorder-info .info > .item .img img {
        width: 140px;
        height: 140px;
        padding: 4px;
        border-radius: 14px;
    }

    .public-createorder-info .info > .item .money {
        font-size: 18px;
    }

    /* 输入框占满剩余宽度，触摸更好点 */
    .public-createorder-order .order > .item input.fr,
    .public-createorder-order .order > .item select.fr,
    .public-createorder-order .order > .item .user-select,
    .public-createorder-order .order > .item input[type="number"] {
        height: 42px;
        line-height: 40px;
        font-size: 14px;
    }

    /* 支付方式按钮两列铺开 */
    .public-createorder-order .order > .item .pay {
        gap: 8px;
    }

    .public-createorder-order .order > .item .pay .pay-item {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 12px 10px;
        font-size: 13px;
        border-radius: 11px;
    }

    .public-createorder-order .order > .item .pay .pay-item img {
        height: 18px;
    }

    .public-createorder-order .order > .item .money font[name="amoney"] {
        font-size: 22px !important;
    }

    .public-createorder-order .order > .item .paybut {
        height: 50px;
        font-size: 16px;
        border-radius: 12px;
    }

    .public-createorder-order .spec-value-item {
        min-width: 56px;
        height: 36px;
        font-size: 13px;
    }
}

/* ==================== 五、超小屏（≤400px） ==================== */
@media (max-width: 400px) {
    .public-createorder {
        padding: 0 10px;
    }

    .public-createorder-info,
    .public-createorder-order {
        padding: 16px 13px;
    }

    .public-createorder-info .info > .item,
    .public-createorder-order .order > .item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .public-createorder-info .info > .item > span,
    .public-createorder-order .order > .item > span {
        flex: 1 1 100%;
        width: 100%;
    }

    .public-createorder-info .info > .item .fr,
    .public-createorder-order .order > .item .fr {
        flex: 1 1 100%;
        width: 100%;
        text-align: left;
    }

    .public-createorder-order .order > .item .money {
        text-align: left;
    }

    .public-createorder-order .order > .item .pay .pay-item {
        flex: 1 1 100%;
    }
}

/* ==================== 六、手机端购买页（purchase.html） ==================== */

.dx2-goods-detail .ivu-card {
    border-radius: 16px;
    border-color: rgba(16, 24, 40, .07);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

.dx2-goods-detail .ivu-card-body {
    padding: 16px;
}

.dx2-goods-detail .dx2-price {
    color: #ff2e63;
    font-weight: 800;
    letter-spacing: .3px;
}

.dx2-goods-detail .dx2-card-right-buy-btn.ivu-btn-primary {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(135deg, #ff5a2d, #ff2e63);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(255, 46, 99, .26);
    transition: transform .2s, box-shadow .2s;
}

.dx2-goods-detail .dx2-card-right-buy-btn.ivu-btn-primary:hover,
.dx2-goods-detail .dx2-card-right-buy-btn.ivu-btn-primary:focus {
    background: linear-gradient(135deg, #ff5a2d, #ff2e63);
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(255, 46, 99, .32);
}

.dx2-goods-detail .dx2-card-right-buy-btn.ivu-btn-primary[disabled] {
    background: #c9ced6;
    box-shadow: none;
    filter: none;
}

.dx2-goods-detail .ivu-form-item-label {
    color: #475467;
    font-size: 14px;
}

.dx2-goods-detail .ivu-input,
.dx2-goods-detail .ivu-input-number {
    border-radius: 10px;
    border-color: rgba(16, 24, 40, .1);
}

.dx2-goods-detail .ivu-input:focus,
.dx2-goods-detail .ivu-input-number-focused {
    border-color: #ff5a2d;
    box-shadow: 0 0 0 3px rgba(255, 90, 45, .12);
}

.dx2-goods-detail .dx2-tag {
    border-radius: 999px;
}

/* 手机端横屏 / 平板竖屏时，内容区留白更舒展 */
@media (min-width: 768px) {
    .dx2-goods-detail .ivu-card-body {
        padding: 22px;
    }

    .dx2-goods-detail .dx2-card-right-buy-btn.ivu-btn-primary {
        max-width: 420px;
    }
}

/* ==================== 七、手机端 订单支付页（mobile/chengyimanman/payment/buy.html） ====================
   说明：手机端主题是 rem 布局，选择器逐级加 main 前缀，
        在原选择器权重基础上 +1 个元素，保证覆盖生效且不需要 !important。
   ============================================================================ */

main.createorder {
    background: #f5f7fb;
    min-height: 100vh;
    padding-bottom: calc(1.3rem + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

main.createorder .buy-wrap {
    width: auto;
    margin: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
    box-sizing: border-box;
}

/* ---- 商品信息条 ---- */
main.createorder .buy-wrap .buy-shop {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(16, 24, 40, .08);
}

main.createorder .buy-wrap .buy-shop .fl {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    padding: 4px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .06);
    box-sizing: border-box;
}

main.createorder .buy-wrap .buy-shop .fl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 10px;
    background: #fff;
}

main.createorder .buy-wrap .buy-shop .fr {
    flex: 1 1 auto;
    min-width: 0;
}

main.createorder .buy-wrap .buy-shop .fr .title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #101828;
    margin-bottom: 8px;
}

main.createorder .buy-wrap .buy-shop .fr .money .order-money em {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: #ff2e63;
}

main.createorder .buy-wrap .buy-shop .fr .money .order-money span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #ff2e63;
}

main.createorder .buy-wrap .buy-shop .fr .money .order-mun {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    background: #fff;
    border: 1.5px solid rgba(16, 24, 40, .10);
    border-radius: 10px;
    overflow: hidden;
}

main.createorder .buy-wrap .buy-shop .fr .money .order-mun span.min,
main.createorder .buy-wrap .buy-shop .fr .money .order-mun span.add {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475467;
    background: #f8fafc;
    cursor: pointer;
}

main.createorder .buy-wrap .buy-shop .fr .money .order-mun .ordermun {
    width: 58px;
    height: 34px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #101828;
    background: #fff;
    border: 0;
    outline: none;
}

/* ---- 表单项 ---- */
main.createorder .buy-wrap .buy-item {
    padding-top: 14px;
}

main.createorder .buy-wrap .buy-item .title {
    font-size: 13px;
    font-weight: 500;
    color: #667085;
    margin-bottom: 8px;
}

main.createorder .buy-wrap .buy-item input,
main.createorder .buy-wrap .buy-item select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #101828;
    background: #fbfcfe;
    border: 1.5px solid rgba(16, 24, 40, .10);
    border-radius: 11px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

main.createorder .buy-wrap .buy-item input:focus,
main.createorder .buy-wrap .buy-item select:focus {
    background: #fff;
    border-color: #ff5a2d;
    box-shadow: 0 0 0 3px rgba(255, 90, 45, .12);
}

/* ---- 付款方式 ---- */
main.createorder .buy-wrap .buy-pay {
    width: 100%;
    padding-top: 16px;
}

main.createorder .buy-wrap .buy-pay .title {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #667085;
    margin-bottom: 10px;
}

main.createorder .buy-wrap .buy-pay .item {
    height: auto;
    padding: 13px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(16, 24, 40, .10);
    border-radius: 12px;
    transition: border-color .2s, background .2s, box-shadow .2s;
    cursor: pointer;
}

main.createorder .buy-wrap .buy-pay .item + .item {
    border-top: 1.5px solid rgba(16, 24, 40, .10);
}

main.createorder .buy-wrap .buy-pay .item i {
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #667085;
}

main.createorder .buy-wrap .buy-pay .item p {
    width: auto;
    flex: 1 1 auto;
    margin: 0 10px;
    font-size: 14px;
    color: #344054;
}

main.createorder .buy-wrap .buy-pay .item span {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 50%;
    box-sizing: border-box;
}

main.createorder .buy-wrap .buy-pay .item.hover {
    background: #fff5f8;
    border-color: #ff2e63;
    box-shadow: 0 8px 20px rgba(255, 46, 99, .12);
}

main.createorder .buy-wrap .buy-pay .item.hover i,
main.createorder .buy-wrap .buy-pay .item.hover p {
    color: #ff2e63;
}

main.createorder .buy-wrap .buy-pay .item.hover span {
    background: #ff2e63;
    border-color: #ff2e63;
    box-shadow: inset 0 0 0 3px #fff;
}

/* ---- 底部结算栏 ---- */
main.createorder .buy-Nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid rgba(16, 24, 40, .06);
    box-shadow: 0 -6px 24px rgba(16, 24, 40, .08);
    box-sizing: border-box;
    z-index: 50;
}

main.createorder .buy-Nav .money {
    font-size: 13px;
    color: #667085;
}

main.createorder .buy-Nav .money em {
    margin: 0 2px;
    font-style: normal;
    color: #ff2e63;
    font-weight: 700;
}

main.createorder .buy-Nav .money span {
    font-size: 22px;
    font-weight: 800;
    color: #ff2e63;
}

main.createorder .buy-Nav .money font[name="amoney"] {
    font-size: 22px !important;
    font-weight: 800;
    color: #ff2e63;
}

main.createorder .buy-Nav input {
    flex: 0 0 auto;
    min-width: 150px;
    width: auto;
    height: 46px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background-color: #ff5a2d;
    background-image: linear-gradient(135deg, #ff5a2d, #ff2e63);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(255, 46, 99, .28);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

main.createorder .buy-Nav input:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(255, 46, 99, .24);
}

/* ---- 平板端：手机上打开但屏幕较宽时，内容居中收窄 ---- */
@media (min-width: 768px) {
    main.createorder .buy-wrap {
        max-width: 620px;
        margin: 16px auto;
    }

    main.createorder .buy-Nav {
        padding-left: calc(50% - 310px);
        padding-right: calc(50% - 310px);
    }
}

/* ==================== 购买数量：输入框 + 步进 ====================
   【2026-10-31】原来模板按系统配置 Input_box=0 输出 <select>，
   而商品最大购买数量常常是 1，下拉里只有一个「1」，像坏掉的控件。
   pay-qty.js 把它换成输入框，这里负责外观。 */
.public-createorder-order .order > .item .cz-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.public-createorder-order .order > .item .cz-qty-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--cz-line);
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--cz-ink-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}

.public-createorder-order .order > .item .cz-qty-btn:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(255, 90, 45, .45);
    color: var(--cz-primary);
}

.public-createorder-order .order > .item .cz-qty-btn:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.public-createorder-order .order > .item .cz-qty-inp,
.public-createorder-order .order > .item input.cz-qty-inp {
    width: 96px;
    height: 44px;
    padding: 0 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--cz-ink);
    background: #fbfcfe;
    border: 1.5px solid var(--cz-line);
    border-radius: 12px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.public-createorder-order .order > .item .cz-qty-inp:focus {
    border-color: rgba(255, 90, 45, .55);
    box-shadow: 0 0 0 4px rgba(255, 90, 45, .1);
    background: #fff;
}

/* 去掉数字输入框右侧的上下小箭头，用我们自己的步进按钮 */
.public-createorder-order .order > .item .cz-qty-inp::-webkit-outer-spin-button,
.public-createorder-order .order > .item .cz-qty-inp::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.public-createorder-order .order > .item .cz-qty-inp[type="number"] {
    -moz-appearance: textfield;
}

/* 下单页商品名称：可点击，新标签打开商品详情 */
.public-createorder-info .info > .item .text .cz-goods-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 90, 45, .5);
    transition: color .18s, border-color .18s;
    cursor: pointer;
}

.public-createorder-info .info > .item .text .cz-goods-link:hover {
    color: var(--cz-primary);
    border-bottom-color: var(--cz-primary);
}
