/* ==========================================================================
   速科云风格购物车 —— 产品配置 / 详情页
   版式对齐 sukeyun.com 配置页：左侧细标签列 + 右侧控件区 + 底部费用条
   ========================================================================== */

.cart-layout--configure {
  align-items: flex-start;
}

.cart-layout--configure .shopping-cart-product {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* ---------- 页面主卡片 ---------- */
.cart-layout--configure .allocation-card {
  padding: 0;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 2px;
  box-shadow: none;
}

.cart-layout--configure .allocation-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f1f5;
}

.cart-layout--configure .allocation-header-title h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1a1d24;
}

.cart-layout--configure .allocation-header-shoppingCart {
  flex: none;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #5b6474;
  font-size: 13px;
  line-height: 24px;
}

.cart-layout--configure .allocation-header-shoppingCart:hover {
  background: none;
  color: var(--sky-primary);
}

.cart-layout--configure .allocation-header-shoppingCart .inventory_number {
  margin-left: 2px;
  color: #98a1b3;
  font-size: 12px;
}

.cart-layout--configure .allocation-mian {
  padding: 0 24px;
}

/* ---------- 两栏骨架 ---------- */
.sky-config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.sky-config-main {
  min-width: 0;
}

.sky-config-aside {
  min-width: 0;
}

/* ---------- 右侧订单摘要 ---------- */
.sky-config-card {
  border: 1px solid var(--sky-border);
  border-radius: 2px;
  background: #fff;
}

.sky-aside-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f0f1f5;
}

.sky-aside-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1d24;
}

.sky-aside-body {
  padding: 4px 16px 16px;
}

@media (min-width: 992px) {
  .sky-config-aside .sky-config-card {
    position: sticky;
    top: 16px;
  }
}

/* ---------- 表单行：细标签列 ---------- */
.sky-form-group {
  display: flex;
  align-items: flex-start;
  padding: 13px 0;
  margin: 0;
}

.sky-form-label {
  flex: none;
  width: 82px;
  margin: 0;
  padding: 8px 12px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #7a8394;
  line-height: 18px;
  text-align: left;
}

.sky-form-label .label-title {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  line-height: 18px;
}

.sky-form-label .label-title span {
  display: inline;
}

.sky-form-label .label-title .pointer {
  cursor: pointer;
  color: var(--sky-primary);
}

.sky-md-100,
.sky-md-50,
.sky-md-25 {
  min-width: 0;
}

.sky-md-100 {
  flex: 1 1 auto;
  max-width: 100%;
}

.sky-md-50 {
  flex: none;
  width: 50%;
  max-width: 320px;
}

.sky-md-25 {
  flex: none;
  width: 220px;
  max-width: 100%;
}

/* ---------- 输入控件 ---------- */
.sky-input.form-control {
  height: 34px;
  padding: 4px 10px;
  border: 1px solid #e3e6eb;
  border-radius: 2px;
  background-color: #fff;
  font-size: 13px;
  color: #2b2f38;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.sky-input.form-control:focus {
  border-color: var(--sky-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, .08);
}

textarea.sky-input.form-control {
  height: auto;
  min-height: 68px;
  padding: 8px 10px;
}

.sky-input.form-control:disabled {
  background: #f7f8fa;
  color: #98a1b3;
}

.bootstrap-select > .dropdown-toggle.sky-input {
  padding-right: 24px;
}

.bootstrap-select > .dropdown-toggle.btn-default {
  height: 34px;
  border: 1px solid #e3e6eb;
  border-radius: 2px;
  background: #fff;
  color: #2b2f38;
  font-size: 13px;
}

.bootstrap-select > .dropdown-toggle.btn-default:focus,
.bootstrap-select.show > .dropdown-toggle.btn-default {
  border-color: var(--sky-primary);
  outline: none !important;
}

.bootstrap-select > .dropdown-toggle.btn-default img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
}

/* ---------- 规格按钮（芯片） ---------- */
.sky-form-group .btn-group-toggle,
.sky-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.sky-form-group .btn-group-toggle > .btn,
.sky-btn-group > .btn,
.sky-config-btn {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: 34px;
  margin: 0 !important;
  padding: 0 16px;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  background: #f5f6f8;
  box-shadow: none !important;
  color: #5b6474;
  font-size: 13px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

/* 参数类（CPU / 内存 / 硬盘）小一号 */
.sky-form-group .btn-group-toggle.sky-chips--sm > .btn {
  height: 30px;
  padding: 0 13px;
  line-height: 28px;
  font-size: 12px;
}

.sky-form-group .btn-group-toggle > .btn input,
.sky-config-btn input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.sky-form-group .btn-group-toggle > .btn:hover,
.sky-btn-group > .btn:hover,
.sky-config-btn:hover {
  background: #eceff4;
  color: var(--sky-primary);
}

.sky-form-group .btn-group-toggle > .btn.active,
.sky-btn-group > .btn.active,
.sky-config-btn.active,
.sky-form-group .btn-group-toggle > .btn.active:hover {
  border-color: var(--sky-primary) !important;
  background: var(--sky-primary);
  color: #fff;
}

.sky-form-group .btn-group-toggle > .btn.active > input {
  outline: none;
}

/* 周期折扣角标 */
.cycle-select-discount {
  position: absolute;
  top: -6px;
  right: -1px;
  display: inline-block;
  height: 15px;
  padding: 0 4px;
  border-radius: 2px;
  background: #f5222d;
  color: #fff;
  font-size: 10px;
  line-height: 15px;
}

/* ---------- 单选 / 复选 ---------- */
.sky-radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 8px;
}

.sky-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* 单选：bootstrap 把 input 设成 position:absolute，父级又去掉了 padding-left，
   结果圆点正好压在第一个字上。这里改回文档流排布，圆点在文字左边。 */
.sky-form-group .form-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding-left: 0;
}

.sky-form-group .form-check-input {
  position: static;
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--sky-primary);
}

.sky-form-group .form-check-label {
  margin: 0;
  line-height: 20px;
}

.custom-control-label,
.form-check-label {
  font-size: 13px;
  color: #5b6474;
  cursor: pointer;
}

.sky-form-group .custom-control.custom-checkbox {
  padding-left: 22px;
  margin: 0;
}

/* 方框指示器：.custom-control-label 自己是 position:relative，
   所以这里要按「左侧 22px 内距」偏移，写 left:0 会正好压在第一个字上 */
.sky-form-group .custom-control-label::before,
.sky-form-group .custom-control-label::after {
  left: -22px;
}

/* ---------- 区域 / 数据中心 ---------- */
.sky-region-select {
  width: 220px;
  max-width: 100%;
}

.sky-region-chips > .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sky-region-chips > .btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ---------- 滑块 ---------- */
.sky-range-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding-top: 3px;
}

.sky-input-range.configoption_range,
.sky-input-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  /* 父主题会给它写内联 background 渐变，这里强制让自绘轨道生效 */
  background: transparent !important;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

.sky-input-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
      var(--sky-primary) 0,
      var(--sky-primary) var(--skyrange, 0%),
      #e6eaf2 var(--skyrange, 0%),
      #e6eaf2 100%);
}

.sky-input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 3px solid var(--sky-primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 93, 255, .28);
  cursor: pointer;
  transition: transform .15s;
}

.sky-input-range:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.sky-input-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e6eaf2;
}

.sky-input-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--sky-primary);
}

.sky-input-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--sky-primary);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.sky-range-val.form-control {
  flex: none;
  width: 76px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e3e6eb;
  border-radius: 2px;
  background: #fff;
  color: #2b2f38;
  font-size: 13px;
  text-align: center;
  box-shadow: none;
}

.sky-range-val.form-control:focus {
  border-color: var(--sky-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, .08);
}

.sky-range-unit {
  flex: none;
  min-width: 44px;
  color: #98a1b3;
  font-size: 13px;
}

.sky-range-wrap .range_none {
  position: absolute;
  top: 50%;
  display: block;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg,
      rgba(147, 160, 180, .38) 0 3px,
      rgba(147, 160, 180, 0) 3px 6px);
  pointer-events: none;
}

/* ---------- 操作系统大类卡片 ---------- */
.os-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.os-card {
  position: relative;
  border: 1px solid #f5f6f8;
  border-radius: 2px;
  background: #f5f6f8;
  transition: border-color .18s, background .18s;
}

.os-card:hover {
  border-color: #c7d8ff;
}

.os-card.is-active {
  border-color: var(--sky-primary);
  background: #fff;
}

.os-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
}

.os-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.os-icon img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

.os-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #2b2f38;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.os-card.is-active .os-name {
  color: var(--sky-primary);
}

.version-dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 26px;
  padding: 0 12px 6px;
  border: 0;
  background: transparent;
  color: #9aa2b1;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.os-card.has-version .dropdown-btn {
  color: #2b2f38;
}

.dropdown-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dropdown-caret {
  flex: none;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .5;
  transition: transform .18s;
}

.os-card.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.version-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  z-index: 60;
  width: max-content;
  min-width: calc(100% + 2px);
  max-width: 280px;
  max-height: 240px;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, .14);
}

/* 靠右的卡片自动右对齐，避免下拉撑出屏幕 */
.os-card.align-right .version-list {
  left: auto;
  right: -1px;
}

.os-card.is-open .version-list {
  display: block;
}

.version-list li {
  padding: 7px 12px;
  overflow: hidden;
  color: #5b6474;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.version-list li:hover {
  background: #f3f7ff;
  color: var(--sky-primary);
}

.version-list li.is-selected {
  background: #f2f6ff;
  color: var(--sky-primary);
}

.version-list li.is-empty {
  color: #98a1b3;
  cursor: default;
}

.version-list li.is-empty:hover {
  background: none;
  color: #98a1b3;
}

/* ---------- 校验 ---------- */
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #f46a6a;
}

.error-tip {
  display: none;
  margin: 0;
  padding: 0 0 0 8px;
  color: #f46a6a;
  font-size: 12px;
  line-height: 34px;
}

/* ---------- 密码 ---------- */
.sky-pwd-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 0 10px;
}

.sky-pwd-tools .create_random_pass {
  cursor: pointer;
  color: var(--sky-primary);
}

/* ---------- 底部费用条 ---------- */
.sky-cfg-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px -24px 0;
  padding: 12px 24px;
  border-top: 1px solid #f0f1f5;
  background: #fff;
}

.sky-cfg-fee {
  min-width: 0;
}

.fee-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.fee-label {
  font-size: 13px;
  color: #5b6474;
}

.fee-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--sky-price);
}

.fee-original {
  display: none;
  font-size: 13px;
  color: #9aa3b2;
  text-decoration: line-through;
  white-space: nowrap;
}

.fee-original.is-on {
  display: inline;
}

.fee-tag {
  font-size: 12px;
  color: #98a1b3;
}

.fee-tag::before {
  content: "[";
}

.fee-tag::after {
  content: "]";
}

.fee-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: #9aa2b1;
}

.sky-cfg-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 18px;
}

.sky-fee-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #5b6474;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.sky-fee-detail-toggle:hover {
  color: var(--sky-primary);
}

.fee-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .6;
  transition: transform .18s;
}

.sky-cfg-bar.is-detail-open .fee-caret {
  transform: rotate(180deg);
}

.sky-buy-btn {
  min-width: 112px;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--sky-primary);
  color: #fff;
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  transition: background .18s;
}

.sky-buy-btn:hover {
  background: var(--sky-primary-hover);
  color: #fff;
}

/* 费用明细浮层 */
.sky-fee-detail {
  display: none;
  position: absolute;
  right: 24px;
  bottom: calc(100% - 6px);
  z-index: 30;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 14px 4px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, .14);
}

.sky-cfg-bar.is-detail-open .sky-fee-detail {
  display: block;
}

.sky-fee-detail-title {
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f5;
  font-size: 13px;
  font-weight: 600;
  color: #2b2f38;
}

.sky-fee-detail .is-empty {
  margin: 12px 0;
  color: #98a1b3;
  font-size: 12px;
  text-align: center;
}

.sky-fee-detail .sky-order-summary td {
  padding: 5px 0;
  font-size: 12px;
  line-height: 18px;
}

.sky-fee-detail .sky-order-summary .summary-total .summary-value {
  font-size: 16px;
}

/* ---------- 订单摘要 ---------- */
.configoption_total {
  font-size: 13px;
  color: #5b6474;
}

.sky-order-summary {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.sky-order-summary td {
  border: none;
  padding: 8px 0;
  font-size: 13px;
  line-height: 20px;
  vertical-align: top;
}

.sky-order-summary tr + tr:not(.sky-order-summary-divider) td {
  border-top: 1px dashed #f0f1f5;
}

.sky-order-summary .summary-label {
  width: 100%;
  padding-right: 10px;
  color: #8a94a6;
  word-break: break-word;
}

.sky-order-summary .summary-value {
  text-align: right;
  color: #2b2f38;
  /* 价格必须单行：word-break 会把 ¥19.90 断成 ¥19.9 / 0 */
  white-space: nowrap;
  word-break: keep-all;
}

.sky-order-summary .summary-value img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: -3px;
}

.sky-order-summary .summary-label img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: -3px;
}

.sky-order-summary .summary-discount .summary-value {
  color: var(--sky-primary);
}

.sky-order-summary .summary-total td {
  padding-top: 12px;
  border-top: 1px solid #f0f1f5 !important;
}

.sky-order-summary .summary-total .summary-label {
  font-weight: 600;
  color: #2b2f38;
}

.sky-order-summary .summary-total .summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--sky-price);
}

/* 加入购物车（摘要卡内） */
.sky-order-summary-footer {
  margin-top: 14px;
}

.sky-order-summary-footer .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--sky-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background .18s;
}

.sky-order-summary-footer .btn:hover {
  background: var(--sky-primary-hover);
  color: #fff;
}

.sky-order-summary-footer .btn i {
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199.98px) {
  .sky-config-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }

  .os-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sky-config-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 订单摘要不再单独占一块：内容并入底部「费用明细」浮层 */
  .sky-config-aside {
    display: none;
  }

  .cart-layout--configure .allocation-mian {
    padding: 0 16px;
  }

  .sky-cfg-bar {
    margin-left: -16px;
    margin-right: -16px;
  }

  .cart-layout--configure .allocation-header {
    padding: 16px 16px 14px;
  }

  .sky-form-label {
    width: 78px;
  }

  /* 单栏堆叠时，摘要卡按钮与底部费用条重复，隐藏 */
  .sky-order-summary-footer {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .cart-layout--configure {
    /* 给固定底栏留位（含 iPhone 底部安全区），避免最后一行被盖住 */
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .cart-layout--configure .allocation-header {
    gap: 8px;
  }

  .cart-layout--configure .allocation-header-title h1 {
    font-size: 15px;
  }

  .cart-layout--configure .allocation-mian {
    padding: 0 14px;
  }

  /* 移动端：标签独立一行，控件铺满 */
  .sky-form-group {
    display: block;
    padding: 12px 0;
  }

  .sky-form-label {
    width: auto;
    padding: 0 0 8px;
    line-height: 18px;
  }

  .sky-md-100,
  .sky-md-50,
  .sky-md-25,
  .sky-region-select {
    width: 100%;
    max-width: 100%;
  }

  .sky-form-group .btn-group-toggle.sky-chips--sm > .btn {
    height: 30px;
    padding: 0 11px;
  }

  .os-container {
    gap: 8px;
  }

  .os-card {
    min-width: 0;
  }

  .sky-range-wrap {
    gap: 10px;
  }

  .sky-range-val.form-control {
    width: 64px;
    height: 30px;
  }

  .sky-range-unit {
    min-width: 34px;
    font-size: 12px;
  }

  /* 底部费用条固定：价格区可压缩、按钮区永不被挤压 */
  .sky-cfg-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--sky-kb, 0);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(31, 45, 61, .1);
  }

  .sky-cfg-bar .fee-note {
    display: none;
  }

  .sky-cfg-fee {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sky-cfg-bar .fee-line {
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }

  .sky-cfg-bar .fee-label {
    flex: none;
    white-space: nowrap;
  }

  .sky-cfg-bar .fee-value {
    flex: none;
    white-space: nowrap;
  }

  .sky-cfg-actions {
    flex: 0 0 auto;
    gap: 10px;
  }

  .sky-fee-detail-toggle {
    flex: none;
    font-size: 12px;
    white-space: nowrap;
  }

  .sky-buy-btn {
    flex: none;
    min-width: 96px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* 费用明细浮层：手机上抬高一些，装下整份订单明细 */
  .sky-fee-detail {
    left: 10px;
    right: 10px;
    max-height: min(64vh, 440px);
    padding: 12px 14px 10px;
    border-radius: 10px;
    border-color: #e6e9ef;
    box-shadow: 0 10px 30px rgba(22, 30, 45, .16);
  }

  .sky-fee-detail {
    right: 14px;
    bottom: calc(100% + 2px);
    width: auto;
    left: 14px;
  }

  .fee-value {
    font-size: clamp(15px, 4.4vw, 18px);
  }

  .fee-label {
    font-size: 12px;
  }

  .fee-tag,
  .fee-original.is-on {
    display: none;
  }

  .sky-cfg-actions {
    gap: 12px;
  }

  .sky-fee-detail-toggle {
    font-size: 12px;
  }

  .sky-buy-btn {
    min-width: 104px;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 34px;
  }

}

@media (max-width: 359.98px) {
  /* 订单汇总已并入费用明细，这里任何宽度都不能再隐藏入口 */
  .sky-cfg-bar {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .fee-value {
    font-size: 16px;
  }

  .fee-label {
    font-size: 12px;
  }

  .sky-cfg-actions {
    gap: 8px;
  }

  .sky-fee-detail-toggle {
    font-size: 11px;
  }

  .sky-buy-btn {
    min-width: 86px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   产品型号
   桌面（≥768）：sukeyun 同款——灰底面板内平铺型号按钮，点一下直接切换
   手机（<768）：折叠成一行「产品型号   当前型号 ›」，点开底部选择面板
   ========================================================================== */
#skyModelRow.sky-model-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-areas:
    "label line"
    ".     tip";
  align-items: center;
  padding: 13px 0;
}

#skyModelRow.sky-model-row.is-empty {
  display: none;
}

#skyModelRow > .sky-form-label {
  grid-area: label;
  width: auto;
  padding: 0 12px 0 0;
}

/* ---------- 桌面：灰底面板 + 型号按钮 ---------- */
.sky-mpanel {
  display: none;
  padding: 14px 16px 12px;
  border-radius: 2px;
  background: #f7f8fa;
}

.sky-mpanel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sky-mchip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: #4e5969;
  font-size: 13px;
  line-height: 32px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s, border-color .16s;
}

.sky-mchip:hover,
.sky-mchip:focus {
  border-color: var(--sky-primary);
  color: var(--sky-primary);
  text-decoration: none;
}

.sky-mchip.is-active,
.sky-mchip.is-active:hover {
  border-color: var(--sky-primary);
  background: var(--sky-primary);
  color: #fff;
}

.sky-mchip.is-disabled {
  border-color: #eef1f6;
  background: #fafbfc;
  color: #b6bdc9;
  cursor: not-allowed;
}

.sky-mpanel__tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  color: #8a94a6;
  font-size: 12px;
  line-height: 18px;
}

.sky-mpanel__tip svg {
  flex: none;
  margin-top: 2px;
  color: var(--sky-primary);
}

/* ---------- 手机：折叠成一行 ---------- */
.sky-mline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 3px;
  background: #fff;
  color: #1f2329;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}

.sky-mline:hover,
.sky-mline:focus {
  border-color: var(--sky-primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, .08);
  outline: none;
}

.sky-mline__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sky-mline__arrow {
  display: block;
  flex: none;
  color: #b9c0cc;
}

#skyModelRow > .sky-model-tip {
  grid-area: tip;
  margin-top: 8px;
  align-items: flex-start;
}

#skyModelRow > .sky-model-tip > .sky-model-tip__icon {
  flex: none;
  margin-top: 2px;
  color: var(--sky-primary);
}

@media (min-width: 768px) {
  #skyModelRow.sky-model-row {
    grid-template-areas: "label line";
    align-items: start;
  }

  #skyModelRow > .sky-form-label {
    padding-top: 8px;
  }

  #skyModelRow > .sky-model-tip {
    display: none;
  }

  .sky-mpanel {
    display: block;
  }

  .sky-mline {
    display: none;
  }
}

@media (max-width: 767.98px) {
  #skyModelRow.sky-model-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "label line"
      "tip   tip";
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f2f3f6;
  }

  #skyModelRow > .sky-form-label {
    padding: 0 10px 0 0;
  }

  #skyModelRow > .sky-form-label .label-title span {
    color: #1f2329;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
  }

  #skyModelRow .sky-mline {
    justify-content: flex-end;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
  }

  #skyModelRow .sky-mline:hover,
  #skyModelRow .sky-mline:focus {
    box-shadow: none;
  }

  #skyModelRow .sky-mline__value {
    flex: 0 1 auto;
    color: #5b6474;
    text-align: right;
  }

  #skyModelRow > .sky-model-tip {
    margin-top: 10px;
  }

  .sky-mpanel {
    display: none;
  }
}

/* ---------- 选择面板（手机底部弹出） ---------- */
body.sky-pick-lock {
  overflow: hidden;
}

.sky-mpick {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1090;
  display: none;
}

.sky-mpick.is-open {
  display: block;
}

.sky-mpick__mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, .5);
  opacity: 0;
  transition: opacity .22s;
}

.sky-mpick.is-open .sky-mpick__mask {
  opacity: 1;
}

.sky-mpick__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #fff;
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.32, .72, .3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sky-mpick.is-open .sky-mpick__panel {
  transform: translateY(0);
}

.sky-mpick__head {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #f2f3f6;
}

.sky-mpick__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1f2329;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.sky-mpick__cancel,
.sky-mpick__ok {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.sky-mpick__cancel {
  color: #8a94a6;
}

.sky-mpick__ok {
  color: var(--sky-primary);
  font-weight: 600;
}

.sky-mpick__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.sky-mpick__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  color: #1f2329;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sky-mpick__item + .sky-mpick__item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: #f5f6f8;
}

.sky-mpick__name {
  flex: 1 1 auto;
  min-width: 0;
}

.sky-mpick__item.is-active {
  background: #f2f6ff;
  color: var(--sky-primary);
  font-weight: 600;
}

.sky-mpick__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--sky-primary);
}

.sky-mpick__item.is-disabled {
  color: #c6cbd4;
  cursor: not-allowed;
}

.sky-mpick__sold {
  flex: none;
  color: inherit;
  font-size: 13px;
}

/* ---------- 选项说明小图标（原 boxicons 未加载，改内联 SVG） ---------- */
.sky-note-ico {
  display: inline-block;
  margin-left: 3px;
  vertical-align: -2px;
  color: var(--sky-primary);
  cursor: help;
}

/* ---------- PC 端紧凑态：内容区被挤窄时，订单摘要让位 ----------
   手机端(<992)本来就隐藏 aside，这里只补 PC 的中间档 */
@media (min-width: 992px) {
  .cart-layout.is-mid .sky-config-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cart-layout.is-mid .sky-config-aside {
    display: none;
  }
}
