/* ==========================================================================
   弘真蜀锦 海外独立站 · 设计规范 / Design System
   Hongzhen Silk Shu Brocade — Overseas Site Design Tokens
   v1.0 · 2026-10-18 · 维护：波波格雷(Hermes)
   用法：<link rel="stylesheet" href="/hongzhen/mirror/assets/hz-design.css">
   ★ 改色/改字号只改这里，不要在页面里写死。页面里写死的旧值属于历史遗留。
   ========================================================================== */

:root{
  /* ---------- 品牌色 ---------- */
  --hz-gold:        #8a6d3b;   /* 主强调色：按钮/价格/链接（当前全站主色 132 处） */
  --hz-gold-dark:   #6f5730;   /* 悬停 */
  --hz-gold-light:  #b39a6d;
  --hz-olive:       #ae9a64;   /* 橄榄金（新版视觉规范色，逐步替换 --hz-gold） */
  --hz-cream:       #f9f7f4;   /* 页面底色（米白） */
  --hz-white:       #ffffff;
  --hz-img-bg:      #faf7f2;   /* 图片底色（留白区域，避免白得发亮） */
  --hz-line:        #e8e4dd;   /* 分隔线/描边 */
  --hz-dark:        #333333;   /* 页脚、深色块 */

  /* ---------- 文字色 ---------- */
  --hz-text:        #333333;   /* 正文/标题 */
  --hz-text-2:      #666666;   /* 次要说明 */
  --hz-text-3:      #999999;   /* 占位/禁用 */
  --hz-danger:      #c0392b;   /* 错误提示 */

  /* ---------- 字号（手机优先） ---------- */
  --hz-fs-h1:       22px;
  --hz-fs-h2:       17px;
  --hz-fs-body:     14px;
  --hz-fs-small:    13px;
  --hz-fs-title:    12px;      /* 商品卡标题（手机） */
  --hz-fs-price:    14px;      /* 商品卡价格（手机） */
  --hz-fs-btn:      11px;      /* 商品卡按钮（手机） */

  /* ---------- 间距 / 圆角 ---------- */
  --hz-gap:         10px;      /* 商品卡间距（手机） */
  --hz-gap-lg:      20px;      /* 商品卡间距（桌面） */
  --hz-pad-card:    8px;       /* 卡片内边距（手机） */
  --hz-radius:      8px;       /* 卡片圆角 */
  --hz-radius-btn:  5px;       /* 按钮圆角 */
  --hz-maxw:        1200px;    /* 内容最大宽度 */

  /* ---------- 商品卡比例 ---------- */
  --hz-img-ratio:   75%;       /* 图片框宽高比 = 4:3，与原图 800x600 一致，不裁切 */
}

/* ========================== 基础 ========================== */
*{ margin:0; padding:0; box-sizing:border-box; }
body{
  font-family:"Microsoft YaHei","PingFang SC",-apple-system,"Segoe UI",sans-serif;
  background:var(--hz-cream);
  color:var(--hz-text);
  font-size:var(--hz-fs-body);
  line-height:1.6;
  -webkit-text-size-adjust:100%;
}
a{ color:var(--hz-gold); text-decoration:none; }
img{ max-width:100%; }

/* ========================== 页头 ========================== */
.hz-header{ background:var(--hz-gold); color:#fff; padding:15px 20px; text-align:center; }
.hz-header h1{ font-size:var(--hz-fs-h1); font-weight:normal; }
.hz-header h1.hz-brand-line{ letter-spacing:.18em; text-indent:.18em; }
.hz-header p{ font-size:var(--hz-fs-small); margin-top:5px; }
.hz-header p{ font-size:var(--hz-fs-small); margin-top:5px; }

/* ========================== 导航（响应式，手机自动换行） ========================== */
.hz-nav{
  background:#fff; padding:12px 14px; border-bottom:1px solid var(--hz-line);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:8px 12px; max-width:var(--hz-maxw); margin:0 auto;
}
.hz-nav-links{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; }
.hz-nav-right{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.hz-nav a{ color:var(--hz-text); margin:0; font-size:var(--hz-fs-small); }
.hz-nav a:hover{ color:var(--hz-gold); }
.hz-nav .hz-lang{ color:var(--hz-gold); font-weight:bold; }
.hz-nav a.hz-cart{ position:relative; }
.hz-cart-count{
  display:none; min-width:16px; height:16px; padding:0 4px; margin-left:4px;
  background:var(--hz-gold); color:#fff; border-radius:9px;
  font-size:10px; line-height:16px; text-align:center; vertical-align:1px;
}
/* 手机：导航拆成两行（栏目一行、功能一行右对齐），避免「Contact Us」孤零零折行 */
@media (max-width:600px){
  .hz-nav{ flex-direction:column; align-items:stretch; gap:10px; padding:12px; }
  .hz-nav-links{ justify-content:center; gap:5px 14px; }
  .hz-nav-right{ justify-content:flex-end; margin-left:0; gap:16px; }
}

/* ========================== 面包屑 ========================== */
.hz-breadcrumb{
  max-width:var(--hz-maxw); margin:14px auto 0; padding:0 14px;
  font-size:var(--hz-fs-small); color:var(--hz-text-2);
}

/* ========================== 筛选栏 ========================== */
.hz-filters{
  max-width:var(--hz-maxw); margin:14px auto 18px; padding:12px 14px;
  display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center;
  background:#fff; border-radius:var(--hz-radius); box-shadow:0 1px 6px rgba(0,0,0,.05);
}
.hz-filters label{ font-size:var(--hz-fs-small); color:var(--hz-text-2); font-weight:bold; }
.hz-filters select{
  padding:7px 10px; border:1px solid var(--hz-line); border-radius:6px;
  font-size:var(--hz-fs-small); background:#fff; color:var(--hz-text); max-width:100%;
}

/* ========================== 商品网格 ==========================
   手机：一排 3 个   |   桌面(≥768px)：一排 4 个
   ★ 不要再在卡片上写 inline width/百分比，一律由这里控制
   ============================================================= */
.hz-products{
  max-width:var(--hz-maxw); margin:0 auto; padding:0 var(--hz-pad) 40px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--hz-gap);
}
.hz-products .t4s-product{ width:auto !important; padding:0 !important; }
.hz-products .t4s-product-wrapper{
  border:1px solid var(--hz-line); border-radius:var(--hz-radius); overflow:hidden;
  background:var(--hz-white); height:100%; display:flex; flex-direction:column;
}
.hz-products .t4s-product-inner{ display:flex; flex-direction:column; height:100%; }

/* 图片：4:3 框 + contain，保证整幅图都看得见（不裁切、不拉伸） */
.hz-products .t4s-product-img{
  padding-top:var(--hz-img-ratio) !important; position:relative;
  background:var(--hz-img-bg); display:block;
}
.hz-products .t4s-product-main-img{
  position:absolute; inset:0; width:100% !important; height:100% !important;
  object-fit:contain !important; display:block;
}

/* 信息区 */
.hz-products .t4s-product-info{
  padding:var(--hz-pad-card) var(--hz-pad-card) 10px !important; text-align:center;
  display:flex; flex-direction:column; flex:1;
}
/* 标题：手机 3 行（3 列布局下尽量多显示），超出省略号；价格用 margin-top:auto 贴在卡片底部自动对齐 */
.hz-products .t4s-product-title{
  font-size:var(--hz-fs-title) !important; line-height:1.35 !important;
  margin:0 0 6px !important; height:auto !important; min-height:0 !important;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden !important; font-weight:600;
  overflow-wrap:break-word; word-break:break-word;
}
.hz-products .t4s-product-title a{ color:var(--hz-text) !important; }
/* 价格：不换行、不压缩，千分位格式 $2,500.00 */
.hz-products .t4s-product-price{
  font-size:var(--hz-fs-price) !important; font-weight:700 !important;
  color:var(--hz-gold) !important; white-space:nowrap; margin-top:auto;
  line-height:1.3; letter-spacing:.2px;
}
/* 按钮：满宽 */
.hz-products .t4s-product-info > div:last-child{ margin-top:8px !important; }
.hz-products .t4s-product-info > div:last-child a{
  display:block !important; width:100%; padding:7px 2px !important;
  background:var(--hz-gold) !important; color:#fff !important;
  border-radius:var(--hz-radius-btn); font-size:var(--hz-fs-btn) !important;
  white-space:nowrap;
}
/* 图片右下角快捷加购（省一次跳转） */
.hz-quickadd{
  position:absolute; right:6px; bottom:6px; width:28px; height:28px; padding:0;
  border:0; border-radius:50%; background:rgba(255,255,255,.94);
  box-shadow:0 1px 5px rgba(0,0,0,.18); cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:var(--hz-gold);
  transition:transform .15s, background .15s;
}
.hz-quickadd svg{ width:15px; height:15px; display:block; }
.hz-quickadd:active{ transform:scale(.9); }
.hz-quickadd.added{ background:var(--hz-gold); color:#fff; }

@media (min-width:768px){
  .hz-products{ grid-template-columns:repeat(4,1fr); gap:var(--hz-gap-lg); padding:0 20px 60px; }
  .hz-products .t4s-product-info{ padding:14px 14px 16px !important; }
  .hz-products .t4s-product-title{ font-size:14px !important; }
  .hz-products .t4s-product-price{ font-size:16px !important; }
  .hz-products .t4s-product-info > div:last-child a{ padding:9px 6px !important; font-size:12px !important; }
  .hz-quickadd{ width:34px; height:34px; right:10px; bottom:10px; }
  .hz-quickadd svg{ width:18px; height:18px; }
  .hz-header{ padding:22px 20px; }
  .hz-header h1{ font-size:28px; }
  .hz-nav{ padding:15px 20px; }
  .hz-filters{ margin:20px auto 26px; }
}

/* ========================== 页脚 ========================== */
.hz-footer{
  background:var(--hz-dark); color:#fff; text-align:center;
  padding:26px 20px; margin-top:0; font-size:var(--hz-fs-small);
}
.hz-footer a{ color:#d8cdb6; }

/* ========================== 提示条（替代 alert，不打断操作） ========================== */
.hz-toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px);
  background:var(--hz-gold); color:#fff; padding:10px 18px; border-radius:22px;
  font-size:var(--hz-fs-small); box-shadow:0 4px 16px rgba(0,0,0,.22);
  opacity:0; transition:opacity .3s, transform .3s; z-index:99999;
  max-width:88vw; text-align:center; pointer-events:none;
}
.hz-toast.show{ opacity:1; transform:translate(-50%,0); }

/* ========================== 商品详情页 PDP ==========================
   手机：图文上下堆叠（图在上、字在下 —— 雷雷要求）
   桌面：左右两栏
   ================================================================= */
.hz-pdp{
  max-width:var(--hz-maxw); margin:18px auto 0; padding:0 14px;
  display:grid; grid-template-columns:1fr; gap:18px; align-items:start;
}
.hz-pdp-media{
  background:#fff; border:1px solid var(--hz-line);
  border-radius:var(--hz-radius); overflow:hidden;
}
.hz-pdp-main{ position:relative; padding-top:75%; background:var(--hz-img-bg); }
.hz-pdp-main img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.hz-pdp-thumbs{ display:flex; flex-wrap:wrap; gap:8px; padding:10px; }
.hz-thumb{
  width:62px; height:62px; padding:0; cursor:pointer; overflow:hidden;
  border:1px solid var(--hz-line); border-radius:6px; background:var(--hz-img-bg);
}
.hz-thumb img{ width:100%; height:100%; object-fit:contain; display:block; }
.hz-thumb.on{ border:2px solid var(--hz-gold); }
.hz-pdp-title{ font-size:20px; line-height:1.35; font-weight:600; color:var(--hz-text); }
.hz-pdp-price{ margin-top:10px; font-size:24px; font-weight:700; color:var(--hz-gold); }
.hz-pdp-actions{ display:flex; gap:10px; margin-top:16px; }
.hz-pdp-actions button{
  flex:1; padding:13px 8px; border:0; border-radius:var(--hz-radius-btn);
  font-size:15px; font-weight:600; cursor:pointer; font-family:inherit;
}
.hz-btn-primary{ background:var(--hz-gold); color:#fff; }
.hz-btn-primary:hover{ background:var(--hz-gold-dark); }
.hz-btn-buy{ background:#fff; color:var(--hz-gold); border:1px solid var(--hz-gold) !important; }
.hz-pdp-trust{
  list-style:none; margin:16px 0 0; padding:14px 16px;
  background:#fff; border:1px solid var(--hz-line); border-radius:var(--hz-radius);
  font-size:13px; color:var(--hz-text-2);
}
.hz-pdp-trust li{ position:relative; padding:4px 0 4px 20px; }
.hz-pdp-trust li:before{
  content:""; position:absolute; left:4px; top:11px;
  width:6px; height:6px; border-radius:50%; background:var(--hz-gold-light);
}
.hz-pdp-desc{ margin-top:18px; font-size:14px; line-height:1.75; color:var(--hz-text-2); }
.hz-pdp-desc img{ display:block; max-width:100%; height:auto; margin:12px auto; border-radius:6px; }
.hz-pdp-desc h3{ font-size:15px; color:var(--hz-text); margin:16px 0 6px; font-weight:600; }
.hz-pdp-desc p{ margin:8px 0; }
.hz-pdp-desc ul{ margin:8px 0 8px 18px; }
.hz-pdp-help{
  margin-top:18px; padding:14px 16px; background:var(--hz-img-bg);
  border-radius:var(--hz-radius); font-size:13px; color:var(--hz-text-2);
}
.hz-related{ max-width:var(--hz-maxw); margin:34px auto 0; padding:0 14px 40px; }
.hz-related h2{ font-size:17px; font-weight:600; margin-bottom:14px; }
.hz-related .hz-products{ max-width:none; margin:0; padding:0; }

@media (min-width:768px){
  .hz-pdp{ grid-template-columns:1fr 1fr; gap:34px; padding:0 20px; margin-top:26px; }
  .hz-pdp-title{ font-size:26px; }
  .hz-pdp-price{ font-size:30px; }
  .hz-pdp-actions button{ padding:15px 10px; font-size:15px; }
  .hz-thumb{ width:78px; height:78px; }
  .hz-related{ padding:0 20px 60px; }
  .hz-related h2{ font-size:22px; }
}

/* ========================== 结算页 Checkout ========================== */
.hz-co{ max-width:900px; margin:18px auto 40px; padding:0 14px; }
.hz-co h1{ font-size:22px; font-weight:600; margin:6px 0 18px; }
.hz-co-card{
  background:#fff; border:1px solid var(--hz-line); border-radius:var(--hz-radius);
  padding:18px; margin-bottom:16px;
}
.hz-co-card h2{
  font-size:16px; font-weight:600; margin-bottom:14px;
  padding-bottom:10px; border-bottom:1px solid var(--hz-line);
}
.hz-co-f{ margin-bottom:12px; }
.hz-co-f label{ display:block; font-size:13px; font-weight:600; color:var(--hz-text-2); margin-bottom:5px; }
.hz-co-f input,.hz-co-f select{
  width:100%; padding:10px; border:1px solid var(--hz-line); border-radius:6px;
  font-size:14px; font-family:inherit; background:#fff; color:var(--hz-text);
}
.hz-co-f input:focus,.hz-co-f select:focus{ outline:none; border-color:var(--hz-gold-light); }
.hz-co-row-2{ display:grid; grid-template-columns:1fr; gap:0 14px; }
.hz-co-item{ display:flex; justify-content:space-between; gap:10px; font-size:14px; padding:6px 0; }
.hz-co-item span:last-child{ white-space:nowrap; font-weight:600; }
.hz-co-total{
  border-top:1px solid var(--hz-line); margin-top:10px; padding-top:12px;
  font-size:17px; font-weight:700; color:var(--hz-gold);
}
.hz-co-pay{ display:grid; gap:10px; }
.hz-co-pay label{
  display:flex; align-items:center; gap:10px; padding:13px 14px;
  border:1px solid var(--hz-line); border-radius:6px; cursor:pointer; font-size:14px;
}
.hz-co-pay label:hover{ border-color:var(--hz-gold-light); }
.hz-co-pay input{ margin:0; }
.hz-co-note{
  margin-top:12px; font-size:12.5px; color:var(--hz-text-2); line-height:1.7;
  background:var(--hz-img-bg); padding:11px 13px; border-radius:6px;
}
.hz-co-btn{
  width:100%; padding:15px; background:var(--hz-gold); color:#fff; border:0;
  border-radius:var(--hz-radius-btn); font-size:16px; font-weight:700;
  cursor:pointer; font-family:inherit; margin-top:6px;
}
.hz-co-btn:hover{ background:var(--hz-gold-dark); }
.hz-co-err{ color:var(--hz-danger); font-size:13px; margin-top:8px; display:none; }

@media (min-width:768px){
  .hz-co{ padding:0 20px; margin-top:26px; }
  .hz-co h1{ font-size:28px; }
  .hz-co-card{ padding:24px; }
  .hz-co-row-2{ grid-template-columns:1fr 1fr; }
}
