/* =============================================================
   營業項目總覽頁（/products/）專用樣式
   2026-09-03 自 products-style-preview 定案版移植
   規則：所有 selector 一律以 .pl-site 起頭（body class），
        不修改 style.css，也不影響其他頁面。
   ============================================================= */

/* ---------- 共用小工具 ---------- */
.pl-site .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* 詢價 CTA：定案版面沒有這顆按鈕，錨點保留在 DOM 但不顯示 */
.pl-site .pl-cta-hidden { display: none; }

/* ---------- 頁尾上緣分隔線 ----------
   全站是紅色漸層（style.css .footer::before），本頁改成定案的柔和陰影線。
   z-index：style.css 的 .footer .footer-top 是 position:relative 且底色不透明，
   DOM 順序在 ::before 之後 → 會整條蓋掉分隔線（全站的紅漸層其實也看不見）。
   這裡把 ::before 抬到 footer-top 之上才畫得出來；陰影只往下 16px，
   落在 footer-top 的 22px 上內距裡，不會蓋到頁尾文字。 */
.pl-site .footer::before {
    z-index: 1;
    height: 1px;
    background: rgba(63, 70, 60, .1);
    box-shadow: 0 4px 12px rgba(63, 70, 60, .18);
}

/* ---------- 中段：型錄大圖 ＋ 材料索引 ---------- */
.pl-site .catalog-page { background: #f4f0ee; }
.pl-site .catalog-shell { max-width: 1440px; padding: 34px 24px 30px; }
.pl-site .catalog-layout {
    display: grid;
    grid-template-columns: minmax(400px, 489px) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}
.pl-site .catalog-visual {
    position: relative;
    margin: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.pl-site .catalog-visual img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1122 / 1402;
    object-fit: contain;
    object-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 17% 100%, 0 85%);
}
.pl-site .material-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.pl-site .material-panel-heading {
    min-height: 68px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 2px 6px 15px;
    border-bottom: 1px solid #dad5cc;
}
.pl-site .material-panel-heading h2 {
    margin: 0;
    color: rgba(19, 41, 63, .84);
    font: 600 22px/1.2 'Noto Serif TC', serif;
    letter-spacing: .14em;
}
.pl-site .material-panel-heading p {
    margin: 0 0 1px;
    color: #7c7a6e;
    font-size: 12px;
    line-height: normal;
    letter-spacing: .05em;
    text-align: right;
}
.pl-site .material-table {
    min-height: 524px;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
}
.pl-site .material-group {
    --pl-surface: #f7f5f4;
    --pl-surface-hover: rgba(255, 255, 255, .28);
    min-width: 0;
    display: grid;
    gap: 18px;
    padding-inline: 10px 18px;
    background-color: var(--pl-surface);
    background-image: url('/images/products/paper-grain.webp');
    background-position: center;
    background-size: 720px 720px;
    background-repeat: repeat;
    background-blend-mode: soft-light;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .38), 0 7px 20px rgba(76, 70, 56, .025);
}
.pl-site .material-group:nth-child(1) {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    margin-inline-end: 48px;
}
.pl-site .material-group:nth-child(2) {
    --pl-surface: #ece6e2;
    --pl-surface-hover: rgba(255, 255, 255, .22);
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    margin-inline-start: 30px;
    padding-inline: 18px 10px;
}
.pl-site .material-group:nth-child(3) {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    margin-inline: 12px 28px;
}
.pl-site .material-group:nth-child(4) {
    --pl-surface: #ece6e2;
    --pl-surface-hover: rgba(255, 255, 255, .22);
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    margin-inline-start: 48px;
    padding-inline: 18px 10px;
}
.pl-site .material-row {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 17px 20px 19px;
    background: transparent;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.pl-site .material-group:nth-child(odd) .material-row:nth-child(2),
.pl-site .material-group:nth-child(even) .material-row:nth-child(1) {
    padding-top: 28px;
    padding-bottom: 8px;
}
.pl-site .material-group:first-child .material-row:first-child strong {
    font-size: 22px;
    letter-spacing: .07em;
}
.pl-site .material-row strong {
    color: rgba(19, 41, 63, .84);
    font: 600 19px/1.35 'Noto Serif TC', serif;
    letter-spacing: .05em;
}
.pl-site .material-desc {
    max-width: 34em;
    color: rgba(74, 78, 83, .82);
    font-size: 13px;
    line-height: 1.55;
}
.pl-site .material-spec {
    color: rgba(185, 67, 22, .78);
    font-size: 11.5px;
    line-height: 1.45;
    letter-spacing: .04em;
}

/* ---------- 舊料 banner（型錄與頁尾之間的編輯式過場） ---------- */
.pl-site .catalog-transition {
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--nav-h);
    background: #f3eee6;
}
.pl-site .catalog-transition-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

/* ---------- 響應式 ---------- */
@media (max-width: 1240px) and (min-width: 901px) {
    .pl-site .catalog-shell { max-width: 1196px; padding-inline: 18px; }
    .pl-site .catalog-layout { grid-template-columns: 380px minmax(0, 1fr); gap: 22px; }
    .pl-site .material-panel-heading { min-height: 58px; padding-bottom: 12px; }
    .pl-site .material-panel-heading h2 { font-size: 19px; }
    .pl-site .material-panel-heading p { font-size: 10.5px; }
    .pl-site .material-table { min-height: 440px; gap: 8px; padding-top: 8px; }
    .pl-site .material-group { gap: 8px; }
    .pl-site .material-group:nth-child(1) { margin-inline-end: 28px; }
    .pl-site .material-group:nth-child(2) { margin-inline-start: 18px; }
    .pl-site .material-group:nth-child(3) { margin-inline: 6px 18px; }
    .pl-site .material-group:nth-child(4) { margin-inline-start: 28px; }
    .pl-site .material-row { gap: 6px; padding: 13px 14px 15px; }
    .pl-site .material-group:nth-child(odd) .material-row:nth-child(2),
    .pl-site .material-group:nth-child(even) .material-row:nth-child(1) {
        padding-top: 20px;
        padding-bottom: 8px;
    }
    .pl-site .material-row strong { font-size: 14px; }
    .pl-site .material-group:first-child .material-row:first-child strong { font-size: 16px; }
    .pl-site .material-desc,
    .pl-site .material-spec { min-width: 0; font-size: 11px; line-height: 1.35; }
}

@media (max-width: 900px) {
    .pl-site .catalog-shell { max-width: 792px; padding: 22px 16px 24px; }
    .pl-site .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
    .pl-site .catalog-visual { width: min(100%, 470px); justify-self: center; padding: 0; }
    .pl-site .material-panel-heading { min-height: 54px; padding-inline: 0; }
    .pl-site .material-table { min-height: 0; grid-template-rows: none; gap: 14px; padding-top: 14px; }
    .pl-site .material-group:nth-child(n) { margin-inline: 0; }
    .pl-site .material-row { min-height: 132px; padding: 18px 20px; }
    .pl-site .material-desc { font-size: 12px; }
}

@media (max-width: 560px) {
    .pl-site .catalog-shell { max-width: 548px; padding-inline: 14px; }
    .pl-site .material-panel-heading { display: block; min-height: 0; padding-bottom: 12px; }
    .pl-site .material-panel-heading p { margin-top: 5px; text-align: left; }
    .pl-site .material-table { gap: 20px; }
    .pl-site .material-group:nth-child(n) { grid-template-columns: 1fr; padding-inline: 8px; }
    .pl-site .material-group { gap: 8px; }
    .pl-site .material-row { min-height: 114px; padding: 17px 20px; }
    .pl-site .material-group:nth-child(odd) .material-row:nth-child(2),
    .pl-site .material-group:nth-child(even) .material-row:nth-child(1) {
        padding-top: 17px;
        padding-bottom: 17px;
    }
    .pl-site .material-row strong { font-size: 16px; }
    .pl-site .material-group:first-child .material-row:first-child strong { font-size: 18px; }
    .pl-site .material-desc { font-size: 11.5px; line-height: 1.5; }
}
