/* =========================================================
   HL3C Product Layout V12
   修正：左右空白過多、右側比例過大、規格降低權重、圖片可點擊放大、
        移除主卡 LINE CTA、LINE 浮動改小圖示
   ========================================================= */

:root{
  --hl3c-red:#d84b32;
  --hl3c-orange:#f97316;
  --hl3c-dark:#0b1220;
  --hl3c-navy:#111827;
  --hl3c-muted:#64748b;
  --hl3c-border:#e5e7eb;
}

/* 壓過 V11 過大的 hero */
.product-v11-topline,
.product-v11-hero,
.product-v11-content {
  width:min(1500px, calc(100% - 32px)) !important;
}

.product-v11-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(216,75,50,.08), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(249,115,22,.08), transparent 26%),
    #f6f7f9 !important;
}

/* 主商品區改成比較平衡的橫向專業卡，不再右側巨大 */
.product-v11-hero {
  margin-top:18px !important;
  margin-bottom:24px !important;
  border-radius:30px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.98) 55%, rgba(11,18,32,.96) 55.1%, rgba(11,18,32,.96) 100%) !important;
  box-shadow:0 22px 66px rgba(15,23,42,.11) !important;
}

.product-v11-hero-inner {
  grid-template-columns: 48% 52% !important;
  min-height:420px !important;
}

.product-v11-copy {
  padding:48px 46px !important;
}

.product-v11-title {
  font-size:clamp(38px, 3.7vw, 58px) !important;
  line-height:1.12 !important;
}

.product-v11-summary {
  font-size:19px !important;
  max-width:620px !important;
}

/* 主卡內不再放 LINE CTA，只留回分類 */
.product-v11-actions .product-v11-btn.primary {
  display:none !important;
}

.product-v11-actions {
  margin-top:24px !important;
}

/* 右側圖片縮小一點，規格變輔助 */
.product-v11-visual {
  padding:34px 40px 34px 28px !important;
  gap:14px !important;
  align-content:center !important;
}

.product-v11-photo-card {
  min-height:250px !important;
  max-height:330px !important;
  border-radius:24px !important;
  cursor:zoom-in;
}

.product-v11-photo-card img {
  max-height:320px !important;
  object-fit:contain !important;
}

/* 規格降低視覺權重 */
.product-v11-spec {
  padding:16px 18px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.075) !important;
  box-shadow:none !important;
}

.product-v11-spec h2 {
  font-size:19px !important;
  margin-bottom:8px !important;
  opacity:.95;
}

.product-v11-spec-grid {
  gap:0 !important;
}

.product-v11-spec-row {
  grid-template-columns:96px minmax(0,1fr) !important;
  gap:10px !important;
  padding:7px 0 !important;
}

.product-v11-spec-row strong {
  font-size:12px !important;
  line-height:1.5 !important;
  color:#fecaca !important;
}

.product-v11-spec-row span {
  font-size:13px !important;
  line-height:1.55 !important;
  color:#dbe4ef !important;
}

/* 商品介紹區與相關案例：變寬、不要像窄卡 */
.product-v11-section,
.product-related-cases {
  border-radius:26px !important;
  padding:34px 42px !important;
  margin-bottom:24px !important;
}

.product-v11-section h2,
.product-related-cases h2 {
  font-size:clamp(30px, 2.5vw, 42px) !important;
}

/* 圖片 lightbox */
.hl3c-img-lightbox {
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:36px;
  background:rgba(2,6,23,.84);
  backdrop-filter:blur(5px);
}

.hl3c-img-lightbox.is-open {
  display:flex;
}

.hl3c-img-lightbox img {
  max-width:96vw;
  max-height:92vh;
  object-fit:contain;
  border-radius:18px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.hl3c-img-lightbox button {
  position:absolute;
  top:22px;
  right:24px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

/* LINE 浮動按鈕：小小圖示，不佔畫面 */
.hl3c-line-float {
  right:18px !important;
  bottom:18px !important;
  width:54px !important;
  height:54px !important;
  padding:0 !important;
  justify-content:center !important;
  border-radius:999px !important;
  box-shadow:0 12px 30px rgba(6,199,85,.34) !important;
}

.hl3c-line-float .line-icon {
  width:34px !important;
  height:34px !important;
  font-size:18px !important;
}

.hl3c-line-float span:not(.line-icon) {
  display:none !important;
}

/* 清掉可能造成白邊或舊版干擾 */
.product-v2-side,
.product-v2-side-card {
  display:none !important;
}

@media (max-width:1050px){
  .product-v11-hero-inner {
    grid-template-columns:1fr !important;
  }

  .product-v11-hero {
    background:#fff !important;
  }

  .product-v11-copy {
    padding:42px 34px 10px !important;
  }

  .product-v11-visual {
    padding:20px 34px 34px !important;
  }

  .product-v11-spec {
    background:#0b1220 !important;
  }

  .product-v11-photo-card {
    max-height:none !important;
  }
}

@media (max-width:720px){
  .product-v11-topline,
  .product-v11-hero,
  .product-v11-content {
    width:min(100% - 22px, 100%) !important;
  }

  .product-v11-copy {
    padding:34px 24px 8px !important;
  }

  .product-v11-title {
    font-size:36px !important;
  }

  .product-v11-visual {
    padding:18px 24px 26px !important;
  }

  .product-v11-spec-row {
    grid-template-columns:1fr !important;
    gap:2px !important;
  }

  .product-v11-section,
  .product-related-cases {
    padding:26px 22px !important;
  }
}
