/* =========================================================================
   產品介紹（中文版型 03）：08 總覽、09 大分類、09-1 系列、10 產品內頁
   數值來源：Figma 08 1:934、09 1:2450、09-1 1:1658、10 1:1839、11 上稿元件 1:2130（CSS 匯出見 02H-04 計畫第二節）。
   1440 畫板 80＋178＋40＋1062＋80；產品側欄 178px（About 仍為 inner.css 的 280px）。
   工程補充（待設計公司確認）：卡片 RWD 欄數、分頁、下載清單、多影片直列、手機版、連結色加深（對比 AA）。
   ========================================================================= */

/* ---------- Banner 說明文字（08）：16px／180%、白 80% ---------- */
.page-banner__intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- 產品側欄：寬 178、1px #E6E6E6；大分類 48 高 16px；子項 40 高、左縮 32、15px ---------- */
.inner-layout--products .side-nav--products {
    flex: 0 0 178px;
    width: 178px;
    border-color: #E6E6E6;
}

.side-nav--products .side-nav__link {
    min-height: 48px;
    padding: 8px 16px;
    color: #666E78;
}

.side-nav--products .side-nav__item.is-current .side-nav__link,
.side-nav--products .side-nav__item.is-branch .side-nav__link {
    padding-left: 13px;
    border-left: 3px solid #333333;
    background: var(--color-white);
    color: #212121;
    font-weight: 500;
}

.side-nav__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-nav__sublink {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px 6px 32px;
    color: #666E78;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.side-nav__sublink:hover {
    background: var(--color-section);
}

.side-nav__subitem.is-current .side-nav__sublink,
.side-nav__subitem.is-branch .side-nav__sublink {
    color: #212121;
    font-weight: 500;
}

.side-nav__subitem.is-current .side-nav__sublink {
    background: var(--color-section);
}

/* ---------- 內容欄 ---------- */
.product-sections {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.product-sample-notice {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
}

.product-sections .product-sample-notice {
    margin-bottom: -32px;
}

.product-empty,
.product-nolink {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* 節標題（09／09-1）：20px／500、下方 1px #E6E6E6，與卡片間距 16 */
.product-section__title {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E6E6E6;
    color: var(--color-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

/* ---------- 卡片：基準 343×200、padding 32、圓角 8；一列 3 張、間距 16（工程 RWD：768～1279 兩欄、767 以下一欄） ---------- */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 200px;
    height: 100%;
    padding: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--color-card);
    color: var(--color-ink);
    text-decoration: none;
    transition: border-color var(--motion-fast) var(--motion-ease);
}

.product-tile--product {
    border-color: #E6E6E6;
    background: var(--color-white);
}

.product-tile:hover {
    border-color: var(--color-ink);
}

.product-tile__tag {
    align-self: flex-start;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
}

.product-tile--series .product-tile__tag {
    background: var(--color-white);
    color: #4A5568;
}

/* Figma 標籤字 #4A90D9 在 #EEF4FB 上對比不足，工程調深為 #2F6FB5 */
.product-tile--product .product-tile__tag {
    background: #EEF4FB;
    color: #2F6FB5;
}

.product-tile__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.product-tile__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-tile__more {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 圖片輪播：分類 1062×360、產品 1062×540；圖片完整顯示不拉伸（contain），底色 #E8EAED ---------- */
.product-carousel {
    margin: 0;
}

.product-carousel__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-carousel__slide {
    aspect-ratio: 1062 / 360;
    overflow: hidden;
    background: var(--color-media);
}

.product-carousel--photos .product-carousel__slide {
    aspect-ratio: 1062 / 540;
}

.product-sections > *,
.product-profile,
.product-video {
    min-width: 0;
}

.product-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 有 JS：一次一張，其餘隱藏（不移出無障礙樹以外的狀態由 hidden 處理） */
.product-carousel.is-enhanced .product-carousel__list {
    display: block;
}

.product-carousel__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.product-carousel__button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #667380;
    font: inherit;
    font-size: 14px;
    line-height: 1.57;
    cursor: pointer;
}

.product-carousel__button:hover {
    color: var(--color-ink);
    text-decoration: underline;
}

.product-carousel__status {
    color: #667380;
    font-size: 14px;
    line-height: 1.57;
}

/* ---------- 10 產品介紹：小標 13px／0.12em、標題 36px／700；內文左側 2px #9AA5B1、16px／28px ---------- */
.product-profile__eyebrow {
    margin: 0 0 4px;
    color: #9AA5B1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

.product-profile__title {
    margin: 0 0 32px;
    color: var(--color-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 22px;
    border-left: 2px solid #9AA5B1;
    color: var(--color-text);
    font-size: 16px;
    line-height: 28px;
}

.product-content__heading {
    margin: 8px 0 0;
    overflow-wrap: anywhere;
    color: var(--color-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.product-content__paragraph,
.product-content__list {
    margin: 0;
    overflow-wrap: anywhere;
}

.product-content__list {
    padding-left: 24px;
}

.product-content__table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.product-content__table {
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.product-content__table th,
.product-content__table td {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.product-content__table th {
    background: var(--color-section);
    font-weight: 500;
}

.product-content__figure {
    margin: 0;
}

.product-content__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.product-content__failed {
    margin: 0;
    color: var(--color-muted);
}

/* ---------- 產品影片（元件 06；D412 全部直列）：外框 #F0F2F5 圓角 8；舞台 1062×540 #D1D5DB；播放鈕 56 圓形；標題 20px／500 ---------- */
.product-videos {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-video {
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-card);
}

.product-video__stage {
    position: relative;
    aspect-ratio: 1062 / 540;
    background: var(--color-placeholder);
}

.product-video__poster,
.product-video__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-video__poster {
    object-fit: contain;
}

.product-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    text-decoration: none;
}

.product-video__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    padding-left: 3px;
    border: 1px solid #BFC7CF;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-ink);
    font-size: 22px;
}

.product-video__label {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.6);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.product-video__play:hover .product-video__icon,
.product-video__play:focus-visible .product-video__icon {
    background: var(--color-white);
}

.product-video__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 16px;
    padding: 12px 16px;
}

.product-video__title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--color-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.product-video__watch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #2F6FB5;
    font-size: 14px;
}

/* ---------- 下載清單（工程補充，Figma 無元件） ---------- */
.product-downloads__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-downloads__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-height: 44px;
}

.product-downloads__link {
    color: #2F6FB5;
    font-size: 16px;
    overflow-wrap: anywhere;
}

/* ---------- 相關產品卡（10）：343×144 ---------- */
.product-related .product-tile {
    min-height: 144px;
}

/* ---------- 返回、分頁 ---------- */
.product-back {
    margin: 0;
}

.product-back__link,
.product-pager__link {
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    align-items: center;
    min-height: 44px;
    color: #2F6FB5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.product-back__link:hover,
.product-pager__link:hover {
    text-decoration: underline;
}

.product-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.product-pager__status {
    color: var(--color-muted);
    font-size: 14px;
}

/* ---------- 503 ---------- */
.product-unavailable {
    padding-top: 80px;
    padding-bottom: 120px;
}

.product-unavailable__title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
}

/* ---------- 響應式（工程補充） ---------- */
@media (max-width: 1279px) {
    .product-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .inner-layout--products .side-nav--products {
        flex: none;
        width: 100%;
    }

    .product-profile__title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .product-cards {
        grid-template-columns: 1fr;
    }

    .product-tile {
        min-height: 160px;
        padding: 24px;
    }

    .product-tile__title {
        font-size: 20px;
    }

    .product-profile__title {
        font-size: 26px;
    }

    .product-content {
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-tile {
        transition: none;
    }
}
