/* =====================================================================
   Vehuan Mall — wholesale.css（M2 批發端視覺）
   英伦商务风：藏青 navy 顶栏 / 浅色主体 / 金色 accent；移动端自适应。
   主色：navy #16324F，gold #B8860B；其余沿用 base.css 变量。
   ===================================================================== */

:root {
  --wh-navy: #16324F;
  --wh-navy-deep: #0E2438;
  --wh-gold: #B8860B;
  --wh-gold-soft: #FBF3E2;
}

/* ---- Hero（藏青渐变，白字金 CTA） ---- */
.wh-hero .hero-inner { padding: 80px 0 56px; }
.wh-hero { background: linear-gradient(135deg, #0E2438 0%, #16324F 55%, #1F4E73 100%); }

/* Hero 次要按钮：白底描边幽灵按钮 */
.wh-hero .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.wh-hero .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.wh-badge { margin-bottom: 16px; }
.wh-hero-stats {
  display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap;
}
.wh-hero-stats div { display: flex; flex-direction: column; }
.wh-hero-stats strong { font-size: 26px; color: #E8C477; font-weight: 800; }
.wh-hero-stats span { font-size: 13px; color: rgba(255,255,255,.78); }

/* ---- 階梯卡片 ---- */
.wh-tier-card { text-align: center; position: relative; overflow: hidden; background: var(--c-surface); }
.wh-tier-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--wh-navy), var(--wh-gold));
}
.wh-tier-top { border-color: var(--wh-gold) !important; box-shadow: 0 0 0 1px var(--wh-gold), var(--sh-md); }
.wh-tier-amount { font-size: 28px; font-weight: 800; color: var(--c-ink); margin: 8px 0 2px; }
.wh-tier-desc { font-size: 12px; color: var(--c-muted); }
.wh-tier-rate { font-size: 22px; font-weight: 800; color: var(--wh-gold); margin-top: 10px; }
.wh-tier-min { font-size: 13px; color: var(--c-body); border-top: 1px dashed var(--c-line); padding-top: 10px; }

/* ---- 為什麼 ---- */
.wh-why-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  background: var(--wh-gold-soft);
  color: var(--wh-gold);
}

/* ---- 麵包屑 ---- */
.breadcrumb { font-size: 13px; color: var(--c-muted); }
.breadcrumb a { color: var(--wh-navy); }
.breadcrumb span { margin: 0 6px; }

/* ---- 商品詳情 ---- */
.wh-pd-img { border-radius: var(--r-lg); background: var(--c-bg); }
.wh-pd-retail { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; }
.wh-pd-retail s { color: var(--c-muted); font-size: 18px; }
.wh-price-table th, .wh-price-table td { background: transparent; border-bottom-color: var(--c-line); color: var(--c-body); }
.wh-price-table th { background: var(--c-bg); color: var(--c-ink); }
.wh-price-mine { background: var(--wh-gold-soft); }
.wh-price-mine td:first-child { color: var(--wh-gold); font-weight: 700; }
.wh-price { color: var(--wh-gold); }
.wh-desc { color: var(--c-body); line-height: 1.9; word-break: break-word; }

.btn-accent-gold {
  background: linear-gradient(135deg, #B8860B, #D4A017);
  color: #fff; font-weight: 700; border: 0;
}
.btn-accent-gold:hover { filter: brightness(1.06); color: #fff; }

/* ---- 購物車 ---- */
.wh-cart-table th, .wh-cart-table td { background: transparent; border-bottom-color: var(--c-line); color: var(--c-body); }
.wh-cart-table th { background: var(--c-bg); color: var(--c-ink); }
.wh-qty-input { text-align: center; }

/* ---- 狀態頁大圖標 ---- */
.wh-status-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
}
.wh-status-icon.ok { background: rgba(24,154,97,.14); color: var(--c-success); }
.wh-status-icon.warn { background: rgba(232,146,44,.16); color: var(--c-warn); }
.wh-status-icon.err { background: rgba(224,75,75,.14); color: var(--c-danger); }

/* ---- FAQ ---- */
.wh-faq-item { border-bottom: 1px solid var(--c-line); padding: 12px 4px; }
.wh-faq-item:last-child { border-bottom: 0; }
.wh-faq-item summary { cursor: pointer; color: var(--c-ink); font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.wh-faq-item summary::-webkit-details-marker { display: none; }
.wh-faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 0; color: var(--wh-gold); font-size: 18px;
}
.wh-faq-item[open] summary::after { content: '−'; }
.wh-faq-answer { padding: 10px 0 4px; color: var(--c-body); line-height: 1.8; }

/* ---- 物流時間線 ---- */
.wh-timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.wh-timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--c-line); margin-left: 6px; }
.wh-timeline li:last-child { padding-bottom: 0; }
.wh-t-dot {
  position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--wh-gold); box-shadow: 0 0 0 3px rgba(184,134,11,.18);
}

/* ---- 響應式 ---- */
@media (max-width: 991px) {
  .wh-hero .hero-inner { padding: 56px 0 40px; }
  .wh-hero-stats { gap: 24px; }
  /* 批发顶栏：窄屏允许换行，避免导航被压成一字宽竖排堆叠 */
  .wh-topbar .flex-between { flex-wrap: wrap; gap: 10px 16px; }
  .wh-topbar nav.flex { flex-wrap: wrap; justify-content: center; gap: 10px 16px !important; width: 100%; }
  .wh-topbar nav.flex a { white-space: nowrap; }
}
@media (max-width: 575px) {
  .wh-hero-stats strong { font-size: 20px; }
  .wh-tier-amount { font-size: 22px; }
  .wh-cart-table { font-size: 13px; }
  .wh-cart-table th, .wh-cart-table td { padding: 8px 6px; }
  .wh-topbar nav.flex { gap: 8px 14px !important; font-size: 13px !important; }
}

/* ===== 批發頂欄（藏青商務） ===== */
.wh-topbar {
  background: var(--wh-navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wh-brand { color: #fff; font-weight: 700; }
.wh-topbar nav.flex a { color: rgba(255,255,255,.88); }
.wh-topbar nav.flex a:hover { color: #fff; }
.wh-topbar-link { color: rgba(255,255,255,.88); }
.wh-topbar .dropdown-menu { background: #fff; border: 1px solid var(--c-line); }
.wh-topbar .dropdown-menu a { color: var(--c-ink); }

/* ===== 批发商品详情（镜像零售展示）===== */
.wh-main-img { border-radius: var(--r-lg); background: var(--c-bg); box-shadow: var(--sh-sm); }
.thumb-strip { padding-bottom: 4px; }
.thumb-ratio {
  width: 64px; flex: 0 0 64px; cursor: pointer; border: 2px solid transparent;
  border-radius: var(--r-sm); background: var(--c-bg);
}
.thumb-ratio.active { border-color: var(--wh-navy); }
.thumb-ratio img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 收藏按钮态 */
.fav-btn { gap: 6px; }
.fav-btn.faved { color: var(--c-danger); border-color: var(--c-danger); }

/* 商品规格表 */
.product-spec-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px;background:#fff}
.product-spec-table th,.product-spec-table td{border:1px solid #eee;padding:9px 11px;text-align:left;vertical-align:top}
.product-spec-table th{width:34%;background:#f8f9fa;color:#333;font-weight:600;white-space:nowrap}
.product-spec-table td{color:#555}

/* 商品描述 */
.product-desc { color: var(--c-body); line-height: 1.8; font-size: 15px; }
.product-desc img { max-width: 100%; height: auto; border-radius: var(--r-sm); }

/* 使用场景横幅轮播 */
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: block;
}
.banner-slide.active { opacity: 1; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: rgba(255,255,255,.9); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; box-shadow: var(--sh-sm); transition: background .2s;
}
.banner-nav:hover { background: #fff; }
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.banner-dots span {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.65); cursor: pointer; transition: all .2s;
}
.banner-dots span.on { background: #fff; width: 20px; }
.usage-carousel{position:relative;aspect-ratio:21/9;border-radius:var(--r-md);overflow:hidden;background:var(--c-line);}
.usage-carousel .banner-slide img{width:100%;height:100%;object-fit:cover;}
@media (max-width:767px){.usage-carousel{aspect-ratio:4/3;}}

/* ===== 批發詢單彈窗（商務白底） ===== */
.wh-modal{
  position: fixed; inset: 0; z-index: 1300;
  display: none; align-items: flex-start; justify-content: center;
  padding: 56px 16px 40px; overflow-y: auto;
  background: rgba(14,36,56,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wh-modal-card{
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 20px; padding: 26px 26px 30px;
  width: 100%; max-width: 540px; max-height: calc(100vh - 90px); overflow-y: auto;
  position: relative; color: var(--c-ink);
  box-shadow: 0 30px 80px rgba(14,36,56,.28);
  animation: wh-modal-in .26s cubic-bezier(.2,.8,.3,1);
}
.wh-modal-card::before{
  content:""; position:absolute; top:0; left:12%; right:12%; height:3px;
  background: linear-gradient(90deg, transparent, var(--wh-gold), transparent);
  opacity:.85;
}
@keyframes wh-modal-in{ from{ opacity:0; transform: translateY(16px) scale(.97);} to{ opacity:1; transform:none;} }
.wh-modal-close{
  position: absolute; top: 12px; right: 14px; z-index: 3;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: 50%; width: 32px; height: 32px; display:flex; align-items:center; justify-content:center;
  color: var(--c-body); font-size: 20px; line-height: 1; cursor: pointer; transition: all .2s;
}
.wh-modal-close:hover{ color:var(--wh-navy); background:var(--wh-gold-soft); border-color:var(--wh-gold); }
.wh-modal-head{ margin-bottom: 14px; }
.wh-modal-eyebrow{
  display:block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--wh-gold); margin-bottom: 4px; font-weight: 600;
}
.wh-modal-title{ margin:0 0 6px; font-size: 21px; color:var(--c-ink); font-weight: 700; }
.wh-modal-sub{ margin:0; font-size: 13px; line-height: 1.6; color:var(--c-body); }
.wh-modal-langrow{ display:flex; justify-content:flex-end; gap:8px; align-items:center; margin-bottom: 12px; }
.wh-modal-langlabel{ margin:0; font-size: 12px; color:var(--c-muted); }

/* 弹窗内表单字段 */
.wh-modal-card .form-group{ margin-bottom: 14px; }
.wh-modal-card .form-label{ color:var(--c-ink); font-size: 13px; font-weight: 600; margin-bottom: 6px; display:inline-block; }
.wh-modal-card .form-control{
  background: #fff; border: 1px solid var(--c-line);
  color: var(--c-ink); border-radius: 10px; padding: 11px 14px; font-size: 14px;
  width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.wh-modal-card .form-control::placeholder{ color:var(--c-muted); }
.wh-modal-card .form-control:focus{
  outline:none; border-color: var(--wh-gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(184,134,11,.15);
}
.wh-modal-card select.form-control option{ background:#fff; color:var(--c-ink); }
.wh-modal-card #inquiry-err{ color:var(--c-danger); }
body.wh-modal-open{ overflow: hidden; }

/* ===== 支付方式可勾选 + 品牌 logo ===== */
.pay-options{ display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pay-opt{
  position: relative; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: 11px; padding: 12px 14px; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pay-opt:hover{ border-color: var(--wh-gold); }
.pay-opt input{ position: absolute; opacity: 0; }
.pay-logo{
  width: 46px; height: 28px; border-radius: 5px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex: none; font-family: Arial,Helvetica,sans-serif;
}
.pay-logo-visa{ color: #1A1F71; font-style: italic; letter-spacing: -1px; font-size: 16px; }
.pay-logo-pp{ color: #0070ba; font-style: italic; font-size: 14px; letter-spacing: -.5px; }
.pay-logo-pp b{ color: #003087; }
.pay-logo-tt{ background: #eef7f1; color: #14633a; font-size: 13px; letter-spacing: -.3px; }
.pay-name{ color: var(--c-ink); font-weight: 600; font-size: 14px; }
.pay-check{
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-line); position: relative; flex: none;
}
.pay-opt.on{ border-color: var(--wh-gold); background: var(--wh-gold-soft); box-shadow: 0 0 0 2px rgba(184,134,11,.16); }
.pay-opt.on .pay-check{ border-color: var(--wh-gold); background: var(--wh-gold); }
.pay-opt.on .pay-check::after{
  content: ""; position: absolute; left: 6px; top: 2px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pay-info{ display: flex; flex-direction: column; gap: 9px; }
.pay-row{ display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: 9px; padding: 10px 13px; font-size: 13px; }
.pay-row span{ color: var(--c-muted); }
.pay-row b{ color: var(--c-ink); font-weight: 600; text-align: right; word-break: break-all; }
.pay-tip{ font-size: 12.5px; color: var(--c-muted); line-height: 1.6; margin-top: 10px; }

/* ================= 我的詢單中心 ================= */
.inq-list{ display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.inq-item{ padding: 18px; }
.inq-head{ display: flex; align-items: center; gap: 14px; }
.inq-thumb{ width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: var(--c-bg); }
.inq-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.inq-noimg{ display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--c-muted); font-weight: 700; }
.inq-main{ flex: 1; min-width: 0; }
.inq-title{ font-size: 15px; font-weight: 600; }
.inq-title a{ color: var(--c-ink); text-decoration: none; }
.inq-title a:hover{ color: var(--wh-gold); }
.inq-meta{ font-size: 12.5px; color: var(--c-muted); margin-top: 4px; }
.inq-status{ flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.inq-status-pending{ background: var(--wh-gold-soft); color: var(--wh-gold); border: 1px solid rgba(184,134,11,.35); }
.inq-status-replied{ background: rgba(24,154,97,.14); color: var(--c-success); border: 1px solid rgba(24,154,97,.35); }
.inq-status-closed{ background: var(--c-bg); color: var(--c-muted); border: 1px solid var(--c-line); }
.inq-msg{ margin-top: 12px; font-size: 13px; color: var(--c-body); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; padding: 10px 12px; }
.inq-reply{ margin-top: 12px; }
.inq-reply-title{ font-size: 12px; color: var(--c-muted); margin-bottom: 4px; }
.inq-reply-body{ font-size: 13.5px; color: var(--c-body); background: rgba(24,154,97,.08); border: 1px solid rgba(24,154,97,.22); border-radius: 9px; padding: 10px 12px; line-height: 1.6; }
.inq-reply-time{ color: var(--c-success); font-size: 12px; }
.inq-reply-empty{ font-size: 13px; color: var(--c-muted); }

/* ================= 颜色变体 + 采购数量 ================= */
.wh-color-chip{ display:inline-flex; flex-direction:column; align-items:center; gap:5px; min-width:72px; padding:6px 8px; background:#fff; border:1px solid var(--c-line); border-radius:10px; cursor:pointer; color:var(--c-body); transition:border-color .15s, background .15s; }
.wh-color-chip:hover{ border-color: var(--wh-gold); }
.wh-color-chip.active{ border-color: var(--wh-gold); background: var(--wh-gold-soft); box-shadow:0 0 0 2px rgba(184,134,11,.2); }
.wh-color-thumb{ width:52px; height:52px; border-radius:8px; overflow:hidden; border:1px solid var(--c-line); }
.wh-color-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.wh-color-label{ font-size:12px; line-height:1.2; }
.wh-qty-input{ width:96px; padding:7px 10px; border-radius:8px; border:1px solid var(--c-line); background:#fff; color:var(--c-ink); font-size:14px; }
.wh-qty-input:focus{ outline:none; border-color: var(--wh-gold); box-shadow:0 0 0 2px rgba(184,134,11,.18); }

@media (max-width:767px){
  .wh-modal{ padding: 26px 12px 24px; align-items: stretch; }
  .wh-modal-card{ max-width: 100%; }
}

/* ================= 買家評價（批發詳情） ================= */
.stars { color: var(--wh-gold); letter-spacing: 2px; }
.review-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 12px 14px; background: var(--c-bg); border-radius: 10px; margin-bottom: 6px;
}
.review-score { text-align: center; min-width: 96px; }
.review-score-num { font-size: 30px; font-weight: 800; color: var(--wh-navy); line-height: 1.1; }
.review-score-stars { display: inline-flex; gap: 2px; margin-top: 2px; }
.review-score-stars span { color: var(--c-line); display: inline-flex; }
.review-score-stars span.on { color: var(--wh-gold); }
.review-score-cnt { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.review-dist { flex: 1 1 220px; min-width: 200px; }
.review-dist-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-body); line-height: 2; }
.review-dist-label { width: 36px; flex: none; }
.review-dist-bar { flex: 1; height: 7px; background: var(--c-line); border-radius: 99px; overflow: hidden; display: block; }
.review-dist-bar > span { display: block; height: 100%; background: var(--wh-gold); }
.review-dist-cnt { width: 26px; text-align: right; flex: none; }
.review-list .review-item { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.review-list .review-item:last-child { border-bottom: none; }
@media (max-width: 575px){
  .review-summary { gap: 12px; }
}

/* =====================================================================
   展示層重構（#229）：首頁橫幅 / 18 宮格 / 內容入口 / 分類條 / 海報 / 畫廊視頻
   ===================================================================== */

/* ---- 通用分區 ---- */
.wh-section { margin: 48px 0; }
.wh-section-title { font-size: 24px; color: var(--wh-navy); font-weight: 700; letter-spacing: .2px; }
.wh-more-link { color: var(--wh-gold); font-weight: 600; font-size: 14px; white-space: nowrap; }
.wh-more-link:hover { color: var(--wh-navy); }

/* ---- 首頁大橫幅（更高、更大氣的英倫排版） ---- */
.wh-hero-lg .hero-inner { padding: 96px 0 72px; }
.wh-hero-title { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.18; font-weight: 800; color: #fff; margin: 0 0 16px; }
.wh-hero-sub { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; color: rgba(255,255,255,.86); max-width: 640px; margin: 0 0 26px; }

/* ---- 18 宮格 ---- */
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.wh-grid-18 { gap: 18px; }

/* ---- 內容入口卡（博客 / 畫廊 / 視頻） ---- */
.ratio-16x16 { aspect-ratio: 16 / 16; }
.wh-entry-card {
  display: flex; flex-direction: column; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden;
  text-decoration: none; transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.wh-entry-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--wh-gold); }
.wh-entry-thumb { position: relative; background: var(--wh-gold-soft); }
.wh-entry-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--wh-gold); background: linear-gradient(135deg, var(--wh-gold-soft), #fff);
}
.wh-entry-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.wh-entry-body h3 { font-size: 17px; color: var(--c-ink); font-weight: 700; margin: 0; }
.wh-entry-body p { font-size: 13.5px; line-height: 1.6; margin: 0; }
.wh-entry-title { font-size: 16px; color: var(--c-ink); font-weight: 700; margin: 0 0 6px; }
.wh-entry-desc { font-size: 13px; line-height: 1.6; }

/* ---- 列表頁大海報 ---- */
.wh-poster {
  position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 16px 0 24px;
  background: linear-gradient(135deg, var(--wh-navy-deep) 0%, var(--wh-navy) 55%, #1F4E73 100%);
}
.wh-poster-inner { padding: 44px 32px; color: #fff; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wh-poster-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0; }
.wh-poster-sub { font-size: 15px; color: rgba(255,255,255,.85); margin: 0; max-width: 620px; line-height: 1.7; }

/* ---- 橫向分類條（平鋪，不下拉） ---- */
.wh-cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.wh-cat-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff;
  color: var(--wh-navy); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .18s; white-space: nowrap;
}
.wh-cat-chip:hover { border-color: var(--wh-gold); color: var(--wh-gold); }
.wh-cat-chip.active { background: var(--wh-navy); border-color: var(--wh-navy); color: #fff; }

/* ---- 畫廊卡 ---- */
.wh-gallery-card { padding: 0; }
.wh-gallery-card .body { padding: 14px 16px 18px; }
.wh-gallery-count {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(14,36,56,.78); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}

/* ---- 視頻卡 ---- */
.wh-video-card { padding: 0; }
.wh-video-card .body { padding: 14px 16px 18px; }
.wh-video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(14,36,56,.32); transition: background .18s;
}
.wh-video-play::after {
  content: ''; position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(184,134,11,.92); display: flex; align-items: center; justify-content: center;
}
.wh-video-play svg { position: relative; z-index: 1; }
.wh-video-card a:hover .wh-video-play { background: rgba(14,36,56,.48); }

/* ---- 響應式 ---- */
@media (max-width: 991px) {
  .grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .wh-hero-lg .hero-inner { padding: 64px 0 48px; }
}
@media (max-width: 575px) {
  .grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .wh-section { margin: 36px 0; }
  .wh-poster-inner { padding: 30px 20px; }
  .wh-cat-bar { gap: 8px; }
  .wh-cat-chip { padding: 7px 14px; font-size: 13px; }
}

/* =====================================================================
   首頁視覺升級（#239）：Hero 左右分欄 / 統計卡片 / 保障條 / 步驟帶
   ===================================================================== */

/* ---- Hero 背景裝飾：細網格 + 金色光暈 ---- */
.wh-hero { position: relative; overflow: hidden; }
.wh-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 72%);
}
.wh-hero::after {
  content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,119,.18), transparent 65%);
  top: -140px; right: -90px;
}
.wh-hero .container { position: relative; z-index: 1; }

/* ---- Hero 兩欄分佈 ---- */
.wh-hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 48px; align-items: center;
}
.wh-hero-left { min-width: 0; }
.wh-hero-visual { position: relative; }

/* ---- 統計卡片化（覆蓋舊裸排） ---- */
.wh-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 34px; max-width: 580px; flex-wrap: nowrap;
}
.wh-hero-stats .wh-stat-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 16px 18px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wh-stat-card strong { font-size: 26px; color: #E8C477; font-weight: 800; display: block; }
.wh-stat-card span { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.4; }

/* ---- 右側商品視覺拼貼 ---- */
.wh-visual-stage { position: relative; min-height: 380px; }
.wh-hero-main-card {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 60px rgba(6,20,38,.45);
  aspect-ratio: 1 / 1; max-width: 360px; margin-left: auto;
}
.wh-hero-main-card img { width: 100%; height: 100%; object-fit: cover; }
.wh-hero-ph { background: linear-gradient(135deg, #1F4E73, #0E2438); }
.wh-hero-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(184,134,11,.94); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .3px;
}
.wh-hero-mini-card {
  position: absolute; width: 150px; height: 150px; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 36px rgba(6,20,38,.4);
}
.wh-hero-mini-card img { width: 100%; height: 100%; object-fit: cover; }
.wh-hero-mini-card.ma { right: 8px; bottom: -26px; }
.wh-hero-mini-card.mb { left: 0; bottom: -12px; }

/* ---- 浮動信任徽章 ---- */
.wh-float-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 9px 14px; color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: 0 12px 28px rgba(6,20,38,.3);
}
.wh-float-badge .fb-icon { color: #E8C477; display: flex; }
.wh-float-badge.fb-a { top: 4%; left: 0; }
.wh-float-badge.fb-b { bottom: 20%; right: 0; }

/* ---- 平台保障條（壓在 Hero 下沿） ---- */
.wh-trust-band { margin: -34px 0 0; position: relative; z-index: 2; }
.wh-trust-grid { gap: 18px; }
.wh-trust-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 24px 22px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.wh-trust-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--wh-gold); }
.wh-trust-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--wh-navy), var(--wh-gold));
}
.wh-trust-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wh-gold-soft); color: var(--wh-gold);
}
.wh-trust-card h3 { font-size: 16px; color: var(--c-ink); font-weight: 700; margin: 12px 0 6px; }
.wh-trust-card p { font-size: 13px; line-height: 1.6; margin: 0; }

/* ---- 詢單三步流程卡 ---- */
.wh-step-card { position: relative; padding-top: 28px; }
.wh-step-no {
  position: absolute; top: 14px; right: 18px;
  font-size: 32px; font-weight: 800; color: rgba(184,134,11,.14); line-height: 1;
}

/* ---- 響應式 ---- */
@media (max-width: 991px) {
  .wh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wh-visual-stage { min-height: 320px; max-width: 380px; margin: 0 auto; width: 100%; }
  .wh-hero-main-card { margin: 0 auto; }
  .wh-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .wh-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .wh-stat-card strong { font-size: 20px; }
  .wh-stat-card span { font-size: 11px; }
  .wh-visual-stage { min-height: 260px; }
  .wh-hero-mini-card { width: 110px; height: 110px; }
  .wh-trust-grid { grid-template-columns: 1fr; }
  .wh-float-badge { font-size: 12px; padding: 8px 12px; }
}
