/* =====================================================================
   xzy-unified.css
   质简魔方（xzy）购物车模板 —— 统一样式表

   这是把原来分散在 header.tpl / topbar-categories.tpl / sidebar-categories.tpl /
   product.tpl / configureproduct.tpl / ordersummary.tpl / auth-footer.tpl /
   cart_declaration.tpl / viewcart.tpl 这 9 个文件里的 <style> 内联样式，
   全部合并到的唯一一份 CSS 文件。

   为什么要合并：
   1. 原来内联样式写死在每个 .tpl 里，属于 HTML 的一部分，浏览器每次翻页
      （包括点分类、切二级分类）都要重新下载、重新解析一遍，完全无法被
      浏览器缓存。合并成外部 .css 文件后，只需首次加载，之后所有分类点击/
      翻页都会命中浏览器缓存，不用重复下载这部分样式。
   2. 多个文件里重复定义了同样的字体规则和颜色变量（比如 product.tpl 和
      topbar-categories.tpl 曾经各写了一遍一模一样的 :root 变量），已在
      合并时去重。
   3. 顶部新增了统一的颜色变量表，以后要改主题色，只需要改这一处
      --primary-blue 等变量即可，不用再去几十个文件里逐个查找替换。

   使用方式：在 header.tpl 的 <head> 里通过
   <link rel="stylesheet" href="/themes/cart/xzy/assets/css/xzy-unified.css?v={$Ver}">
   引入一次即可，对所有购物车相关页面生效。
   ===================================================================== */

:root {
  /* ---- 品牌主色：以后改配色主要改这一组变量 ---- */
  --primary-blue:        #3b8fd9;  /* 主蓝色，按钮/链接/高亮 */
  --primary-blue-light:  #50a5f1;  /* 浅蓝，渐变/hover用 */
  --primary-blue-dark:   #2f46b0;  /* 深蓝，选中态文字 */
  --primary-bg-light:    #eff7fe;  /* 浅蓝背景 */
  --primary-bg-subtle:   #f8f8fb;  /* 极浅灰蓝背景（原分类侧栏背景色） */

  /* ---- 文字颜色 ---- */
  --text-primary:     #1e293b;
  --text-secondary:   #475569;
  --text-muted:        #94a3b8;
  --text-muted-dark:   #64748b;

  /* ---- 圆角 / 间距（原来在不同文件里各写一份，统一为一组基准值） ---- */
  --macos-radius: 14px;
  --card-padding: 20px 20px 0 20px;
  --icon-size: 24px;
}


/* ===== header.tpl - #preloader 预加载动画样式 ===== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
@media (prefers-color-scheme: dark) {
  #preloader { background: #1a1f2e; }
}

/* SVG Logo 容器 */
#preloader .preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-breathe 2.5s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.97); }
}

/* Cloudflare 风格进度条 */
#preloader .preloader-bar-wrap {
  width: min(320px, 80vw);
  height: 3px;
  background: #e8f2fc;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
#preloader .preloader-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-blue) 30%,
    var(--primary-blue-light) 50%,
    var(--primary-blue) 70%,
    transparent 100%
  );
  animation: cf-scan 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: blur(0.3px);
}
@keyframes cf-scan {
  0%   { left: -45%; opacity: 0.6; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 105%; opacity: 0.6; }
}

/* 响应式 Logo 尺寸 */
@media (max-width: 480px) {
  #preloader .preloader-logo svg {
    width: 200px !important;
    height: auto !important;
  }
  #preloader .preloader-bar-wrap {
    width: 70vw;
  }
}

/* ===== topbar-categories.tpl - 顶部分类导航样式 ===== */
/* 字体：默认走系统字体（0ms 可用），Google 字体异步加载完成后
   （topbar-categories.tpl 里 <link onload> 会给 <html> 加 webfonts-loaded 类）再无感切换，
   避免像原来那样等 Google 字体请求完才能显示文字 */
*:not(i):not([class^="bx"]):not([class*=" bx-"]):not([class^="fa"]):not([class*=" fa-"]):not([class^="mdi"]):not([class*=" mdi-"]):not([class*="icon-"]) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif !important;
}
.webfonts-loaded *:not(i):not([class^="bx"]):not([class*=" bx-"]):not([class^="fa"]):not([class*=" fa-"]):not([class^="mdi"]):not([class*=" mdi-"]):not([class*="icon-"]) {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ==========================================
   ✨ 导航区域高级进场动画
   ========================================== */
@keyframes slideInRightSmooth {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes dropDownSmooth {
  0% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 分类框赋予入场动画 */
.firstgroup_box {
  animation: slideInRightSmooth 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.secondgroup_box {
  opacity: 0;
  animation: slideInRightSmooth 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
/* 产品标题卡赋予入场动画 */
.group-info-card {
  opacity: 0;
  animation: dropDownSmooth 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
  
/* ----- 产品标题卡片 ----- */  
.group-info-card {  
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 100%);  
  border-radius: 24px;  
  padding: 28px 32px;  
  box-shadow: 0 10px 40px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.01);  
  border: 1px solid rgba(59, 143, 217, 0.08);  
  margin-bottom: 25px;  
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);  
  position: relative;  
  height: auto !important;  
  min-height: min-content;  
  overflow: visible !important;   
}  
.group-info-card:hover {  
  box-shadow: 0 22px 50px rgba(59, 143, 217, 0.08);  
  border-color: rgba(59, 143, 217, 0.2);  
  transform: translateY(-3px);  
}  
.group-info-card .card-title {  
  font-size: 1.5rem;  
  font-weight: 700;  
  color: var(--text-primary);  
  margin-bottom: 14px;  
  display: flex;  
  align-items: center;  
  flex-wrap: wrap;
  gap: 12px;  
}  
.group-info-card .card-title i {  
  color: var(--primary-blue);  
  font-size: 1.8rem;  
}  

.group-info-card .card-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(59, 143, 217, 0.25);
  transform: translateY(-1px);
}

.group-info-card .headline {  
  font-size: 1.05rem;  
  color: var(--primary-blue);  
  margin-bottom: 14px;  
  font-weight: 600;  
  white-space: pre-wrap;  
  word-break: break-word;  
  line-height: 1.5;  
}  
  
.group-info-card .tagline-container {  
  background: #f8fafc;  
  border-left: 4px solid var(--primary-blue);  
  border-radius: 12px;  
  padding: 16px 20px;  
  margin-top: 8px;  
  transition: background 0.3s ease;
}  
.group-info-card:hover .tagline-container {
  background: #f1f5f9;
}
.group-info-card .tagline {  
  font-size: 0.92rem;  
  color: var(--text-secondary);  
  margin: 0;  
  font-weight: 400;  
  white-space: pre-wrap;  
  word-break: break-word;  
  line-height: 1.7;  
}  
  
/* ----- 分类容器 ----- */  
.firstgroup_box, .secondgroup_box {  
  background: #fff;  
  border-radius: 18px;  
  padding: 14px 22px;  
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);  
  border: 1px solid rgba(0,0,0,0.02);  
  margin-bottom: 15px;  
  display: flex;  
  align-items: center;  
  flex-wrap: wrap;  
  transition: box-shadow 0.3s ease;
} 
.firstgroup_box:hover, .secondgroup_box:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
} 
.firstgroup_box_prov, .secondgroup_box_area {  
  font-weight: 700;  
  color: var(--text-primary);  
  font-size: 14px;  
  min-width: 85px;  
  padding-left: 16px;  
  position: relative;  
  letter-spacing: 0.5px;  
}  
.firstgroup_box_prov::before, .secondgroup_box_area::before {  
  content: '';  
  position: absolute;  
  left: 0;  
  top: 50%;  
  transform: translateY(-50%);  
  width: 4px;  
  height: 16px;  
  background: var(--primary-blue);  
  border-radius: 10px;  
}  
.firstgroup_box_group, .secondgroup_box_group {  
  display: flex;  
  flex-wrap: wrap;  
  gap: 10px;  
  flex: 1;  
}  
  
/* ----- 分类按钮基类 ----- */  
.category-item {  
  position: relative;  
  padding: 10px 18px;  
  background: #f8fafc;  
  border: 1px solid rgba(59, 143, 217, 0.06);  
  border-radius: var(--macos-radius);  
  transition: all 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);  
  display: flex;  
  align-items: center;  
  justify-content: center;  
  cursor: pointer;  
  text-decoration: none;  
  min-width: 110px;  
}  
.category-item a {  
  color: #334155;  
  font-size: 13.5px;  
  font-weight: 600;  
  display: flex;  
  align-items: center;  
  text-decoration: none;  
  gap: 8px;  
  white-space: nowrap;  
}  
.first-cat a::before {  
  content: '';  
  display: inline-block;  
  width: 6px;  
  height: 6px;  
  background: var(--primary-blue-light);  
  border-radius: 50%;  
  margin-right: 2px;  
  flex-shrink: 0;  
  transition: all 0.3s ease;
}  

.category-item.active {  
  background: var(--primary-blue) !important;  
  border-color: var(--primary-blue) !important;  
  box-shadow: 0 6px 16px rgba(59, 143, 217, 0.25) !important;  
  transform: translateY(-2px);  
}  
.category-item.active a {  
  color: #fff !important;  
}  
.category-item.active .first-cat a::before {  
  background: #fff !important;  
  transform: scale(1.2);
}  
.category-item:hover:not(.active) {  
  background: var(--primary-bg-light);  
  border-color: rgba(59, 143, 217, 0.3);  
  transform: translateY(-2px);  
}  
  
.second-cat.has-badge {  
  padding-top: 16px !important;  
  padding-bottom: 8px !important;  
}  
  
.second-cat .backend-hint-badge {  
  position: absolute;  
  top: 3px;  
  right: 5px;  
  background: #e0f2fe;  
  color: #0369a1;  
  font-size: 9px;  
  font-weight: 800;  
  padding: 1px 5px;  
  border-radius: 5px;  
  line-height: 1.1;  
  border: 1px solid #bae6fd;  
  white-space: nowrap;  
  pointer-events: none;  
  letter-spacing: 0.3px;  
  transform: scale(0.85);  
  transform-origin: right top;  
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);  
  z-index: 2;
}  
  
.category-item.active .backend-hint-badge {  
  background: #ffffff !important; 
  color: var(--primary-blue) !important; 
  border-color: #ffffff !important;  
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;  
}  
.category-item:hover:not(.active) .backend-hint-badge {  
  background: var(--primary-blue);  
  color: #ffffff;  
  border-color: var(--primary-blue);  
}  
  
.cat-flag {  
  width: 22px;  
  height: 15px;  
  object-fit: cover;  
  border-radius: 3px;  
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);  
  pointer-events: none;  
}  
  
/* ----- 全端响应式自适应高级适配 ----- */  
@media (max-width: 576px) {  
  .group-info-card { padding: 20px 18px; }  
  .group-info-card .card-title { font-size: 1.3rem; }  
  .group-info-card .tagline-container { padding: 12px 14px; }  
  .firstgroup_box, .secondgroup_box { padding: 14px 12px; }  
  .firstgroup_box_prov, .secondgroup_box_area { width: 100%; margin-bottom: 10px; }  
  .firstgroup_box .category-item { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); padding: 12px 6px !important; min-width: 0; margin-top: 5px; }  
  .secondgroup_box .category-item.second-cat { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); min-width: 0; margin-top: 6px; padding: 12px 4px !important; display: flex; align-items: center; justify-content: center; }  
  .secondgroup_box .category-item.second-cat.has-badge { padding-top: 18px !important; padding-bottom: 8px !important; }  
  .category-item a { font-size: 12px; white-space: normal; word-break: break-word; text-align: center; gap: 5px; }  
  .secondgroup_box .category-item a { font-size: 11px; line-height: 1.3; width: 100%; justify-content: center; }  
  .second-cat .backend-hint-badge { transform: scale(0.8); top: 2px; right: 4px; padding: 0px 4px; }  
}  

/* ===== sidebar-categories.tpl - 侧边分类样式 ===== */
	.prolist ul {
		padding-left: 0;
	}
	.prolist li {
		list-style: none;
		text-align: center;
    line-height: 40px;
	}
	.firstbox,
	.secondbox {
		min-height: 560px;
	}
	.firstbox .active a {
		background-color: var(--primary-bg-subtle);
		color: var(--primary-blue-dark) !important;
	}
	.secondbox {
		background-color: var(--primary-bg-subtle);
	}
	.secondbox .active a {
		color: var(--primary-blue-dark) !important;
	}
	.firstbox a,
	.secondbox a {
		color: var(--text-muted-dark);
	}

	.pro-search-box .border-light {
		border-color: rgba(239, 242, 247, 0.5) !important;
	}
	.pro-search-box .rounded {
		border-radius: 2rem !important;
	}
	.pro-search-box .bg-light,
	.pro-search-box .form-control {
		background-color: rgba(255,255,255,0.15) !important;
		border: 1px solid rgba(255,255,255,0.15) !important;
	}
	
	.pro-search-box input::-webkit-input-placeholder {
      color: #fff;
	}
	.pro-search-box input::-moz-placeholder {
		color: #fff;
	}
	@media screen and (max-width: 768px) {
		.firstbox,
		.secondbox {
			min-height: 200px;
		}
	}

/* ===== product.tpl - 产品列表卡片样式 ===== */
/* 注：全局字体规则与 :root 变量在 topbar-categories 区块已定义一次，这里不再重复 */
.products-container {
  padding: 12px 8px;
}

/* 卡片基础结构 */
.cartitem {
  background: #ffffff;
  border-radius: var(--macos-radius) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; 
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* 悬停激活状态 */
.cartitem:hover, .cartitem.active {
  transform: translateY(-4px);
  border: 1px solid var(--primary-blue) !important; 
  box-shadow: 0 16px 32px rgba(59,143,217,0.12), 0 4px 12px rgba(0,0,0,0.03);
}

.cartitem .card-body {
  padding: var(--card-padding);
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* 产品名称 - 压缩底边距 */
.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px; /* 从24px压到16px */
  display: flex;
  align-items: center;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.product-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-right: 12px;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
  flex-shrink: 0;
  background: #f8fafc;
  padding: 2px;
}

/* 描述文字 - 核心修复区：取消 pre-line，收缩行高与间距 */
.product-description {
  font-size: 0.95rem; 
  color: var(--text-secondary);
  line-height: 1.5; /* 黄金紧凑行高，拒绝松散 */
  margin-bottom: 16px; /* 从24px压到16px */
  word-break: break-word;
  white-space: normal; /* 关键：交给底层JS统一处理换行，杜绝双重空行 */
  font-weight: 500;
}
/* 强行剥夺富文本编辑器自带的所有空隙 */
.product-description p, 
.product-description div, 
.product-description ul, 
.product-description li {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

/* 库存信息行 */
.stock-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 10px; /* 稍微压紧一点 */
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

/* 底部价格区域 - 压缩与底部按钮的距离 */
.price-wrapper {
  margin-top: auto;
  padding-bottom: 16px; /* 从24px压到16px */
  display: flex;
  flex-direction: column;
}
.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-main {
  font-size: 1.6rem; 
  font-weight: 800;
  color: var(--primary-blue); 
  line-height: 1.1;
}
.price-cycle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-decoration: line-through;
}

/* 底部通栏购买按钮 */
.buy-btn-full {
  background: var(--primary-blue) !important;
  color: #ffffff !important;
  width: 100%;
  height: 48px; /* 稍微压扁2px，显得更精致 */
  line-height: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
  border: none;
  border-radius: 0; 
  margin: 0;
  cursor: pointer;
}
.buy-btn-full:hover {
  background: var(--primary-blue-light) !important;
  color: #ffffff !important;
}
.buy-btn-full.disabled-btn {
  background: #e2e8f0 !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* 角标 */
.saleout-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(239,68,68,0.1);
  pointer-events: none;
}

/* 空状态 */
.empty-products {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-products i {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* 响应式断点细调 */
@media (max-width: 992px) {
  :root {
    --card-padding: 18px 16px 0 16px;
  }
}
@media (max-width: 768px) {
  :root {
    --icon-size: 20px;
    --card-padding: 16px 14px 0 14px;
  }
  .product-name { font-size: 1.05rem; margin-bottom: 12px; }
  .product-description { font-size: 0.9rem; margin-bottom: 12px; }
  .buy-btn-full { height: 44px; line-height: 44px; font-size: 0.95rem; }
  .price-main { font-size: 1.5rem; }
}

/* ===== configureproduct.tpl - 产品配置页样式 ===== */
/* ============================================================
   产品配置页 · 小战云蓝色主题 · 高优先级顶级重构版
   全部使用 #addCartForm 父级提权，确保完美响应式与防主题污染
   ============================================================ */
:root {
  --cfg-blue:      var(--primary-blue);
  --cfg-blue-d:    #2d7fc8;
  --cfg-bg-light:  var(--primary-bg-light);
  --cfg-text:      var(--text-primary);
  --cfg-text-sub:  var(--text-muted-dark);
  --cfg-border:    #dde6f0;
  --cfg-radius:    18px;
  --cfg-radius-sm: 11px;
}

/* ─── 校验视觉去绿 ─── */
.was-validated .custom-control-input:valid~.custom-control-label::before {
  background-color: #fff !important;
}
.bootstrap-select.is-valid .dropdown-toggle,
.was-validated .bootstrap-select select:valid+.dropdown-toggle {
  border-color: var(--cfg-border) !important;
}
.form-control.is-valid,
.was-validated .form-control:valid {
  border: 1px solid var(--cfg-border) !important;
  border-radius: var(--cfg-radius-sm) !important;
  background-position-y: 50% !important;
  background-position-x: calc(100% - 11px) !important;
  background-repeat: no-repeat !important;
  padding-right: 24px !important;
}

/* ─── 错误提示 ─── */
.error-tip {
  color: #ef4444 !important;
  margin: 0; padding: 0;
  line-height: 36px; display: none;
  font-size: 0.8rem; font-weight: 500;
}

/* ─── placeholder ─── */
input::-webkit-input-placeholder { color: #b8c8d8 !important; }
input:-moz-placeholder            { color: #b8c8d8 !important; }
input::-moz-placeholder           { color: #b8c8d8 !important; }
input:-ms-input-placeholder       { color: #b8c8d8 !important; }

/* ══════════════════════════════════════════
   基础卡片重构区域
   ══════════════════════════════════════════ */
#addCartForm .card {
  background: #ffffff !important;
  border-radius: var(--cfg-radius) !important;
  border: 1px solid rgba(59,143,217,0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  transition: box-shadow 0.28s ease, border-color 0.28s ease !important;
  overflow: hidden !important;
}
#addCartForm .card:hover {
  box-shadow: 0 10px 32px rgba(59,143,217,0.11) !important;
  border-color: rgba(59,143,217,0.22) !important;
}
#addCartForm .card .card-body {
  background: #ffffff !important;
  color: var(--cfg-text) !important;
}

/* ==========================================
   强杀系统默认的 h4 边框，只保留咱们自己的伪元素
   ========================================== */
#addCartForm h4,
#addCartForm h4.card-title,
#addCartForm .card-title {
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

/* ─── 产品名称头部卡片 ─── */
#addCartForm .card.border-bottom {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%) !important;
  border-bottom: 1px solid rgba(59,143,217,0.12) !important;
  border-radius: var(--cfg-radius) var(--cfg-radius) 0 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
}
#addCartForm .card.border-bottom .card-body {
  background: transparent !important;
  padding: 24px 28px !important;
}
#addCartForm .card.border-bottom .card-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--cfg-text) !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  letter-spacing: -0.2px !important;
}
#addCartForm .card.border-bottom .card-title::before {
  content: '' !important;
  display: inline-block !important;
  width: 5px !important; height: 24px !important;
  background: var(--cfg-blue) !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  border: none !important;
}

/* ─── 配置主卡片（下半部分） ─── */
#addCartForm .card.border-bottom + .card {
  border-radius: 0 0 var(--cfg-radius) var(--cfg-radius) !important;
  margin-bottom: 22px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
}
#addCartForm .card.border-bottom + .card .card-body {
  padding: 10px 28px 28px !important;
}

/* ─── 右侧订单摘要卡片固定挂起 ─── */
#addCartForm .col-xl-4 .card {
  position: sticky !important;
  top: 24px !important;
  z-index: 10;
}
#addCartForm .col-xl-4 .card .card-body {
  padding: 22px !important;
}
#addCartForm .col-xl-4 .card .card-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--cfg-text) !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--cfg-bg-light) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#addCartForm .col-xl-4 .card .card-title::before {
  content: '' !important;
  display: inline-block !important;
  width: 4px !important; height: 16px !important;
  background: var(--cfg-blue) !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  border: none !important;
}
#addCartForm .configoption_total {
  font-size: 0.875rem !important;
  color: var(--cfg-text-sub) !important;
  line-height: 1.8 !important;
}

/* ─── Alert ─── */
#addCartForm .alert-danger {
  border-radius: var(--cfg-radius-sm) !important;
  border: 1px solid rgba(239,68,68,0.18) !important;
  background: rgba(239,68,68,0.06) !important;
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-bottom: 15px;
}

/* ══════════════════════════════════════════
   配置表单行项重构（核心自适应结构）
   ══════════════════════════════════════════ */
#addCartForm .form-group.row {
  padding: 16px 0 !important;
  border-bottom: 1px solid #edf2f8 !important;
  margin: 0 !important;
  align-items: center !important;
}
#addCartForm .form-group.row:last-child {
  border-bottom: none !important;
}
#addCartForm .form-group.row .col-form-label,
#addCartForm .form-group.row > label.col-form-label {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--cfg-text) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 帮助图标 */
#addCartForm .bxs-help-circle {
  color: var(--cfg-blue) !important;
  font-size: 0.95rem !important;
  opacity: 0.85 !important;
  cursor: help !important;
}

/* ══════════════════════════════════════════
   核心输入框 / Select组件修复（根置宽度溢出与截断）
   ══════════════════════════════════════════ */
#addCartForm .form-control {
  border-radius: var(--cfg-radius-sm) !important;
  border: 1px solid var(--cfg-border) !important;
  background: #fff !important;
  color: var(--cfg-text) !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.8rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: none !important;
  width: 100%;
}
#addCartForm .form-control:focus {
  border-color: var(--cfg-blue) !important;
  box-shadow: 0 0 0 3px rgba(59,143,217,0.13) !important;
  outline: none !important;
}

/* ─── Bootstrap Select 强制提宽，消灭截断现象 ─── */
#addCartForm .bootstrap-select {
  width: 100% !important;
}
#addCartForm .bootstrap-select > .dropdown-toggle {
  border-radius: var(--cfg-radius-sm) !important;
  border: 1px solid var(--cfg-border) !important;
  background: #fff !important;
  color: var(--cfg-text) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 1.8rem 0.4rem 0.7rem !important; /* 减小内边距 */
  box-shadow: none !important;
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#addCartForm .bootstrap-select > .dropdown-toggle:hover,
#addCartForm .bootstrap-select.show > .dropdown-toggle {
  border-color: var(--cfg-blue) !important;
  box-shadow: 0 0 0 3px rgba(59,143,217,0.12) !important;
}

/* ─── 下拉浮层精细控制（紧凑、干净） ─── */
.bootstrap-select .dropdown-menu {
  border-radius: var(--cfg-radius-sm) !important;
  border: 1px solid var(--cfg-border) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
  padding: 4px 0 !important;          /* 减小内边距 */
  z-index: 1050;
  max-height: 200px !important;       /* 降低高度，防止臃肿 */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.bootstrap-select .dropdown-menu .dropdown-item,
.bootstrap-select .dropdown-menu li > a {
  border-radius: 6px !important;
  font-size: 0.8rem !important;        /* 字体调小 */
  padding: 6px 10px !important;        /* 内边距减小 */
  color: var(--cfg-text) !important;
  transition: all 0.15s !important;
}
.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu li.selected > a {
  background: var(--cfg-bg-light) !important;
  color: var(--cfg-blue) !important;
}

/* 操作系统选择器特殊优化：紧凑显示图标 */
.configoption_os + .bootstrap-select .dropdown-menu .dropdown-item img,
.configoption_os_group + .bootstrap-select .dropdown-menu .dropdown-item img {
  height: 18px !important;
  width: auto !important;
  margin-right: 6px !important;
}

/* ══════════════════════════════════════════
   按钮切换组（Radio Toggle）
   ══════════════════════════════════════════ */
#addCartForm .btn-group-toggle {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
#addCartForm .btn-group-toggle .btn {
  background: #f4f7fc !important;
  border: 1.5px solid var(--cfg-border) !important;
  color: var(--cfg-text) !important;
  border-radius: var(--cfg-radius-sm) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin: 0 !important;
}
#addCartForm .btn-group-toggle .btn:not(.active):hover {
  background: var(--cfg-bg-light) !important;
  border-color: var(--cfg-blue) !important;
  color: var(--cfg-blue) !important;
}
#addCartForm .btn-group-toggle .btn.active {
  background: var(--cfg-blue) !important;
  border-color: var(--cfg-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59,143,217,0.25) !important;
  transform: translateY(-1px) !important;
}

/* ─── 周期特异性按钮组 ─── */
#addCartForm .btn-custom-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
#addCartForm .btn-custom {
  background: #f4f7fc !important;
  border: 1.5px solid var(--cfg-border) !important;
  color: var(--cfg-text) !important;
  border-radius: var(--cfg-radius-sm) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  min-width: 85px !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#addCartForm .btn-custom-group .btn-custom:not(.active):hover {
  background: var(--cfg-bg-light) !important;
  border-color: var(--cfg-blue) !important;
  color: var(--cfg-blue) !important;
}
#addCartForm .btn-custom-group .active,
#addCartForm .btn-custom.active {
  background: var(--cfg-blue) !important;
  border-color: var(--cfg-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(59,143,217,0.25) !important;
  transform: translateY(-1px) !important;
}

/* 折扣气泡 */
.cycle-select-discount {
  position: absolute !important;
  top: -9px !important; right: -4px !important;
  padding: 0 6px !important;
  height: 16px !important;
  background: #ef4444 !important;
  border-radius: 6px 6px 6px 0 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  box-shadow: 0 2px 6px rgba(239,68,68,0.25) !important;
  z-index: 5 !important;
}

/* ══════════════════════════════════════════
   滑块区域（Range）安全重构区
   ══════════════════════════════════════════ */
.range-wrapper-layout {
  position: relative !important;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
#addCartForm input[type='range'] {
  -webkit-appearance: none !important;
  outline: none !important;
  height: 6px !important;
  border-radius: 6px !important;
  background: #e2e8f0 !important;
  cursor: pointer;
  flex: 1;
}
#addCartForm input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 18px !important; height: 18px !important;
  background: #fff !important;
  border: 3px solid var(--cfg-blue) !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59,143,217,0.2) !important;
  transition: transform 0.15s !important;
}
#addCartForm input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15) !important;
}
.range_none {
  position: absolute !important;
  height: 6px !important;
  display: block !important;
  background: #cbd5e1 !important;
  cursor: not-allowed !important;
  border-radius: 3px !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
#addCartForm .configoption_range_val.form-control {
  border: 1.5px solid var(--cfg-blue) !important;
  border-radius: var(--cfg-radius-sm) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: var(--cfg-blue) !important;
  text-align: center !important;
  background: var(--cfg-bg-light) !important;
  padding: 4px 8px !important;
  width: 70px !important;
  flex-shrink: 0;
}

/* 原生单选多选微调 */
#addCartForm .form-check {
  margin-left: 4px !important;
  display: inline-flex;
  align-items: center;
}
#addCartForm .form-check-input[type="radio"] {
  accent-color: var(--cfg-blue) !important;
  cursor: pointer !important;
}

/* ══════════════════════════════════════════
   全端深度响应式自适应布局 —— 精细调节
   ══════════════════════════════════════════ */
@media (max-width: 1200px) {
  #addCartForm .col-xl-4 .card { position: static !important; margin-top: 20px; }
}
@media (max-width: 768px) {
  #addCartForm .card.border-bottom .card-body { padding: 18px 20px !important; }
  #addCartForm .card.border-bottom + .card .card-body { padding: 10px 20px 20px !important; }
  #addCartForm .card.border-bottom .card-title { font-size: 1.15rem !important; }
  #addCartForm .form-group.row { flex-direction: column; align-items: flex-start !important; padding: 14px 0 !important; }
  #addCartForm .form-group.row .col-form-label { margin-bottom: 8px !important; width: 100%; }
  #addCartForm .form-group.row > div[class^="col-"] { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
  #addCartForm .btn-group-toggle .btn { padding: 7px 12px !important; font-size: 0.8rem !important; }
  #addCartForm .btn-custom { padding: 8px 14px !important; font-size: 0.8rem !important; }

  /* 小屏设备下拉菜单适度缩小 */
  .bootstrap-select .dropdown-menu {
    max-height: 180px !important;
    padding: 3px 0 !important;
  }
  .bootstrap-select .dropdown-menu .dropdown-item,
  .bootstrap-select .dropdown-menu li > a {
    font-size: 0.78rem !important;
    padding: 5px 8px !important;
  }
  .configoption_os + .bootstrap-select .dropdown-menu .dropdown-item img,
  .configoption_os_group + .bootstrap-select .dropdown-menu .dropdown-item img {
    height: 16px !important;
    margin-right: 4px !important;
  }
}
@media (max-width: 576px) {
  #addCartForm .btn-group-toggle { gap: 6px !important; }
  #addCartForm .btn-group-toggle .btn { flex: 1 1 calc(50% - 6px); text-align: center; }
  #addCartForm .btn-custom-group .btn-custom { flex: 1 1 calc(50% - 6px); text-align: center; }

  /* 超小屏进一步紧凑 */
  .bootstrap-select .dropdown-menu {
    max-height: 150px !important;
    padding: 2px 0 !important;
  }
  .bootstrap-select .dropdown-menu .dropdown-item,
  .bootstrap-select .dropdown-menu li > a {
    font-size: 0.75rem !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
  }
  .configoption_os + .bootstrap-select .dropdown-menu .dropdown-item img,
  .configoption_os_group + .bootstrap-select .dropdown-menu .dropdown-item img {
    height: 14px !important;
    margin-right: 3px !important;
  }
  /* 选择器按钮本身也缩小 */
  #addCartForm .bootstrap-select > .dropdown-toggle {
    font-size: 0.8rem !important;
    padding: 0.3rem 1.4rem 0.3rem 0.6rem !important;
  }
}

/* ===== ordersummary.tpl - 订单摘要样式 ===== */
	.ordersummary td {
		border:none!important;
		padding: 5px!important;
	}
	.mobile-bottom-total{
		display: none;
		position: fixed;
		width: 100%;
		height: 4rem;
		text-align: right;
		line-height: 4rem;
		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;
		-webkit-overflow-scrolling: auto;
	}
	.mobile-bottom-total .total {
		font-size: 18px;
		font-weight: 400;
		color: #333333;
		margin-right: 0.5rem;
	}
	.btn.active { 
		z-index: 0 !important; 
	}

/* ===== auth-footer.tpl - 底部信息栏样式 ===== */
:root {
  --sb-w:    240px;
  --ft-blue: var(--primary-blue);
}
/* 原来这里是全局 `* { box-sizing: border-box; }`，会污染全站所有页面（用户中心等）的盒模型计算，
   现在收窄到只影响页脚自己，不再外溢。 */
.xzy-footer, .xzy-footer *, .xzy-float-btn, .xzy-float-btn * { box-sizing: border-box; }
/* 原来这里是全局 `body { padding-bottom: 52px; }`，只要页面加载了这个 CSS 文件就会被加上这段底部留白，
   哪怕那个页面根本没有渲染 .xzy-footer（比如用户中心走的是另一套footer）也照样多出空白。
   现在改为只在页脚实际渲染时，由 auth-footer.tpl 底部的 JS 动态测量页脚高度后再设置 body 留白，
   不会影响没有引入这个页脚的页面。 */

/* ══════════════════════════
   底栏容器
   ══════════════════════════ */
.xzy-footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(59,143,217,0.10);
  box-shadow: 0 -2px 14px rgba(0,0,0,0.05);
  z-index: 999;
  font-family: system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color: var(--text-secondary);
}

/* 大屏：侧边栏偏移 */
@media (min-width: 1200px) {
  .xzy-footer { left: var(--sb-w); width: calc(100% - var(--sb-w)); }
  .xzy-float-btn { left: calc(var(--sb-w) + 16px) !important; }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .xzy-footer { background: rgba(15,23,42,0.96); border-top-color: rgba(255,255,255,0.07); color: var(--text-muted); }
  .xzy-ft-brand { color: #e2e8f0 !important; }
  .xzy-ft-val   { color: #cbd5e1 !important; }
  .xzy-ft-user  { background: rgba(255,255,255,0.08) !important; color: var(--text-muted) !important; }
  .xzy-ft-divider { background: rgba(255,255,255,0.1) !important; }
  .xzy-ft-chip  { background: rgba(255,255,255,0.04) !important; }
}

/* ══════════════════════════
   桌面：单行 44px
   ══════════════════════════ */
.xzy-ft-inner {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
}

/* 左：品牌区 */
.xzy-ft-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.xzy-ft-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.xzy-ft-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: linear-gradient(135deg, var(--ft-blue) 0%, #2576c0 100%);
  color: #fff !important;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.xzy-ft-badge:hover { opacity: 0.85; }
.xzy-ft-user {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: rgba(59,143,217,0.07);
  color: var(--text-muted-dark);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* 分隔线 */
.xzy-ft-divider {
  flex-shrink: 0;
  width: 1px; height: 18px;
  background: rgba(0,0,0,0.08);
  margin: 0 14px;
}

/* 右：信息 chip 区 */
.xzy-ft-right {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}
.xzy-ft-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.xzy-ft-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}
.xzy-ft-lbl::after { content: ':'; margin-left: 1px; }
.xzy-ft-val {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 骨架加载 */
.xzy-loading {
  display: inline-block;
  width: 36px; height: 8px;
  background: linear-gradient(90deg,#e2e8f0 25%,#cbd5e1 50%,#e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: xzy-shimmer 1.2s infinite;
}
@keyframes xzy-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════
   平板 900px
   ══════════════════════════ */
@media (max-width: 900px) {
  .xzy-ft-right  { gap: 10px; }
  .xzy-ft-divider { margin: 0 10px; }
}

/* ══════════════════════════
   手机 ≤ 600px
   两行紧凑布局，第二行横向滑动
   总高约 54px
   ══════════════════════════ */
@media (max-width: 600px) {
  /* body 留白已改为 JS 动态设置，这里不再重复写死 62px */

  .xzy-footer { padding: 0; }

  .xzy-ft-inner {
    flex-direction: column;
    height: auto;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    white-space: normal;
    padding: 0;
  }

  /* ── 行1：品牌 ── */
  .xzy-ft-left {
    padding: 5px 14px 4px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .xzy-ft-brand { font-size: 11.5px; }
  .xzy-ft-badge { font-size: 9.5px; padding: 1px 8px; }
  .xzy-ft-user  { font-size: 9.5px; padding: 1px 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

  /* 桌面分隔线在手机上隐藏 */
  .xzy-ft-divider { display: none; }

  /* ── 行2：横向滑动 chip 条 ── */
  .xzy-ft-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 14px 5px;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .xzy-ft-right::-webkit-scrollbar { display: none; }

  /* chip：横排小胶囊 */
  .xzy-ft-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 14px; /* chip 间距用 padding 替代 gap */
  }
  .xzy-ft-chip:last-child { padding-right: 0; }

  .xzy-ft-lbl {
    font-size: 10px;
    color: var(--text-muted);
  }
  .xzy-ft-lbl::after { content: ':'; margin-left: 1px; }

  .xzy-ft-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: none; /* 手机横滑，不限宽 */
    white-space: nowrap;
  }
}

/* ══════════════════════════
   超小屏 ≤ 380px
   ══════════════════════════ */
@media (max-width: 380px) {
  .xzy-ft-brand { font-size: 11px; }
  .xzy-ft-badge { display: none; } /* 实在太窄就收掉徽章 */
  .xzy-ft-val   { font-size: 10.5px; }
  /* body 留白已改为 JS 动态设置，这里不再重复写死 60px */
}

/* ══════════════════════════
   悬浮客服按钮
   ══════════════════════════ */
.xzy-float-btn {
  position: fixed;
  left: 16px;
  bottom: 58px;
  width: 42px; height: 42px;
  background: var(--ft-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59,143,217,0.38);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.xzy-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(59,143,217,0.48);
}
.xzy-float-btn svg { width: 21px; height: 21px; }

@media (max-width: 600px) {
  .xzy-float-btn { bottom: 68px; width: 38px; height: 38px; }
  .xzy-float-btn svg { width: 19px; height: 19px; }
}

/* ===== cart_declaration.tpl - 购物车声明区样式 ===== */
/* ===== 简约须知卡片 ===== */
.notice-block {
  margin-top: 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(59,143,217,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  overflow: hidden;
}

.notice-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f0f5fb;
  font-size: 13px;
  font-weight: 600;
  color: #8a9bb0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.notice-block-header i {
  font-size: 15px;
  color: var(--primary-blue);
}

.notice-list {
  padding: 6px 0 10px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 24px;
  border-bottom: 1px solid #f7fafd;
  transition: background 0.2s;
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-item:hover {
  background: #f9fcff;
}

.notice-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-blue);
  margin-top: 7px;
  opacity: 0.6;
}
.notice-dot.red   { background: #f44; }
.notice-dot.amber { background: #f90; }

.notice-item-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.75;
  color: #5c6b7a;
}
.notice-item-body strong {
  display: inline-block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}
.notice-item-body a {
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-blue-light);
}
.notice-item-body a:hover {
  border-bottom-style: solid;
}
.notice-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  margin-right: 4px;
  vertical-align: middle;
}
.notice-tag.red   { background: #fff1f0; color: #e53e3e; }
.notice-tag.amber { background: #fff8ec; color: #d97706; }
.notice-tag.blue  { background: var(--primary-bg-light); color: var(--primary-blue); }

@media (max-width: 576px) {
  .notice-block-header { padding: 14px 16px 12px; }
  .notice-item { padding: 11px 16px; gap: 10px; }
  .notice-item-body { font-size: 12.5px; }
}

/* ===== viewcart.tpl - 购物车主样式 3 ===== */
	.checkboxDiv{
    	width: 50%;
		border-radius: 0.25rem;
		height: 40px;
		display: flex;
		align-items: center;
		padding-left:10px;
		border: 1px solid #fff;
	}
	.checkboxSelect{
		border-color:  #007bfc;
	}
	@media screen and (max-width: 755px) {
		.checkboxDiv {
			width: 100% !important;
		}
		.checkDiv{
			display:block !important;
		}
	}
	.payType {
		cursor: pointer;
	}

	.payType.active,
	.payType:hover {
		border-color: #2948df !important;
	}

	.new-user {
		display: none;
	}

	.fas {
		cursor: pointer;
	}

	.number {
		width: 50px;
	}

	.remarksInput::-webkit-input-placeholder{
		color: #CACACA;
	}
	
	/* 新增产品列表优化样式 */
	.cart-item:last-child {
		border-bottom: none !important;
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
	@media (max-width: 767px) {
		.cart-item .d-flex.justify-content-between.align-items-start {
			flex-wrap: wrap;
		}
		.cart-item .d-flex.justify-content-between.align-items-start strong {
			width: 100%;
			margin-bottom: 6px;
		}
		.cart_qty {
			flex-wrap: wrap;
			gap: 5px;
		}
	}

/* ===== viewcart.tpl - 购物车主样式 2 ===== */
	.list-inline-item .icon {
		width: 2rem;
		height: 2rem;
	}

	.social-list-item {
		border: none;
	}

/* ===== viewcart.tpl - 购物车主样式 1 ===== */
@media (min-width: 560px) and (max-width: 1355px) {
	.addfunds-payment img{
		height: 16px;
	}
}
.modal-body{
  -moz-box-sizing: border-box;  
     -webkit-box-sizing: border-box; 
     -o-box-sizing: border-box; 
     -ms-box-sizing: border-box; 
}
.goods_info{
	width:100%;
	padding: 10px 0px;
}
.goods_info span {
	display: block;
}
.goods_info .title{
	text-indent: 10px;
	color: #409eff;
	cursor: pointer;
}
.goods_info .title font {
	float: left;
	color: #666;
	font-family: cursive;
	font-size: 12px;
	margin-top: 1px;
}
.goods_info .title .zk {
	transform: rotate(90deg);
	margin-top: -4px;
}
.goods_info .info{
	width: 100%;
	color: #333;
	text-indent: 27px;
	line-height: 24px;
}
.custom-controlTwo{
    position: relative;
    z-index: 1;
    display: block;
    min-height: 1.21875rem;
    padding-left: 1.5rem;
    -webkit-print-color-adjust: exact;
}
.completeBtn{
	display:none;
}
.deleteBtn{
	display: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;
	}

/* ===== viewcart.tpl - 移动端/桌面端支付区域切换（纯CSS，替代原来的JS UA判断） ===== */
/* 桌面端：默认显示 .mobile-hide（含结账按钮），隐藏 .mobile-bottom-total（上面已 display:none） */
/* 移动端：隐藏桌面结账区域，改为显示底部悬浮结账栏 */
@media (max-width: 768px) {
	.mobile-hide {
		display: none !important;
	}
	.mobile-bottom-total {
		display: block !important;
	}
}
