/* 明曜科技官網 1124 PPTX 修補樣式 (2026-11-24) */

/* Slide 3：JC-STAR 卡片雙參考按鈕並排與響應式折行 */
.about-certificates .certificate-jc-star .certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.about-certificates .certificate-jc-star .certificate-actions .certificate-reference {
  margin-top: 0;
}

/* Slide 6：最新動態、影音專區頂部背底與未捲動 Header 色塊比照投資人關係 */
.news-hero.news-hero-updated[data-pptx-hero] {
  background: #1760eb;
}

body:has(.news-hero[data-pptx-hero]) [data-header-shell][data-scrolled="false"] {
  background-color: #fff3;
  border-color: rgb(255 255 255 / 0.2);
}

body:has(.news-hero[data-pptx-hero]) [data-header-shell][data-scrolled="false"] > a img {
  filter: brightness(0) invert(1);
}

body:has(.news-hero[data-pptx-hero]) [data-header-shell][data-scrolled="false"] :is(
  [data-nav-item] > a,
  [data-nav-item] > a > svg,
  .header-social,
  [data-site-search-open],
  [data-language-trigger],
  [aria-label="開啟主選單"]
) {
  color: #fff;
}

body:has(.news-hero[data-pptx-hero]) [data-header-shell][data-scrolled="false"] [data-nav-item] > a:is(:hover, :focus-visible) {
  color: var(--brand-cyan);
}

body:has(.news-hero[data-pptx-hero]) [data-header-shell][data-scrolled="false"] [data-nav-item] > a:is(:hover, :focus-visible) > svg {
  color: inherit;
}

/* Slide 9：三個新產品線頁（比照 Legion C20 排版，修正長英文標題自適應斷行與多圖比例） */
.product-site[data-product-line="pcs-series"] .legion-heading .sheet-hero-copy h1 {
  white-space: normal;
  max-width: none;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.06;
}

.product-site[data-product-line="pcs-series"] .legion-cutout {
  width: min(100%, 620px);
  max-height: 350px;
  object-fit: contain;
}

.product-site[data-product-line="pcs-series"] .feature-symbol span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (width <= 767px) {
  .product-site[data-product-line="pcs-series"] .legion-heading .sheet-hero-copy h1 {
    font-size: clamp(26px, 7.2vw, 36px);
    line-height: 1.12;
  }
  .product-site[data-product-line="pcs-series"] .legion-cutout {
    max-height: 220px;
  }
}
