/* =========================================================
   HL3C Product Layout V17
   目標：
   1. 商品介紹高度接近右側「規格與應用」
   2. 過長內容不直接往下撐版面
   3. 多餘詳細資料改成小卡按鈕，點擊後以跳出卡片顯示
   ========================================================= */

/* 商品介紹改成精簡卡 */
.product-v16-intro {
  max-width:720px !important;
  max-height:none !important;
  padding:18px 20px !important;
}

.product-v16-intro-body {
  max-height:330px;
  overflow:hidden;
  position:relative;
}

.product-v16-intro-body.is-collapsed::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:68px;
  background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,250,247,.98));
  pointer-events:none;
}

.product-v17-intro-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.product-v17-mini-card-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid #fed7aa;
  border-radius:999px;
  background:#fff7ed;
  color:#b83222;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.product-v17-mini-card-btn:hover {
  transform:translateY(-1px);
  background:#ffedd5;
  box-shadow:0 8px 18px rgba(216,75,50,.12);
}

/* 主區高度與右側更平衡 */
.product-v11-hero-inner {
  align-items:start !important;
}

.product-v11-copy {
  padding-top:38px !important;
  padding-bottom:38px !important;
}

.product-v11-visual {
  position:sticky;
  top:88px;
  align-self:start;
}

/* modal 跳出卡片 */
.product-v17-modal {
  position:fixed;
  inset:0;
  z-index:10020;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(2,6,23,.64);
  backdrop-filter:blur(5px);
}

.product-v17-modal.is-open {
  display:flex;
}

.product-v17-modal-card {
  width:min(860px, 96vw);
  max-height:86vh;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.7);
  display:flex;
  flex-direction:column;
}

.product-v17-modal-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 26px;
  border-bottom:1px solid #e5e7eb;
  background:
    linear-gradient(135deg,#fff7ed,#fff);
}

.product-v17-modal-kicker {
  display:block;
  color:#d88a7b;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:1000;
  margin-bottom:6px;
}

.product-v17-modal-title {
  margin:0;
  color:#111827;
  font-size:28px;
  line-height:1.25;
  font-weight:1000;
}

.product-v17-modal-close {
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  flex:0 0 auto;
}

.product-v17-modal-body {
  padding:26px;
  overflow:auto;
  color:#1f2937;
  font-size:17px;
  line-height:1.85;
}

.product-v17-modal-body img {
  max-width:100% !important;
  height:auto !important;
  border-radius:14px;
}

.product-v17-modal-body iframe {
  max-width:100% !important;
}

/* 下方商品介紹不再重複 */
.product-v11-content > .product-v11-section:first-child {
  display:none !important;
}

/* 讓租借說明與建議接續更自然 */
.product-v15-guide {
  margin-top:0 !important;
}

/* 若商品介紹內有過大的清單，主卡內縮小間距 */
.product-v16-intro-body ul,
.product-v16-intro-body ol {
  margin-top:8px !important;
  margin-bottom:8px !important;
}

.product-v16-intro-body li {
  margin:3px 0 !important;
}

/* 手機不使用 sticky */
@media (max-width:980px){
  .product-v11-visual {
    position:static;
  }

  .product-v16-intro-body {
    max-height:360px;
  }
}

@media (max-width:720px){
  .product-v17-modal {
    padding:14px;
  }

  .product-v17-modal-card {
    max-height:90vh;
    border-radius:20px;
  }

  .product-v17-modal-head {
    padding:18px 20px;
  }

  .product-v17-modal-title {
    font-size:24px;
  }

  .product-v17-modal-body {
    padding:20px;
    font-size:16px;
  }
}
