/* ========================================
   rebekah 购买页（软件授权）/ 收银台
   版本: 8.0（pdp_ / pay_ 前缀）
   ======================================== */

.pur_body { background: #F1F4F9; }

/* 购买页/收银台：页脚收紧，减少整页高度（仅作用于本页） */
.pur_body .xc_footer { padding-top: 14px; }
.pur_body .xc_footer_info { padding-bottom: 12px; }
.pur_body .xc_footer_social { margin-bottom: 8px; }
.pur_body .xc_footer_info p { margin: 2px 0; }

/* ---------- 页面容器 ---------- */
.pur_wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 20px 28px;
}

/* ========================================
   购买页
   ======================================== */
.pbuy_wrap { max-width: 1160px; }

.pdp_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.pdp_card {
    background: #fff;
    border: 1px solid #E6EBF3;
    border-radius: 16px;
    padding: 24px 28px 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

/* ---------- 头部 ---------- */
.pdp_hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F0F3F8;
}
.pdp_hd_tx { min-width: 0; }
.pdp_hd_tx h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0E1726;
    letter-spacing: -.02em;
    line-height: 1.3;
}
.pdp_hd_tx p {
    margin-top: 6px;
    font-size: 13.5px;
    color: #7B8798;
    line-height: 1.6;
}
.pdp_sku {
    margin-left: 8px;
    padding-left: 9px;
    border-left: 1px solid #E3E9F2;
    font-size: 12px;
    color: #A2ADBC;
}
.pdp_tags_line {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8B96A8;
}

.pdp_price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: none;
}
.pdp_price > span {
    font-size: 13px;
    color: #8B96A8;
}
.pdp_price strong {
    font-size: 34px;
    font-weight: 700;
    color: #E0532B;
    line-height: 1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.pdp_price em {
    margin-left: 3px;
    font-style: normal;
    font-size: 14px;
    font-weight: 500;
    color: #C9704F;
}
.pdp_price small {
    font-size: 12px;
    color: #A2ADBC;
}

/* ---------- 选项 ---------- */
.pdp_opt { margin-top: 22px; }
.pdp_opt_hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.pdp_opt_label {
    font-size: 14px;
    font-weight: 600;
    color: #37475E;
}
.pdp_opt_cur {
    font-size: 13px;
    color: #1F63BC;
    font-weight: 500;
}
.pdp_opt_tip {
    font-size: 12px;
    color: #A2ADBC;
}

.pdp_plats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.pdp_plat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #E3E9F2;
    border-radius: 11px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pdp_plat:hover { border-color: #BFD8F6; }
.pdp_plat_name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1B2432;
    line-height: 1.35;
}
.pdp_plat_sub {
    font-size: 11.5px;
    color: #98A3B3;
    line-height: 1.35;
}
.pdp_plat.is_on {
    background: #F4F9FF;
    border-color: #2F7FE0;
    box-shadow: 0 0 0 2px rgba(47, 127, 224, .12);
}
.pdp_plat.is_on .pdp_plat_name { color: #1F63BC; }
.pdp_plat.is_on .pdp_plat_sub { color: #5B84B8; }

.pdp_roads {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pdp_stepper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    background: #fff;
    border: 1px solid #E3E9F2;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.pdp_stepper:focus-within {
    border-color: #2F7FE0;
    box-shadow: 0 0 0 2px rgba(47, 127, 224, .12);
}
.pdp_step_btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: #fff;
    color: #475569;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, color .12s;
}
.pdp_step_btn:hover { background: #F1F6FE; color: #2F7FE0; }
.pdp_stepper input {
    width: 84px;
    height: 100%;
    border: 0;
    border-left: 1px solid #F0F3F8;
    border-right: 1px solid #F0F3F8;
    background: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0E1726;
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
}
.pdp_stepper input::-webkit-outer-spin-button,
.pdp_stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp_unit {
    padding: 0 14px;
    font-size: 13px;
    color: #95A2B5;
}

.pdp_presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pdp_preset {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #E3E9F2;
    border-radius: 999px;
    background: #fff;
    color: #64748B;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
}
.pdp_preset:hover { border-color: #BFD8F6; color: #2F7FE0; }
.pdp_preset.is_on {
    background: #EAF3FE;
    border-color: #BFD8F6;
    color: #1F63BC;
    font-weight: 600;
}

.pdp_test {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 9px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
    font-size: 12.5px;
    line-height: 1.55;
}

/* ---------- 授权服务说明入口 ---------- */
.pdp_notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #F7FAFF;
    border: 1px solid #DCE8F8;
}
.pdp_notice_tx strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #1B3A5C;
}
.pdp_notice_tx p {
    margin-top: 4px;
    font-size: 12.5px;
    color: #6B7A90;
    line-height: 1.6;
}
.pdp_notice_btn {
    flex: none;
    height: 34px;
    padding: 0 16px;
    line-height: 32px;
    border: 1px solid #BFD8F6;
    border-radius: 8px;
    background: #fff;
    color: #1F63BC;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.pdp_notice_btn:hover { border-color: #2F7FE0; background: #EAF3FE; }

/* ---------- 右侧下单面板 ---------- */
.pdp_side { min-width: 0; }
.pdp_panel {
    position: sticky;
    top: 84px;
    background: #fff;
    border: 1px solid #E6EBF3;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .05);
}
.pdp_panel_hd {
    font-size: 14px;
    font-weight: 600;
    color: #1B2330;
    margin-bottom: 12px;
}

.pdp_sum { margin: 0; }
.pdp_sum > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}
.pdp_sum dt {
    font-size: 13px;
    color: #7B8798;
}
.pdp_sum dd {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #1B2432;
    font-variant-numeric: tabular-nums;
}

.pdp_total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #E6EBF3;
}
.pdp_total span {
    font-size: 13px;
    color: #5B6B84;
}
.pdp_total strong {
    font-size: 32px;
    font-weight: 700;
    color: #E0532B;
    line-height: 1;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.pdp_agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #5B6B84;
    line-height: 1.55;
    cursor: pointer;
}
.pdp_agree input {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: #F25B2A;
    cursor: pointer;
}
.pdp_agree a {
    color: #2F7FE0;
    text-decoration: none;
}
.pdp_agree a:hover { text-decoration: underline; }

.pdp_login_tip {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
    font-size: 12px;
    line-height: 1.55;
}
.pdp_login_tip a { color: #C2410C; font-weight: 600; }

.pdp_buybtn {
    width: 100%;
    height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #FF7A45, #F25B2A);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(242, 91, 42, .24);
    transition: filter .15s, box-shadow .15s, transform .05s;
}
.pdp_buybtn:hover { filter: brightness(1.04); box-shadow: 0 8px 20px rgba(242, 91, 42, .3); }
.pdp_buybtn:active { transform: translateY(1px); }
.pdp_buybtn[disabled] {
    background: #F0BBA6;
    box-shadow: none;
    cursor: not-allowed;
}

.pdp_services {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}
.pdp_services li {
    position: relative;
    padding-left: 15px;
    font-size: 12px;
    color: #8B96A8;
}
.pdp_services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 10px;
    color: #2E9E5B;
}

.pdp_msg {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: #FDECED;
    border: 1px solid #F5C9CB;
    color: #C0392E;
    font-size: 12px;
    line-height: 1.55;
}

/* ========================================
   收银台
   ======================================== */
.pay_wrap { max-width: 1160px; }

.pay_steps {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow-x: auto;
}
.pay_steps li {
    display: flex;
    flex: none;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #9AA5B5;
}
.pay_steps li:not(:last-child)::after {
    content: '';
    width: 64px;
    height: 1px;
    background: #DFE6EF;
    margin: 0 18px;
    flex: none;
}
.pay_step_no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E9EEF5;
    color: #8B96A8;
    font-size: 11.5px;
    font-weight: 600;
}
.pay_step_no svg { width: 12px; height: 12px; }
.pay_steps .is_done { color: #5B6B84; }
.pay_steps .is_done .pay_step_no { background: #E8F6EC; color: #2E9E5B; }
.pay_steps .is_active { color: #1B2330; font-weight: 600; }
.pay_steps .is_active .pay_step_no { background: #2F7FE0; color: #fff; }

.pay_sec_hd { margin-top: 20px; margin-bottom: 9px; }

.pay_state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #F4FAF6;
    border: 1px solid #D9EFE1;
}
.pay_state.is_warn {
    background: #FFF8EC;
    border-color: #FBE3BE;
}
.pay_state_ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    background: #E8F6EC;
    color: #2E9E5B;
    font-size: 15px;
    font-weight: 700;
}
.pay_state_ico svg { width: 15px; height: 15px; }
.pay_state.is_warn .pay_state_ico { background: #FFF3E6; color: #C77700; }
.pay_state_tx h2 {
    font-size: 17px;
    font-weight: 600;
    color: #0E1726;
    line-height: 1.4;
}
.pay_state_tx p {
    margin-top: 5px;
    font-size: 12.5px;
    color: #8B96A8;
    line-height: 1.6;
}
.pay_state_tx p strong { color: #5B6B84; font-weight: 600; }

.pay_kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: #EEF2F7;
    border: 1px solid #EEF2F7;
    border-radius: 12px;
    overflow: hidden;
}
.pay_kv > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
    background: #fff;
    min-width: 0;
}
.pay_kv_wide { grid-column: 1 / -1; }
.pay_kv dt {
    font-size: 12px;
    color: #95A2B5;
}
.pay_kv dd {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 13.5px;
    color: #1B2330;
    word-break: break-all;
}
.pay_no {
    font-weight: 600;
    color: #1F63BC;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
}
.pay_copy {
    height: 22px;
    padding: 0 9px;
    border: 1px solid #D8E2EF;
    border-radius: 6px;
    background: #fff;
    color: #5B6B84;
    font-size: 11.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
}
.pay_copy:hover { border-color: #2F7FE0; color: #2F7FE0; }
.pay_goods { line-height: 1.6; }
.pay_tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: #FFF3E6;
    color: #C77700;
    font-size: 11px;
    font-weight: 600;
}

.pay_tip {
    margin: 16px 0 0;
    font-size: 12px;
    color: #98A3B3;
    line-height: 1.6;
}

/* ---------- 右侧支付面板 ---------- */
.pay_method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #D8E2EF;
    border-radius: 12px;
    background: #fff;
}
.pay_method.is_on {
    border-color: #2F7FE0;
    background: #F4F9FF;
    box-shadow: 0 0 0 3px rgba(47, 127, 224, .08);
}
.pay_method_ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: #EAF3FE;
    color: #1F63BC;
    font-size: 15px;
    font-weight: 700;
}
.pay_method_tx { flex: 1; min-width: 0; }
.pay_method_name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1B2330;
}
.pay_method_sub {
    margin-top: 2px;
    font-size: 11.5px;
    color: #95A2B5;
}
.pay_method_radio {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    border: 4px solid #2F7FE0;
    background: #fff;
    box-sizing: border-box;
}

.pay_test_note {
    margin: 10px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
    font-size: 12px;
    line-height: 1.55;
}

.pay_remain {
    margin: 16px 0 10px;
    font-size: 12.5px;
    color: #8B96A8;
}
.pay_remain strong {
    color: #C77700;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

.pay_msg {
    margin: 12px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    background: #FDECED;
    border: 1px solid #F5C9CB;
    color: #C0392E;
    font-size: 12px;
    line-height: 1.55;
}

.pay_link {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 12.5px;
    color: #2F7FE0;
    text-decoration: none;
}
.pay_link:hover { color: #1F63BC; }
.pay_link_sub { color: #8B96A8; }
.pay_link_sub:hover { color: #5B6B84; }

.pay_tip_link { color: #2F7FE0; text-decoration: none; }
.pay_tip_link:hover { text-decoration: underline; }

.pay_services { margin-top: 16px; }

.pay_secure {
    margin: 12px 4px 0;
    font-size: 11.5px;
    color: #A2ADBC;
    line-height: 1.6;
}

/* ========================================
   授权服务说明
   ======================================== */
.svc_wrap { max-width: 900px; }

.svc_card {
    background: #fff;
    border: 1px solid #E6EBF3;
    border-radius: 16px;
    padding: 30px 34px 34px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.svc_hd {
    padding-bottom: 18px;
    border-bottom: 1px solid #F0F3F8;
}
.svc_hd h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0E1726;
    letter-spacing: -.02em;
}
.svc_hd p {
    margin-top: 8px;
    font-size: 13px;
    color: #8B96A8;
    line-height: 1.7;
}
.svc_body { padding-top: 4px; }
.svc_body h2 {
    margin: 26px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #2F7FE0;
    font-size: 16px;
    font-weight: 600;
    color: #0E1726;
}
.svc_body h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1B2432;
}
.svc_body p {
    margin: 8px 0;
    font-size: 13.5px;
    color: #3A4658;
    line-height: 1.85;
}
.svc_body ul, .svc_body ol {
    margin: 8px 0;
    padding-left: 22px;
}
.svc_body li {
    margin: 5px 0;
    font-size: 13.5px;
    color: #3A4658;
    line-height: 1.85;
}
.svc_body strong { color: #1B2432; }
.svc_hint {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
    font-size: 13px;
    line-height: 1.7;
}
.svc_link {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: #2F7FE0;
    text-decoration: none;
}
.svc_link:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .pdp_grid { grid-template-columns: 1fr; }
    .pdp_panel { position: static; }
}

@media (max-width: 720px) {
    .pur_wrap { padding: 16px 14px 32px; }
    .pdp_card { padding: 20px 16px 18px; border-radius: 14px; }
    .pdp_hd { flex-direction: column; gap: 14px; }
    .pdp_price { align-items: flex-start; }
    .pdp_hd_tx h1 { font-size: 21px; }
    .pdp_sku { display: none; }
    .pdp_plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pdp_notice { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pdp_services { justify-content: flex-start; }
    .pay_kv { grid-template-columns: 1fr; }
    .pay_kv_wide { grid-column: auto; }
    .pay_steps li:not(:last-child)::after { width: 26px; margin: 0 10px; }
    .svc_card { padding: 20px 16px 24px; }
    .svc_hd h1 { font-size: 21px; }
}

@media (max-width: 420px) {
    .pdp_plats { grid-template-columns: 1fr; }
}
