/* =============================================================
   營業項目總覽頁（/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; }
/* 2026-09-30 左右邊界對齊頁首 .container(1200/24px):型錄圖左緣=LOGO 左緣 */
.pl-site .catalog-shell { max-width: 1200px; 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 28px/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;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    padding-inline: 14px;
    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);
}
/* 2026-09-30 使用者要求對齊:取消交錯位移與欄寬差,只保留深淺底色交替 */
.pl-site .material-group:nth-child(even) {
    --pl-surface: #ece6e2;
    --pl-surface-hover: rgba(255, 255, 255, .22);
}
.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-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: linear-gradient(90deg, #d9d7c8 50%, #f5ede5 50%);
}
.pl-site .catalog-transition-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}
/* 圖內左段字首在圖寬 12.24%、右段字尾在 82.58%(Pillow 量得);
   縮放＋平移讓兩者分別切齊 .container 內緣左右(LOGO 左緣／頁首右緣) */
@media (min-width: 901px) {
    .pl-site .catalog-transition-image {
        --tw: calc(min(1152px, 100% - 48px) / 0.7034);
        width: var(--tw);
        margin-left: calc(max(24px, (100% - 1200px) / 2 + 24px) - var(--tw) * 0.1224);
    }
}

/* ---------- 二手蝴蝶籠 A5（放大鏡 banner 下方，2026-09-28 新增） ---------- */
.pl-site .used-cage {
    scroll-margin-top: var(--nav-h);
    background: #f4f0ee;
    border-top: 1px solid #dad5cc;
}
.pl-site .used-cage-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}
.pl-site .used-cage-photo { margin: 0; }
.pl-site .used-cage-photo img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 7px 20px rgba(76, 70, 56, .08);
}
.pl-site .used-cage-photo figcaption {
    margin-top: 10px;
    color: #7c7a6e;
    font-size: 12px;
    letter-spacing: .05em;
}
.pl-site .used-cage-kicker {
    margin: 0 0 10px;
    color: rgba(185, 67, 22, .85);
    font-size: 11px;
    letter-spacing: .22em;
}
.pl-site .used-cage-body h2 {
    margin: 0;
    color: rgba(19, 41, 63, .9);
    font: 500 30px/1.25 'Noto Serif TC', serif;
    letter-spacing: .08em;
}
.pl-site .used-cage-sub {
    margin: 8px 0 0;
    color: rgba(19, 41, 63, .72);
    font: 500 16px/1.5 'Noto Serif TC', serif;
    letter-spacing: .06em;
}
.pl-site .used-cage-desc {
    margin: 20px 0 0;
    color: rgba(74, 78, 83, .9);
    font-size: 15px;
    line-height: 1.8;
}
.pl-site .used-cage-facts {
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #dad5cc;
}
.pl-site .used-cage-facts > div {
    display: flex;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px solid #dad5cc;
}
.pl-site .used-cage-facts dt {
    flex: 0 0 5.5em;
    color: #7c7a6e;
    font-size: 13px;
}
.pl-site .used-cage-facts dd {
    margin: 0;
    color: rgba(19, 41, 63, .9);
    font-size: 14px;
    font-weight: 600;
}
.pl-site .used-cage-alias {
    margin: 16px 0 0;
    color: #7c7a6e;
    font-size: 12px;
    line-height: 1.6;
}
/* ---------- 響應式 ---------- */
@media (max-width: 1240px) and (min-width: 901px) {
    .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: 24px; }
    .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-row { gap: 6px; padding: 13px 14px 15px; }
    .pl-site .material-row strong { font-size: 14px; }
    .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-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-row strong { font-size: 16px; }
    .pl-site .material-desc { font-size: 11.5px; line-height: 1.5; }
}

@media (max-width: 760px) {
    .pl-site .used-cage-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 40px; }
    .pl-site .used-cage-photo { width: min(100%, 420px); justify-self: center; }
    .pl-site .used-cage-body h2 { font-size: 24px; }
    .pl-site .used-cage-desc { font-size: 14px; }
    .pl-site .used-cage-facts { grid-template-columns: 1fr; }
}
