/* =========================================================
   HL3C Product Layout V11 Final
   參考 tv-rental-kaohsiung.php 的紅橘＋深藍、專業活動影音風格
   重點：主商品區更有份量、規格貼近照片、移除右側規劃小卡、LINE 浮動
   ========================================================= */

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

/* 先消除前幾版可能殘留的版面限制 */
.product-v2-hero,
.product-v2-layout,
.product-v2-main,
.product-v2-side,
.product-v2-side-card,
.product-v10-hero,
.product-v10-content,
.product-v10-visual,
.product-v10-copy,
.product-v10-section,
.product-v10-spec-card {
  all: unset;
  box-sizing: border-box;
}

.product-v2-side,
.product-v2-side-card {
  display:none !important;
}

body {
  background:#f6f7f9;
}

/* 產品頁外層 */
.product-v11-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(216,75,50,.10), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(249,115,22,.10), transparent 28%),
    #f6f7f9;
  padding-bottom:72px;
}

/* 與參考頁接近的上方資訊列 */
.product-v11-topline {
  width:min(1240px, calc(100% - 40px));
  margin:0 auto;
  padding:18px 0 0;
  color:#64748b;
  font-size:15px;
  font-weight:700;
}

/* 主商品卡：強烈主視覺 */
.product-v11-hero {
  width:min(1240px, calc(100% - 40px));
  margin:20px auto 28px;
  position:relative;
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(226,232,240,.95);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.96) 42%, rgba(11,18,32,.97) 42.1%, rgba(11,18,32,.97) 100%);
  box-shadow:0 28px 84px rgba(15,23,42,.14);
}

.product-v11-hero::before {
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:8px;
  background:linear-gradient(90deg, var(--hl3c-red), var(--hl3c-orange), var(--hl3c-dark));
  z-index:2;
}

.product-v11-hero-inner {
  display:grid;
  grid-template-columns: 42% 58%;
  min-height:560px;
}

.product-v11-copy {
  position:relative;
  z-index:1;
  padding:64px 52px 52px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.product-v11-badge {
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:#fff1f2;
  border:1px solid #fecaca;
  color:#b83222;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
  margin-bottom:22px;
}

.product-v11-title {
  margin:0;
  color:#0b1220;
  font-size:clamp(38px, 4.2vw, 62px);
  line-height:1.08;
  letter-spacing:.01em;
  font-weight:1000;
}

.product-v11-summary {
  margin:22px 0 0;
  color:#475569;
  font-size:20px;
  line-height:1.75;
  max-width:560px;
}

.product-v11-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}

.product-v11-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:13px 20px;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  border:1px solid transparent;
  transition:.18s ease;
}

.product-v11-btn.primary {
  background:linear-gradient(135deg, var(--hl3c-red), #e75f3e);
  color:#fff;
  box-shadow:0 14px 34px rgba(216,75,50,.28);
}

.product-v11-btn.primary:hover {
  transform:translateY(-2px);
  box-shadow:0 20px 44px rgba(216,75,50,.36);
}

.product-v11-btn.secondary {
  background:#111827;
  color:#fff;
}

.product-v11-btn.secondary:hover {
  transform:translateY(-2px);
  background:#020617;
}

/* 右側：圖片與規格緊密排列 */
.product-v11-visual {
  padding:46px 46px 46px 36px;
  min-width:0;
  display:grid;
  grid-template-rows:auto auto;
  gap:18px;
  align-content:center;
}

.product-v11-photo-card {
  position:relative;
  background:
    linear-gradient(90deg, #f8fafc 0%, #ffffff 18%, #ffffff 82%, #f8fafc 100%);
  border:1px solid rgba(255,255,255,.20);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 24px 72px rgba(0,0,0,.28);
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-v11-photo-card::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:22%;
  background:linear-gradient(180deg, transparent, rgba(11,18,32,.12));
  pointer-events:none;
}

.product-v11-photo-card img {
  display:block;
  width:100%;
  height:100%;
  max-height:390px;
  object-fit:contain;
}

/* 規格在照片下方，不遠離、不再另外掉到很下面 */
.product-v11-spec {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:24px;
  padding:22px 24px;
  color:#fff;
  backdrop-filter: blur(10px);
}

.product-v11-spec h2 {
  margin:0 0 14px;
  color:#fff;
  font-size:24px;
  line-height:1.25;
}

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

.product-v11-spec-row {
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:14px;
  padding:11px 0;
  border-top:1px solid rgba(255,255,255,.13);
}

.product-v11-spec-row:first-child {
  border-top:0;
}

.product-v11-spec-row strong {
  color:#fecaca;
  font-size:14px;
  line-height:1.55;
  font-weight:1000;
}

.product-v11-spec-row span {
  color:#e5e7eb;
  line-height:1.65;
  overflow-wrap:anywhere;
}

/* 下方內容 */
.product-v11-content {
  width:min(1240px, calc(100% - 40px));
  margin:0 auto;
}

.product-v11-section,
.product-related-cases {
  background:#fff;
  border:1px solid var(--hl3c-border);
  border-radius:30px;
  padding:42px 48px;
  margin-bottom:26px;
  box-shadow:0 16px 54px rgba(15,23,42,.06);
}

.product-v11-section h2,
.product-related-cases h2 {
  margin:0 0 22px;
  color:#0b1220;
  font-size:clamp(32px, 3vw, 46px);
  line-height:1.18;
}

.product-v11-html {
  color:#1f2937;
  font-size:18px;
  line-height:1.9;
  max-width:100%;
  overflow:hidden;
}

.product-v11-html p,
.product-v11-html div {
  max-width:100%;
}

.product-v11-html img {
  max-width:100% !important;
  height:auto !important;
  object-fit:contain;
  border-radius:18px;
}

.product-v11-html iframe {
  display:block;
  max-width:100% !important;
  width:min(100%, 552px) !important;
  margin:20px auto;
}

/* 相關案例全寬排列 */
.product-related-cases {
  max-width:100%;
  overflow:hidden;
}

.product-related-cases-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:22px;
}

.product-related-cases-grid {
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

/* LINE 浮動按鈕 */
.hl3c-line-float {
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-radius:999px;
  background:#06c755;
  color:#fff !important;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 18px 48px rgba(6,199,85,.36);
  transition:transform .18s ease, box-shadow .18s ease;
}

.hl3c-line-float:hover {
  transform:translateY(-3px);
  box-shadow:0 24px 60px rgba(6,199,85,.48);
}

.hl3c-line-float .line-icon {
  width:34px;
  height:34px;
  border-radius:50%;
  background:#fff;
  color:#06c755;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  font-size:18px;
}

.hl3c-line-float small {
  display:block;
  font-size:12px;
  line-height:1.1;
  opacity:.92;
}

.hl3c-line-float strong {
  display:block;
  font-size:16px;
  line-height:1.1;
}

/* 清除舊版可能殘留 */
.product-v2-image,
.product-v10-image,
.product-v10-spec-card,
.product-v2-spec-table {
  max-width:100%;
}

@media (max-width: 1050px) {
  .product-v11-hero {
    background:#fff;
  }

  .product-v11-hero-inner {
    grid-template-columns:1fr;
    min-height:0;
  }

  .product-v11-copy {
    padding:48px 36px 12px;
  }

  .product-v11-visual {
    padding:24px 36px 36px;
  }

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

  .product-related-cases-grid {
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

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

  .product-v11-copy {
    padding:40px 24px 8px;
  }

  .product-v11-visual {
    padding:20px 24px 28px;
  }

  .product-v11-title {
    font-size:38px;
  }

  .product-v11-summary {
    font-size:17px;
  }

  .product-v11-photo-card {
    min-height:220px;
  }

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

  .product-v11-section,
  .product-related-cases {
    padding:28px 24px;
    border-radius:24px;
  }

  .product-related-cases-head {
    display:block;
  }

  .product-related-cases-head .btn,
  .product-related-cases-head .product-v11-btn {
    margin-top:12px;
  }

  .product-related-cases-grid {
    grid-template-columns:1fr;
  }

  .hl3c-line-float {
    right:14px;
    bottom:14px;
    padding:12px 14px;
  }

  .hl3c-line-float small {
    display:none;
  }
}
