/* 11/27 客戶修改：目錄選取粗線、標籤分隔線、技術文章相關產品輪播、手機分享鈕不被切 */
.kss-toc-wrap .j-titleList-block .j-titleList a { border-left: 3px solid transparent; margin-left: -2px; padding-left: 11px; }
.kss-toc-wrap .j-titleList-block .j-titleList a.is-active,
.kss-toc-wrap .j-titleList-block .j-titleList a:hover,
.kss-toc-wrap .j-titleList-block .j-titleList a:focus-visible { border-left-color: #1e1eaa; border-left-width: 3px; }
.kss-toc-wrap .j-titleList-block .j-titleList-content ol ul li a { padding-left: 11px; }
/* 12/1 客戶：「目錄」與各項文字對齊左邊（章節標題藍條的左緣）。灰線與選取粗線往左移 13px 到文字外側，文字本身不內縮 */
.kss-toc-wrap .j-titleList-block .j-titleList-title { padding-left: 0; }
.kss-toc-wrap .j-titleList-block .j-titleList-content > ol.j-titleList { margin-left: -13px; }
/* 12/1 窗口：選取粗線看不到。清單為了收合動畫設 overflow:hidden，粗線往左凸的部分一直被裁掉（3px 只露 1px，11/27 起就是這樣）。
   改成灰線畫在清單裡面（inset 陰影），粗線不再往左凸，整條 3px 直接蓋在灰線上；文字位置不變（仍對齊章節標題左緣） */
.kss-toc-wrap .j-titleList-block .j-titleList-content > ol.j-titleList { border-left-width: 0; box-shadow: inset 1px 0 0 #d8dfeb; }
.kss-toc-wrap .j-titleList-block .j-titleList-content > ol.j-titleList > li > a { margin-left: 0; padding-left: 10px; }

/* 標籤：放在文章最後，上方一條分隔線，膠囊樣式不變 */
.technical-main .tag-list,
.applications2-industry-block .tag-list { margin-top: 32px; padding-top: 20px; border-top: 1px solid #d8dfeb; }
/* 桌機：標籤和分隔線對齊文章內文欄（目錄欄 280px＋欄距 40px），不跑到目錄下方 */
@media (min-width: 1025px) {
  .technical-main .kss-toc-wrap ~ .tag-list,
  .applications2-industry-block .kss-toc-wrap ~ .tag-list { margin-left: 320px; }
}

/* 技術文章相關產品：左右箭頭輪播（沿用產業應用頁），圖稍縮小 */
.kss-tech-related { position: relative; margin: 8px 0 32px; padding: 0 18px; }
@media (min-width: 1025px) { .kss-tech-related { padding-right: 66px; } } /* 右側浮動分享鈕不蓋到卡片 */
@media (min-width: 1025px) { .applications2-related-block:not(.kss-tech-related) { padding-right: 66px; } } /* 12/1：產業應用相關產品改一列 5 個，右側讓出浮動分享鈕的位置（同技術文章） */
.kss-tech-related .other-list .box { padding: 0 8px; }
.kss-tech-related .other-list .box .pic .border { padding-bottom: calc((485 / 695) * 100%); } /* 12/1：框比例＝產品圖比例 695×485，左右不留白邊 */
.kss-tech-related .other-list .box .pic .border img { width: 100%; height: 100%; object-fit: contain; }
.applications2-related-block .other-list .box .pic .border img { border: 0; } /* 12/1 Wayne：產業應用、技術文章相關產品圖拿掉原本的 3px 白框，圖貼齊卡片邊緣（產品內頁的相關產品不動） */
.kss-tech-related .other-list .box .title { font-size: 15px; line-height: 1.4; }
.kss-tech-related .other-list .prev-btn { left: -14px; }
.kss-tech-related .other-list .next-btn { right: -14px; }

/* 手機矮視窗：分享鈕縮小，避免最上面的 F 被固定頁首蓋住 */
@media (max-width: 767px) and (max-height: 700px) {
  .products-share-block.kss-share-round .block a { width: 34px; height: 34px; margin-bottom: 6px; }
}
@media (max-width: 767px) and (max-height: 520px) {
  .products-share-block.kss-share-round .block2 .btn.mail { display: none; }
}

/* 技術文章列表：功能列＋搜尋框固定在頁首下方（js/kss-technical-layout.js 設定 top 並加 is-ready） */
.technical-main > .kss-tech-fixed { background: #fff; z-index: 45; }
.technical-main > .kss-tech-fixed.is-ready { position: sticky; }
.technical-main > .kss-tech-fixed.is-stuck { box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.technical-main > .kss-tech-fixed .page-search-form { margin: 16px 0; } /* 12/1：搜尋框改膠囊後，固定列裡上下間距收小，往下捲時少擋內容（手機另設在下面） */

/* 產業應用橫幅：標題上方小標（短線＋分類名稱，英文字母加寬字距） */
.kss-app-hero--article .kss-app-hero-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: #8fc4ff; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kss-app-hero--article .kss-app-hero-eyebrow::before { content: ""; display: block; width: 38px; height: 2px; background: #8fc4ff; flex: none; }
@media (max-width: 768px) { .kss-app-hero--article .kss-app-hero-eyebrow { font-size: 13px; margin-bottom: 14px; } }

/* 手機：固定列精簡成功能列一排＋搜尋框，不佔掉大半個畫面 */
@media (max-width: 768px) {
  .technical-main > .kss-tech-fixed aside ul { display: flex; flex-wrap: nowrap; justify-content: center; margin: 0; }
  .technical-main > .kss-tech-fixed aside li { flex: 0 1 auto; }
  .technical-main > .kss-tech-fixed aside li a { display: block; padding: 10px 10px; font-size: 15px; line-height: 1.3; white-space: nowrap; }
  .technical-main > .kss-tech-fixed .page-search-form { padding: 6px 0 8px; margin: 0; }
}

/* 12/1 客戶：產業應用內頁橫幅上方的藍色小字（短線＋分類名稱）電腦、手機都不要（11/27 加的，取消） */
.kss-app-hero--article .kss-app-hero-eyebrow { display: none; }
/* 12/1 客戶：手機版主圖改成滿版，圖片上緣從深色背景漸層淡入（客戶參考圖），保留原本的調暗 */
@media (max-width: 768px) {
  .kss-app-hero--article .kss-app-hero-image {
    width: 100%; margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
  }
}

/* 12/1 窗口：目錄只有滑鼠移到（或鍵盤選到）的那一項才有左邊粗線與底色；「目前讀到的段落」不再固定標示（外觀回到一般項目） */
.kss-toc-wrap .j-titleList-block .j-titleList a.is-active:not(:hover):not(:focus-visible) { border-left-color: transparent; background: none; color: #354659; }
.kss-toc-wrap .j-titleList-block .j-titleList-content ol ul li a.is-active:not(:hover):not(:focus-visible) { color: #666; }
