/* HL3C Product Layout V10：強化主商品卡、規格貼近照片、移除右側小卡、加入 LINE 浮動按鈕 */

:root{
  --hl3c-red:#d94b32;
  --hl3c-red-dark:#b83222;
  --hl3c-dark:#0f172a;
  --hl3c-muted:#64748b;
}

/* 整體置中 */
.product-v10-hero,
.product-v10-content {
  width: min(1360px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

/* 主商品大卡：更強烈、更像主視覺 */
.product-v10-hero {
  position: relative;
  margin-top: 34px;
  margin-bottom: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(226,232,240,.95);
  background:
    radial-gradient(circle at 8% 12%, rgba(217,75,50,.13), transparent 34%),
    radial-gradient(circle at 96% 18%, rgba(15,23,42,.08), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff 55%, #f8fafc 100%);
  box-shadow:
    0 30px 90px rgba(15,23,42,.12),
    inset 0 0 0 1px rgba(255,255,255,.72);
}

.product-v10-hero::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:8px;
  background:linear-gradient(90deg, var(--hl3c-red), #f97316, #111827);
}

.product-v10-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-v10-breadcrumb {
  display:inline-flex;
  width:max-content;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  margin-bottom:20px;
  color:var(--hl3c-red-dark);
  background:#fff1f2;
  border:1px solid #fecaca;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
}

.product-v10-title {
  margin:0 0 18px;
  color:#0b1220;
  font-size:clamp(44px, 5vw, 78px);
  line-height:1.08;
  letter-spacing:.01em;
}

.product-v10-summary {
  max-width:720px;
  margin:0;
  color:#475569;
  font-size:21px;
  line-height:1.75;
}

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

.product-v10-actions .btn {
  padding:15px 22px;
  font-size:17px;
  border-radius:14px;
}

/* 右側照片＋規格放同一欄，規格不再離照片很遠 */
.product-v10-visual {
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-rows:auto auto;
  gap:18px;
  min-width:0;
}

.product-v10-image {
  min-height:360px;
  max-height:520px;
  border-radius:30px;
  background:
    linear-gradient(90deg, #f8fafc 0%, #fff 18%, #fff 82%, #f8fafc 100%);
  border:1px solid #e5e7eb;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 55px rgba(15,23,42,.08);
}

.product-v10-image img {
  display:block;
  width:100%;
  max-height:500px;
  object-fit:contain;
}

/* 規格卡直接在照片下方 */
.product-v10-spec-card {
  background:#0f172a;
  color:#fff;
  border-radius:26px;
  padding:22px;
  box-shadow:0 18px 55px rgba(15,23,42,.16);
}

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

.product-v10-spec-table {
  display:grid;
  gap:10px;
}

.product-v10-spec-row {
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px 0;
  border-top:1px solid rgba(255,255,255,.12);
}

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

.product-v10-spec-row strong {
  display:block;
  color:#fecaca;
  font-weight:900;
  line-height:1.55;
}

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

/* 介紹內容改成單欄寬版，不要右邊空一張諮詢卡 */
.product-v10-content {
  margin-bottom:72px;
}

.product-v10-section,
.product-related-cases {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:32px;
  padding:42px 46px;
  margin-bottom:28px;
  box-shadow:0 18px 60px rgba(15,23,42,.06);
}

.product-v10-section h2,
.product-related-cases h2 {
  margin:0 0 24px;
  color:#0b1220;
  font-size:clamp(34px,3.4vw,54px);
  line-height:1.18;
}

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

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

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

/* 相關案例保護 */
.product-related-cases {
  max-width:100%;
  overflow:hidden;
}

.product-related-cases-grid {
  display:grid;
  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-side,
.product-v2-side-card {
  display:none !important;
}

/* 若舊 CSS 還在，避免干擾 */
.product-v2-layout {
  display:block !important;
  width:auto !important;
  margin:0 !important;
}

/* 手機版 */
@media (max-width: 1120px) {
  .product-v10-hero {
    grid-template-columns:1fr;
  }

  .product-v10-image {
    min-height:280px;
  }

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

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

  .product-v10-hero {
    padding:28px;
    border-radius:28px;
  }

  .product-v10-title {
    font-size:42px;
  }

  .product-v10-summary {
    font-size:18px;
  }

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

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

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

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

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