/* suke-rev-19 */
/* ==========================================================================
   速科云风格购物车主题 —— suke / 基础样式
   仅作用于 .cart-layout 内部，避免污染魔方父主题
   ========================================================================== */

:root {
  --sky-primary: #165dff;
  --sky-primary-hover: #0f4bcc;
  --sky-primary-light: #e8f0ff;
  --sky-price: #ff000e;
  --sky-btn: #165dff;
  --sky-btn-hover: #0f4bcc;
  --sky-text: #212529;
  --sky-text-2: #5c6470;
  --sky-text-3: #8a94a6;
  --sky-border: #e8ebf0;
  --sky-border-strong: #d4d6d9;
  --sky-bg: #f7f7f9;
  --sky-radius: 2px;
  --sky-sidebar: 250px;
  --sky-card-min: 300px;
  --sky-gap: 16px;

  /* 兼容旧变量（ordersummary.tpl 等仍在引用） */
  --Original: #165dff;
  --primary: #165dff;
  --priceColor: #ff000e;
  --buyButton: #165dff;
  --inventoryColor: #a9a9a9;
  --txtcl: #212529;
  --txtdesc: rgba(0, 0, 0, .65);
}

/* ---------- 去掉用户中心那行重复标题 ----------
   顶部站点导航已经标了当前位置，购物车 / 结算 / 配置页都不再需要
   「购物车 ... 用户中心 / 购物车」这一行，直接隐藏并让内容顶上去。 */
.page-title-box {
  display: none !important;
}

/* ---------- 整体两栏骨架 ---------- */
.cart-layout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  /* 不再限宽：跟着用户中心内容区一起伸缩，宽屏下不再两边留大白 */
  max-width: none;
  margin: 0;
  padding: 12px 15px 40px;
  box-sizing: border-box;
  background: var(--sky-bg);
  color: var(--sky-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cart-layout *,
.cart-layout *::before,
.cart-layout *::after {
  box-sizing: border-box;
}

.cart-layout .shopping-cart-product {
  flex: 1;
  min-width: 0;
}

.cart-layout a {
  transition: color .2s;
}

/* ---------- 左侧分类 ---------- */
.sky-cart-sidebar {
  width: var(--sky-sidebar);
  min-width: var(--sky-sidebar);
  flex: none;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--sky-border);
  align-self: stretch;
}

.sky-cart-search {
  position: relative;
  width: 100%;
}

.sky-cart-search-box {
  display: flex;
  align-items: center;
  position: relative;
}

.sky-cart-search-box input {
  flex: 1;
  width: 100%;
  height: 36px;
  padding: 0 30px 0 32px;
  border: 1px solid var(--sky-border-strong);
  border-radius: var(--sky-radius);
  background: #fff;
  font-size: 13px;
  color: var(--sky-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.sky-cart-search-box input:focus {
  border-color: var(--sky-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, .08);
}

.sky-cart-search-box input::placeholder {
  font-size: 12px;
  color: #a8b0bd;
}

.sky-cart-search-icon,
.sky-cart-search-clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 15px;
  height: 15px;
  cursor: pointer;
  color: #9aa3b2;
}

.sky-cart-search-icon {
  left: 9px;
}

.sky-cart-search-icon svg,
.sky-cart-search-clear svg {
  display: block;
  width: 15px;
  height: 15px;
}

.sky-cart-search-clear {
  right: 10px;
  display: none;
}

.sky-cart-search-clear:hover {
  color: var(--sky-primary);
}

.sky-cart-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: max-content;
  min-width: 100%;
  max-width: 340px;
  max-height: 300px;
  margin-top: 8px;
  padding: 8px 0;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--sky-border);
  border-radius: var(--sky-radius);
  box-shadow: 0 6px 24px rgba(31, 45, 61, .12);
  box-sizing: border-box;
}

.sky-cart-search-results .search-result-item,
.sky-cart-search-results .noFind {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--sky-text);
  line-height: 34px;
  text-decoration: none;
}

.sky-cart-search-results .search-result-item:hover {
  background: var(--sky-primary-light);
  text-decoration: none;
}

.sky-cart-search-results .search-model {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--sky-text);
}

.sky-cart-search-results .search-price {
  flex: none;
  font-size: 12px;
  color: var(--sky-price);
}

.sky-cart-search-results .noFind {
  display: block;
  padding: 10px 16px;
  color: var(--sky-text-3);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ---------- 侧栏搜索：分组标题 ---------- */
.sky-cart-search-results .search-group-title {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sky-text-3);
  letter-spacing: .4px;
  line-height: 16px;
}

/* 搜索时被过滤掉的分类项 */
.sky-cart-submenu-item.search-hidden,
.sky-cart-menu-item.search-hidden {
  display: none !important;
}

@media (max-width: 767.98px) {
  .sky-cart-search-results {
    max-width: calc(100vw - 28px);
  }
}

/* 分类菜单 */
.sky-cart-menu {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding-bottom: 4px;
}

.sky-cart-menu-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sky-cart-menu-title {
  position: relative;
  width: 100%;
  padding: 10px 26px 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sky-text);
  line-height: 22px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.sky-cart-menu-title:hover {
  color: var(--sky-primary);
  background: var(--sky-primary-light);
}

.sky-cart-menu-title::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa3b2;
  transition: transform .3s;
}

.sky-cart-menu-title.active {
  color: var(--sky-primary);
}

.sky-cart-menu-title.active::before {
  border-top-color: var(--sky-primary);
  transform: rotate(180deg);
}

.sky-cart-submenu {
  display: none;
  width: 100%;
}

.submenu-item-row {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px;
}

.sky-cart-submenu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 16px 0 24px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.sky-cart-submenu-item:hover {
  background: var(--sky-primary-light);
  text-decoration: none;
}

.sky-cart-submenu-item.active {
  border-left-color: var(--sky-primary);
  background: var(--sky-primary-light);
}

.sky-cart-submenu-item .submenu-item-u {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sky-cart-submenu-item h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--sky-text-2);
  line-height: 34px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sky-cart-submenu-item.active h5 {
  color: var(--sky-primary);
  font-weight: 500;
}

/* ---------- 内容主卡片（清单 / 配置 / 结算共用） ---------- */
.allocation-card {
  background: #fff;
  border: 1px solid var(--sky-border);
  border-radius: var(--sky-radius);
  padding: 0 20px 20px;
  box-shadow: 0 5px 20px 3px rgba(230, 233, 249, .3);
}

.allocation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--sky-border);
}

.allocation-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--sky-text);
  word-break: break-word;
}

.allocation-header-shoppingCart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--sky-primary);
  border-radius: var(--sky-radius);
  color: var(--sky-primary);
  font-size: 13px;
  line-height: 32px;
  text-decoration: none;
  transition: all .2s;
}

.allocation-header-shoppingCart:hover {
  background: var(--sky-primary);
  color: #fff;
  text-decoration: none;
}

.allocation-header-shoppingCart .inventory_number {
  color: inherit;
}

.allocation-mian {
  padding-top: 16px;
}


/* ---------- 产品卡片网格 ---------- */
.sky-productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sky-card-min), 1fr));
  gap: var(--sky-gap);
  margin-bottom: 24px;
}

/* 行高按内容走：同一行的卡片自动等高（grid 的 stretch），
   行与行之间各算各的，避免一张长介绍的卡片把整页都撑高 */
.sky-productList {
  grid-auto-rows: auto;
}

/* ---------- 产品卡片（渐变卡头 + 彩色规格图标） ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  color: #1d2129;
  text-align: left;
  box-shadow: 0 4px 16px rgba(29, 42, 68, .05);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

/* 卡头右上角的浅灰渐变：径向柔光 + 斜向光带，形成上浅下白的层次 */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 90%;
  height: 268px;
  background:
    radial-gradient(118% 124% at 103% -6%, rgba(214, 223, 237, .95) 0%, rgba(230, 236, 245, .78) 32%, rgba(245, 247, 251, .42) 55%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(217deg, rgba(224, 231, 241, .5) 0%, rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}

/* 右上角细圆环，给渐变一点玻璃质感 */
.product-card::after {
  content: "";
  position: absolute;
  top: -52px;
  right: -46px;
  z-index: 0;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(22, 93, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}

.product-card > *:not(.sold-out-icon) {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  border-color: #c9dbfd;
  box-shadow: 0 12px 28px rgba(22, 93, 255, .13);
  transform: translateY(-2px);
}

.product-card .product-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* 标题区 */
.product-card .product-card-header {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  background: transparent;
}

.product-card .header-title,
.product-card .header-title h5 {
  margin: 0;
  padding-right: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: -.2px;
  color: #1d2129;
  word-break: break-word;
}

.product-card .header-desc {
  /* 不再截断：介绍多长都完整展示 */
  margin: 7px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 19px;
  color: #86909c;
  word-break: break-word;
}

/* 规格区 */
.product-card .product-card-body {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  padding: 13px 20px 0;
}

.product-card .product-description {
  width: 100%;
  margin: 0;
  padding: 0;
}

.product-card .product-description > div:not(.content-item) {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #4e5969;
}

/* 脚本没跑到时的兜底：段落按普通块级排，不会被 flex 挤成竖排 */
.product-card .product-description > p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #4e5969;
}

.product-card .content-item {
  display: grid;
  grid-template-columns: 22px minmax(62px, var(--ci-label, max-content)) minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  width: 100%;
  padding: 4px 0;
  font-size: 13px;
  line-height: 20px;
}

/* 没有「标签」的行（纯文本介绍）：图标 + 值两列 */
.product-card .content-item.is-plain {
  grid-template-columns: 22px minmax(0, 1fr);
}

/* 显式指定列：万一图标脚本没跑到，标签/值也不会被挤进 22px 的图标列 */
.product-card .content-item:not(.is-plain) > .label-text {
  grid-column: 2;
}

.product-card .content-item:not(.is-plain) > .value-text,
.product-card .content-item.is-plain > .value-text {
  grid-column: 3;
}

.product-card .content-item.is-plain > .value-text {
  grid-column: 2;
}

/* 规格图标：22px 圆角色块 + 线性图标 */
.product-card .ci-ico {
  flex: none;
  margin-top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--ci-fg, #4e5969);
  background: var(--ci-bg, rgba(78, 89, 105, .07));
}

.product-card .ci-ico svg {
  display: block;
  width: 14px;
  height: 14px;
}

.product-card .ci-ico[data-k="cpu"] { --ci-fg: #722ed1; --ci-bg: rgba(114, 46, 209, .09); }
.product-card .ci-ico[data-k="mem"] { --ci-fg: #00b42a; --ci-bg: rgba(0, 180, 42, .09); }
.product-card .ci-ico[data-k="disk"] { --ci-fg: #4e5969; --ci-bg: rgba(78, 89, 105, .08); }
.product-card .ci-ico[data-k="net"] { --ci-fg: #165dff; --ci-bg: rgba(22, 93, 255, .08); }
.product-card .ci-ico[data-k="line"] { --ci-fg: #00b42a; --ci-bg: rgba(0, 180, 42, .09); }
.product-card .ci-ico[data-k="ip"] { --ci-fg: #0fc6c2; --ci-bg: rgba(15, 198, 194, .1); }
.product-card .ci-ico[data-k="shield"] { --ci-fg: #ff7d00; --ci-bg: rgba(255, 125, 0, .1); }
.product-card .ci-ico[data-k="sys"] { --ci-fg: #165dff; --ci-bg: rgba(22, 93, 255, .08); }
.product-card .ci-ico[data-k="note"] { --ci-fg: #4e5969; --ci-bg: rgba(78, 89, 105, .07); }
.product-card .ci-ico[data-k="pin"] { --ci-fg: #165dff; --ci-bg: rgba(22, 93, 255, .08); }

.product-card .content-item .label-text {
  min-width: 0;
  color: #86909c;
  word-break: break-word;
}

.product-card .content-item .value-text {
  min-width: 0;
  font-weight: 600;
  color: #1d2129;
  text-align: left;
  word-break: break-word;
}

/* 值里的补充说明（后台常写成彩色 span）：不跟着加粗，轻一点 */
.product-card .content-item .value-text > span:not(.ci-ico) {
  font-weight: 400;
}

.product-card .content-item .value-text a {
  color: var(--sky-primary);
  text-decoration: none;
}

/* 价格 + 购买按钮 */
/* 卡片等高：介绍区吸收多余高度（中间留白），价格/按钮区固定贴底，
   保证同一页所有卡片白框高度一致、按钮在同一条水平线上 */
.product-card .product-Parameters {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 20px 18px;
}

/* 一行价 / 两行价（原价折扣）都占同样高度，按钮位置才不会错位 */
.product-card .pricing-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 54px;
  padding: 0;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card .discount-tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 0, 14, .07);
  color: var(--sky-price);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.product-card .price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0;
}

.product-card .currency {
  margin-right: 1px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--sky-price);
}

.product-card .amount {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.6px;
  color: var(--sky-price);
}

.product-card .period {
  margin-left: 6px;
  font-size: 12px;
  color: #86909c;
}

.product-card .original-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  color: #b0b8c4;
}

.product-card .original-price .original-label {
  color: #b0b8c4;
}

.product-card .original-price s {
  color: #b0b8c4;
  text-decoration: line-through;
}

.product-card .trial-info {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  margin-top: 2px;
}

.product-card .trial-info .amount {
  font-size: 14px;
  font-weight: 500;
  color: #4e5969;
}

.product-card .trial-info .period {
  font-size: 12px;
  color: #86909c;
}

.product-card .buy-now-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin: 12px 0 0;
  border: none;
  border-radius: 3px;
  background: var(--sky-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 93, 255, .18);
  transition: opacity .2s, box-shadow .2s;
}

.product-card .buy-now-button:hover {
  color: #fff;
  text-decoration: none;
  opacity: .95;
  box-shadow: 0 6px 16px rgba(22, 93, 255, .28);
}

.product-card .buy-now-button.SellOut {
  background: linear-gradient(180deg, #e2e5ea 0%, #d4d8de 100%);
  box-shadow: none;
  color: #7d8592;
  cursor: not-allowed;
  opacity: 1;
}

.product-card .sold-out-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 96px;
  transform: translate(-50%, -50%) rotate(-12deg);
  opacity: .1;
  pointer-events: none;
}

/* ---------- 空状态 / 分页 ---------- */
.cart-layout .no-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 96px 20px;
  background: #fff;
  border: 1px solid var(--sky-border);
  color: var(--sky-text-3);
  font-size: 13px;
  text-align: center;
}

.cart-layout .no-product i {
  width: 72px;
  height: 72px;
  background: url("../img/saleout.svg") no-repeat center / contain;
  opacity: .45;
}

.cart-layout .no-product .buy-now-button {
  width: 160px;
  margin-top: 4px;
  border-radius: var(--sky-radius);
  background: var(--sky-btn);
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
}

.cart-layout .no-product .buy-now-button:hover {
  color: #fff;
  opacity: .92;
}

.cart-layout .table-footer {
  margin-top: 8px;
  padding: 12px 0;
}

.cart-layout .table-footer .pagination {
  margin: 0;
}

/* ---------- 通用表单控件 ---------- */
.cart-layout .form-control {
  height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--sky-border-strong);
  border-radius: var(--sky-radius);
  background-color: #fff;
  font-size: 13px;
  color: var(--sky-text);
  box-shadow: none;
}

.cart-layout .form-control:focus {
  border-color: var(--sky-primary);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, .08);
}

.cart-layout select.form-control {
  padding-right: 24px;
}

.cart-layout .input-group-append .btn {
  border-radius: 0 var(--sky-radius) var(--sky-radius) 0;
}

.cart-layout .btn-primary {
  border-color: var(--sky-primary);
  background: var(--sky-primary);
  font-size: 13px;
}

.cart-layout .btn-primary:hover {
  border-color: var(--sky-primary-hover);
  background: var(--sky-primary-hover);
}

.cart-layout .btn-group-toggle > .btn,
.cart-layout .btn-group > .btn {
  border: 1px solid var(--sky-border-strong);
  border-radius: var(--sky-radius) !important;
  background: #fff;
  color: var(--sky-text-2);
  font-size: 13px;
  box-shadow: none;
}

.cart-layout .btn-group-toggle > .btn.active,
.cart-layout .btn-group > .btn.active {
  border-color: var(--sky-primary);
  background: var(--sky-primary-light);
  color: var(--sky-primary);
}

.cart-layout .btn-group-toggle > .btn input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* ---------- 移动端 ---------- */
@media (max-width: 991.98px) {
  .cart-layout {
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 30px;
  }

  .allocation-card {
    padding: 0 14px 16px;
  }

  .allocation-header {
    padding: 14px 0 12px;
  }

  .allocation-header-title h1 {
    font-size: 17px;
    line-height: 24px;
  }

  .allocation-mian {
    padding-top: 14px;
  }


  /* 手机端分类收进抽屉，页面只留一条「产品菜单」入口 */
  .sky-cart-sidebar {
    display: none;
  }

  .sky-cart-menu {
    margin-top: 8px;
    overflow: visible;
  }

  .sky-cart-menu-title {
    padding: 9px 26px 9px 14px;
    border-bottom: 1px solid #f2f4f8;
  }

  .sky-cart-submenu-item h5 {
    line-height: 32px;
  }

  .cart-layout .shopping-cart-product {
    width: 100%;
  }

  .sky-productList {
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .cart-layout {
    padding: 8px 8px 24px;
  }

  .sky-productList {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    min-width: 0;
  }

  .product-card .product-card-header {
    padding: 16px 16px 0;
  }

  .product-card .header-title,
  .product-card .header-title h5 {
    font-size: 15px;
    line-height: 22px;
  }

  .product-card .product-card-body {
    padding: 12px 16px 0;
  }

  .product-card .content-item {
    grid-template-columns: 22px minmax(58px, var(--ci-label, max-content)) minmax(0, 1fr);
    column-gap: 9px;
    padding: 4px 0;
  }

  .product-card .content-item.is-plain {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .product-card .product-Parameters {
    padding: 8px 16px 16px;
  }

  .product-card .amount {
    font-size: 25px;
  }

  .product-card .buy-now-button {
    width: 100%;
    height: 42px;
    margin: 10px 0 0;
  }

  .cart-layout .no-product {
    padding: 64px 16px;
  }
}

/* ==========================================================================
   手机端产品菜单（仿 tianliyun：一条入口 + 左分类右产品的抽屉）
   桌面端整体不渲染，只在 <=991.98 出现
   ========================================================================== */
.sky-mcat,
.sky-mcat-drawer {
  display: none;
}

body.sky-mcat-lock {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .cart-layout {
    flex-wrap: wrap;
  }

  .sky-mcat {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    order: -1;
    margin: 0 0 10px;
  }

  .sky-mcat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid var(--sky-border);
    border-radius: var(--sky-radius);
    background: #fff;
    color: var(--sky-text);
    font-size: 14px;
    line-height: 48px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .sky-mcat-bar:active {
    background: #fafbfc;
  }

  .sky-mcat-bar__icon {
    flex: none;
    color: var(--sky-primary);
    font-size: 15px;
    line-height: 1;
  }

  .sky-mcat-bar__label {
    flex: none;
    padding-right: 10px;
    border-right: 1px solid #eef0f4;
    font-weight: 600;
  }

  .sky-mcat-bar__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--sky-text-3);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sky-mcat-bar__arrow {
    flex: none;
    color: #b6bdc9;
    font-size: 13px;
    line-height: 1;
  }

  /* 抽屉 */
  .sky-mcat-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: none;
  }

  .sky-mcat-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .45);
    opacity: 0;
    transition: opacity .25s;
  }

  .sky-mcat-drawer__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 12vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #fff;
    transform: translateY(102%);
    transition: transform .28s cubic-bezier(.32, .72, .3, 1);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sky-mcat-drawer.is-open {
    pointer-events: auto;
  }

  .sky-mcat-drawer.is-open .sky-mcat-drawer__mask {
    opacity: 1;
  }

  .sky-mcat-drawer.is-open .sky-mcat-drawer__panel {
    transform: translateY(0);
  }

  .sky-mcat-drawer__head {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 16px;
  }

  .sky-mcat-drawer__title {
    color: #1f2329;
    font-size: 17px;
    font-weight: 700;
  }

  .sky-mcat-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f3f5;
    color: #61676f;
    font-size: 13px;
    cursor: pointer;
  }

  .sky-mcat-drawer__search {
    position: relative;
    flex: none;
    margin: 0 16px 10px;
  }

  .sky-mcat-drawer__search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    display: block;
    width: 15px;
    height: 15px;
    color: #9aa3b2;
    pointer-events: none;
  }

  .sky-mcat-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    background: #f7f8fa;
    color: var(--sky-text);
    font-size: 13px;
    outline: none;
  }

  .sky-mcat-input:focus {
    border-color: var(--sky-primary);
    background: #fff;
  }

  .sky-mcat-drawer__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 1px solid #f4f5f7;
  }

  .sky-mcat-nav {
    flex: none;
    width: 106px;
    overflow-y: auto;
    padding: 6px 0 20px;
    background: #f7f8fa;
    -webkit-overflow-scrolling: touch;
  }

  .sky-mcat-nav__item {
    display: block;
    width: 100%;
    padding: 14px 8px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #5c6470;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    word-break: break-all;
    cursor: pointer;
  }

  .sky-mcat-nav__item.is-active {
    border-left-color: var(--sky-primary);
    background: #fff;
    color: var(--sky-primary);
    font-weight: 600;
  }

  .sky-mcat-panes {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
    padding: 2px 0 20px;
    -webkit-overflow-scrolling: touch;
  }

  .sky-mcat-pane {
    display: none;
  }

  .sky-mcat-pane.is-active {
    display: block;
  }

  .sky-mcat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 8px 16px;
    border-bottom: 1px solid #f5f6f8;
    color: #1f2329;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
  }

  .sky-mcat-link:active {
    background: #f7f9ff;
  }

  .sky-mcat-link__name {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sky-mcat-link > i {
    flex: none;
    color: #c2c8d2;
    font-size: 12px;
  }

  .sky-mcat-link.is-active {
    color: var(--sky-primary);
    font-weight: 600;
  }

  .sky-mcat-link.is-active > i {
    color: var(--sky-primary);
  }

  .sky-mcat-link--all {
    min-height: 44px;
    color: var(--sky-text-3);
    font-size: 13px;
  }

  .sky-mcat-link.is-hidden {
    display: none;
  }

  .sky-mcat-empty {
    display: none;
    padding: 40px 16px;
    color: var(--sky-text-3);
    font-size: 13px;
    text-align: center;
  }

  .sky-mcat-empty.is-show {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sky-mcat-drawer__panel {
    left: 50%;
    top: 16vh;
    width: 520px;
    max-width: 92vw;
    bottom: auto;
    height: 68vh;
    border-radius: 12px;
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: transform .25s, opacity .25s;
  }

  .sky-mcat-drawer.is-open .sky-mcat-drawer__panel {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 359.98px) {
  .sky-mcat-nav {
    width: 92px;
  }

  .sky-mcat-nav__item {
    padding: 13px 6px;
    font-size: 12px;
  }

  .sky-mcat-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .sky-mcat-bar {
    padding: 0 10px;
    font-size: 13px;
  }

  .sky-mcat-bar__label {
    padding-right: 8px;
  }
}

/* ==========================================================================
   PC 端自适应：用户中心侧栏 / 顶栏放大缩小都会改变内容区宽度，
   脚本量的是 .cart-layout 的真实宽度，低于 1080 就加 .is-mid。
   只作用于 >=992，手机端保持原样。
   ========================================================================== */
@media (min-width: 992px) {
  .cart-layout.is-mid {
    --sky-card-min: var(--sky-card-min-narrow, 190px);
    --sky-sidebar: 214px;
  }

  .cart-layout.is-mid .sky-productList {
    gap: 12px;
  }
}

/* ---------- 内联图标（替代图标字体，少下 600KB 字体） ---------- */
.sky-i {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  flex: none;
}

/* =========================================================================
   购物车：二级栏目角标 + 分区提示条
   角标数据来自商品分组 headline，提示条来自 tagline（后台「商品分组」可填）
   ========================================================================= */
.sky-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  height: 16px;
  line-height: 16px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  border-radius: 2px;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: .2px;
}

.sky-cart-submenu-item.active .sky-badge {
  background: #ff3b30;
  color: #fff;
}

/* 分区提示：与用户中心常驻提示同款（绿底 / 绿边 / 深绿字 / 实心绿标签） */
.sky-vc-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 14px;
  background: #eefaf2;
  border: 1px solid #b7e8cb;
  border-radius: 4px;
  color: #106b3c;
  font-size: 13px;
  line-height: 20px;
}

.sky-vc-tip__tag {
  flex: 0 0 auto;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  border-radius: 2px;
}

.sky-vc-tip p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .sky-vc-tip {
    margin: 0 0 10px;
    padding: 8px 12px;
    font-size: 12.5px;
  }

  .sky-badge {
    height: 15px;
    line-height: 15px;
    font-size: 10.5px;
    padding: 0 4px;
    margin-left: 4px;
  }
}

/* ============================================================
   换行 / 高度保险（2026-11-08）
   卡片标题、介绍、规格值、侧栏栏目名：不管内容写成什么样
   （中文、长英文、无空格长串、&nbsp;、<br>、真实换行），
   都按容器宽度折行，高度随内容自动增长，不再单行裁切。
   ============================================================ */
.cart-layout .product-card .product-card-header,
.cart-layout .product-card .product-card-body,
.cart-layout .product-card .product-description,
.cart-layout .product-card .content-item {
  min-width: 0;
}

.cart-layout .product-card .header-title,
.cart-layout .product-card .header-title h5,
.cart-layout .allocation-header-title h1,
.cart-layout .product-card .content-item .label-text,
.cart-layout .product-card .content-item .value-text {
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  word-wrap: break-word !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.cart-layout .product-card .header-title,
.cart-layout .product-card .header-title h5 {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 介绍区里的段落 / 列表 / 行内标签，一律允许折行 */
.cart-layout .product-card .header-desc,
.cart-layout .product-card .header-desc p,
.cart-layout .product-card .header-desc li,
.cart-layout .product-card .header-desc span,
.cart-layout .product-card .header-desc font,
.cart-layout .product-card .header-desc div,
.cart-layout .product-card .product-description p,
.cart-layout .product-card .product-description li,
.cart-layout .product-card .product-description span,
.cart-layout .product-card .product-description font,
.cart-layout .product-card .content-item .value-text * {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}

/* 侧栏二级栏目：名字长了折成两行，条目高度跟着长，角标仍在右侧 */
.cart-layout .sky-cart-submenu-item {
  height: auto !important;
  min-height: 34px;
}

.cart-layout .sky-cart-submenu-item .submenu-item-u {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-layout .sky-cart-submenu-item h5 {
  min-width: 0;
  padding: 8px 0;
  line-height: 18px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* 型号芯片：名字长了自动变高，不撑出容器 */
.cart-layout .sky-mchip {
  height: auto !important;
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 18px;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* ============================================================
   断行防拆（2026-11-08b）
   中文可以在任意汉字间断行，但「85折」这种数字+单位被拆开、
   行末只剩一个「折」字非常难看。这里：
   1) 值列按词断行（word-break:normal），只有整词放不下才断；
   2) 数字+单位由脚本包成 .qy-kw，整体不拆。
   ============================================================ */
.cart-layout .product-card .content-item .value-text,
.cart-layout .product-card .header-desc {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  hyphens: none !important;
}

.cart-layout .product-card .content-item .value-text .qy-kw,
.cart-layout .product-card .header-desc .qy-kw,
.qy-kw {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  display: inline-block;
  max-width: 100%;
}

/* 后台一行一条写下来的明细：每条独占一行，行距跟正文一致 */
.cart-layout .product-card .content-item .value-text .ci-note {
  display: inline;
}
