/* ========================================================
 * ZJMF Cart Theme "vultr" — v2 Redesign
 * 深蓝渐变 hero + 三步流程指示器 + 渐变 CTA
 * 修改本文件后必须递增模板中的版本后缀 (?v={$Ver}fN)
 * ====================================================== */

:root {
  --vt-blue: #0078FF;
  --vt-blue-d: #0069F5;
  --vt-blue-l: #3DA5FF;
  --vt-cyan: #0078FF;
  --vt-blue-50: #E6F2FF;
  --vt-blue-100: #BAE0FF;
  --vt-navy-1: #0f172a;
  --vt-navy-2: #1e293b;
  --vt-navy-3: #2c3e66;
  --vt-ink: #0f172a;
  --vt-text: #52525b;
  --vt-muted: #71717a;
  --vt-line: #e4e4e7;
  --vt-line-d: #cbd5e1;
  --vt-bg: #eef0f2;
  --vt-bg-alt: #f8fafc;
  --vt-card: #FFFFFF;
  --vt-green: #16a34a;
  --vt-red: #b91c1c;
  --vt-amber: #D97706;
  --vt-grad: #0078FF;
  --vt-grad-deep: #ffffff;
  --vt-radius: 12px;
  --vt-radius-sm: 40px;
  --vt-radius-lg: 24px;
  --vt-shadow-sm: 0 1px 2px rgba(0,0,0,.03);
  --vt-shadow: 0 8px 20px -8px rgba(0,0,0,.10);
  --vt-shadow-lg: 0 20px 30px -12px rgba(0,0,0,.12);
  --vt-glow: 0 1px 2px rgba(0,0,0,.05);
}

/* ===== 基础 ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 14px;
  color: var(--vt-ink);
  background: #eef0f2;
}
a { color: #0078FF; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--vt-blue-d); }
.text-primary { color: var(--vt-blue) !important; }
.text-dark { color: var(--vt-ink) !important; }
.text-muted, .text-black-50, .color-999 { color: var(--vt-muted) !important; }
.text-danger { color: var(--vt-red) !important; }
.text-success { color: var(--vt-green) !important; }

/* ===== 卡片（通用） ===== */
.card {
  background: var(--vt-card) !important;
  border: 1px solid var(--vt-line) !important;
  border-radius: var(--vt-radius-lg) !important;
  box-shadow: var(--vt-shadow-sm) !important;
  margin-bottom: 16px;
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--vt-line) !important;
  padding: 14px 20px;
}
.card-header h5, .card-header h4 { margin: 0; font-size: 15px; font-weight: 600; color: var(--vt-ink); }
.card-body { padding: 20px; }

/* ===== 按钮 ===== */
.btn { border-radius: 10px; font-weight: 600; padding: 8px 20px; transition: all .2s ease; }
.btn-primary, .btn-success {
  background: var(--vt-grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--vt-glow) !important;
}
.btn-primary:hover, .btn-success:hover {
  background-color: #0069F5 !important;
}
.btn-primary:disabled {
  background: #e4e4e7 !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none;
}
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-outline-primary {
  color: var(--vt-ink) !important;
  border-color: var(--vt-line) !important;
  background: #fff;
}
.btn-outline-primary:hover { background: #eef0f2 !important; }

.vt-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.vt-btn--primary {
  background: var(--vt-grad);
  color: #fff !important;
  border: none;
  box-shadow: var(--vt-glow);
}
.vt-btn--primary:hover { color: #fff !important; background-color: #0069F5; }
.vt-btn--ghost { background: #fff; color: var(--vt-ink) !important; border-color: var(--vt-line); }
.vt-btn--ghost:hover { background: #eef0f2; color: var(--vt-ink) !important; border-color: var(--vt-line-d); }
.vt-btn--sm { padding: 7px 16px; font-size: 13px; }
.vt-btn.is-disabled { color: var(--vt-muted) !important; border-color: var(--vt-line); background: var(--vt-bg); cursor: not-allowed; box-shadow: none; }

/* ========================================================
 *  页面框架（body.is-cart）
 * ====================================================== */
body.is-cart { background: var(--vt-bg); }

body.is-cart .page-content > .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

body.is-cart .page-title-box { display: none !important; }

body.is-cart #page-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.04) !important;
  border-bottom: 1px solid var(--vt-line);
}
body.is-cart #page-topbar .navbar-header {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  background: #fff;
  box-shadow: none !important;
  padding: 0 24px;
}
body.is-cart #page-topbar .header-item { height: 64px; border: none; }
body.is-cart #page-topbar .header-item .bx { margin-top: 0 !important; }

body.is-cart .page-content { padding: 24px 0 20px !important; }
body.is-cart .vtc-page { padding: 0 0 8px; }

/* 底部版权条 */
body.is-cart .footer {
  position: static !important;
  left: 0 !important; right: auto !important; bottom: auto !important;
  height: auto !important; min-height: 0 !important;
  background: transparent;
  border-top: 1px solid var(--vt-line);
  color: #B7C0CC;
  padding: 14px 0;
  font-size: 12px;
  line-height: 1.4;
}
body.is-cart .footer .container-fluid { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
body.is-cart .footer .container-fluid > .row > [class*="col-"] { padding: 0; }
body.is-cart .footer .row { display: flex; align-items: center; justify-content: center; }

/* ========================================================
 *  购买流程 Hero + 步骤条（配置页 / 购物车 / 完成）
 * ====================================================== */
.vcflow {
  position: relative;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 16px 4px;
  margin-bottom: 18px;
  color: var(--vt-ink);
}
.vcflow__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #0069F5;
  background: #E6F2FF;
  border: none;
  border-radius: 40px;
  padding: .3rem 1rem;
  margin-bottom: 12px;
}
.vcflow__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 6px;
  line-height: 1.3;
  background: linear-gradient(135deg, #1e293b, #2c3e66);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vcflow__sub { font-size: .95rem; font-weight: 500; color: #475569; margin: 0; }

.vcflow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.vcstep {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--vt-line);
  border-radius: 40px;
  padding: 7px 18px 7px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
  transition: all .2s;
}
.vcstep__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  background: #eef0f2;
  border: none;
  color: var(--vt-muted);
  transition: all .2s ease;
}
.vcstep__label { font-size: 13.5px; font-weight: 600; color: var(--vt-text); white-space: nowrap; }
.vcstep__bar { flex: 0 0 26px; height: 2px; min-width: 0; margin: 0 10px; background: var(--vt-line); border-radius: 2px; }
.vcstep.is-active {
  background: var(--vt-grad);
  border-color: var(--vt-grad);
  box-shadow: 0 6px 12px -6px rgba(0,0,0,.25);
}
.vcstep.is-active .vcstep__dot { background: rgba(255,255,255,.18); color: #fff; }
.vcstep.is-active .vcstep__label { color: #fff; }
.vcstep.is-done .vcstep__dot { background: #d9f99d; color: #3f6212; }
.vcstep.is-done .vcstep__label { color: var(--vt-ink); }
.vcstep__bar.is-done { background: #a5b4cf; }

/* ========================================================
 *  产品列表页
 * ====================================================== */
.vtc-page { padding: 4px 0 24px; }

/* 深色页头（分类/搜索） */
.vtc-head {
  position: relative;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 16px 10px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--vt-ink);
}
.vtc-head__text, .vtc-head__side { position: relative; z-index: 1; }
.vt-section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0069F5;
  background: #E6F2FF;
  border-radius: 40px;
  padding: .3rem 1rem;
  text-transform: none;
  letter-spacing: .04em;
  margin-bottom: 0;
}
.vtc-head__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(135deg, #1e293b, #2c3e66);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vtc-head__sub { font-size: .95rem; font-weight: 500; color: #475569; margin: 0; }
.vtc-head__side { flex-shrink: 0; }
.vtc-search { position: relative; }
.vtc-search input {
  width: 300px;
  height: 44px;
  padding: 0 14px 0 38px;
  font-size: 14px;
  color: var(--vt-ink);
  background: #fff;
  border: 1px solid var(--vt-line-d);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vtc-search input::placeholder { color: var(--vt-muted); }
.vtc-search input:focus {
  border-color: #0078FF;
  box-shadow: 0 0 0 3px rgba(0,120,255,.12);
}
.vtc-search .fa-search {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--vt-muted); font-size: 14px; cursor: pointer; z-index: 2;
}

.vtc-body { margin-left: -10px; margin-right: -10px; }
.vtc-body > [class*="col-"] { padding-left: 10px; padding-right: 10px; }

/* 侧栏面板 */
.vtc-panel {
  background: var(--vt-card);
  border: 1px solid #eef2f6;
  border-radius: 1.8rem;
  box-shadow: var(--vt-shadow-sm);
  padding: 16px 12px;
}
.vtc-panel__title {
  font-size: 12px; font-weight: 700;
  color: var(--vt-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--vt-line);
}
.vtc-cats__group { padding-top: 14px; }
.vtc-cats__label {
  font-size: 13px; font-weight: 600; color: var(--vt-ink);
  padding: 0 8px 6px;
}
.vtc-cats__link {
  display: block;
  padding: 9px 16px;
  margin: 2px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569 !important;
  border-radius: 40px;
  transition: background .2s, color .2s;
}
.vtc-cats__link:hover { background: #eef0f2; color: var(--vt-ink) !important; }
.vtc-cats__link.active {
  background: var(--vt-grad);
  color: #fff !important;
  font-weight: 600;
}
.vtc-cats__empty { text-align: center; color: var(--vt-muted); padding: 28px 0; font-size: 13px; }

/* 产品卡片 */
.vtc-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vtc-plan {
  position: relative;
  background: var(--vt-card);
  border: 1px solid #eef2f6;
  border-radius: 1.5rem;
  box-shadow: none;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vtc-plan::before { display: none; }
.vtc-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--vt-shadow-lg);
  border-color: #cbd5e1;
}
.vtc-plan:hover::before { opacity: 1; }
.vt-product__icon { display: none; }
.vtc-plan .vt-product__title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--vt-ink);
  margin: 0;
  line-height: 1.4;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.1rem 1.1rem .6rem;
  border-bottom: 1px dashed #edf2f7;
}

/* 规格清单 */
.vt-product__feat {
  list-style: none;
  padding: .9rem 1.1rem .7rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.vt-product__feat li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .82rem;
  border-bottom: 1px dotted #f0f2f5;
  padding-bottom: .4rem;
}
.vt-product__feat li:last-child { border-bottom: none; }
.vt-product__feat li .fa { display: none; }
.vt-product__feat li span { word-break: break-all; }
.vt-spec-label { font-weight: 600; color: #52525b; flex-shrink: 0; }
.vt-spec-value { color: #1e293b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; text-align: right; }

/* 价格条(参考 price-area) */
.vc-price-area {
  margin: auto -0px -0px;
  padding: .9rem 1.1rem 1.2rem;
  border-top: 1px solid #f0f4f9;
  background: #fefefe;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.vc-price-area .vt-product__cta { margin: 0; width: auto; }
.vc-price-original {
  font-size: 1.5rem;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.vc-price-original small { font-size: .75rem; font-weight: 500; color: #71717a; margin-left: 3px; }

/* 徽章(参考 badge-stock) */
.vc-badge {
  font-size: .7rem;
  border-radius: 30px;
  padding: .2rem .7rem;
  font-weight: 700;
  display: inline-block;
  vertical-align: 2px;
}
.vc-badge--in { background: #d9f99d; color: #3f6212; }
.vc-badge--trial { background: #facc15; color: #422006; }
.vc-badge--out { background: #cbd5e1; color: #475569; }

/* 售罄 */
.vtc-plan.is-off .vt-product__title,
.vtc-plan.is-off .vt-product__feat,
.vtc-plan.is-off .vtc-plan__price { opacity: .55; }

/* 空状态 */
.vtc-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 380px;
  text-align: center;
  background: #fafcff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 2rem;
}
.vtc-empty .fa { font-size: 40px; color: var(--vt-line-d); margin-bottom: 14px; }
.vtc-empty p { color: var(--vt-muted); margin-bottom: 16px; }

/* ========================================================
 *  配置页（configureproduct）
 * ====================================================== */
.cp-main-card .card-body { padding-top: 8px; }
#addCartForm > .row > .col-xl-8 > .card:first-child {
  margin-bottom: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}
#addCartForm > .row > .col-xl-8 > .card:first-child .card-body { padding: 0; }
#addCartForm > .row > .col-xl-8 > .card:first-child .card-title {
  display: none;
}

/* 配置项行 */
#addCartForm .form-group.row {
  align-items: center;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px dashed var(--vt-line);
}
#addCartForm .form-group.row:last-child { border-bottom: none; }
#addCartForm .form-group.row > label.col-md-2 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vt-ink);
  padding-left: 4px;
}
#addCartForm .form-group.row > label.col-md-2 .text-primary { color: var(--vt-blue) !important; }

/* 固定值 pill */
.vc-spec-pill {
  display: inline-flex;
  align-items: baseline;
  background: var(--vt-bg);
  border: 1px solid var(--vt-line);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.4;
}
.vc-spec-pill__name { color: var(--vt-muted); margin-right: 6px; }
.vc-spec-pill__val { color: var(--vt-ink); font-weight: 700; }

/* 周期选择（分段控件） */
.btn-custom-group { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-custom {
  min-width: 96px;
  height: 40px;
  border: 1px solid var(--vt-line-d) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--vt-text) !important;
  line-height: 38px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  transition: all .15s ease;
}
.btn-custom:hover { border-color: #0078FF !important; color: #0078FF !important; z-index: 2; }
.btn-custom.active {
  background: #0078FF !important;
  border-color: #0078FF !important;
  color: #fff !important;
  z-index: 3;
  box-shadow: 0 4px 12px -4px rgba(0,120,255,.45);
}
.cycle-select-discount {
  position: absolute;
  top: -9px;
  right: 6px;
  display: inline-block;
  padding: 0 6px;
  height: 16px;
  background: #D97706;
  border-radius: 8px 8px 8px 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 16px;
  z-index: 2;
}

/* 滑杆 */
input[type='range'] {
  background: var(--vt-bg-alt);
  outline: none;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--vt-grad) !important;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 24px;
  background-color: #fff;
  cursor: pointer;
  border: 5px solid var(--vt-blue);
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(16,24,40,.3);
}
input[type="range"]::-moz-range-thumb {
  width: 2px;
  height: 15px;
  background-color: #fff;
  cursor: pointer;
  border: 4px solid var(--vt-blue);
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-radius: 2px;
}
.range_none {
  position: absolute;
  height: 3px;
  display: block;
  background: #DEDEDE;
  cursor: not-allowed
}

/* 数值输入 */
.configoption_range_val {
  border-radius: 8px !important;
  font-weight: 700;
  text-align: center;
}

/* bootstrap-select 与表单控件 */
.bootstrap-select .dropdown-toggle,
.selectpicker + .dropdown-toggle {
  border-radius: 10px !important;
  border-color: var(--vt-line-d) !important;
  height: 42px;
  display: inline-flex;
  align-items: center;
}
.bootstrap-select .dropdown-toggle .filter-option { font-weight: 600; color: var(--vt-ink); }
.bootstrap-select .dropdown-menu { border-radius: 12px; border-color: var(--vt-line); box-shadow: var(--vt-shadow); }
#addCartForm .form-group .col-md-2 .bootstrap-select,
#addCartForm .form-group .col-md-3 .bootstrap-select,
#addCartForm .form-group .col-md-4 .bootstrap-select { width: 100% !important; }
#addCartForm .form-group .col-md-2 .bootstrap-select .dropdown-toggle { padding-left: 8px; }
/* 系统组与版本下拉之间留出间隙 */
.bootstrap-select .dropdown-menu .inner { max-height: 300px !important; }
.dropdown-item.active, .dropdown-item:active { background: var(--vt-blue-50) !important; color: var(--vt-blue) !important; }

.form-check { margin-left: 20px; }
.justify-content-start { flex-wrap: wrap; }
.error-tip { color: #f46a6a; margin: 0; padding: 0; line-height: 36px; display: none; }
input::-webkit-input-placeholder { color: #cacdd4 !important; }
input:-moz-placeholder { color: #cacdd4 !important; }
input::-moz-placeholder { color: #cacdd4 !important; }
input:-ms-input-placeholder { color: #cacdd4 !important; }

/* 订单汇总卡 */
.cp-summary { position: sticky; top: 84px; }
.cp-summary .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 4px;
}
.cp-summary .card-title::before {
  content: "\ea5f";
  font-family: 'boxicons' !important;
  font-size: 18px;
  color: var(--vt-blue);
}
.ordersummary td { border: none !important; padding: 6px 4px !important; }
.ordersummary td { color: var(--vt-text); font-size: 13px; }
.ordersummary td.text-right, .ordersummary td.text-dark { color: var(--vt-ink); font-weight: 600; }

/* 结算按钮容器（ordersummary 注入） */
#addToCartBtn, #addToCartBtnTwo {
  background: var(--vt-grad) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 10px;
  box-shadow: var(--vt-glow);
  transition: all .2s ease;
}
#addToCartBtn:hover, #addToCartBtnTwo:hover { background-color: #0069F5 !important; }

/* ========================================================
 *  结算 / 购物车页（viewcart）
 * ====================================================== */
.vc-main-title {
  font-size: 16px; font-weight: 700; color: var(--vt-ink);
  margin: 0; display: flex; align-items: center; gap: 8px;
}
.vc-main-title i { color: var(--vt-blue); font-size: 20px; }
.vc-main-title .vc-count-badge {
  background: var(--vt-grad);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 100px;
  vertical-align: 2px;
}

.vc-item {
  display: flex;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--vt-line);
}
.vc-item:last-child { border-bottom: none; }
.vc-item__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #eef0f2;
  color: var(--vt-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.vc-item__body { flex: 1 1 auto; min-width: 0; }
.vc-item__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vc-item__name { font-weight: 700; color: var(--vt-ink); font-size: 15px; }
.vc-item__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.vc-item__actions a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--vt-muted);
  font-size: 14px;
  transition: all .15s ease;
}
.vc-item__actions a:hover { background: var(--vt-blue-50); color: var(--vt-blue); }
.vc-item__actions a.vc-del:hover { background: #FEE4E2; color: var(--vt-red); }
.cart_qty { display: flex; align-items: center; gap: 6px; }
.cart_qty .number { width: 64px; border-radius: 8px !important; text-align: center; font-weight: 600; }

.goods_info {
  width: 100%;
  padding: 10px 16px;
  margin-top: 10px;
  background: #fafcff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
}
.goods_info .title {
  display: block;
  color: var(--vt-blue) !important;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.goods_info .title span.zk {
  float: left;
  color: var(--vt-muted);
  font-family: cursive;
  font-size: 12px;
  margin-top: 1px;
  margin-right: 6px;
}
.goods_info .title .zk { transform: rotate(90deg); margin-top: -1px; }
.goods_info .title .zk.zk-rot { transform: none; margin-top: 1px; }
.goods_info .info {
  width: 100%;
  color: var(--vt-text);
  line-height: 22px;
  font-size: 12.5px;
  border-bottom: 1px dotted #f0f2f5;
  padding: 4px 0;
}
.goods_info .info:last-child { border-bottom: none; }
.goods_info .info .vc-pv { display: inline; font-weight: 600; color: var(--vt-ink); }

.vc-price-rows { margin-top: 10px; }
.vc-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--vt-text); margin-top: 5px;
}
.vc-price-row b {
  color: #b91c1c;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 摘要卡 */
.vc-summary { position: sticky; top: 84px; }
.vc-sumrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13.5px; color: var(--vt-text);
}
.vc-sumrow b { color: var(--vt-ink); }
.vc-total {
  display: flex; justify-content: space-between; align-items: center;
  background: #fefefe;
  border: 1px solid var(--vt-line);
  border-radius: 12px;
  padding: 13px 16px;
  margin: 10px 0 4px;
}
.vc-total__lab { font-size: 14px; color: var(--vt-ink); font-weight: 600; }
.vc-total__val { font-size: 26px; font-weight: 800; color: #b91c1c; font-variant-numeric: tabular-nums; }
.vc-total__val small { font-size: 12.5px; font-weight: 500; color: var(--vt-muted); margin-right: 8px; }

.vc-block-label {
  font-size: 13px; font-weight: 700; color: var(--vt-ink);
  margin: 18px 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.vc-customer-line {
  margin-top: 0;
  padding: 12px 14px;
  background: var(--vt-bg);
  border-radius: 10px;
  font-size: 12px; line-height: 1.9; color: var(--vt-muted);
}
.vc-customer-line b { color: var(--vt-ink); font-weight: 600; }

/* 余额 / 信用额支付选项 */
#submit-form .checkboxDiv {
  border: 1px solid var(--vt-line) !important;
  border-radius: 10px;
  background: var(--vt-bg);
  height: 42px;
  transition: border-color .15s ease, background .15s ease;
  font-size: 13px;
  color: var(--vt-text);
}
#submit-form .checkboxDiv:hover { border-color: var(--vt-line-d) !important; }
#submit-form .checkboxSelect { border-color: var(--vt-grad) !important; background: var(--vt-bg-alt); }
#submit-form hr { border-top: 1px solid var(--vt-line) !important; }
.custom-controlTwo {
  position: relative; z-index: 1;
  display: block; min-height: 1.21875rem;
  padding-left: 1.5rem;
  -webkit-print-color-adjust: exact;
}

/* 支付方式磁贴 */
.addfunds-wrap { display: flex; flex-wrap: wrap; margin: 0 -4px; }
.addfunds-payment {
  border: 1px solid var(--vt-line) !important;
  border-radius: 10px !important;
  background: var(--vt-card);
  padding: 10px 12px !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; margin-bottom: 12px; cursor: pointer;
}
.addfunds-payment img { max-height: 28px; }
.addfunds-payment:hover { border-color: var(--vt-blue-100) !important; background: #FCFDFF; }
.addfunds-payment.active {
  border-color: var(--vt-ink) !important;
  background: var(--vt-bg-alt);
  box-shadow: 0 0 0 1px var(--vt-ink);
}

.remarksInput { border-radius: 10px !important; }
.remarksInput::-webkit-input-placeholder { color: #CACACA; }
.payType { cursor: pointer; }
.payType.active, .payType:hover { border-color: var(--vt-blue) !important; }
.new-user { display: none; }
.fas { cursor: pointer; }
.number { width: 50px; }

/* 协议 + 结算按钮 */
.vc-checkout-bar {
  border-top: 1px solid var(--vt-line);
  margin-top: 16px;
  padding-top: 16px;
}
.vc-checkout-bar .submit-btn {
  background: var(--vt-grad) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 11px;
  box-shadow: var(--vt-glow);
  transition: all .2s ease;
}
.vc-checkout-bar .submit-btn:hover { background-color: #0069F5 !important; }
.vc-checkout-bar .submit-btn:disabled {
  background: var(--vt-bg-alt) !important;
  color: var(--vt-muted) !important;
  box-shadow: none;
}

/* 移动端底部总价条 */
.mobile-bottom-total {
  display: none;
  position: fixed;
  width: 100%;
  padding-right: 1.25rem;
  background: #FFFFFF;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  bottom: 0;
  left: 0;
}
.mobile-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
}
.mobile-bottom-total .total {
  font-size: 18px; font-weight: 400; color: #333333; margin-right: 0.5rem;
}
.btn.active { z-index: 0 !important; }

/* 游客登录弹窗 */
.modal-content { border: none; border-radius: 16px; box-shadow: var(--vt-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--vt-line); }
.modal-body { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
.modal-footer { border-top: 1px solid var(--vt-line); }
.nav-tabs .nav-link.active { color: var(--vt-blue) !important; font-weight: 600; }

/* ===== 表格 / 徽章 / 表单 / 分页 ===== */
.table thead th {
  background: var(--vt-bg-alt);
  border-bottom: 1px solid var(--vt-line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--vt-muted); font-weight: 600;
}
.table td { border-top: 1px solid var(--vt-line); }
.table-hover tbody tr:hover { background: var(--vt-bg) !important; }

.badge { font-weight: 600; border-radius: 100px; padding: 4px 10px; }
.badge-primary { background: var(--vt-blue) !important; }
.badge-success { background: var(--vt-green) !important; }
.badge-warning { background: var(--vt-amber) !important; color: #fff !important; }
.badge-danger { background: var(--vt-red) !important; }

.form-control, .form-control:focus {
  border-color: var(--vt-line-d) !important;
  border-radius: 10px;
  font-size: 14px;
}
.form-control:focus { border-color: #0078FF !important; box-shadow: 0 0 0 3px rgba(0,120,255,.10) !important; }

.pagination .page-link { color: var(--vt-ink); border-color: var(--vt-line); border-radius: 10px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--vt-grad); border-color: transparent; color: #fff; font-weight: 700; }
.pagination .page-item.active .page-link { border-radius: 10px; }

.alert { border-radius: 12px; border: none; }
.alert-danger { background: #FEE4E2; color: #B42318 !important; }
.alert-success { background: var(--vt-blue-50); color: var(--vt-blue-d) !important; }

/* 周期按钮组: 消除基线空隙 */
.form-group .btn-group.cycle {
  display: flex !important;
  align-items: center;
}

/* ========================================================
 *  完成页（complete）
 * ====================================================== */
.vtc-done { display: flex; justify-content: center; padding: 8px 0 48px; }
.vtc-done__card {
  background: var(--vt-card);
  border: 1px solid var(--vt-line);
  border-radius: 18px;
  box-shadow: var(--vt-shadow);
  max-width: 460px; width: 100%;
  padding: 42px 34px 32px;
  text-align: center;
}
.vtc-done__icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #d9f99d;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: #3f6212;
  animation: vtcPop .45s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes vtcPop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.vtc-done__title { font-size: 20px; font-weight: 700; color: var(--vt-ink); margin: 0 0 8px; }
.vtc-done__desc { font-size: 13.5px; color: var(--vt-text); line-height: 1.7; margin: 0 0 24px; }
.vtc-done__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.vtc-done__link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--vt-muted) !important; }
.vtc-done__link:hover { color: var(--vt-blue) !important; }

/* ========================================================
 *  Footer — 与官网 vt-footer 同款
 * ====================================================== */
.vt-container {
  width: 100% !important;
  max-width: var(--vt-max, 1400px) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
@media (max-width: 768px) {
  .vt-container { padding: 0 16px !important; }
}
footer.vt-footer {
  background: #fff;
  color: var(--vt-text);
  padding: 0;
  font-size: 14px;
  border-top: 1px solid var(--vt-line);
  margin-top: 28px;
}
.vt-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 32px;
  padding: 48px 0 36px;
  margin: 0;
  border-bottom: 1px solid var(--vt-line);
}
.vt-footer__col h4 {
  color: var(--vt-ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 18px;
}
.vt-footer__col ul { list-style: none; padding: 0; margin: 0; }
.vt-footer__col li { margin: 0 0 10px; padding: 0; list-style: none; }
.vt-footer__col a {
  color: var(--vt-text); font-size: 13.5px; font-weight: 500;
  transition: color .15s ease; text-decoration: none;
}
.vt-footer__col a:hover { color: var(--vt-blue); text-decoration: none; }
.vt-footer__contact { margin: 0; padding: 0; list-style: none; }
.vt-footer__contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; list-style: none; }
.vt-footer__contact-ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--vt-blue-50); color: var(--vt-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.vt-footer__contact-label { font-size: 12px; color: var(--vt-muted); margin-bottom: 2px; font-weight: 500; }
.vt-footer__contact-col a { color: var(--vt-ink); font-size: 14px; font-weight: 600; }
.vt-footer__contact-col a:hover { color: var(--vt-blue); text-decoration: none; }
.vt-footer__addr { color: var(--vt-ink); font-size: 14px; font-weight: 500; line-height: 1.55; display: inline-block; max-width: 240px; }
.vt-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vt-footer__logo { display: inline-flex; }
.vt-footer__logo img { max-height: 36px; width: auto; }
.vt-footer__social { display: flex; gap: 10px; margin-top: 2px; }
.vt-footer__social a {
  width: 38px; height: 38px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vt-bg-alt); color: var(--vt-ink); font-size: 15px;
  transition: all .15s ease;
}
.vt-footer__social a:hover { background: var(--vt-blue); color: #fff; text-decoration: none; }
.vt-footer__bottom { background: var(--vt-bg-alt); padding: 16px 0; }
.vt-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.vt-footer__copy { font-size: 12.5px; color: var(--vt-muted); font-weight: 500; }
.vt-footer__legal { display: flex; align-items: center; gap: 10px; }
.vt-footer__legal a { color: var(--vt-text); font-size: 12.5px; font-weight: 500; text-decoration: none; transition: color .15s ease; }
.vt-footer__legal a:hover { color: var(--vt-blue); text-decoration: none; }
.vt-dot { color: var(--vt-line-d); user-select: none; }
@media (max-width: 992px) {
  .vt-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 40px 0 28px; }
  .vt-footer__contact-col { grid-column: span 2; }
  .vt-footer__brand { grid-column: span 2; }
}
body.is-cart footer.vt-footer {
  position: static;
  left: auto; right: auto; bottom: auto; height: auto;
  padding: 0;
}
.list-inline-item .icon { width: 2rem; height: 2rem; }
.social-list-item { border: none; }

/* ========================================================
 *  响应式
 * ====================================================== */
@media (max-width: 1199.5px) {
  .vtc-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.5px) {
  .vtc-plans { grid-template-columns: repeat(2, 1fr); }
  .vtc-head__title, .vcflow__title { font-size: 23px; }
  .vcflow { padding: 26px 24px 24px; }
  .vcstep__label { font-size: 12.5px; }
}
@media (max-width: 767.5px) {
  .vtc-plans { grid-template-columns: 1fr; }
  .vtc-head { padding: 24px 20px 22px; flex-direction: column; align-items: stretch; }
  .vtc-head__title, .vcflow__title { font-size: 21px; }
  .vtc-search input { width: 100%; }
  .vcflow { padding: 22px 18px 20px; border-radius: 16px; }
  .vcflow__sub { display: none; }
  .vcstep__label { display: none; }
  .vcstep.is-active .vcstep__label { display: inline; }
  .vcstep__bar { min-width: 18px; margin: 0 8px; }
  .vtc-side { margin-bottom: 4px; }
  .vc-summary { position: static; }
  .checkboxDiv { width: 100% !important; }
  .checkDiv { display: block !important; }
  /* 标签左置 + 控件右置, 节省纵向空间 */
  #addCartForm .form-group.row,
  #addCartForm .form-group.row.configureproduct {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    padding: 9px 0;
    gap: 8px;
  }
  #addCartForm .form-group.row > label.col-md-2 {
    flex: 0 0 74px;
    width: 74px;
    max-width: 74px;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
  }
  #addCartForm .form-group.row > div[class*="col-"] {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    padding: 0;
  }
}
@media (min-width: 560px) and (max-width: 1355px) {
  .addfunds-payment img { height: 16px; }
}

/* ===== v4: 对齐 IDC 参考(原价云仓) 补充 ===== */
.vtc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}
.vtc-plan .vt-product__title { min-height: 0; -webkit-line-clamp: unset; display: flex; }
.vc-trial-line { padding: 0 1.1rem; margin-top: .6rem; }
.vtc-plan.is-off .vc-price-area { opacity: .6; }
@media (max-width: 767.5px) {
  .vtc-head, .vcflow { padding-top: 8px; }
  .vcflow__title, .vtc-head__title { font-size: 1.55rem; }
  .vtc-plans { gap: 1rem; }
}

/* ===== v5: 移动端产品分类 → 横滑胶囊条(参考二级抽屉) ===== */
@media (max-width: 767.5px) {
  .vtc-side { margin-bottom: 0 !important; }
  .vtc-panel { padding: 8px; border-radius: 1.2rem; }
  .vtc-panel__title { display: none; }
  .vtc-cats {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .vtc-cats::-webkit-scrollbar { display: none; }
  .vtc-cats__group { display: contents; }
  .vtc-cats__label { display: none; }
  .vtc-cats__link {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 15px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--vt-line);
    border-radius: 40px;
    font-size: 13px;
  }
  .vtc-cats__link:hover { background: #fff; }
  .vtc-cats__link.active {
    background: var(--vt-grad);
    border-color: var(--vt-grad);
    color: #fff !important;
  }
}

/* ===== v6: 移动端配置页紧凑排版(节省纵向空间) ===== */
@media (max-width: 767.5px) {
  /* 页头进一步压缩 */
  .vtc-head, .vcflow { padding: 4px 10px 0; margin-bottom: 10px; }
  .vcflow__title, .vtc-head__title { font-size: 1.35rem; margin-bottom: 4px; }
  .vtc-head__sub { font-size: 12.5px; }
  .vcflow__eyebrow, .vt-section__eyebrow { font-size: 11px; padding: .18rem .7rem; margin-bottom: 6px; }
  .vcflow__steps { margin-top: 12px; }
  .vcstep { padding: 5px 12px 5px 6px; gap: 6px; }
  .vcstep__dot { width: 18px; height: 18px; font-size: 10.5px; }
  .vcstep__label { font-size: 12px; }
  .vcstep__bar { flex: 0 0 12px; margin: 0 6px; }

  /* 卡片与表单密度 */
  #addCartForm .card-body, .cp-summary .card-body { padding: 12px; }
  .card { margin-bottom: 12px; }
  #addCartForm .form-group.row { padding: 7px 0; }

  /* 固定值 pill / 下拉 / 输入框更矮 */
  .vc-spec-pill { padding: 3px 10px; font-size: 12px; }
  .bootstrap-select .dropdown-toggle, .selectpicker + .dropdown-toggle { height: 38px; }
  .form-control { font-size: 13px; }

  /* 周期按钮: 2x2 网格 */
  .btn-custom-group { gap: 6px; }
  .btn-custom {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    margin-left: 0 !important;
    height: 34px;
    line-height: 32px;
    font-size: 12px;
    border-radius: 10px !important;
  }
  .btn-custom:first-child, .btn-custom:last-child { border-radius: 10px !important; }

  /* 订单汇总: 紧凑行 */
  .cp-summary .card-title { font-size: 14px !important; margin-bottom: 2px; }
  .ordersummary td { padding: 3px 2px !important; font-size: 12px !important; }

  /* 为固定底部结算条让位 */
  body.is-cart .page-content { padding-bottom: 86px !important; }
  .mobile-bottom-total { padding-right: 1rem; }
}

/* ===== v7: 移动端产品卡 → 紧凑价格清单式 ===== */
.vt-spec-summary { display: none; }
@media (max-width: 767.5px) {
  .vtc-plans { gap: .7rem; margin-top: .2rem; }
  /* 隐藏多行规格表, 换单行摘要 */
  .vtc-plan .vt-product__feat { display: none; }
  .vtc-plan .vc-trial-line { padding: .5rem 1rem 0; margin: 0; }
  .vt-spec-summary {
    display: block;
    padding: 0 1rem;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--vt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vtc-plan .vt-product__title {
    padding: .8rem .9rem .2rem;
    font-size: .98rem;
    align-items: center;
  }
  .vc-badge { font-size: .62rem; padding: .14rem .5rem; }
  .vc-price-area { padding: .6rem .9rem .85rem; }
  .vc-price-original { font-size: 1.25rem; }
  .vc-price-original small { display: block; font-size: .68rem; margin: 1px 0 0; }
  .vc-price-area .vt-btn { padding: 7px 16px; font-size: 12.5px; }
  .vtc-plan.is-off .vt-spec-summary { opacity: .5; }
}

/* ===== v8: 移动端产品卡回归大气版(完整规格双列 + 大价格 + 足留白) ===== */
@media (max-width: 767.5px) {
  /* 页头舒展 */
  .vtc-head, .vcflow { padding: 14px 14px 6px; margin-bottom: 14px; }
  .vcflow__title, .vtc-head__title { font-size: 1.5rem; margin-bottom: 6px; }
  .vtc-head__sub { font-size: 13px; }
  .vcflow__sub { display: block; font-size: 12.5px; margin-top: 2px; }
  .vcflow__eyebrow, .vt-section__eyebrow { font-size: 11.5px; padding: .25rem .85rem; }
  .vcflow__steps { margin-top: 16px; }
  .vcstep { padding: 6px 14px 6px 7px; gap: 7px; }
  .vcstep__dot { width: 20px; height: 20px; font-size: 11px; }
  .vcstep__label { font-size: 12.5px; }
  .vcstep__bar { flex: 0 0 16px; margin: 0 8px; }
  .vtc-search input { height: 42px; }

  /* 卡片: 舒展间距 */
  .vtc-plans { gap: 1rem; }
  .vtc-plan .vt-product__title { padding: 1.1rem 1.2rem .5rem; font-size: 1.08rem; }

  /* 规格完整展示: 双列网格 */
  .vtc-plan .vt-product__feat {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .55rem 1.1rem;
    padding: .8rem 1.2rem .9rem;
    margin: 0;
  }
  .vtc-plan .vt-product__feat li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px dotted #f0f2f5;
    padding-bottom: .3rem;
    font-size: .8rem;
  }
  .vtc-plan .vt-product__feat li .vt-spec-label { color: var(--vt-muted); font-weight: 500; }
  .vtc-plan .vt-product__feat li .vt-spec-value { font-size: .8rem; }
  /* 隐藏单行摘要(回归完整规格) */
  .vtc-plan .vt-spec-summary { display: none !important; }

  /* 价格: 放大, 按钮加大 */
  .vc-price-area { padding: 1rem 1.2rem 1.2rem; }
  .vc-price-original { font-size: 1.7rem; }
  .vc-price-original small { font-size: .72rem; }
  .vc-price-area .vt-btn { padding: 10px 26px; font-size: 13.5px; }
}

/* ===== v9: 下拉按钮内图标+文字垂直居中 ===== */
.bootstrap-select .dropdown-toggle .filter-option,
.bootstrap-select .dropdown-toggle .filter-option-inner,
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
  display: flex;
  align-items: center;
  line-height: 1.35;
}
.bootstrap-select .dropdown-toggle .filter-option img {
  flex-shrink: 0;
  margin-right: 5px;
  vertical-align: middle;
}

/* ===== 周期胶囊(确认订单页内直接展示/切换) ===== */
.vc-cycle-show {
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--vt-bg-alt);
  border: 1px solid var(--vt-line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.vc-cycle__label { color: var(--vt-muted); }
.vc-cycle__val { color: var(--vt-ink); font-weight: 700; }

/* ===== 搜索框移入产品分类面板 ===== */
.vtc-panel .vtc-search { position: relative; margin: 2px 4px 12px; }
.vtc-panel .vtc-search input { width: 100%; height: 40px; }
.vtc-panel .vtc-panel__title { border-bottom: none; padding-bottom: 4px; margin-top: 2px; }
.vtc-head__side { display: none; }

/* ========================================================
 * v3 品质精修 (2026-10-26)
 * 目标: 统一过渡节奏 / 层次分明 / 微交互克制而精准
 * ====================================================== */

/* --- 全局微交互基调 --- */
::selection { background: rgba(0, 120, 255, .16); }
.vt-btn { transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease, border-color .18s ease, color .18s ease; }
.vt-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(0, 105, 245, .45); }
.vt-btn--primary:active { transform: translateY(0); box-shadow: 0 2px 6px -2px rgba(0, 105, 245, .4); }
.vt-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .page-link:focus-visible {
  outline: 2px solid rgba(0, 120, 255, .45);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- 产品列表: 侧栏 --- */
@media (min-width: 993px) {
  .vtc-side { position: sticky; top: 76px; align-self: flex-start; }
}
.vtc-cats__link { transition: background .18s ease, color .18s ease, padding-left .18s ease; }
.vtc-cats__link:hover { padding-left: 20px; }
.vtc-cats__link.active {
  background: var(--vt-blue-50);
  color: var(--vt-blue-d) !important;
  font-weight: 600;
}
.vtc-cats__link.active::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vt-blue);
  margin-right: 9px;
  vertical-align: 2px;
}

/* --- 产品列表: 卡片 --- */
.vtc-plan, .vtc-panel { border-radius: 1rem; }
.vtc-plan { border-color: #e8ecf1; }
.vtc-plan:hover {
  transform: translateY(-3px);
  border-color: #d7dfe9;
  box-shadow: 0 14px 30px -14px rgba(16, 24, 40, .16);
}
.vtc-plan .vt-product__title { letter-spacing: -.2px; }
.vt-product__feat li { transition: border-color .2s ease; }

/* 规格分两档: CPU/内存 = 重点(蓝), 磁盘 = 次重点(深色加粗) */
.vtc-spec li.is-sub .vt-spec-value { color: var(--vt-ink); font-weight: 700; }
.vtc-spec li.is-sub .vt-spec-label { color: #475467; font-weight: 600; }

/* 分页与空态 */
.pagination-sm .page-link {
  border-radius: 8px !important;
  margin: 0 3px;
  border: 1px solid var(--vt-line) !important;
  color: #475467 !important;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  transition: all .15s ease;
}
.pagination-sm .page-link:hover { background: var(--vt-blue-50); border-color: var(--vt-primary-bd, #BFDBFE) !important; color: var(--vt-blue-d) !important; }
.pagination-sm .page-item.active .page-link { background: var(--vt-blue); border-color: var(--vt-blue) !important; color: #fff !important; }
.pagination-sm .page-item.disabled .page-link { color: var(--vt-muted) !important; background: #f8fafc; }

/* --- 结算确认页 --- */
/* 步骤条: 去阴影降噪, 完成态打勾点更精致 */
.vcstep { box-shadow: none; }
.vcstep.is-done .vcstep__dot { background: var(--vt-blue-50); color: var(--vt-blue-d); }
.vcstep.is-done .vcstep__dot .bx-check { font-weight: 700; }
.vcstep__bar { height: 2px; }

/* 条目: 图标品牌化 + 动作按钮微交互 */
.vc-item__icon { background: var(--vt-blue-50); color: var(--vt-blue); border: 1px solid #d6e8ff; }
.vc-item__actions a { transition: transform .15s cubic-bezier(.2,.7,.3,1), background .15s ease, color .15s ease; }
.vc-item__actions a:hover { transform: translateY(-1px); }

/* 商品配置面板: 更轻的底色与圆角 */
.goods_info { border-radius: 12px; background: #f8fafd; }

/* 汇总卡: 总计强调 */
.vc-total { background: #fff; border-color: #e8ecf1; box-shadow: var(--vt-shadow-sm); }
.vc-total__val { letter-spacing: -.5px; }

/* 结算 CTA: 悬停上浮 + 投影, 按压回落 */
.payDiv .submit-btn, .mobile-bottom-total button[type="submit"] {
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s cubic-bezier(.2,.7,.3,1), background-color .18s ease;
}
.payDiv .submit-btn:hover, .mobile-bottom-total button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(0, 105, 245, .5);
}
.payDiv .submit-btn:active, .mobile-bottom-total button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px -4px rgba(0, 105, 245, .45);
}

/* 空购物车状态 */
.vtc-empty, .card-body > .text-center.py-5 {
  color: #667085 !important;
}

/* ========================================================
 * v3.1 细节打磨 (2026-10-26 第二轮自审)
 * ====================================================== */
/* 周期行: 去框, 降噪为轻量键值行 */
.vc-cycle-show {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 4px !important;
  margin-top: 8px;
}
.vc-cycle-show .vc-cycle__label { font-size: 12px; color: #667085; margin-right: 10px; }
.vc-cycle-show .vc-cycle__val { font-size: 13.5px; font-weight: 700; color: var(--vt-ink); }

/* 产品卡: 虚线改极浅实线, 更精致 */
.vtc-plan .vt-product__title { border-bottom: 1px solid #f1f5f9; }
.vt-product__feat li { border-bottom: 1px solid #f4f6f8; padding-bottom: .5rem; }

/* 规格清单行距微调: 呼吸感 */
.vt-product__feat { gap: .55rem; }

/* 移动端顶栏: 轻蒙版+毛玻璃, 避免内容从透明顶栏后穿过(保留悬浮设计感) */
@media (max-width: 992px) {
  .vt-cartbar {
    background: linear-gradient(180deg, rgba(238, 240, 242, .94) 55%, rgba(238, 240, 242, 0) 100%) !important;
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    padding-bottom: 14px;
  }
}

/* ===== 一级分类加大 + 二级折叠 (由 ZCode 2026-10-28 添加) ===== */
.vtc-cats__label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800; color: var(--vt-ink);
  padding: 11px 12px; margin: 3px 0;
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.vtc-cats__label:hover { background: #eef0f2; }
.vtc-cats__label.is-open {
  border-left-color: #316eea;
  background: #f4f6ff;
  color: #2f46b0;
}
.vtc-cats__label.is-open::after { content: '▾'; font-size: 12px; color: #94a3b8; }
.vtc-cats__label:not(.is-open)::after { content: '▸'; font-size: 12px; color: #cbd5e1; }
.vtc-cats__sub { padding: 0 0 8px; }
.vtc-cats__sub--collapsed { display: none; }
@media (max-width: 767.5px) {
  /* 移动端保持横滑胶囊条: 折叠组也展开为胶囊 */
  .vtc-cats__sub--collapsed { display: contents; }
  .vtc-cats__sub { display: contents; }
  .vtc-cats__label { display: none; }
}

/* ===== 折叠框视觉强化 (由 ZCode 2026-10-30 添加) ===== */
.vtc-cats__label {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--vt-ink);
  padding: 12px 14px; margin: 6px 0;
  background: #f7f8fc;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  cursor: pointer;
  border-left: 4px solid #d7dce8;
  transition: background .2s, border-color .2s, transform .15s;
}
.vtc-cats__label:hover {
  background: #eef2ff;
  border-color: #316eea;
  border-left-color: #316eea;
  transform: translateX(2px);
}
.vtc-cats__label.is-open {
  background: #eef2ff;
  border-color: #316eea;
  border-left-color: #316eea;
  color: #2f46b0;
}
/* 圆形旋转箭头: 明确的折叠指示 */
.vtc-cats__label::after {
  content: '▸';
  margin-left: auto;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: #316eea;
  background: #e8eeff;
  border-radius: 50%;
  transition: transform .25s ease, background .2s;
  flex: 0 0 auto;
}
.vtc-cats__label:hover::after { background: #d8e2ff; }
.vtc-cats__label.is-open::after { transform: rotate(90deg); background: #d8e2ff; }
/* 系列数量徽章 */
.vtc-cats__count {
  font-size: 11px; font-weight: 600; color: #7a8299;
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: auto;
  white-space: nowrap;
}
.vtc-cats__label.is-open .vtc-cats__count { color: #2f46b0; border-color: #c5d3ff; }
/* 展开的二级列表缩进, 强化层级 */
.vtc-cats__sub { padding: 2px 0 10px 10px; }

/* ===== 侧栏独立滚动: 菜单过长时侧栏内部滚动, 不撑长页面 (由 ZCode 2026-10-30 添加) ===== */
@media (min-width: 768px) {
  .vtc-side { position: sticky; top: 12px; align-self: flex-start; }
  .vtc-side .vtc-panel {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .vtc-side .vtc-panel::-webkit-scrollbar { width: 6px; }
  .vtc-side .vtc-panel::-webkit-scrollbar-track { background: transparent; }
  .vtc-side .vtc-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
  .vtc-side .vtc-panel::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
}

/* ===== 展开组标题置顶 (由 ZCode 2026-11-04 添加) — 2026-11-09 停用:
   置顶吸附会造成"标题钉住+系列列表从中段开始"的截断观感,
   按需求改为展开/进入页面时菜单自动滚至顶部, 从头完整展示全部系列 ===== */

/* ===== 删除按钮默认红色 (由 ZCode 2026-11-04 添加, 用户要求) ===== */
.vc-item__actions a.vc-del { color: var(--vt-red); }


/* ===== 移动端分类胶囊条修正 (由 ZCode 2026-11-05 添加):
   修复10-30视觉强化块在移动端媒体查询之后重声明label导致的排版崩坏;
   重申设计意图: 组标题隐藏, 系列名横滑胶囊 ===== */
@media (max-width: 767.5px) {
  .vtc-cats { display: flex !important; overflow-x: auto !important; overflow-y: hidden !important; gap: 8px !important; padding: 4px 2px 10px !important; align-items: center !important; }
  .vtc-cats__group { display: contents !important; }
  .vtc-cats__label { display: none !important; }
  .vtc-cats__sub, .vtc-cats__sub--collapsed { display: contents !important; }
  .vtc-cats__link {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 62vw !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border: 1px solid #e6e9f2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vtc-cats__link.active { background: #eef2ff !important; border-color: #316eea !important; color: #2f46b0 !important; }
}

/* ===== 移动端两级分类条 (2026-11-19 ZCode) ===== */
.vtc-mcats { display: none; }
@media (max-width: 991.98px) {
  .vtc-mcats { display: block; margin: 0 0 12px; }
  .vtc-cats { display: none !important; }
}
.vtc-mcats__first, .vtc-mcats__grp {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.vtc-mcats__first::-webkit-scrollbar, .vtc-mcats__grp::-webkit-scrollbar { display: none; }
.vtc-mcats__fitem, .vtc-mcats__sitem {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 8px 15px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; color: #4b5563 !important; font-size: 14px; line-height: 1.25;
  text-decoration: none !important; white-space: nowrap;
}
.vtc-mcats__fitem { font-weight: 600; background: #f8fafc; }
.vtc-mcats__fitem.active, .vtc-mcats__sitem.active {
  background: #eaf1ff; border-color: #2563eb; color: #2563eb !important; font-weight: 600;
}
.vtc-mcats__grp.is-hidden { display: none; }
.vtc-mcats__second { margin-top: 2px; }
