/* =====================================================================
   Vehuan Mall — wholesale.css（M2 批發端視覺）
   深空科技感：--c-night 底 + 漸變 hero + 金 accent；移動端自適應。
   ===================================================================== */

/* ---- Hero ---- */
.wh-hero .hero-inner { padding: 80px 0 56px; }

/* ---- Hero 次要按钮：深色底透明描边幽灵按钮（修复白底白字） ---- */
.wh-hero .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  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: var(--c-accent); font-weight: 800; }
.wh-hero-stats span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---- 階梯卡片 ---- */
.wh-tier-card { text-align: center; position: relative; overflow: hidden; }
.wh-tier-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.wh-tier-top { border-color: var(--c-accent) !important; box-shadow: 0 0 0 1px var(--c-accent), var(--sh-md); }
.wh-tier-amount { font-size: 28px; font-weight: 800; color: #fff; margin: 8px 0 2px; }
.wh-tier-desc { font-size: 12px; color: #8fa3bd; }
.wh-tier-rate { font-size: 22px; font-weight: 800; color: var(--c-accent); margin-top: 10px; }
.wh-tier-min { font-size: 13px; color: #cdd7e5; border-top: 1px dashed rgba(255,255,255,.12); 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: linear-gradient(135deg, rgba(14,107,184,.25), rgba(242,176,36,.2));
  color: var(--c-accent);
}

/* ---- 麵包屑 ---- */
.breadcrumb { font-size: 13px; color: #8fa3bd; }
.breadcrumb a { color: #8FC1EC; }
.breadcrumb span { margin: 0 6px; }

/* ---- 商品詳情 ---- */
.wh-pd-img { border-radius: var(--r-lg); background: rgba(255,255,255,.04); }
.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: rgba(255,255,255,.08); color: #cdd7e5; }
.wh-price-table th { background: rgba(255,255,255,.04); color: #fff; }
.wh-price-mine { background: rgba(242,176,36,.08); }
.wh-price-mine td:first-child { color: var(--c-accent); font-weight: 700; }
.wh-price { color: var(--c-accent); }
.wh-desc { color: #cdd7e5; line-height: 1.9; word-break: break-word; }

.btn-accent-gold {
  background: linear-gradient(135deg, #F2B024, #FFC24A);
  color: var(--c-ink); font-weight: 700; border: 0;
}
.btn-accent-gold:hover { filter: brightness(1.05); color: var(--c-ink); }

/* ---- 購物車 ---- */
.wh-cart-table th, .wh-cart-table td { background: transparent; border-bottom-color: rgba(255,255,255,.08); color: #cdd7e5; }
.wh-cart-table th { background: rgba(255,255,255,.04); color: #fff; }
.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,.18); color: var(--c-success); }
.wh-status-icon.warn { background: rgba(232,146,44,.18); color: var(--c-warn); }
.wh-status-icon.err { background: rgba(224,75,75,.18); color: var(--c-danger); }

/* ---- FAQ ---- */
.wh-faq-item { border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 4px; }
.wh-faq-item:last-child { border-bottom: 0; }
.wh-faq-item summary { cursor: pointer; color: #fff; 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(--c-accent); font-size: 18px;
}
.wh-faq-item[open] summary::after { content: '−'; }
.wh-faq-answer { padding: 10px 0 4px; color: #9fb3cc; 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 rgba(255,255,255,.1); 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(--c-accent); box-shadow: 0 0 0 3px rgba(242,176,36,.2);
}

/* ---- 響應式 ---- */
@media (max-width: 991px) {
  .wh-hero .hero-inner { padding: 56px 0 40px; }
  .wh-hero-stats { gap: 24px; }
}
@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-main-img { border-radius: var(--r-lg); background: rgba(255,255,255,.04); 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(--c-primary); }
.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,.85); 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,.55); 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-night);}
.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: radial-gradient(120% 90% at 50% 0%, rgba(40,60,110,.40), rgba(5,9,16,.86) 60%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wh-modal-card{
  background: linear-gradient(165deg, #17233d 0%, #0f1728 55%, #0b1120 100%);
  border: 1px solid rgba(120,160,255,.22);
  border-radius: 20px; padding: 26px 26px 30px;
  width: 100%; max-width: 540px; max-height: calc(100vh - 90px); overflow-y: auto;
  position: relative; color: #eef3fb;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 46px rgba(90,140,255,.12);
  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:1px;
  background: linear-gradient(90deg, transparent, rgba(200,170,90,.9), transparent);
  opacity:.8;
}
.wh-modal-card::after{
  content:""; position:absolute; top:-80px; right:-80px; width:220px; height:220px;
  background: radial-gradient(circle, rgba(90,140,255,.18), transparent 70%);
  pointer-events:none;
}
@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: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; width: 32px; height: 32px; display:flex; align-items:center; justify-content:center;
  color: #8fa2c6; font-size: 20px; line-height: 1; cursor: pointer; transition: all .2s;
}
.wh-modal-close:hover{ color:#fff; background:rgba(200,170,90,.18); border-color:rgba(200,170,90,.5); }
.wh-modal-head{ margin-bottom: 14px; }
.wh-modal-eyebrow{
  display:block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #c8b27a; margin-bottom: 4px; font-weight: 600;
}
.wh-modal-title{ margin:0 0 6px; font-size: 21px; color:#fff; font-weight: 700; }
.wh-modal-sub{ margin:0; font-size: 13px; line-height: 1.6; color:#93a3c4; }
.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:#93a3c4; }

/* 弹窗内表单字段：深色科技感覆盖 */
.wh-modal-card .form-group{ margin-bottom: 14px; }
.wh-modal-card .form-label{ color:#cdd8ee; font-size: 13px; font-weight: 600; margin-bottom: 6px; display:inline-block; }
.wh-modal-card .form-control{
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color:#eef3fb; 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:#5f6f8f; }
.wh-modal-card .form-control:focus{
  outline:none; border-color: rgba(200,170,90,.75); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(200,170,90,.14);
}
.wh-modal-card select.form-control option{ background:#111a2e; color:#eef3fb; }
.wh-modal-card #inquiry-err{ color:#ff8f8f; }
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: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px; padding: 12px 14px; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.pay-opt:hover{ border-color: rgba(200,170,90,.5); }
.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; }
.pay-name{ color: #eef3fb; font-weight: 600; font-size: 14px; }
.pay-check{
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28); position: relative; flex: none;
}
.pay-opt.on{ border-color: rgba(200,170,90,.85); background: rgba(200,170,90,.08); box-shadow: 0 0 0 2px rgba(200,170,90,.16); }
.pay-opt.on .pay-check{ border-color: #c8b27a; background: #c8b27a; }
.pay-opt.on .pay-check::after{
  content: ""; position: absolute; left: 6px; top: 2px; width: 4px; height: 9px;
  border: solid #0b1120; 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: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px; padding: 10px 13px; font-size: 13px; }
.pay-row span{ color: #93a3c4; }
.pay-row b{ color: #eef3fb; font-weight: 600; text-align: right; word-break: break-all; }
.pay-tip{ font-size: 12.5px; color: #93a3c4; 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: rgba(255,255,255,.06); }
.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: #5f6f8f; font-weight: 700; }
.inq-main{ flex: 1; min-width: 0; }
.inq-title{ font-size: 15px; font-weight: 600; }
.inq-title a{ color: #eef3fb; text-decoration: none; }
.inq-title a:hover{ color: #ffd48a; }
.inq-meta{ font-size: 12.5px; color: #93a3c4; margin-top: 4px; }
.inq-status{ flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.inq-status-pending{ background: rgba(200,170,90,.16); color: #d9c07f; border: 1px solid rgba(200,170,90,.35); }
.inq-status-replied{ background: rgba(47,158,99,.16); color: #58c98b; border: 1px solid rgba(47,158,99,.35); }
.inq-status-closed{ background: rgba(255,255,255,.06); color: #93a3c4; border: 1px solid rgba(255,255,255,.12); }
.inq-msg{ margin-top: 12px; font-size: 13px; color: #c7d2e8; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 10px 12px; }
.inq-reply{ margin-top: 12px; }
.inq-reply-title{ font-size: 12px; color: #93a3c4; margin-bottom: 4px; }
.inq-reply-body{ font-size: 13.5px; color: #dff3e8; background: rgba(47,158,99,.08); border: 1px solid rgba(47,158,99,.22); border-radius: 9px; padding: 10px 12px; line-height: 1.6; }
.inq-reply-time{ color: #7aa99a; font-size: 12px; }
.inq-reply-empty{ font-size: 13px; color: #93a3c4; }

/* ================= 颜色变体 + 采购数量 ================= */
.wh-color-chip{ display:inline-flex; flex-direction:column; align-items:center; gap:5px; min-width:72px; padding:6px 8px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); border-radius:10px; cursor:pointer; color:#c7d2e8; transition:border-color .15s, background .15s; }
.wh-color-chip:hover{ border-color:rgba(255,212,138,.4); }
.wh-color-chip.active{ border-color:#ffd48a; background:rgba(255,212,138,.10); box-shadow:0 0 0 2px rgba(255,212,138,.22); }
.wh-color-thumb{ width:52px; height:52px; border-radius:8px; overflow:hidden; border:1px solid rgba(255,255,255,.12); }
.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 rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#eef3fb; font-size:14px; }
.wh-qty-input:focus{ outline:none; border-color:#ffd48a; box-shadow:0 0 0 2px rgba(255,212,138,.2); }

@media (max-width:767px){
  .wh-modal{ padding: 26px 12px 24px; align-items: stretch; }
  .wh-modal-card{ max-width: 100%; }
}

