@charset "UTF-8";

/* 词元云（cloud.ciyuanweb.cn）商城与会员中心雪白极简主题，对齐官网与主站视觉 */
:root,
:root[theme='default'] {
  --color-primary: #0e7490;
  --color-success: #047857;
  --color-warning: #b45309;
  --color-danger: #dc2626;
  --color-info: #667085;
  --color-text-tips: #475467;
  --color-menu-bg: #ffffff;
  --color-menu-active-bg: rgba(14, 116, 144, 0.1);
  --color-menu-hover-bg: #f2f5f8;
  --color-menu-text: #475467;
  --color-menu-text-active: #0e7490;
  --color-price-text: #0b0f17;
  --color-discount-num: #0e7490;
  --color-cash-num: #0b0f17;
}

html,
body {
  background: #f8fafc !important;
  color: #0b0f17;
  font-family: "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 优雅轻量的加载动画替换原厂五根粗竖条 */
#mainLoading {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(6px);
}

#mainLoading .ddr {
  display: none !important;
}

#mainLoading::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(14, 116, 144, 0.18);
  border-top-color: #0e7490;
  animation: ciyuan-spin 0.75s linear infinite;
}

@keyframes ciyuan-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 雪白极简左侧边栏 */
.el-aside {
  background: #ffffff !important;
  border-right: 1px solid rgba(11, 15, 23, 0.08) !important;
  box-shadow: none !important;
}

.el-aside .menu-alink .ali-logo {
  max-height: 34px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  margin: 0 !important;
}

.el-aside .ciyuan-aside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
  margin-bottom: 10px;
  text-decoration: none;
}

.el-aside .ciyuan-aside-brand-text {
  font-size: 16px;
  font-weight: 700;
  color: #0b0f17;
  letter-spacing: -0.02em;
}

.el-aside .line {
  background: rgba(11, 15, 23, 0.08) !important;
  margin: 12px 16px !important;
  height: 1px !important;
}

/* 覆盖 asideMenu.js 第二段硬编码 active-text-color="#FFF"，防止白底白字不可见 */
.el-aside .menu-top .el-menu-item,
.el-aside .menu-top .el-submenu__title,
.drawer-menu .menu-top .el-menu-item,
.drawer-menu .menu-top .el-submenu__title {
  color: #475467 !important;
  border-radius: 10px !important;
  margin: 3px 10px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding-left: 14px !important;
  padding-right: 12px !important;
  font-size: 13.5px !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.el-aside .menu-top .el-menu-item i,
.el-aside .menu-top .el-submenu__title i,
.drawer-menu .menu-top .el-menu-item i,
.drawer-menu .menu-top .el-submenu__title i {
  color: #667085 !important;
  margin-right: 8px !important;
}

.el-aside .menu-top .el-menu-item:hover,
.el-aside .menu-top .el-submenu__title:hover,
.drawer-menu .menu-top .el-menu-item:hover,
.drawer-menu .menu-top .el-submenu__title:hover {
  background: #f2f5f8 !important;
  color: #0b0f17 !important;
}

.el-aside .menu-top .el-menu-item:hover i,
.el-aside .menu-top .el-submenu__title:hover i,
.drawer-menu .menu-top .el-menu-item:hover i {
  color: #0b0f17 !important;
}

.el-aside .menu-top .el-menu-item.is-active,
.el-aside .menu-top .el-menu-item.is-active i,
.el-aside .menu-top .el-submenu .el-menu-item.is-active,
.drawer-menu .menu-top .el-menu-item.is-active,
.drawer-menu .menu-top .el-menu-item.is-active i {
  color: #0e7490 !important;
  background: rgba(14, 116, 144, 0.1) !important;
  font-weight: 600 !important;
}

.drawer-menu {
  background: #ffffff !important;
}

.drawer-menu .drawer-menu-top {
  border-bottom: 1px solid rgba(11, 15, 23, 0.08) !important;
  padding: 16px !important;
}

/* 顶部栏 */
.el-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(11, 15, 23, 0.08) !important;
  box-shadow: none !important;
  padding: 0 24px !important;
  height: 64px !important;
}

.el-header .header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.el-header .ciyuan-home-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 23, 0.12);
  background: #f8fafc;
  color: #0b0f17;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.el-header .ciyuan-home-back:hover {
  border-color: #0e7490;
  color: #0e7490;
  background: #ffffff;
}

/* 隐藏右上角突兀的多语言红旗选择框 */
.el-header .header-right-item.hg-24 {
  display: none !important;
}

.el-header .un-login,
.el-header .right-item {
  border-radius: 999px !important;
}

/* 主内容区与卡片底座 */
.el-main {
  background: #f8fafc !important;
  padding: 20px 24px 36px !important;
}

.main-card {
  background: #ffffff !important;
  border: 1px solid rgba(11, 15, 23, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px -20px rgba(11, 15, 23, 0.08) !important;
  padding: 24px 28px !important;
}

.main-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0b0f17 !important;
  letter-spacing: -0.02em;
  margin-bottom: 18px !important;
}

/* 通用 Element UI 圆角与现代按钮/输入框风格 */
.el-button--primary {
  background-color: #0b0f17 !important;
  border-color: #0b0f17 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background-color: #0e7490 !important;
  border-color: #0e7490 !important;
}

.el-button--default {
  border-radius: 10px !important;
  border-color: rgba(11, 15, 23, 0.14) !important;
  color: #0b0f17 !important;
}

.el-button--default:hover {
  border-color: #0e7490 !important;
  color: #0e7490 !important;
  background: rgba(14, 116, 144, 0.05) !important;
}

.el-input__inner,
.el-textarea__inner {
  border-radius: 10px !important;
  border-color: rgba(11, 15, 23, 0.14) !important;
}

.el-input__inner:focus,
.el-textarea__inner:focus,
.el-select .el-input.is-focus .el-input__inner {
  border-color: #0e7490 !important;
}

.el-dialog {
  border-radius: 16px !important;
}

.el-table {
  border-radius: 12px;
  overflow: hidden;
}

/* ====== /cart/goodsList.htm 选购商品页彻底现代化 ====== */
.search-box {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid rgba(11, 15, 23, 0.08);
  border-radius: 12px;
}

.search-box .el-select {
  width: 210px !important;
  font-size: 13.5px !important;
}

.search-box .second-select {
  margin: 0 !important;
}

.search-box .search-input {
  width: 240px !important;
  flex: 1 1 200px;
  max-width: 320px;
}

.search-box .el-select .el-input__inner,
.search-box .search-input .el-input__inner {
  height: 40px !important;
  line-height: 40px !important;
  background: #ffffff !important;
}

.search-box .search-btn {
  margin-left: 0 !important;
  width: auto !important;
  min-width: 84px;
  height: 40px !important;
  padding: 0 20px !important;
  background: #0b0f17 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

.search-box .search-btn:hover {
  background: #0e7490 !important;
}

.shopping-box {
  margin-top: 16px !important;
}

.goods-list-div {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

/* ====== /cart/goodsList.htm 极点云同款左树形大区/机房导购 + 面包屑 ====== */
.main-content-box.cy-tree-ready {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}

.main-content-box.cy-tree-ready > .search-box {
  display: none !important;
}

.main-content-box.cy-tree-ready > #cy-catalog-tree {
  grid-column: 1;
  grid-row: 1 / span 12;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(11, 15, 23, 0.09);
  border-radius: 14px;
  overflow: hidden;
}

.main-content-box.cy-tree-ready > :not(#cy-catalog-tree) {
  grid-column: 2;
  min-width: 0;
}

.cy-tree-search {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.07);
  background: #f8fafc;
}

.cy-tree-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cy-tree-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(11, 15, 23, 0.14);
  background: #ffffff;
  color: #0b0f17;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.cy-tree-search-input:focus {
  border-color: #0e7490;
}

.cy-tree-search-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 11px;
  border: none;
  border-radius: 9px;
  background: #0b0f17;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cy-tree-search-btn:hover {
  background: #0e7490;
}

.cy-tree-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(11, 15, 23, 0.06);
  background: #ffffff;
}

.cy-tree-title {
  font-size: 13px;
  font-weight: 700;
  color: #0b0f17;
}

.cy-tree-subtitle {
  margin-top: 2px;
  font-size: 11.5px;
  color: #667085;
}

.cy-tree-groups {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
}

.cy-tree-group {
  margin-bottom: 4px;
  border-radius: 10px;
}

.cy-tree-group.is-current-group {
  background: rgba(14, 116, 144, 0.03);
}

.cy-tree-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cy-tree-summary::-webkit-details-marker {
  display: none;
}

.cy-tree-summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 2px;
  flex-shrink: 0;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.65;
}

.cy-tree-group[open] > .cy-tree-summary::before {
  transform: rotate(45deg);
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .cy-tree-summary::before {
    transition: transform 0.18s ease;
  }
}

.cy-tree-summary:hover {
  background: #f1f5f9;
  color: #0b0f17;
}

.cy-tree-group.is-current-group > .cy-tree-summary {
  color: #0e7490;
}

.cy-tree-summary-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-tree-summary-count {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cy-tree-sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 6px 14px;
}

.cy-tree-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 6px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.cy-tree-sub:hover {
  background: #f1f5f9;
  color: #0b0f17;
}

.cy-tree-sub.is-active {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #0e7490;
}

.cy-tree-sub-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-tree-sub-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
  font-size: 10.5px;
  font-weight: 600;
}

.cy-tree-sub-soldout {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-size: 10.5px;
  font-weight: 700;
}

.cy-catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid rgba(11, 15, 23, 0.08);
  border-radius: 12px;
  font-size: 13px;
}

.cy-crumb-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cy-crumb-muted {
  color: #667085;
}

.cy-crumb-sep {
  color: #cbd5e1;
}

.cy-crumb-first {
  color: #334155;
  font-weight: 500;
}

.cy-crumb-current {
  color: #0b0f17;
  font-weight: 700;
}

.cy-crumb-reset {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.35);
  background: #ffffff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cy-crumb-reset:hover {
  background: #0e7490;
  color: #ffffff;
}

.cy-crumb-stat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.cy-crumb-stat.is-in {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.cy-crumb-stat.is-out {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* 利用 CSS order + display: contents 把原厂“描述压在标题上方”翻转为现代 SaaS 卡片层次 */
.shopping-item {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(11, 15, 23, 0.08) !important;
  border-radius: 14px !important;
  overflow: visible !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shopping-item:hover {
  border-color: rgba(14, 116, 144, 0.45) !important;
  box-shadow: 0 14px 32px -22px rgba(11, 15, 23, 0.2);
  transform: translateY(-2px);
}

.shopping-item .client-box {
  z-index: 2;
  top: 14px !important;
  right: 14px !important;
  padding: 2px 9px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
}

.shopping-item .goods-content {
  display: contents !important;
}

/* 隐藏原厂跑马灯，由 #cy-region-banner 统一承载清晰机房介绍与测试 IP */
.second-desc {
  display: none !important;
}

/* 修复 Element UI 下拉弹窗在部分版本下背景半透明透字 */
.el-select-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(11, 15, 23, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 36px -12px rgba(11, 15, 23, 0.16) !important;
}

.cy-region-banner {
  margin-top: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 14px;
}

.cy-region-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.cy-region-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cy-region-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0b0f17;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cy-region-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #0e7490;
}

.cy-region-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  font-size: 12px;
  font-weight: 600;
}

.cy-testip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cy-testip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  background: #ffffff;
  color: #0e7490;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cy-testip-btn:hover {
  background: #0e7490;
  color: #ffffff;
  border-color: #0e7490;
}

.cy-testip-btn.is-copied {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

.cy-region-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #475467;
  word-break: break-word;
}

/* 1) 商品标题置顶 + 左侧青色装饰竖杠 + 高对比度红绿库存状态 */
.shopping-item .goods-name {
  order: 1;
  margin-top: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  column-gap: 10px !important;
  row-gap: 6px !important;
}

.shopping-item .goods-name .goods-name-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #0b0f17 !important;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shopping-item .goods-name .goods-name-text::before {
  content: "";
  width: 3.5px;
  height: 15px;
  border-radius: 999px;
  background: #0e7490;
  flex-shrink: 0;
}

.shopping-item .goods-name .qty-box {
  display: none !important;
}

.cy-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.cy-stock-badge.is-in {
  background: #dcfce7;
  color: #166534;
  border: 1.5px solid #22c55e;
}

.cy-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.cy-stock-badge.is-out {
  background: #fee2e2;
  color: #991b1b;
  border: 1.5px solid #ef4444;
}

.cy-stock-icon {
  font-size: 11px;
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
}

.shopping-item.cy-stock-out {
  background: #fffafa !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
}

.shopping-item.cy-stock-out:hover {
  border-color: rgba(220, 38, 38, 0.5) !important;
}

.shopping-item.cy-stock-out .goods-name .goods-name-text::before {
  background: #dc2626 !important;
}

.shopping-item.cy-stock-out .goods-description,
.shopping-item.cy-stock-out .price-box .item-price {
  opacity: 0.78;
}

.shopping-item .price-box .buy-btn.cy-btn-soldout {
  background: #fef2f2 !important;
  border: 1.5px solid #fca5a5 !important;
  color: #b91c1c !important;
}

.shopping-item .price-box .buy-btn.cy-btn-soldout:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

@media (forced-colors: active) {
  .cy-stock-badge,
  .cy-tree-sub-soldout,
  .shopping-item .price-box .buy-btn.cy-btn-soldout {
    border: 1.5px solid CanvasText !important;
    color: CanvasText !important;
  }
}

/* 2) 标签徽章 */
.shopping-item .goods-tag {
  order: 2;
  height: auto !important;
  min-height: 26px;
  padding: 4px 10px !important;
  background: rgba(14, 116, 144, 0.08) !important;
  border-radius: 8px !important;
}

.shopping-item .goods-tag .tag-item {
  color: #0e7490 !important;
  font-weight: 600;
}

/* 3) 干净的配置规格卡片（覆盖原厂 all: revert 造成的丑陋默认字体与灰底） */
.shopping-item .goods-description {
  order: 3;
  flex: 1 1 auto !important;
  background: #f8fafc !important;
  border: 1px solid rgba(11, 15, 23, 0.06) !important;
  border-radius: 10px !important;
  padding: 13px 15px !important;
  min-height: 120px !important;
  max-height: 220px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: #475467 !important;
  overflow-y: auto !important;
}

.shopping-item .goods-description * {
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: inherit !important;
}

.shopping-item .goods-description strong,
.shopping-item .goods-description b {
  color: #0b0f17 !important;
  font-weight: 600 !important;
}

/* 3b) 现代通透左标签右数值规格表 */
.shopping-item .goods-description.cy-spec-enhanced {
  background: transparent !important;
  border: none !important;
  padding: 2px 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-rows {
  display: flex;
  flex-direction: column;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0 !important;
  border-bottom: 1px dashed rgba(11, 15, 23, 0.08);
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-row:last-child {
  border-bottom: none;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-key {
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  flex-shrink: 0;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-val {
  color: #0b0f17 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  text-align: right;
  word-break: break-word;
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(11, 15, 23, 0.06);
}

.shopping-item .goods-description.cy-spec-enhanced .cy-spec-note {
  color: #475467 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

/* 4) 优惠活动标签（无活动时收起占位） */
.shopping-item .goods-active {
  order: 4;
  margin-top: 0 !important;
  padding: 0 !important;
}

.shopping-item .goods-active:has(> .active-name[style*="opacity: 0"]) {
  display: none !important;
}

.shopping-item .goods-active .active-name {
  background: rgba(14, 116, 144, 0.08) !important;
  color: #0e7490 !important;
  border-radius: 6px !important;
  padding: 3px 9px !important;
  font-weight: 600;
}

/* 5) 底部价格与购买 CTA */
.shopping-item .price-box {
  order: 5;
  margin-top: auto !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid rgba(11, 15, 23, 0.08);
  align-items: center !important;
}

.shopping-item .price-box .item-price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0b0f17 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.shopping-item .price-box .item-price .item-price-prefix {
  font-size: 13px !important;
  margin-right: 1px;
}

.shopping-item .price-box .item-price .item-price-cycle {
  font-size: 12.5px !important;
  font-weight: 500;
  color: #667085 !important;
}

.shopping-item .price-box .buy-btn {
  border-radius: 999px !important;
  padding: 8px 18px !important;
  height: auto !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

@media (max-width: 960px) {
  .main-content-box.cy-tree-ready {
    display: block;
  }

  .main-content-box.cy-tree-ready > #cy-catalog-tree {
    display: none !important;
  }

  .main-content-box.cy-tree-ready > .search-box {
    display: flex !important;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  .el-header {
    padding: 0 14px !important;
  }

  .el-main {
    padding: 14px !important;
  }

  .main-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  .search-box .el-select,
  .search-box .search-input {
    width: 100% !important;
    max-width: none !important;
  }

  .search-box .search-btn {
    width: 100% !important;
  }

  .goods-list-div {
    grid-template-columns: 1fr !important;
  }
}

/* ====== 充值弹窗快捷金额与支付弹窗优化 ====== */
.cy-recharge-presets {
  margin-bottom: 14px;
}

.cy-recharge-presets-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #475467;
  margin-bottom: 8px;
}

.cy-recharge-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cy-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(11, 15, 23, 0.12);
  background: #ffffff;
  color: #0b0f17;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.cy-preset-btn:hover {
  border-color: #0e7490;
  color: #0e7490;
  background: #f8fafc;
}

.cy-preset-btn.is-active {
  border-color: #0e7490;
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.2);
}

.cy-preset-currency {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.recharge-dialog {
  border-radius: 16px !important;
  overflow: hidden;
}

.recharge-dialog .recharge-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.recharge-dialog .recharge-input .el-input-number {
  flex: 1 1 auto !important;
}

.new-pay-dialog {
  border-radius: 16px !important;
}

.new-pay-dialog .pay-method-item {
  border-radius: 12px !important;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.new-pay-dialog .pay-method-item.active {
  border-color: #0e7490 !important;
  background: rgba(14, 116, 144, 0.05) !important;
}

.new-pay-dialog .pay-method-qr:has(#ciyuan_alipay_form) .pay-qr-text {
  display: none !important;
}

.new-pay-dialog .pay-method-qr:has(#ciyuan_alipay_form) #payBox {
  width: auto !important;
  min-width: 240px;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 8px;
}

.cy-alipay-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border: none;
  border-radius: 999px;
  background: #0b0f17;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.cy-alipay-submit-btn:hover {
  background: #0e7490;
}
