.template {
  height: 100%;
}
.main-card {
  height: 100%;
}
.config-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1;
}
.goods-item-name {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 3px;
  margin-bottom: 30px;
  display: inline-block;
}
.goods-change-box {
  max-width: 100%;
}
.goods-change-box .goods-item-box {
  max-height: 500px;
  overflow-y: auto;
  padding: 0.2rem;
}
.goods-change-box .goods-item-box .goods-group-item {
  margin-bottom: 0.3rem;
}
.goods-change-box .goods-item-box .goods-group-item .goods-group-name {
  font-weight: 700;
  font-size: 0.18rem;
  margin-bottom: 0.15rem;
}
.goods-change-box .goods-item-box .goods-group-item .goods-group-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 15px;
  row-gap: 0.1rem;
}
.goods-change-box .goods-item-box .goods-group-item .goods-group-info .option-name {
  cursor: pointer;
  font-size: 0.14rem;
}
.goods-change-box .goods-item-box .goods-group-item .goods-group-info .option-name:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   v6：订购配置页（goods.htm）
   结构：步骤条 + 左侧模块配置卡 + 右侧固定「订单栏」
   - mf_cloud / mf_dcim 等带底部订购栏 .f-order 的模块：右栏上半是我们镜像的配置清单（js/ciyun-aside.js），
     下半就是模块自己的 .f-order（时长 / 数量 / 费用 / 优惠码 / 加入购物车 / 立即购买），只改位置和样式，
     下单逻辑一行没动；
   - idcsmart_common（CDN、机柜等）自带右侧「配置预览」.order-right：直接把它排成右栏；
   - 没有以上两种结构的模块：配置卡通栏。
   ≥1201 右栏；901–1200 与 ≤900 改成底部订购栏（≤900 侧栏收起、表单单列）。
   ========================================================================== */
.goods {
  --g-rail: 340px;
  --g-gap: 16px;
  --g-top: calc(var(--cy-top, 52px) + 20px);
  --g-ink: #16223a; --g-ink2: #3d4a60; --g-mut: #5f6b80; --g-mut2: #6f7a8e;
  --g-line: #e4e8ef; --g-soft: #eef1f6; --g-bg2: #f7f9fc;
  --g-pri: #2f6bf0; --g-pri-d: #1f57d6; --g-pri-bg: #eef3fe;
  --g-price: #d0342c;
}
.goods main.el-main { padding-bottom: 32px !important; }
.cy-order {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.cy-order__main { min-width: 0; }

/* ---------- 步骤条 ---------- */
.cy-steps {
  display: flex; align-items: center; margin: 0 0 12px !important; padding: 0 18px !important; height: 48px;
  background: #fff; border: 1px solid var(--g-line) !important; border-radius: 6px !important; list-style: none;
  font-size: 13px; color: var(--g-mut2); white-space: nowrap; overflow: hidden;
}
.cy-steps li { display: flex; align-items: center; gap: 8px; flex: none; }
.cy-steps li + li::before { content: ""; flex: none; width: 40px; height: 1px; background: #dfe4ec; margin: 0 12px 0 4px; }
.cy-steps b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g-soft); color: var(--g-mut); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cy-steps li.on { color: var(--g-ink); font-weight: 600; }
.cy-steps li.on b { background: var(--g-pri); color: #fff; }
.cy-steps li.done b { background: var(--g-pri-bg); color: var(--g-pri); }

/* ---------- 左侧：模块配置卡 ---------- */
.goods .config-box {
  display: block !important; height: auto !important; background: #fff; border: 1px solid var(--g-line);
  border-radius: 6px; padding: 22px 24px 12px;
}
.goods .config-box .goods-item-name { border-radius: 4px; padding: 5px 12px; margin-bottom: 16px; font-size: 13px; }
.goods .config-box .content { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.goods .config-box .content .template { background: transparent !important; padding: 0 !important; }
.goods .config-box .content .main-card { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.goods .config-box .content .con { padding: 0 !important; }
.goods .config-box .content .tit,
.goods .config-box .content .pro-tit {
  font-size: 20px !important; font-weight: 600 !important; color: var(--g-ink) !important; line-height: 1.3 !important;
  margin: 0 0 6px !important; letter-spacing: 0;
}
/* 模块页签（自定义配置 / 公共镜像…） */
.goods .config-box .content .el-tabs__header { margin: 0 0 6px !important; }
.goods .config-box .content .el-tabs__item { height: 40px !important; line-height: 40px !important; font-size: 14px !important; padding: 0 16px !important; }
.goods .config-box .content .el-tabs__item.is-active { color: var(--g-pri) !important; font-weight: 600; }
.goods .config-box .content .el-tabs__active-bar { background: var(--g-pri) !important; height: 2px !important; }
.goods .config-box .content .el-tabs__nav-wrap::after { height: 1px !important; background: var(--g-soft) !important; }
.goods .config-box .content .top-tab > .el-tabs__header .el-tabs__item:first-child { padding-left: 0 !important; }

/* 分组标题：左侧 3px 色条 */
.goods .config-box .content .com-tit,
.goods .config-box .content .config-tit {
  margin: 22px 0 14px !important; padding: 0 0 0 10px !important; border-left: 3px solid var(--g-pri) !important;
  font-size: 15px !important; font-weight: 600 !important; color: var(--g-ink) !important; line-height: 1.2 !important;
}
.goods .config-box .content .com-tit::before,
.goods .config-box .content .config-tit::before { display: none !important; }
.goods .config-box .content .el-form-item { margin-bottom: 18px !important; }
.goods .config-box .content .el-form-item__label {
  font-size: 13px !important; color: var(--g-mut) !important; line-height: 34px !important; padding-right: 12px !important;
}
.goods .config-box .content .el-form-item__content { line-height: 34px !important; font-size: 13px; color: var(--g-ink2); }
.goods .config-box .content .s-tip { font-size: 12px !important; color: var(--g-mut2) !important; margin-top: 6px !important; line-height: 1.6 !important; }
.goods .config-box .content .description { font-size: 13px !important; line-height: 1.7 !important; color: var(--g-mut) !important; }

/* 单选按钮组：分段控件 */
.goods .config-box .content .el-radio-group { display: inline-flex; flex-wrap: wrap; row-gap: 8px; }
.goods .config-box .content .el-radio-button__inner {
  min-width: 96px; height: 34px; line-height: 32px !important; padding: 0 16px !important; font-size: 13px !important;
  border-color: #dfe4ec !important; color: var(--g-ink2) !important; background: #fff !important;
  transition: border-color .16s, color .16s, background-color .16s !important;
}
.goods .config-box .content .el-radio-button:first-child .el-radio-button__inner { border-radius: 4px 0 0 4px !important; }
.goods .config-box .content .el-radio-button:last-child .el-radio-button__inner { border-radius: 0 4px 4px 0 !important; }
.goods .config-box .content .el-radio-button__inner:hover { color: var(--g-pri) !important; }
.goods .config-box .content .el-radio-button.is-active .el-radio-button__inner {
  background: var(--g-pri-bg) !important; border-color: var(--g-pri) !important; color: var(--g-pri) !important;
  box-shadow: -1px 0 0 0 var(--g-pri) !important; font-weight: 500;
}
.goods .config-box .content .el-radio-button.is-disabled .el-radio-button__inner { color: #b3bccb !important; background: var(--g-bg2) !important; }

/* 镜像卡 */
.goods .config-box .content .image-item,
.goods .config-box .content .empty-image {
  width: calc((100% - 24px) / 4) !important; min-width: 140px; max-width: 190px; height: 60px !important; padding: 0 12px !important; margin: 0 8px 8px 0 !important;
  border: 1px solid var(--g-line) !important; border-radius: 4px !important; background: #fff !important;
  transition: border-color .16s, background-color .16s;
}
.goods .config-box .content .image-item:hover { border-color: #b9cbf6 !important; }
.goods .config-box .content .image-item.active { border-color: var(--g-pri) !important; background: var(--g-pri-bg) !important; box-shadow: inset 0 0 0 1px var(--g-pri); }
.goods .config-box .content .image-item.active .version { color: var(--g-mut) !important; }
.goods .config-box .content .image-item .icon { width: 28px !important; height: 28px !important; margin-right: 10px !important; flex: none; }
.goods .config-box .content .image-item .r-info { min-width: 0; line-height: 1.35; }
.goods .config-box .content .image-item .name { font-size: 13px !important; font-weight: 500; color: var(--g-ink) !important; line-height: 1.35 !important; }
.goods .config-box .content .image-item .version {
  font-size: 12px !important; color: var(--g-mut2) !important; line-height: 1.35 !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px;
}
.goods .config-box .content .empty-image { color: var(--g-mut); font-size: 12px; gap: 6px; }
.goods .config-box .content .empty-image::before { content: "更多镜像"; }
.goods .config-box .content .empty-image.isHide::before { content: "收起"; }
.goods .config-box .content .image-ul { max-width: none !important; width: 100%; }
.goods .config-box .content .image-ul > :nth-child(4n) { margin-right: 0 !important; }
.goods .config-box .content .image-tabs .el-tabs__item:first-child { padding-left: 0 !important; }
.goods .config-box .content .image-box { max-width: none !important; }

/* 存储表格、数字输入、滑块 */
.goods .config-box .content .el-table { border: 1px solid var(--g-line) !important; border-radius: 4px; }
.goods .config-box .content .el-table th { background: var(--g-bg2) !important; }
.goods .config-box .content .el-table th .cell { font-size: 12.5px !important; font-weight: 500; }
.goods .config-box .content .el-table td .cell { font-size: 13px !important; }
.goods .config-box .content .store,
.goods .config-box .content .store .txt { font-size: 12.5px !important; color: var(--g-mut) !important; }
.goods .config-box .content .add-disk { color: var(--g-pri) !important; cursor: pointer; }
.goods .config-box .content .el-slider__runway { height: 4px !important; background: var(--g-soft) !important; border-radius: 2px !important; }
.goods .config-box .content .el-slider__bar { background: var(--g-pri) !important; height: 4px !important; border-radius: 2px !important; }
.goods .config-box .content .el-slider__button { border-color: var(--g-pri) !important; }
.goods .config-box .content .marks .item,
.goods .config-box .content .el-slider__marks-text,
.goods .config-box .content .el-slider__stop + .el-slider__marks-text { font-size: 12px !important; color: var(--g-mut2) !important; }
.goods .config-box .content .el-input__inner { height: 34px !important; line-height: 34px !important; font-size: 13px !important; border-radius: 4px !important; }
.goods .config-box .content .el-input-number { line-height: 32px !important; }
.goods .config-box .content .el-checkbox__label { font-size: 13px !important; }

/* idcsmart_common：套餐卡与周期卡 */
.goods .config-box .content .click-select { display: flex !important; flex-wrap: wrap; gap: 8px; width: auto !important; height: auto !important; margin: 0 !important; }
.goods .config-box .content .click-select .item {
  width: auto !important; min-width: 132px; height: 36px !important; line-height: 34px !important; margin: 0 !important;
  padding: 0 16px !important; text-align: center; overflow: hidden;
}
.goods .config-box .content .cycle { display: flex !important; flex-wrap: wrap; gap: 8px; }
.goods .config-box .content .cycle .item { margin: 0 !important; }
.goods .config-box .content .l-config { flex: 1; max-width: none !important; width: auto !important; margin-right: 0 !important; }
.goods .config-box .content .config-item { margin-top: 24px !important; }
.goods .config-box .content .config-item .config-tit { margin: 0 0 12px !important; }
.goods .config-box .content .config-item .des { font-size: 12.5px !important; color: var(--g-mut2) !important; }
.goods .config-box .content .config-way { display: block !important; }
.goods .config-box .content .description { border: 0 !important; border-left: 0 !important; background: none !important; border-radius: 0 !important; padding: 0 !important; max-width: 640px; }
.goods .config-box .content .click-select .item,
.goods .config-box .content .config-way .item,
.goods .config-box .content .cycle .item {
  border: 1px solid var(--g-line) !important; border-radius: 4px !important; background: #fff !important; font-size: 13px !important;
  color: var(--g-ink2) !important; transition: border-color .16s, background-color .16s;
}
.goods .config-box .content .cycle .item { min-width: 112px; height: auto !important; padding: 10px 12px !important; line-height: 1.5 !important; }
.goods .config-box .content .cycle .item .name { margin-bottom: 2px !important; font-size: 13px !important; }
.goods .config-box .content .cycle .item .price, .goods .config-box .content .cycle .item > :last-child { font-size: 13px !important; font-variant-numeric: tabular-nums; }
.goods .config-box .content .com-active,
.goods .config-box .content .item.active {
  border-color: var(--g-pri) !important; background: var(--g-pri-bg) !important; color: var(--g-pri) !important;
}

/* ---------- 右栏：订单栏 ---------- */
.cy-sum { display: none; box-sizing: border-box; }
.cy-order, .cy-order *, .goods .f-order, .goods .f-order *, .goods .order-right, .goods .order-right * { box-sizing: border-box; }
.cy-sum__t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--g-ink); }
.cy-sum__t svg { width: 17px; height: 17px; stroke: var(--g-pri); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cy-sum__sub { margin: 4px 0 0; font-size: 12px; color: var(--g-mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cy-sum__list { list-style: none; margin: 12px 0 0; padding: 0; flex: 1 1 auto; min-height: 96px; overflow: auto; overscroll-behavior: contain; }
.cy-sum__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--g-soft); font-size: 13px; line-height: 1.5; }
.cy-sum__list li:last-child { border-bottom: 0; }
.cy-sum__list li span { flex: none; color: var(--g-mut); }
.cy-sum__list li b { min-width: 0; font-weight: 500; color: var(--g-ink); text-align: right; word-break: break-all; }
.cy-sum__list li.cy-sum__ph { justify-content: flex-start; color: var(--g-mut2); border: 0; }
.cy-sum__list li.chg b { animation: cy-flash .9s ease; }
@keyframes cy-flash { 0% { color: var(--g-pri); } 100% { color: var(--g-ink); } }
.cy-sum__notes { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--g-soft); list-style: none; display: grid; gap: 4px; flex: none; }
.cy-sum__notes li { position: relative; padding-left: 12px; font-size: 12px; line-height: 1.6; color: var(--g-mut); }
.cy-sum__notes li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 4px; height: 4px; border-radius: 50%; background: #b3bccb; }
.cy-sum__help { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; flex: none; }
.cy-sum__help a { color: var(--g-pri); }
.cy-sum__slot { flex: none; }

@media screen and (min-width: 1201px) {
  /* 右栏（我们的清单卡）：固定在内容区右侧，从顶栏下到视口底 */
  .cy-mode-bar .goods .cy-order { padding-right: calc(var(--g-rail) + var(--g-gap)); }
  .cy-mode-bar .goods .cy-sum {
    display: flex; flex-direction: column; position: fixed; z-index: 590;
    top: var(--g-top); right: 24px; bottom: auto; width: var(--g-rail);
    max-height: calc(100vh - var(--g-top) - 20px);
    padding: 18px 20px 0; background: #fff; border: 1px solid var(--g-line); border-radius: 10px;
  }
  /* v8：右栏高度随内容（学 gxyun「当前配置」）；标题 / 说明不被压缩，只有清单在空间不够时滚动 */
  .cy-mode-bar .goods .cy-sum > :not(.cy-sum__list) { flex: none; }
  .cy-mode-bar .goods .cy-sum__list { flex: 0 1 auto; min-height: 64px; }
  .cy-mode-bar .goods .cy-sum__slot { height: var(--g-bar-h, 230px); }

  /* 模块订购栏：钉在右栏底部，竖排 */
  .cy-mode-bar .goods .f-order {
    position: fixed !important; left: auto !important; top: auto !important; right: 25px !important; bottom: 21px !important;
    width: calc(var(--g-rail) - 2px) !important; height: auto !important; z-index: 600 !important;
    background: #fff !important; border-top: 1px solid var(--g-soft); border-radius: 0 0 6px 6px; box-shadow: none !important;
    display: block !important;
  }
  .cy-mode-bar .goods .f-order .l-empty { display: none !important; }
  .cy-mode-bar .goods .f-order > .el-main { margin: 0 !important; padding: 14px 20px 18px !important; height: auto !important; min-height: 0 !important; background: transparent !important; }
  .cy-mode-bar .goods .f-order .main-card {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 12px; width: 100% !important; height: auto !important;
    padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  .cy-mode-bar .goods .f-order .left { display: grid !important; gap: 10px; width: auto !important; margin: 0 !important; }
  .cy-mode-bar .goods .f-order .time,
  .cy-mode-bar .goods .f-order .num { display: flex !important; align-items: center; justify-content: space-between; margin: 0 !important; }
  .cy-mode-bar .goods .f-order .l-txt { font-size: 13px !important; color: var(--g-mut) !important; margin: 0 !important; }
  .cy-mode-bar .goods .f-order .duration-select { width: 180px !important; }
  .cy-mode-bar .goods .f-order .el-input-number { width: 180px !important; }
  .cy-mode-bar .goods .f-order .mid {
    display: flex !important; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    width: auto !important; margin: 0 !important; padding-top: 12px; border-top: 1px dashed var(--g-soft);
  }
  /* v8：订购栏按右栏实际位置落位（js/ciyun-aside.js 写入），不再靠 right/bottom 估算 */
  .cy-bar-placed.cy-mode-bar .goods .f-order {
    top: var(--g-bar-top) !important; left: var(--g-bar-left) !important; width: var(--g-bar-w) !important;
    right: auto !important; bottom: auto !important; border-radius: 0 0 9px 9px;
  }
  /* 时长 / 数量并排（标签在上），订购栏矮一截，矮屏也放得下清单 */
  .cy-mode-bar .goods .f-order .left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cy-mode-bar .goods .f-order .time,
  .cy-mode-bar .goods .f-order .num { flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; gap: 4px; min-width: 0; }
  .cy-mode-bar .goods .f-order .l-txt { font-size: 12.5px !important; line-height: 1.4; }
  .cy-mode-bar .goods .f-order .duration-select, .cy-mode-bar .goods .f-order .el-input-number { width: 100% !important; }
  .cy-mode-bar .goods .f-order .el-input-number .el-input__inner { padding: 0 36px !important; }
  .cy-mode-bar .goods .f-order .el-input-number__decrease, .cy-mode-bar .goods .f-order .el-input-number__increase { width: 32px !important; }
  /* 「当前配置」浮层与上方清单重复，右栏里只保留「配置费用」明细 */
  .cy-mode-bar .goods .f-order .mid > span:first-child,
  .cy-mode-bar .goods .f-order .mid > .line-empty { display: none !important; }
  .cy-mode-bar .goods .f-order .demand-box { margin: 0 0 0 auto !important; }
  .cy-mode-bar .goods .f-order .bot-price { text-align: right; align-items: flex-end !important; }
  .cy-mode-bar .goods .f-order .right {
    display: grid !important; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; width: auto !important; margin: 0 !important;
  }
  .cy-mode-bar .goods .f-order .right > span { display: block; }
  .cy-mode-bar .goods .f-order .buy { width: 100% !important; margin: 0 !important; }
}

/* 模块订购栏通用外观（右栏与底部栏共用） */
.goods .f-order .link { white-space: nowrap; font-size: 13px !important; color: var(--g-ink2) !important; text-decoration: none !important; border-bottom: 1px dashed #b3bccb; cursor: pointer; }
.goods .f-order .link:hover { color: var(--g-pri) !important; border-color: var(--g-pri); }
.goods .f-order .line-empty { width: 1px !important; height: 16px !important; background: var(--g-line) !important; margin: 0 !important; }
.goods .f-order .el-input__inner { height: 34px !important; line-height: 34px !important; font-size: 13px !important; border-radius: 4px !important; }
.goods .f-order .el-input-number { line-height: 32px !important; }
.goods .f-order .el-input-number__decrease, .goods .f-order .el-input-number__increase { background: var(--g-bg2) !important; }
.goods .f-order .bot-price { display: flex !important; flex-direction: column; gap: 2px; }
.goods .f-order .bot-price .new {
  color: var(--g-price) !important; font-size: 14px !important; line-height: 1.1 !important; white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important; font-weight: 600;
}
.goods .f-order .bot-price .new > span {
  font-size: 26px !important; font-weight: 600 !important; color: var(--g-price) !important; font-family: inherit !important;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.goods .f-order .bot-price .price {
  font-size: 26px !important; font-weight: 600 !important; color: var(--g-price) !important; font-family: inherit !important;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.goods .f-order .bot-price .old { font-size: 12px !important; line-height: 1.4 !important; }
.goods .discount-text {
  display: inline-block; font-size: 12px !important; line-height: 18px !important; padding: 0 6px !important; height: 20px;
  color: #9a4a05 !important; border: 1px solid #f1c48f !important; background: #fff8ef !important; border-radius: 3px !important; cursor: pointer;
}
.goods .f-order .add-cart {
  display: grid !important; place-items: center; width: 40px !important; height: 40px !important; margin: 0 !important;
  border: 1px solid #dfe4ec !important; border-radius: 4px !important; background: #fff !important; cursor: pointer; box-sizing: border-box;
}
.goods .f-order .add-cart:hover { border-color: var(--g-pri) !important; }
.goods .f-order .add-cart svg { width: 20px !important; height: 20px !important; }
.goods .f-order .buy {
  display: inline-flex !important; align-items: center; justify-content: center; height: 40px !important; padding: 0 28px !important;
  border-radius: 4px !important; background: var(--g-pri) !important; color: #fff !important; font-size: 15px !important; font-weight: 500;
  cursor: pointer; line-height: 1 !important; transition: background-color .16s; white-space: nowrap;
}
.goods .f-order .buy:hover { background: var(--g-pri-d) !important; }
.goods .f-order .buy.disabled, .goods .f-order .buy.is-disabled { background: #a9c0f5 !important; cursor: not-allowed; }

/* ---------- idcsmart_common 自带的右侧「配置预览」排成右栏 ---------- */
@media screen and (min-width: 1201px) {
  .cy-mode-side .goods .cy-order { padding-right: calc(var(--g-rail) + var(--g-gap)); }
  .cy-mode-side .goods .order-right {
    position: fixed !important; top: var(--g-top) !important; right: 24px !important; bottom: 20px !important; left: auto !important;
    width: var(--g-rail) !important; height: auto !important; z-index: 590 !important;
    display: flex !important; flex-direction: column; padding: 18px 20px 18px !important;
    background: #fff !important; border: 1px solid var(--g-line) !important; border-radius: 6px !important; box-shadow: none !important;
  }
}
.goods .order-right .right-main { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 !important; margin: 0 !important; width: auto !important; }
.goods .order-right .right-title {
  font-size: 15px !important; font-weight: 600 !important; color: var(--g-ink) !important; margin: 0 0 8px !important; padding: 0 !important;
  line-height: 1.4 !important; border: 0 !important;
}
.goods .order-right .right-title::before, .goods .order-right .right-title::after,
.goods .order-right .subtotal::before, .goods .order-right .subtotal::after { display: none !important; }
.goods .order-right .info { padding: 0 !important; margin: 0 !important; }
.goods .order-right .des {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 !important; margin: 0 !important; height: auto !important;
  border-bottom: 1px dashed var(--g-soft); font-size: 13px !important; line-height: 1.5 !important; color: var(--g-ink) !important;
}
.goods .order-right .subtotal {
  display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 0 !important; margin: 0 !important; height: auto !important;
  border: 0 !important; background: none !important; font-size: 13px !important; color: var(--g-ink) !important;
}
.goods .order-right .subtotal .name { color: var(--g-mut) !important; }
.goods .order-right .des .price { color: var(--g-ink) !important; font-variant-numeric: tabular-nums; }
.goods .order-right .subtotal span { font-size: 13px !important; }
.goods .order-right .f-box { flex: none; padding-top: 14px !important; margin: 0 !important; width: auto !important; height: auto !important; border-top: 1px solid var(--g-soft); background: #fff !important; position: static !important; }
.goods .order-right .order-right-footer { padding: 0 !important; margin: 0 0 12px !important; height: auto !important; }
.goods .order-right .footer-total { display: flex !important; justify-content: space-between; align-items: center; height: auto !important; font-size: 13px !important; color: var(--g-mut) !important; }
.goods .order-right .footer-total .left { font-size: 13px !important; color: var(--g-mut) !important; }
.goods .order-right .footer-total .right { display: flex !important; flex-direction: column; align-items: flex-end; gap: 4px; }
.goods .order-right .footer-total .right > span:first-child {
  font-size: 26px !important; font-weight: 600 !important; color: var(--g-price) !important; line-height: 1.1 !important;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap;
}
.goods .order-right .f-btn { display: grid !important; grid-template-columns: 1fr 1.4fr; gap: 8px; width: auto !important; }
.goods .order-right .f-btn .el-button { height: 40px !important; margin: 0 !important; border-radius: 4px !important; font-size: 14px !important; padding: 0 !important; width: auto !important; }
.goods .order-right .f-btn .el-button.cart { background: #fff !important; color: var(--g-pri) !important; border-color: #b9cbf6 !important; }
.goods .order-right .f-btn .el-button.buy-btn { background: var(--g-pri) !important; border-color: var(--g-pri) !important; color: #fff !important; }
.goods .order-right .f-btn .el-button.buy-btn:hover { background: var(--g-pri-d) !important; }

/* ---------- 901–1200：右栏收起，改底部订购栏 ---------- */
@media screen and (max-width: 1200px) {
  .goods main.el-main { padding-bottom: 96px !important; }
  .goods .f-order {
    left: var(--cy-side, 232px) !important; right: 0 !important; width: auto !important; height: auto !important; min-height: 64px;
    background: #fff !important; border-top: 1px solid var(--g-line); box-shadow: 0 -4px 16px rgba(20, 40, 90, .06) !important; z-index: 600 !important;
  }
  .goods .f-order .l-empty { display: none !important; }
  .goods .f-order > .el-main { margin: 0 !important; padding: 10px 24px !important; height: auto !important; min-height: 0 !important; background: transparent !important; }
  .goods .f-order .main-card {
    display: flex !important; align-items: center; justify-content: space-between; gap: 20px; height: auto !important; width: 100% !important;
    padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  .goods .f-order .left, .goods .f-order .mid, .goods .f-order .right { display: flex !important; align-items: center; gap: 16px; width: auto !important; margin: 0 !important; }
  .goods .f-order .time, .goods .f-order .num { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
  .goods .f-order .l-txt { font-size: 13px !important; color: var(--g-mut) !important; margin: 0 !important; white-space: nowrap; }
  .goods .f-order .duration-select { width: 120px !important; }
  .goods .f-order .el-input-number { width: 112px !important; }
  .goods .f-order .right { gap: 8px; }
  .goods .f-order .mid > span, .goods .f-order .mid .el-popover__reference-wrapper { white-space: nowrap; }
  .goods .order-right { position: static !important; width: auto !important; height: auto !important; margin-top: 20px !important; padding: 16px 0 0 !important; border-top: 1px solid var(--g-soft); background: transparent !important; }
  .goods .order-right .f-box {
    position: fixed !important; left: var(--cy-side, 232px) !important; right: 0 !important; bottom: 0 !important; z-index: 600;
    display: flex !important; align-items: center; justify-content: flex-end; gap: 16px; padding: 10px 24px !important;
    border-top: 1px solid var(--g-line); box-shadow: 0 -4px 16px rgba(20, 40, 90, .06);
  }
  .goods .order-right .order-right-footer { margin: 0 !important; }
  .goods .order-right .f-btn { grid-template-columns: auto auto; }
  .goods .order-right .f-btn .el-button { padding: 0 22px !important; }
}

/* ---------- ≤900：手机与小平板 ---------- */
@media screen and (max-width: 900px) {
  .goods main.el-main { padding-bottom: 150px !important; }
  .cy-steps { height: 44px; padding: 0 14px !important; font-size: 12.5px; }
  .cy-steps li + li::before { width: 16px; margin: 0 8px 0 2px; }
  .goods .config-box { padding: 16px 14px 6px; }
  .goods .config-box .content .tit, .goods .config-box .content .pro-tit { font-size: 18px !important; }
  /* 表单单列：标签在上 */
  .goods .config-box .content .el-form-item { display: block !important; margin-bottom: 14px !important; }
  .goods .config-box .content .el-form-item__label {
    float: none !important; display: block !important; width: auto !important; text-align: left !important;
    line-height: 20px !important; padding: 0 0 6px !important; height: auto !important;
  }
  .goods .config-box .content .el-form-item__content { margin-left: 0 !important; line-height: 1.5 !important; }
  .goods .config-box .content .el-radio-button__inner { min-width: 0; padding: 0 12px !important; height: 34px; line-height: 32px !important; font-size: 13px !important; }
  .goods .config-box .content .image-item, .goods .config-box .content .empty-image { width: calc(50% - 4px) !important; min-width: 0; max-width: none; margin: 0 8px 8px 0 !important; }
  .goods .config-box .content .image-ul > :nth-child(4n) { margin-right: 8px !important; }
  .goods .config-box .content .image-ul > :nth-child(2n) { margin-right: 0 !important; }
  .goods .config-box .content .image-item .version { max-width: 96px; }
  .goods .config-box .content .el-slider { display: flex; flex-wrap: wrap; gap: 8px; }
  .goods .config-box .content .el-input, .goods .config-box .content .el-select { max-width: 100%; }
  .goods .config-box .content .common-box { display: block !important; }
  .goods .config-box .content .cycle { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: auto !important; }
  .goods .config-box .content .cycle .item { margin: 0 !important; width: auto !important; min-width: 0 !important; }
  .goods .config-box .content .click-select .item { min-width: 0; flex: 1 1 calc(50% - 4px); }
  .goods .config-box .content .description { max-width: none; }

  .goods .f-order { left: 0 !important; }
  .goods .f-order > .el-main { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important; }
  .goods .f-order .main-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .goods .f-order .left { grid-column: 1 / -1; justify-content: space-between; gap: 10px; }
  .goods .f-order .time, .goods .f-order .num { flex: 1; min-width: 0; }
  .goods .f-order .duration-select { width: auto !important; flex: 1; min-width: 0; }
  .goods .f-order .el-input-number { width: 108px !important; flex: none; }
  .goods .f-order .mid { gap: 10px; min-width: 0; }
  .goods .f-order .mid > span:first-child, .goods .f-order .mid > .line-empty { display: none !important; }
  .goods .f-order .bot-price .price, .goods .f-order .bot-price .new > span { font-size: 22px !important; }
  .goods .f-order .buy { padding: 0 18px !important; }
  .goods .order-right .f-box { left: 0 !important; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important; justify-content: space-between; gap: 10px; }
  .goods .order-right .footer-total .left { display: none !important; }
  .goods .order-right .footer-total .right { align-items: flex-start; }
  .goods .order-right .footer-total .right > span:first-child { font-size: 22px !important; }
  .goods .order-right .f-btn { display: flex !important; gap: 8px; }
  .goods .order-right .f-btn .el-button { padding: 0 14px !important; font-size: 14px !important; }
}
@media screen and (min-width: 901px) and (max-width: 1100px) {
  /* 底部栏放不下时，「当前配置」浮层入口先让位（配置清单在左侧表单里一眼可见） */
  .goods .f-order .mid > span:first-child, .goods .f-order .mid > .line-empty { display: none !important; }
  .goods .f-order .main-card { gap: 14px; }
}
@media screen and (max-width: 420px) {
  .cy-steps li:not(.on) { font-size: 0; gap: 0; }
  .cy-steps li:not(.on) b { font-size: 12px; }
  .goods .f-order .l-txt { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cy-sum__list li.chg b { animation: none; }
}

/* v8：魔方云「快速配置」套餐卡（.cloud-box .cloud-item）—— 与选购页的套餐卡同一套样子 */
.goods .config-box .content .cloud-box { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px !important; max-width: 860px; }
.goods .config-box .content .cloud-item {
  position: relative; width: auto !important; margin: 0 !important; border: 1px solid var(--g-line) !important; border-radius: 8px !important;
  background: #fff !important; overflow: hidden; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.goods .config-box .content .cloud-item:hover { border-color: #b9cbf6 !important; box-shadow: 0 6px 16px rgba(20, 40, 90, .06); }
.goods .config-box .content .cloud-item.active { border-color: var(--g-pri) !important; background: #f2f6ff !important; box-shadow: inset 0 0 0 1px var(--g-pri); }
.goods .config-box .content .cloud-item .inner { width: auto !important; height: auto !important; border: 0 !important; background: none !important; }
.goods .config-box .content .cloud-item .top {
  height: auto !important; padding: 12px 14px 4px !important; border: 0 !important; background: none !important;
  font-size: 14.5px !important; font-weight: 600 !important; line-height: 1.4 !important; color: var(--g-ink) !important;
}
.goods .config-box .content .cloud-item.active .top { color: var(--g-pri) !important; }
.goods .config-box .content .cloud-item .info { padding: 4px 14px 12px !important; }
.goods .config-box .content .cloud-item .info p { display: flex; gap: 0; margin: 0 !important; font-size: 12.5px !important; line-height: 1.75 !important; color: var(--g-ink) !important; }
.goods .config-box .content .cloud-item .info p .name { flex: none; width: auto !important; min-width: 0 !important; margin-right: 2px; color: var(--g-mut) !important; font-size: 12.5px !important; }
.goods .config-box .content .cloud-item .info p span:not(.name) { color: var(--g-mut) !important; font-size: 12.5px !important; }
.goods .config-box .content .cloud-item .no-up { right: 10px !important; bottom: 8px !important; }
.goods .config-box .content .cloud-item.active::after {
  content: "已选"; position: absolute; right: 0; top: 0; height: 18px; padding: 0 7px; border-radius: 0 0 0 6px;
  background: var(--g-pri); color: #fff; font-size: 11.5px; font-weight: 500; line-height: 18px;
}
@media screen and (max-width: 900px) { .goods .config-box .content .cloud-box { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   v12：切换商品下拉（.goods-change-box，「活动 | 新客专享专区」）
   原样式按 rem 写，手机上 1rem≈52px → 分组名 9px、商品名 7px，而且面板定位在屏幕外（left:-10px，宽 400px）。
   统一改成 px：桌面是带搜索的分组面板；≤750 是屏幕内的整宽面板，商品做成可点的两列按钮。
   ========================================================================== */
.goods-item-name { display: inline-flex !important; align-items: center; gap: 4px; max-width: 100%; height: 34px; padding: 0 12px !important; margin-bottom: 20px !important; border-radius: 6px !important; font-size: 14px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #f5f8ff; }
.goods-item-name .el-icon-arrow-down { flex: none; font-size: 12px; transition: transform .2s; }
.goods-item-name:hover { background: #eef3fe; }
html body .el-popover.goods-change-box { width: min(620px, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 14px 16px !important; border-radius: 10px !important; border-color: #e3e8f0 !important; box-shadow: 0 16px 40px rgba(20, 30, 55, .14) !important; box-sizing: border-box; }
html body .goods-change-box .goods-item-box { max-height: min(460px, 60vh); padding: 0 !important; overscroll-behavior: contain; }
html body .goods-change-box .goods-item-box > .el-input { display: block; width: 100% !important; margin: 0 0 12px !important; }
html body .goods-change-box .goods-item-box > .el-input .el-input__inner { height: 36px; line-height: 36px; font-size: 14px; border-radius: 6px; }
html body .goods-change-box .goods-group-item { margin: 0 0 14px !important; }
html body .goods-change-box .goods-group-item:last-child { margin-bottom: 2px !important; }
html body .goods-change-box .goods-group-name { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 600 !important; color: #86909c; }
html body .goods-change-box .goods-group-info { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
html body .goods-change-box .option-name { display: flex; align-items: center; min-height: 36px; padding: 6px 10px; border: 1px solid #e3e8f0; border-radius: 6px; font-size: 13.5px !important; line-height: 1.4; color: #1d2129; letter-spacing: 0 !important; word-break: break-all; transition: border-color .15s, background-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
html body .goods-change-box .option-name:hover { border-color: #b7cdf7; background: #f5f8ff; color: #2f6bf0 !important; }
html body .goods-change-box .option-name.is-cur { border-color: #2f6bf0; background: #eef3fe; color: #2f6bf0; font-weight: 600; }
@media screen and (max-width: 750px) {
  .goods-item-name { height: 36px; font-size: 14.5px; }
  /* 面板贴屏幕左右 12px（popper 写的是行内 left，需要 !important） */
  html body .el-popover.goods-change-box { left: 12px !important; right: 12px; width: auto !important; }
  html body .el-popover.goods-change-box .popper__arrow { display: none !important; }
  html body .goods-change-box .goods-group-info { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .goods-change-box .option-name { min-height: 40px; font-size: 14px !important; }
}
