/* 云虚拟主机购买页：沿用参考页 probuy.css，仅补全原生表单控件与布局适配。 */
.hmyun-page.hmyun-purchase-page {
    min-height: calc(100vh - 140px);
    background: #f2f3f8;
}

/* 公告条：参考页样式未随模板迁移，补齐样式并约束内联 SVG 尺寸，避免图标撑满容器导致页面错乱 */
.hmyun-purchase-page .announcement-container {
    width: 100%;
    max-width: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.hmyun-purchase-page .announcement-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(90deg, #006eff 0%, #00a3ff 100%);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.hmyun-purchase-page .announcement-header .announcement-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #fff;
}

.hmyun-purchase-page .announcement-header h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.hmyun-purchase-page .announcement-header a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hmyun-purchase-page .announcement-header {
        padding: 12px 16px;
    }
}

.hmyun-purchase-page .content_wrapper--YFcqz,
.hmyun-purchase-page .content--b1eX3,
.hmyun-purchase-page .page--q99AA {
    min-height: inherit;
}

.hmyun-purchase-page .page--q99AA {
    display: flex;
    flex-direction: column;
}

.hmyun-purchase-page .wrapper--Lj8fg {
    flex: 1;
    height: auto;
}

.hmyun-purchase-page .main--n_cS2,
.hmyun-purchase-page .footer_inner--WcckY,
.hmyun-purchase-page .header--w0qGH .header_inner--KQC5r {
    width: calc(100% - 40px);
    max-width: 1300px;
    min-width: 0;
}

.hmyun-purchase-page .main--n_cS2 {
    padding: 18px 0 24px;
}

.hmyun-purchase-page .iaas-ecs-arco-steps {
    margin-bottom: 18px;
}

.hosting-checkout-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 4px;
    color: var(--color-text-2);
    text-decoration: none;
}

.hosting-checkout-back:hover {
    background: #f2f3f8;
    color: var(--zdztxz);
}

.hosting-checkout-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.7;
}

.hosting-checkout-alert-ok {
    border: 1px solid #b7eb8f;
    background: #f6ffed;
    color: #389e0d;
}

.hosting-checkout-alert-error {
    border: 1px solid #ffccc7;
    background: #fff2f0;
    color: #cf1322;
}

.hosting-checkout-tip {
    color: rgb(var(--gray-6));
    font-size: 12px;
    line-height: 1.8;
}

.hosting-checkout-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
}

.hosting-checkout-inline-field {
    flex: 1 1 220px;
    min-width: 0;
}

.hosting-checkout-sub-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-3);
    font-size: 12px;
}

.hosting-checkout-inline-field .iaas-ecs-arco-input {
    width: 100%;
}

.hosting-control {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-border-2);
    border-radius: 2px;
    background: #fff;
    color: var(--color-text-1);
    font-size: 12px;
    line-height: 30px;
    outline: none;
}

.hosting-control:focus {
    border-color: var(--zdztxz);
    box-shadow: 0 0 0 2px rgba(36, 104, 242, .12);
}

.hosting-checkout-warning {
    flex: 1;
    margin: 0;
    color: #cf1322;
    font-size: 12px;
    line-height: 1.8;
}

.hosting-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hosting-quantity .iaas-ecs-arco-input {
    width: 72px;
    text-align: center;
}

.hosting-radio-input {
    height: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 0;
}

/* 弹性资源滑杆：沿用参考页配置行的标签与间距 */
.hmyun-purchase-page #checkout-resource-list .form_row--siSCq {
    align-items: flex-start;
}

.hmyun-purchase-page .hosting-slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.hmyun-purchase-page .hosting-slider-current {
    color: var(--zdztxz);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hmyun-purchase-page .hosting-slider-price {
    color: var(--color-text-3);
    font-size: 11px;
    line-height: 1.6;
}

/* 复用产品页弹性资源样式，尺寸适配购买页 */
.hmyun-purchase-page .hosting-resource-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.hmyun-purchase-page .hosting-resource {
    padding: 12px 14px;
    border: 1px solid var(--color-border-1);
    border-radius: 4px;
    background: #fbfcff;
}

.hmyun-purchase-page .hosting-resource.is-on {
    border-color: #d8e6ff;
    background: #fff;
}

.hmyun-purchase-page .hosting-resource-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hmyun-purchase-page .hosting-resource-name {
    color: var(--color-text-1);
    font-size: 12px;
    font-weight: 700;
}

.hmyun-purchase-page .hosting-resource-name small {
    display: block;
    margin-top: 2px;
    color: var(--color-text-3);
    font-size: 11px;
    font-weight: 400;
}

.hmyun-purchase-page .hosting-resource-value {
    color: var(--zdztxz);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hmyun-purchase-page .hosting-range {
    width: 100%;
    height: 4px;
    margin: 10px 0 0;
    border-radius: 100px;
    background: linear-gradient(to right, var(--zdztxz) 0%, var(--zdztxz) var(--range-progress, 0%), #e5e8ef var(--range-progress, 0%), #e5e8ef 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hmyun-purchase-page .hosting-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--zdztxz);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(36, 104, 242, .12);
    -webkit-appearance: none;
    appearance: none;
}

.hmyun-purchase-page .hosting-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid var(--zdztxz);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(36, 104, 242, .12);
}

.hmyun-purchase-page .hosting-range:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.hmyun-purchase-page .hosting-range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: var(--color-text-3);
    font-size: 11px;
}

.hmyun-purchase-page .hosting-resource-tip {
    margin-top: 4px;
    color: var(--color-text-3);
    font-size: 11px;
    line-height: 1.7;
}

.hmyun-purchase-page .footer--ZpVcq {
    padding: 12px 0;
}

.hmyun-purchase-page .footer_inner--WcckY {
    gap: 16px;
}

.hmyun-purchase-page .yxpz {
    color: var(--color-text-2);
    font-size: 12px;
}

.hmyun-purchase-page .pzxq {
    flex: 1;
    min-width: 0;
}

.hmyun-purchase-page .info_list--xz23O {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.hmyun-purchase-page .info_item--bAKTX {
    font-size: 12px;
    color: var(--color-text-3);
}

.hmyun-purchase-page .info_item--bAKTX > span:first-child {
    color: var(--color-text-3);
}

.hmyun-purchase-page .info_item--bAKTX > span:last-child {
    color: var(--color-text-1);
}

.hmyun-purchase-page #checkout-total {
    margin-left: 6px;
    color: rgb(var(--warning-6));
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hmyun-purchase-page .footer_ctrl--cVlJ_ {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hmyun-purchase-page .footer_ctrl--cVlJ_ .iaas-ecs-arco-btn {
    min-width: 96px;
}

@media (max-width: 1080px) {
    .hmyun-purchase-page .main--n_cS2,
    .hmyun-purchase-page .footer_inner--WcckY,
    .hmyun-purchase-page .header--w0qGH .header_inner--KQC5r {
        width: calc(100% - 32px);
    }
}

@media (max-width: 768px) {
    .hmyun-purchase-page .hosting-resource-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hmyun-purchase-page .footer_inner--WcckY {
        align-items: flex-start;
        flex-direction: column;
    }

    .hmyun-purchase-page .footer_price--DPq5T {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        justify-content: space-between;
    }

    .hmyun-purchase-page .footer_ctrl--cVlJ_ {
        width: 100%;
    }

    .hmyun-purchase-page .footer_ctrl--cVlJ_ .iaas-ecs-arco-btn {
        flex: 1;
    }
}

/* 页面容器：复用参考页布局，同时避免在站点主布局内出现嵌套滚动 */
.hmyun-purchase-page .rAcrgyQXPnKEMMJxxw7Q {
    height: auto;
    min-height: calc(100vh - 140px);
}

.hmyun-purchase-page .hkDFL7fJ2blTHibb2WG3,
.hmyun-purchase-page .content--b1eX3,
.hmyun-purchase-page .content_wrapper--YFcqz {
    height: auto;
    overflow: visible;
}

/* 参考页把外层容器设为 flex 项并靠 overflow-x 滚动，解除 overflow 后需允许其收缩，
   否则规格表格的最小内容宽度会把整页撑到 1100px 以上，导致移动端横向溢出 */
.hmyun-purchase-page .hkDFL7fJ2blTHibb2WG3 {
    min-width: 0;
    width: 100%;
}

.hmyun-purchase-page .wrapper_inner--hbJlS {
    overflow: visible;
}

/* 解除参考页容器自带的滚动/裁剪，保证顶部栏与底部栏可吸附视口 */
.hmyun-page.hmyun-purchase-page,
.hmyun-purchase-page .rAcrgyQXPnKEMMJxxw7Q .hkDFL7fJ2blTHibb2WG3 {
    overflow: visible;
}

/* 创建实例栏吸附在站点导航下方 */
.hmyun-purchase-page .header--w0qGH {
    position: sticky;
    top: 77px;
    z-index: 30;
    background-color: #fff;
}

/* 步骤跳转时避免标题被吸顶栏遮挡 */
.hmyun-purchase-page .form_sec--FApAM {
    scroll-margin-top: 140px;
}

/* 底部结算栏固定在视口底部 */
.hmyun-purchase-page .footer--ZpVcq {
    position: sticky;
    bottom: 0;
    z-index: 30;
    box-shadow: 0 -6px 16px -12px rgba(16, 24, 40, .28);
}

.hmyun-purchase-page .hosting-purchase-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

/* 原生 select 套用参考页下拉框外观 */
.hmyun-purchase-page .hosting-select {
    width: 100%;
    height: 100%;
    padding: 0 30px 0 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text-1);
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.hmyun-purchase-page .hosting-select-value {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding-left: 12px;
    color: var(--color-text-1);
    font-size: 12px;
}

.hmyun-purchase-page .iaas-ecs-arco-select-view {
    position: relative;
}

.hmyun-purchase-page .iaas-ecs-arco-select-suffix {
    pointer-events: none;
}

/* 滑块与数值输入：参考页 slider-input 结构 */
.hmyun-purchase-page [data-resource-row] > .slider--dq9Ts {
    flex: 1 1 auto;
    left: 0;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* 窄屏下配置行改为纵向排列，滑杆需占满整行 */
@media (max-width: 1080px) {
    .hmyun-purchase-page [data-resource-row] > .slider--dq9Ts {
        flex: none;
        display: block;
        width: 100%;
    }
}

.hmyun-purchase-page .hosting-slider-input {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-top: 3px;
}

.hmyun-purchase-page .hosting-slider-input .hosting-range {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.hmyun-purchase-page .hosting-slider-input .iaas-ecs-arco-input-number {
    flex: none;
    width: 182px;
    margin-left: 0;
}

.hmyun-purchase-page .hosting-slider-input .iaas-ecs-arco-input-inner-wrapper,
.hmyun-purchase-page .hosting-slider-input .iaas-ecs-arco-input-group {
    width: 100%;
}

.hmyun-purchase-page .hosting-slider-input .iaas-ecs-arco-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-left: 8px;
    text-align: center;
}

.hmyun-purchase-page [data-resource-empty] {
    margin-top: 2px;
}

.hmyun-purchase-page .hosting-plan-option {
    cursor: pointer;
}

/* 配置清单展开时保持参考页的横向排布 */
.hmyun-purchase-page #checkout-config-summary {
    display: none;
    align-items: flex-start;
}

/* 参考购买页为全屏创建实例页面，站点页脚与悬浮客服不参与展示 */
body.hmyun-purchase-body > footer.ft,
body.hmyun-purchase-body .side-dock {
    display: none;
}

/* 参考页滑块：左侧刻度从最小值开始，右侧为最大值 */
.hmyun-purchase-page .hosting-slider-track {
    position: relative;
    flex: 1;
    min-width: 0;
    padding-bottom: 18px;
}

.hmyun-purchase-page .hosting-slider-track .hosting-range {
    width: 100%;
    margin: 0;
}

.hmyun-purchase-page .hosting-slider-track .iaas-ecs-arco-slider-marks {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 14px;
    margin: 0;
    top: auto;
    width: auto;
}

.hmyun-purchase-page .hosting-slider-track .iaas-ecs-arco-slider-marks-text {
    color: #86909c;
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
}

.hmyun-purchase-page .hosting-slider-track .iaas-ecs-arco-slider-marks-text[data-resource-min] {
    left: 0;
}

.hmyun-purchase-page .hosting-slider-track .iaas-ecs-arco-slider-marks-text[data-resource-max] {
    left: auto;
    right: 0;
    transform: none;
}

/* 手机端滑杆与数值输入分行，避免滑杆过短、文字拥挤 */
@media (max-width: 640px) {
    .hmyun-purchase-page .hosting-slider-input {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hmyun-purchase-page .hosting-slider-input .hosting-slider-track {
        flex: 1 0 100%;
    }

    .hmyun-purchase-page .hosting-slider-input .iaas-ecs-arco-input-number {
        width: 100%;
    }
}

/* 下单确认弹窗：页面居中展示，替代浏览器原生 confirm */
body.hosting-confirm-open {
    overflow: hidden;
}

.hosting-confirm-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hosting-confirm-modal.is-open {
    display: flex;
}

.hosting-confirm-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .45);
    animation: hosting-confirm-fade .18s ease-out;
}

.hosting-confirm-dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    animation: hosting-confirm-pop .18s ease-out;
}

.hosting-confirm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}

.hosting-confirm-title {
    margin: 0;
    padding: 0;
    color: #1d2129;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.hosting-confirm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -6px -4px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #86909c;
    cursor: pointer;
}

.hosting-confirm-close:hover {
    background: #f2f3f5;
    color: #4e5969;
}

.hosting-confirm-body {
    padding: 14px 20px 0;
}

.hosting-confirm-text {
    margin: 0 0 14px;
    padding: 0;
    color: #4e5969;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
}

.hosting-confirm-summary {
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7f8fa;
}

.hosting-confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.6;
}

.hosting-confirm-row span {
    color: #86909c;
}

.hosting-confirm-row em {
    overflow: hidden;
    color: #1d2129;
    font-style: normal;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hosting-confirm-row.is-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #e5e6eb;
}

.hosting-confirm-row.is-total strong {
    color: #f53f3f;
    font-size: 18px;
    font-weight: 600;
}

.hosting-confirm-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
}

.hosting-confirm-btn {
    box-sizing: border-box;
    min-width: 80px;
    height: 32px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #4e5969;
    font-family: inherit;
    font-size: 13px;
    line-height: 30px;
    cursor: pointer;
}

.hosting-confirm-btn:hover {
    border-color: #2468f2;
    color: #2468f2;
}

.hosting-confirm-btn.is-primary {
    border-color: #2468f2;
    background: #2468f2;
    color: #fff;
}

.hosting-confirm-btn.is-primary:hover {
    border-color: #1e57d8;
    background: #1e57d8;
    color: #fff;
}

@keyframes hosting-confirm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hosting-confirm-pop {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .hosting-confirm-modal {
        padding: 16px;
    }

    .hosting-confirm-btn {
        flex: 1;
    }
}

/* 滑块：原生 range 仅作为操作层，隐藏其默认外观，避免与自定义轨道/刻度重叠 */
.hmyun-purchase-page .iaas-ecs-arco-slider-road {
    position: relative;
}

.hmyun-purchase-page .cloud-slider-native {
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.hmyun-purchase-page .cloud-slider-native:disabled {
    cursor: not-allowed;
}

/* 步进滑块仅使用左侧手柄，隐藏模板中预留的右侧手柄 */
.hmyun-purchase-page .slider-handle.hide {
    display: none !important;
}

/* 无升级区间时展示的固定值：尺寸与选中态单选按钮一致 */
.hmyun-purchase-page .cloud-slider-fixed {
    display: inline-flex;
    align-items: center;
    height: 35px;
    padding: 0 30px;
    border-radius: 2px;
    background: var(--zdans, #3f7fff);
    color: #fff;
    font-size: 12px;
    line-height: 33px;
}

/* 参考页的 -12px 偏移用于旧版布局，这里让滑块与标签列对齐 */
.hmyun-purchase-page .slider--dq9Ts {
    left: 0;
}

/* 带宽/防御行：保持参考页固定轨道长度，仅修正与其它配置行的对齐与行距 */
.hmyun-purchase-page .cloud-slider-row > .slider--dq9Ts {
    padding-left: 0;
    margin-bottom: 0;
}

/* 规格表：收窄表头内边距并保证标题与问号图标同行，避免窄列换行/错位 */
.hmyun-purchase-page .iaas-ecs-arco-table .iaas-ecs-arco-table-th-item,
.hmyun-purchase-page .iaas-ecs-arco-table .iaas-ecs-arco-table-cell-with-sorter {
    padding-left: 8px;
    padding-right: 8px;
}

.hmyun-purchase-page .iaas-ecs-arco-table-th-item-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 标题内的 nowrap 包裹层也改为 flex，保证文字与问号图标始终同行 */
.hmyun-purchase-page .iaas-ecs-arco-table-th-item-title > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.hmyun-purchase-page .iaas-ecs-arco-table-th-item-title .help--ToFEH {
    display: inline-flex !important;
    align-items: center;
    margin: 0 0 0 2px !important;
}

.hmyun-purchase-page .iaas-ecs-arco-table-th-item-title .icon--KLt0X {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    position: static !important;
    top: auto !important;
}

/* 规格表内容列：收窄左右内边距，避免规格名与处理器型号被省略或断行 */
.hmyun-purchase-page .form_row--siSCq .iaas-ecs-arco-table td.iaas-ecs-arco-table-td {
    padding-left: 12px;
    padding-right: 12px;
}

/* 数值输入悬停提示：展示单价、可选上限与当前值 */
.hmyun-purchase-page .iaas-ecs-arco-input-group-wrapper,
.hmyun-purchase-page #cloud-nat-quota-input {
    position: relative;
}

.hmyun-purchase-page .cloud-input-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 20;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}

.hmyun-purchase-page .cloud-input-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, .78);
}

.hmyun-purchase-page .iaas-ecs-arco-input-group-wrapper:hover .cloud-input-tooltip,
.hmyun-purchase-page .iaas-ecs-arco-input-group-wrapper:focus-within .cloud-input-tooltip,
.hmyun-purchase-page #cloud-nat-quota-input:hover .cloud-input-tooltip,
.hmyun-purchase-page #cloud-nat-quota-input:focus-within .cloud-input-tooltip,
.hmyun-purchase-page .cloud-input-tooltip.is-visible {
    display: block;
}

/* 添加数据盘按钮：图标与文字垂直居中 */
.hmyun-purchase-page .add_btn--fmqOP {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.hmyun-purchase-page .add_btn--fmqOP > svg {
    display: block;
    vertical-align: 0;
}

.hmyun-purchase-page .add_btn--fmqOP > span {
    top: 50%;
    transform: translateY(-50%);
}

/* 操作系统：搜索框与系统图标 */
.hmyun-purchase-page .cloud-os-search {
    display: flex;
    align-items: center;
    width: 280px;
    max-width: 100%;
    height: 32px;
    margin-bottom: 10px;
    padding: 0 10px;
    border: 1px solid #e5e8ef;
    border-radius: 2px;
    background: #fff;
}

.hmyun-purchase-page .cloud-os-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text-1);
    font-size: 12px;
}

.hmyun-purchase-page .cloud-os-search .iaas-ecs-arco-icon {
    flex: none;
    width: 14px;
    height: 14px;
    color: #86909c;
}

.hmyun-purchase-page .imageBox--kHPgu .imageItem--Rg_O8 .platform--V8N57 .imageIcon--kbEFN {
    display: flex !important;
}

.hmyun-purchase-page .imageIcon--kbEFN .iconcolor {
    font-size: 20px;
    line-height: 1;
}

/* 规格搜索按钮：去掉白色底块并让放大镜居中 */
.hmyun-purchase-page .zd-ssgg button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0 50px 50px 0;
    background: transparent;
    color: #86909c;
    line-height: 1;
    vertical-align: middle;
    top: 0;
    left: 0;
}

.hmyun-purchase-page .zd-ssgg button svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* 费用明细气泡 + 代金券选择 */
.hmyun-purchase-page em {
    font-style: normal;
}

.hmyun-purchase-page .po-price-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hmyun-purchase-page .po-price-label {
    color: var(--color-text-2);
    font-size: 13px;
}

.hmyun-purchase-page .po-price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.hmyun-purchase-page .po-daily {
    color: #f53f3f;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.hmyun-purchase-page .po-price-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.hmyun-purchase-page .po-original {
    color: #86909c;
    font-size: 12px;
    white-space: nowrap;
}

.hmyun-purchase-page .po-original > b {
    color: #f53f3f;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hmyun-purchase-page .po-price-line .price_text--u7dI8 > span:first-child {
    margin-right: 0;
}

.hmyun-purchase-page .po-detail {
    position: relative;
    display: inline-flex;
}

/* 透明桥接区：避免鼠标从按钮移向浮层时经过间隙导致浮层收起 */
.hmyun-purchase-page .po-detail::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

.hmyun-purchase-page .po-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    color: #3f7fff;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.hmyun-purchase-page .po-detail-link:hover {
    color: #2f6fe8;
    text-decoration: underline;
}

.hmyun-purchase-page .po-detail-pop {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 560px;
    max-width: calc(100vw - 48px);
    padding: 14px 16px 12px;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .22);
    z-index: 80;
    text-align: left;
}

.hmyun-purchase-page .po-detail:hover .po-detail-pop,
.hmyun-purchase-page .po-detail:focus-within .po-detail-pop {
    display: block;
}

.hmyun-purchase-page .po-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #1d2129;
    font-size: 13px;
    font-weight: 600;
}

/* 关闭按钮：仅移动端底部弹层展示 */
.hmyun-purchase-page .po-detail-close {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: -4px -6px -4px 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #86909c;
    cursor: pointer;
}

.hmyun-purchase-page .po-detail-close:hover {
    background: #f2f3f5;
    color: #4e5969;
}

/* 移动端由脚本切换 is-open，桌面端仍沿用 hover/focus 展开 */
.hmyun-purchase-page .po-detail.is-open .po-detail-pop {
    display: block;
}

.hmyun-purchase-page .po-detail-table {
    border: 1px solid #eff0f3;
    border-radius: 4px;
    overflow: hidden;
}

.hmyun-purchase-page .po-detail-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 70px 82px 108px;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    color: #4e5969;
    font-size: 12px;
    line-height: 1.5;
}

.hmyun-purchase-page .po-detail-row:nth-child(even) {
    background: #fafbfc;
}

.hmyun-purchase-page .po-detail-row.is-head {
    background: #f2f5fa;
    color: #1d2129;
    font-weight: 600;
}

.hmyun-purchase-page .po-detail-row > span:first-child {
    color: #1d2129;
    font-weight: 600;
    white-space: nowrap;
}

.hmyun-purchase-page .po-detail-row > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmyun-purchase-page .po-detail-row > span:nth-child(n+3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hmyun-purchase-page .po-detail-row > span:last-child {
    color: #1d2129;
}

.hmyun-purchase-page .po-detail-sum {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e6eb;
    color: #1d2129;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.hmyun-purchase-page .po-detail-sum > b {
    color: #f53f3f;
    font-size: 18px;
}

.hmyun-purchase-page .po-voucher-picker {
    position: relative;
    margin-left: 24px;
}

.hmyun-purchase-page .po-voucher-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 200px;
    max-width: 300px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #3f7fff;
    border-radius: 2px;
    background: #fff;
    color: #1d2129;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-align: left;
}

.hmyun-purchase-page .po-voucher-btn > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hmyun-purchase-page .po-voucher-btn .iaas-ecs-arco-icon {
    flex: 0 0 auto;
    color: #86909c;
}

.hmyun-purchase-page .po-voucher-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 200px;
    max-width: 320px;
    border: 1px solid #3f7fff;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .22);
    z-index: 80;
    overflow: hidden;
}

.hmyun-purchase-page .po-voucher-list {
    padding: 2px 0;
}

.hmyun-purchase-page .po-voucher-option {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px solid #f2f3f5;
    background: #fff;
    color: #1d2129;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.hmyun-purchase-page .po-voucher-option:hover,
.hmyun-purchase-page .po-voucher-option.is-selected {
    background: #eaf2ff;
    color: #3f7fff;
}

.hmyun-purchase-page .po-voucher-empty {
    padding: 8px 10px;
    color: #86909c;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .hmyun-purchase-page .po-detail-pop {
        width: 460px;
    }

    .hmyun-purchase-page .po-detail-row {
        grid-template-columns: 84px minmax(0, 1fr) 64px 74px 96px;
        font-size: 11px;
    }
}

/* 移动端：结算栏价格与代金券按钮自适应换行，避免撑破视口 */
@media (max-width: 768px) {
    .hmyun-purchase-page .footer_price--DPq5T {
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 12px;
        width: 100%;
    }

    .hmyun-purchase-page .price_wrapper--daRYm {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 0;
        align-items: flex-start;
    }

    .hmyun-purchase-page .po-price-line {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 4px;
    }

    .hmyun-purchase-page .po-daily {
        font-size: 11px;
    }

    .hmyun-purchase-page .po-price-foot {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .hmyun-purchase-page .po-voucher-picker {
        flex: 1 1 150px;
        min-width: 0;
        margin-left: 0;
    }

    .hmyun-purchase-page .po-voucher-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .hmyun-purchase-page .po-voucher-panel {
        left: 0;
        right: auto;
        min-width: 100%;
        max-width: 100%;
    }

    .hmyun-purchase-page .po-detail-pop {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        max-height: 70vh;
        overflow-y: auto;
    }

    /* 移动端费用明细改为底部弹层：禁用 hover/focus 自动展开，改由关闭按钮或点击外部收起 */
    .hmyun-purchase-page .po-detail:hover .po-detail-pop,
    .hmyun-purchase-page .po-detail:focus-within .po-detail-pop {
        display: none;
    }

    .hmyun-purchase-page .po-detail.is-open .po-detail-pop {
        display: block;
    }

    .hmyun-purchase-page .po-detail-close {
        display: inline-flex;
    }

    .hmyun-purchase-page .po-detail-row {
        grid-template-columns: 64px minmax(0, 1fr) 52px 60px 78px;
        gap: 6px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* 移动端表单细节：帮助图标与控件同行，数据盘/登录密码行避免错位 */
@media (max-width: 1080px) {
    /* 公网IP / 计费方式：问号提示图标与控件保持同一行 */
    .hmyun-purchase-page .form_row--with-help {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
    }

    .hmyun-purchase-page .form_row--with-help > .label--XUeGx {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hmyun-purchase-page .form_row--with-help > .help--ToFEH {
        align-self: center;
        margin: 0 !important;
    }

    /* 数据盘：参考页移动端只保留步进输入，隐藏滑杆残留的手柄、气泡与刻度 */
    .hmyun-purchase-page #cloud-data-disk-row .iaas-ecs-arco-slider-road {
        display: none !important;
    }

    .hmyun-purchase-page #cloud-data-disk-row .iaas-ecs-arco-slider-wrapper {
        flex-wrap: nowrap;
    }

    .hmyun-purchase-page #cloud-data-disk-box {
        flex: 1 1 auto;
        min-width: 0;
    }

    .hmyun-purchase-page #cloud-data-disk-row #cloud-remove-data-disk {
        flex: 0 0 auto;
        margin-left: 12px !important;
        white-space: nowrap;
    }

    /* 登录密码：提示文案移到输入框下方，随机生成按钮与输入框同行 */
    .hmyun-purchase-page #cloud-password-row .iaas-ecs-arco-row {
        flex-wrap: wrap;
        row-gap: 6px;
        width: 100%;
    }

    .hmyun-purchase-page #cloud-password-row .iaas-ecs-arco-col-19 {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .hmyun-purchase-page #cloud-password-row .iaas-ecs-arco-input-inner-wrapper {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
    }

    .hmyun-purchase-page #cloud-password-row #cloud-password {
        width: 100%;
    }

    .hmyun-purchase-page #cloud-password-row #cloud-generate-password {
        flex: 0 0 auto;
        margin-left: 10px;
        white-space: nowrap;
    }

    .hmyun-purchase-page #cloud-password-row .iaas-ecs-arco-form-extra {
        width: 100%;
        text-align: left;
    }

    /* 输入框提示气泡：限制宽度并允许换行，避免溢出卡片 */
    .hmyun-purchase-page .cloud-input-tooltip {
        max-width: calc(100vw - 48px);
        white-space: normal;
        text-align: center;
    }
}

/* 流量计费 / 流量包月时展示的流量详情卡片 */
.hmyun-purchase-page .cloud-traffic-card {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e5eaf1;
    border-radius: 4px;
    background: #f7f9fc;
}

.hmyun-purchase-page .cloud-traffic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 24px;
    font-size: 13px;
    line-height: 22px;
    color: #16243d;
}

.hmyun-purchase-page .cloud-traffic-grid > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.hmyun-purchase-page .cloud-traffic-label {
    flex: 0 0 auto;
    color: #8a96a8;
}

.hmyun-purchase-page .cloud-traffic-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 20px;
    color: #8a96a8;
}

/* 流量包加购行：额度输入 + 一次性计费说明 */
.hmyun-purchase-page .cloud-traffic-package {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hmyun-purchase-page .cloud-traffic-package .iaas-ecs-arco-input-group-wrapper {
    width: 180px;
}

.hmyun-purchase-page .cloud-traffic-package-hint {
    font-size: 12px;
    line-height: 20px;
    color: #8a96a8;
}

/* 系统盘 / 数据盘硬盘规格下拉：仅线路配置了 disk_specs 时显示 */
.hmyun-purchase-page .cloud-disk-spec-select {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e5e6eb;
    border-radius: 2px;
    background: #fff;
    color: #1f2329;
    font-size: 14px;
    line-height: 30px;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
}

.hmyun-purchase-page .cloud-disk-spec-select:hover {
    border-color: #a9b4c4;
}

.hmyun-purchase-page .cloud-disk-spec-select:focus {
    border-color: #3f7fff;
}

.hmyun-purchase-page #cloud-system-disk-spec-wrap,
.hmyun-purchase-page #cloud-data-disk-spec-wrap {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 33px;
}
