/* ywy 快速购买 v3（指点云风格）—— /cart + v10 配置页共用
   步骤条：数字圆点+连线；筛选卡：label 左 + 标签组右 + 说明文字
   版本 q3 */
.ywy-qb-steps2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 22px;
  background: #eef4fd;
  border-radius: 12px;
}
.ywy-qb-steps2 li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f7189;
  font-size: 13.5px;
}
.ywy-qb-steps2 li i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #7b8ba1;
  border: 1px solid #d3dfee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
}
.ywy-qb-steps2 li::after {
  content: "";
  width: 34px;
  height: 1px;
  background: #c9d8ea;
  margin: 0 10px;
}
.ywy-qb-steps2 li:last-child::after {
  display: none;
}
.ywy-qb-steps2 li.is-done {
  color: #2c5aa8;
}
.ywy-qb-steps2 li.is-done i {
  background: #cfe1fb;
  border-color: #b3d0f5;
  color: #2c5aa8;
}
.ywy-qb-steps2 li.is-active {
  color: #006eff;
  font-weight: 600;
}
.ywy-qb-steps2 li.is-active i {
  background: #006eff;
  border-color: #006eff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 110, 255, 0.14);
}

/* ===== 筛选卡：label 左 + 标签组右 + 说明 ===== */
.ywy-qb-filtercard {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 10px 24px;
  margin-bottom: 18px;
}
.ywy-qb-frow {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0;
}
.ywy-qb-frow + .ywy-qb-frow {
  border-top: 1px dashed #edf2f8;
}
.ywy-qb-flabel {
  flex: 0 0 64px;
  padding-top: 7px;
  color: #8a99ad;
  font-size: 14px;
}
.ywy-qb-fopts {
  flex: 1;
  min-width: 0;
}
.ywy-qb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ywy-qb-tag {
  display: inline-block;
  border: 1px solid #dbe5f1;
  background: #fff;
  color: #3c4c63;
  font-size: 13.5px;
  line-height: 1;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.ywy-qb-tag:hover {
  border-color: #006eff;
  color: #006eff;
}
.ywy-qb-tag.is-active {
  background: #006eff;
  border-color: #006eff;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 110, 255, 0.26);
}
.ywy-qb-fnote {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #9aa9bd;
  line-height: 1.6;
}

/* ===== 套餐面板：规格 + 下单 两栏 ===== */
.ywy-qb-panels {
  position: relative;
}
.ywy-qb-panel {
  display: none;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  overflow: hidden;
}
.ywy-qb-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.ywy-qb-spec {
  padding: 24px 28px;
  min-width: 0;
}
.ywy-qb-title {
  margin: 0 0 12px;
  font-size: 20px;
  color: #182f50;
}
.ywy-qb-stock {
  display: inline-block;
  margin: 0 0 14px 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #12a150;
  font-size: 12.5px;
  vertical-align: 3px;
}
.ywy-qb-stock.is-out {
  background: #fdecec;
  color: #d93838;
}
.ywy-qb-desc {
  color: #46586f;
  font-size: 14px;
  line-height: 1.9;
}
.ywy-qb-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.ywy-qb-desc table td,
.ywy-qb-desc table th {
  border: 1px solid #eef2f8;
  padding: 7px 12px;
  text-align: left;
}
.ywy-qb-desc table th {
  background: #f6f9fd;
  color: #5a6b82;
  font-weight: 600;
  width: 110px;
}
.ywy-qb-desc img {
  max-width: 100%;
}
.ywy-qb-trial {
  margin: 12px 0 0;
  color: #12a150;
  font-size: 13.5px;
}
.ywy-qb-order {
  background: linear-gradient(180deg, #f7fafe, #eef4fc);
  border-left: 1px solid #e6edf5;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.ywy-qb-price {
  display: flex;
  align-items: baseline;
  color: #f0142f;
  line-height: 1;
}
.ywy-qb-price em {
  font-style: normal;
  font-size: 16px;
  margin-right: 2px;
}
.ywy-qb-price strong {
  font-size: 34px;
  font-weight: 700;
}
.ywy-qb-price small {
  font-size: 13px;
  color: #7b8ba1;
  margin-left: 6px;
}
.ywy-qb-price-old {
  font-size: 12.5px;
  color: #98a6ba;
  text-decoration: line-through;
}
.ywy-qb-buy {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 13px 0;
  border-radius: 10px;
  background: #006eff;
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 110, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ywy-qb-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 110, 255, 0.38);
}
.ywy-qb-buy.is-disabled {
  background: #c3cede;
  box-shadow: none;
  cursor: not-allowed;
}
.ywy-qb-note {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #8a99ad;
  line-height: 1.6;
}

/* ===== v10 配置页（element-ui）指点云化 ===== */
/* 步骤条由模板 DOM（.ywy-qb-steps2）承担；此处重排 element 表单为逐行卡片 */
.ywy-ca-shell .mf-cloud .el-form-item,
.ywy-ca-shell .mf-dcim .el-form-item,
body.ywy-shell-forced .mf-cloud .el-form-item,
body.ywy-shell-forced .mf-dcim .el-form-item {
  background: #fff;
  border: 1px solid #eef2f8;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.ywy-ca-shell .mf-cloud .el-form-item__label,
.ywy-ca-shell .mf-dcim .el-form-item__label,
body.ywy-shell-forced .mf-cloud .el-form-item__label,
body.ywy-shell-forced .mf-dcim .el-form-item__label {
  color: #5a6b82;
  font-size: 13.5px;
}
.ywy-ca-shell .mf-cloud .el-radio-button__inner,
.ywy-ca-shell .mf-dcim .el-radio-button__inner,
body.ywy-shell-forced .mf-cloud .el-radio-button__inner,
body.ywy-shell-forced .mf-dcim .el-radio-button__inner {
  border: 1px solid #dbe5f1 !important;
  border-radius: 8px !important;
  background: #fff;
  color: #3c4c63;
  box-shadow: none !important;
  padding: 9px 18px;
}
.ywy-ca-shell .mf-cloud .el-radio-button__orig-radio:checked + .el-radio-button__inner,
.ywy-ca-shell .mf-dcim .el-radio-button__orig-radio:checked + .el-radio-button__inner,
body.ywy-shell-forced .mf-cloud .el-radio-button__orig-radio:checked + .el-radio-button__inner,
body.ywy-shell-forced .mf-dcim .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #006eff;
  border-color: #006eff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 110, 255, 0.26) !important;
}
.ywy-ca-shell .mf-cloud .el-tabs__item.is-active,
body.ywy-shell-forced .mf-cloud .el-tabs__item.is-active {
  color: #006eff;
  font-weight: 600;
}
.ywy-ca-shell .mf-cloud .com-tit,
body.ywy-shell-forced .mf-cloud .com-tit {
  font-size: 15px;
  color: #182f50;
  font-weight: 600;
  margin: 18px 0 10px;
}

/* ===== 手机端 ===== */
@media (max-width: 768px) {
  .ywy-qb-steps2 {
    padding: 10px 12px;
    gap: 0;
  }
  .ywy-qb-steps2 li {
    font-size: 12px;
    gap: 5px;
  }
  .ywy-qb-steps2 li::after {
    width: 14px;
    margin: 0 5px;
  }
  .ywy-qb-steps2 li i {
    width: 20px;
    height: 20px;
    font-size: 11.5px;
  }
  .ywy-qb-filtercard {
    padding: 4px 14px;
  }
  .ywy-qb-frow {
    flex-direction: column;
    gap: 8px;
  }
  .ywy-qb-flabel {
    flex: none;
    padding-top: 0;
  }
  .ywy-qb-tag {
    padding: 8px 14px;
    font-size: 13px;
  }
  .ywy-qb-panel.is-active {
    grid-template-columns: 1fr;
  }
  .ywy-qb-spec {
    padding: 16px 14px;
  }
  .ywy-qb-order {
    border-left: 0;
    border-top: 1px solid #e6edf5;
    padding: 16px 14px;
  }
  .ywy-qb-desc {
    overflow-x: auto;
  }
  .ywy-qb-desc table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== v3.1 桌面端底部订单条修正 =====
   l-empty 是给"有侧栏"的 PC 布局留的 250px 占位；ywy 接管后侧栏已隐藏，
   占位会把 el-main 推右 250px 导致右侧按钮超出视口。高度固定 120px 则让内容垂直溢出偏下。 */
body.ywy-ca-shell .f-order .l-empty,
body.ywy-shell-forced .f-order .l-empty {
  display: none !important;
}
body.ywy-ca-shell .f-order,
body.ywy-shell-forced .f-order {
  height: auto !important;
}
body.ywy-ca-shell .f-order .el-main,
body.ywy-shell-forced .f-order .el-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 28px !important;
  box-sizing: border-box !important;
}
body.ywy-ca-shell .f-order .main-card,
body.ywy-shell-forced .f-order .main-card {
  height: auto !important;
  min-height: 88px;
  padding: 4px 0 !important;
}
/* element 卡片化后 label 行高自适应，修正文字垂直偏移 */
body.ywy-shell-forced .mf-cloud .el-form-item__label,
body.ywy-shell-forced .mf-dcim .el-form-item__label,
.ywy-ca-shell .mf-cloud .el-form-item__label,
.ywy-ca-shell .mf-dcim .el-form-item__label {
  line-height: 1.5 !important;
  padding-top: 9px !important;
}

/* ===== v3.2 订单条：内容收窄居中 + 时长对齐 ===== */
body.ywy-ca-shell .f-order .el-main,
body.ywy-shell-forced .f-order .el-main {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 10px 24px !important;
}
body.ywy-ca-shell .f-order .main-card,
body.ywy-shell-forced .f-order .main-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  min-height: 88px;
}
body.ywy-ca-shell .f-order .main-card .left,
body.ywy-shell-forced .f-order .main-card .left {
  display: flex !important;
  align-items: center !important;
  gap: 28px;
  min-width: 0;
}
body.ywy-ca-shell .f-order .main-card .right,
body.ywy-shell-forced .f-order .main-card .right {
  display: flex !important;
  align-items: center !important;
  flex: none !important;
}
/* "时长"文字与下拉框垂直居中（原为行内基线对齐导致偏下） */
body.ywy-ca-shell .f-order .time,
body.ywy-shell-forced .f-order .time {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  margin: 0 !important;
}
body.ywy-ca-shell .f-order .time .l-txt,
body.ywy-shell-forced .f-order .time .l-txt {
  line-height: 1 !important;
  color: #46586f;
}

/* ===== v3.5 配置页排版核心（合并版，不依赖 body 类）=====
   .mf-cloud / .mf-dcim / .common-config 只在 v10 配置页出现，直接前缀免疫一切前提。
   1) 表单行 flex 化：label 行高=按钮高 40px 顶部对齐
   2) content flex 纵向化：按钮组贴顶（根治 inline-block 基线下坠）、说明文字居其下 */
.mf-cloud .el-form-item,
.mf-dcim .el-form-item,
.common-config .el-form-item {
  display: flex !important;
  align-items: flex-start !important;
}
.mf-cloud .el-form-item__label,
.mf-dcim .el-form-item__label,
.common-config .el-form-item__label {
  float: none !important;
  line-height: 40px !important;
  padding: 0 12px 0 0 !important;
  box-sizing: border-box !important;
}
.mf-cloud .el-form-item__content,
.mf-dcim .el-form-item__content,
.common-config .el-form-item__content {
  margin-left: 0 !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.5 !important;
}
.mf-cloud .el-radio-group,
.mf-dcim .el-radio-group,
.common-config .el-radio-group {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px;
  vertical-align: top !important;
}
.mf-cloud .el-radio-group .el-radio-button__inner,
.mf-dcim .el-radio-group .el-radio-button__inner,
.common-config .el-radio-group .el-radio-button__inner {
  vertical-align: top !important;
}
.mf-cloud .el-form-item__content .s-tip,
.mf-dcim .el-form-item__content .s-tip,
.common-config .el-form-item__content .s-tip {
  margin: 8px 0 0 !important;
}
