/* =====================================================================
   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: 4 / 3; }
.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:
    radial-gradient(circle at 28% 18%, rgba(184,134,11,.12), transparent 55%),
    radial-gradient(circle at 82% 88%, rgba(22,50,79,.07), transparent 55%),
    linear-gradient(135deg, var(--wh-gold-soft), #fff 70%);
}
.wh-entry-placeholder svg { width: 34px; height: 34px; opacity: .8; }
.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 背景：純 CSS 深藏青夜空漸變 + 星點，橫向鋪滿整屏；關閉 base.css 的科技方格網格 ---- */
.wh-hero {
  position: relative; overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -32px; /* 抵消 main 頂部 padding，背景貼緊頂欄 */
}
/* ::before 承載靜態加密星野（覆蓋 base.css 網格，只放星點不放方格線） */
.wh-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  -webkit-mask-image: none; mask-image: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.66) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.56) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 34% 9%, rgba(255,255,255,.74) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 50% 12%, rgba(232,196,119,.66) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 66% 9%, rgba(255,255,255,.72) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.62) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 92% 10%, rgba(232,196,119,.66) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 14% 24%, rgba(255,255,255,.46) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 28% 26%, rgba(255,255,255,.58) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 44% 22%, rgba(255,255,255,.64) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 60% 26%, rgba(232,196,119,.6) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 74% 22%, rgba(255,255,255,.64) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 88% 25%, rgba(255,255,255,.56) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 6% 38%, rgba(255,255,255,.44) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.48) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 38% 36%, rgba(232,196,119,.54) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 54% 40%, rgba(255,255,255,.52) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 70% 37%, rgba(255,255,255,.58) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 86% 40%, rgba(232,196,119,.56) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 94% 36%, rgba(255,255,255,.54) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 12% 52%, rgba(255,255,255,.4) 0 1.4px, transparent 2px),
    radial-gradient(circle at 30% 54%, rgba(255,255,255,.44) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 46% 50%, rgba(255,255,255,.46) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 62% 54%, rgba(232,196,119,.46) 0 1.4px, transparent 2px),
    radial-gradient(circle at 78% 51%, rgba(255,255,255,.48) 0 1.5px, transparent 2.2px),
    radial-gradient(circle at 90% 54%, rgba(255,255,255,.44) 0 1.4px, transparent 2px),
    radial-gradient(circle at 18% 64%, rgba(255,255,255,.36) 0 1.4px, transparent 2px),
    radial-gradient(circle at 36% 62%, rgba(232,196,119,.4) 0 1.4px, transparent 2px),
    radial-gradient(circle at 58% 65%, rgba(255,255,255,.38) 0 1.4px, transparent 2px),
    radial-gradient(circle at 76% 62%, rgba(255,255,255,.4) 0 1.4px, transparent 2px),
    radial-gradient(circle at 4% 28%, rgba(255,255,255,.22) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 26% 48%, rgba(255,255,255,.22) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 42% 32%, rgba(255,255,255,.2) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 58% 18%, rgba(255,255,255,.22) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 72% 52%, rgba(255,255,255,.2) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 84% 60%, rgba(255,255,255,.22) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 96% 50%, rgba(255,255,255,.2) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 34% 70%, rgba(255,255,255,.2) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 66% 72%, rgba(255,255,255,.2) 0 .8px, transparent 1.4px);
}
body.wholesale-body { overflow-x: hidden; }
.wh-hero .hero-inner { padding-left: 20px; padding-right: 20px; }
@media (max-width: 575px) { .wh-hero .hero-inner { padding-left: 14px; padding-right: 14px; } }
.wh-hero::after {
  content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,119,.12), transparent 65%);
  top: -140px; right: -90px; pointer-events: none;
}
.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; align-items: flex-start; gap: 12px;
  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-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,196,119,.16); color: #E8C477;
}
.wh-stat-body { display: flex; flex-direction: column; min-width: 0; }
.wh-stat-card strong { font-size: 24px; color: #E8C477; font-weight: 800; line-height: 1.1; }
.wh-stat-card span { font-size: 13px; color: #fff; font-weight: 600; margin-top: 2px; }
.wh-stat-card em { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.62); margin-top: 3px; 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: 330px; 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: 140px; height: 140px; 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: 32%; bottom: -22px; }
.wh-hero-mini-card.mb { right: 0; bottom: 6px; }

/* ---- 平台保障條（壓在 Hero 下沿） ---- */
.wh-trust-band { margin: 36px 0 0; position: relative; z-index: 1; }
.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: 1fr; gap: 10px; }
  .wh-stat-card strong { font-size: 20px; }
  .wh-stat-card span { font-size: 12px; }
  .wh-visual-stage { min-height: 260px; }
  .wh-hero-mini-card { width: 110px; height: 110px; }
  .wh-trust-grid { grid-template-columns: 1fr; }
  .wh-trust-foot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   參考圖落地（#240）：導航 CTA / 雙色標題 / 圓章 / 保障點線 / 信任橫帶
   ===================================================================== */

/* ---- 導航金色膠囊 CTA ---- */
.wh-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #B8860B, #D4A017);
  color: #fff !important; font-weight: 700; font-size: 13.5px;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(184,134,11,.32);
}
.wh-nav-cta:hover { filter: brightness(1.07); }

/* ---- Hero 雙色標題（兩行：白 / 金） ---- */
.wh-title-lead { color: #fff; display: block; }
.wh-title-accent {
  display: block; font-size: 1.12em; line-height: 1.15;
  background: linear-gradient(120deg, #E8C477, #D4A017);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- 右側圓形金徽章 ---- */
.wh-hero-roundel {
  position: absolute; top: -16px; right: 22%;
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, #B8860B, #D4A017);
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 30px rgba(6,20,38,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; z-index: 3;
}
.wh-hero-roundel img { width: 34px; height: 34px; }
.wh-hero-roundel span { color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px; }

/* ---- 保障條：金色點線 + 居中圖標（稿面） ---- */
.wh-trust-card { text-align: center; padding-top: 30px; }
.wh-trust-card::before { display: none; }
.wh-trust-card::after {
  content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--wh-gold), transparent);
}
.wh-trust-card .wh-trust-icon { margin: 0 auto; }
.wh-trust-card h3 { margin-top: 14px; }

/* ---- 精選商品區標題 ---- */
.wh-products-head { align-items: flex-end; gap: 16px; }
.wh-products-head-left { display: flex; flex-direction: column; gap: 6px; }
.wh-title-underline { position: relative; padding-bottom: 10px; }
.wh-title-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px;
  border-radius: 99px; background: linear-gradient(90deg, var(--wh-gold), #D4A017);
}
.wh-products-sub { margin: 0; font-size: 13.5px; }
.btn-outline-gold {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--wh-gold); color: var(--wh-gold); background: #fff;
  font-weight: 600; font-size: 13.5px; padding: 9px 18px; border-radius: 999px;
  text-decoration: none; transition: all .18s;
}
.btn-outline-gold:hover { background: var(--wh-gold-soft); color: var(--wh-navy); border-color: var(--wh-navy); }

/* ---- 底部藏青信任橫帶 ---- */
.wh-trust-foot {
  margin: 48px 0 0; padding: 34px 0;
  background: linear-gradient(135deg, var(--wh-navy-deep), var(--wh-navy) 60%, #1F4E73);
}
.wh-trust-foot-grid { gap: 24px; }
.wh-trust-foot-item { display: flex; align-items: center; gap: 14px; }
.wh-trust-foot-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,196,119,.16); color: #E8C477;
}
.wh-trust-foot-text h3 { font-size: 15px; color: #fff; font-weight: 700; margin: 0 0 3px; }
.wh-trust-foot-text p { font-size: 12.5px; color: rgba(255,255,255,.7); margin: 0; line-height: 1.5; }

@media (max-width: 991px) {
  .wh-products-head { flex-direction: column; align-items: flex-start; }
  .wh-trust-foot-grid { grid-template-columns: repeat(2, 1fr); }
  .wh-hero-roundel { right: 8%; width: 78px; height: 78px; }
  .wh-hero-roundel img { width: 28px; height: 28px; }
}

/* =====================================================================
   #244 概念稿 1:1：品牌鎖up / 導航當前態 / 拍立得 / 精選卡 / 背景氛圍
   ===================================================================== */

/* ---- 品牌鎖up ---- */
.wh-brand-lockup { text-decoration: none; }
.wh-brand-logo { width: 36px; height: 36px; }
.wh-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.wh-brand-name { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.wh-brand-sub { color: #E8C477; font-size: 11px; letter-spacing: 3px; }

/* ---- 導航當前態下劃線 ---- */
.wh-topbar nav.flex a.wh-nav-active { color: #fff; font-weight: 700; position: relative; }
.wh-topbar nav.flex a.wh-nav-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--wh-gold); border-radius: 99px;
}

/* ---- Hero 背景氛圍：默認兜底為夜空地球弧面大圖（可被後台 banners(home_top) 內聯覆蓋） ---- */
.wh-hero {
  background:
    linear-gradient(120deg, rgba(8,19,36,.74) 0%, rgba(13,33,54,.52) 48%, rgba(19,44,68,.32) 100%),
    url('../img/hero_bg.jpg?v=4') center center / cover no-repeat,
    linear-gradient(120deg, #0A182C 0%, #10283F 48%, #16344F 100%);
}
.wh-hero::after {
  inset: 0; width: 100%; height: 100%; top: auto; right: auto; border-radius: 0;
  background:
    radial-gradient(circle at 84% 16%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 22%, rgba(232,196,119,.88) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 70% 8%, rgba(255,255,255,.92) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.7) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 92% 26%, rgba(232,196,119,.82) 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 61% 40%, rgba(255,255,255,.78) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.62) 0 1.3px, transparent 2px),
    radial-gradient(circle at 44% 46%, rgba(232,196,119,.68) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 76% 38%, rgba(255,255,255,.7) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 80% 0%, rgba(232,196,119,.16), transparent 62%);
  animation: whStarTwinkle 4.8s ease-in-out infinite;
}
@keyframes whStarTwinkle {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-hero::after { animation: none; opacity: .8; }
}

/* ---- 拍立得三卡 ---- */
.wh-visual-stage { min-height: 460px; }
.wh-polaroid {
  position: absolute; display: block; background: #fff; border-radius: 14px;
  padding: 12px 12px 16px; box-shadow: 0 30px 60px rgba(6,20,38,.45);
  text-decoration: none; overflow: hidden;
}
.wh-polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.wh-polaroid.main {
  top: 0; right: 10%; width: 50%; aspect-ratio: 1/1.04; transform: rotate(2.5deg); z-index: 1;
}
.wh-polaroid.mini { width: 28%; aspect-ratio: 1/1.02; }
.wh-polaroid.ma { left: 0; bottom: 0; transform: rotate(-7deg); z-index: 2; }
.wh-polaroid.mb { right: 0; bottom: 0; transform: rotate(6deg); z-index: 2; }
.wh-polaroid-caption {
  position: absolute; z-index: 2; font-size: 12.5px; font-weight: 700; color: var(--wh-navy);
  line-height: 1.35; letter-spacing: .2px;
}
.wh-polaroid-caption.tl { top: 22px; left: 22px; }
.wh-polaroid-caption.tr { top: 22px; right: 22px; text-align: right; }
.wh-polaroid-sign {
  position: absolute; bottom: 16px; right: 18px; z-index: 2;
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: 15px; color: rgba(18,35,59,.7);
}
.wh-polaroid.ma .wh-polaroid-sign, .wh-polaroid.mb .wh-polaroid-sign { bottom: 14px; font-size: 12px; }

/* ---- 精選商品卡（稿面） ---- */
.wh-feature-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none;
  box-shadow: var(--sh-sm); transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.wh-feature-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--wh-gold); }
.wh-feature-thumb { aspect-ratio: 1/1; background: var(--c-bg); overflow: hidden; }
.wh-feature-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wh-feature-card:hover .wh-feature-thumb img { transform: scale(1.04); }
.wh-feature-body { padding: 16px 18px 18px; position: relative; }
.wh-feature-name { font-size: 15.5px; color: var(--c-ink); font-weight: 700; margin: 0 44px 6px 0; line-height: 1.35; }
.wh-feature-desc { font-size: 13px; color: var(--c-body); line-height: 1.55; margin: 0; }
.wh-feature-inq {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #B8860B, #D4A017); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(184,134,11,.32);
}

/* ---- 響應式 ---- */
@media (max-width: 991px) {
  .wh-polaroid.main { width: 60%; }
}
@media (max-width: 575px) {
  .wh-polaroid { padding: 8px 8px 12px; }
  .wh-polaroid-caption { font-size: 10.5px; }
  .wh-feature-name { font-size: 14px; }
}

/* ---- 批发价防截图软防护：禁选中 + 斜向半透明水印（不阻止系统截屏/外部拍照） ---- */
.wholesale-price,
[data-price-protect] {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.wholesale-price::after,
[data-price-protect]::after {
  content: "Vehuan Wholesale";
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 24px 48px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(22, 50, 79, 0.07);
  transform: rotate(-18deg);
  overflow: hidden;
  white-space: nowrap;
}
