/* 水監包產品頁：沿用 farmerpack.css 的新品發表式版型（fp- 開頭），這裡只換成水產／水質產品線的藍色與水監包專用的區塊。
   按鈕與連結維持品牌綠（farmerpack.css 的 --fp-green-ink／--fp-green-glow），不換色 */
.fp-water {
    --fp-ink: #070c12;
    --fp-ink-2: #0e151d;
    --fp-ink-3: #16202a;
    --fp-text: #f2f6fa;
    --fp-dim: rgba(230, 238, 246, 0.68);
    --fp-grad: linear-gradient(100deg, #c4f3ff 0%, #74d4f2 38%, #3aa6e8 62%, #4b84e0 100%);
    /* 淺底文字 #1565c0（淺灰底 5.6:1）、深底文字 #7fd0f5（近黑底 11:1） */
    --fp-accent-ink: var(--blue-700);
    --fp-accent-glow: #7fd0f5;
    --fp-glow-rgb: 127, 208, 245;
    --fp-glow-2-rgb: 96, 190, 240;
    --fp-brand-rgb: 25, 118, 210;
    --fp-teal-rgb: 32, 160, 200;
    --fp-hi: #c4f3ff;
    --fp-hi-rgb: 196, 243, 255;
    --fp-tag-bg: var(--blue-700);
    --fp-soft: var(--blue-50);
}

/* ── 主視覺：深色水面（farmerpack 是淺灰棚拍）；產品去背照浮在水面背景上，以藍色光暈襯底 ── */
.fp-water .fp-hero {
    --fp-accent-ink: var(--fp-accent-glow);
    background:
        linear-gradient(180deg, rgba(7, 12, 18, 0.7) 0%, rgba(7, 12, 18, 0.84) 55%, var(--fp-ink) 100%),
        url("../../img/products/water/slide-corporate-19-1.webp") center / cover no-repeat,
        var(--fp-ink);
    color: var(--fp-text);
    padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

/* 主視覺上方的泡泡照片較亮：麵包屑、定義句比其他深色區塊的 --fp-dim 再亮一些（照片最亮處仍有 4.5:1） */
.fp-water .fp-hero .fp-breadcrumb ol,
.fp-water .fp-hero .fp-definition {
    color: rgba(230, 238, 246, 0.84);
}

.fp-water .fp-hero .fp-breadcrumb li + li::before {
    color: var(--fp-dim);
}

.fp-water .fp-hero .fp-lead {
    color: rgba(242, 246, 250, 0.86);
}

.fp-hero-photo {
    display: block;
    width: min(520px, 82vw);
    height: auto;
    margin: 2rem auto 0;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(var(--fp-glow-rgb), 0.28));
}

/* ── 自清潔：徽章圖與步驟 ── */
.fp-cleaning {
    background:
        radial-gradient(ellipse 50% 50% at 25% 50%, rgba(var(--fp-teal-rgb), 0.2), transparent 70%),
        var(--fp-ink);
}

.fp-cleaning .labor-saving-badge {
    border-radius: var(--fp-radius);
}

.fp-cleaning .labor-saving-caption {
    color: var(--fp-dim);
}

/* ── 浮在水面：三種載台的實拍 ── */
.fp-mounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 手機：排兩欄、第三張置中（原本單欄三張正方形照片要捲將近三個畫面） */
@media (max-width: 767.98px) {
    .fp-mounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .fp-mounts li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.375rem);
    }
}

.fp-mounts figure {
    margin: 0;
}

.fp-mounts img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1.25rem;
}

.fp-mounts figcaption {
    margin-top: 0.6rem;
    color: #515154;
    font-size: 0.95rem;
    text-align: center;
}

.fp-water .fp-light .fp-callouts h3 {
    color: #1d1d1f;
}

/* 安裝區的三個重點：淺底版的 fp-callouts */
.fp-light .fp-callouts p {
    color: #515154;
}

/* ── 連動：魚塭設備架構圖放在淺色面板上（圖文分離標籤是深藍字） ── */
.fp-diagram {
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    padding: clamp(1rem, 0.5rem + 2vw, 2rem);
    border-radius: var(--fp-radius);
    background: #fff;
    color: #1d1d1f;
}

/* 白色面板在深色區塊裡：焦點外框改回深綠（手機上可左右滑動的架構圖會取得焦點，白框在白底上看不見） */
.fp-diagram {
    --focus-ring-color: var(--green-800);
}

.fp-diagram > p {
    color: #515154;
    text-align: center;
    margin: 0 auto 1.5rem;
}

/* ── 適用場景：淺底上的照片列 ── */
.fp-light .fp-gallery figcaption {
    color: #515154;
}

/* 照片列 → 左右按鈕 → 相關頁連結；按鈕隱藏時連結仍保留間距 */
.fp-scenes {
    margin-bottom: 0;
}

.fp-water #applications .fp-app-links {
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* 安裝區照片下方的三個重點：992px 以上排三欄（平板直式三欄只剩約 210px，外語標題、說明擠成很多行）；
   768～991px 排兩欄、第三項橫跨整列 */
.fp-install-points {
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .fp-install-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-install-points li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .fp-install-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fp-water .fp-callouts li {
    border-left-color: var(--line-color);
}

.fp-water .fp-dark .fp-callouts li {
    border-left-color: rgb(var(--fp-glow-rgb));
}

/* 連動設定範例：標題在上、規則卡在下（farmerpack 的林口案例是 992px 以上左文右卡） */
.fp-water .fp-case-log figcaption {
    padding: 2rem 2rem 1.25rem;
}

.fp-water .fp-case-rules {
    padding: 0 2rem 2rem;
}

@media (max-width: 575.98px) {
    .fp-water .fp-case-log figcaption {
        padding: 1.5rem 1.25rem 1rem;
    }

    .fp-water .fp-case-rules {
        padding: 0 1.25rem 1.5rem;
    }
}

/* 平台面板的勾選圖示跟著產品線換成藍色（同區的卡片圖示、保固圖示都是藍色）；按鈕與連結仍是品牌綠 */
.fp-water .fp-checks .bi {
    color: var(--line-color);
}

/* 平台面板上方的魚塭空拍（直式圖裁成橫幅） */
.fp-panel img.fp-panel-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
}

/* ── 模組化：探頭組合示意（SVG 線稿，發光藍） ── */
.fp-module-art {
    max-width: 520px;
    margin: 0 auto;
}

.fp-module-art svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(var(--fp-glow-2-rgb), 0.45));
}

.fp-module-art :is(.fp-host, .fp-probe) :is(rect, polygon, line) {
    fill: rgba(var(--fp-glow-rgb), 0.06);
    stroke: rgb(var(--fp-glow-rgb));
    stroke-width: 2;
}

.fp-module-art .fp-probe-tip {
    fill: rgba(var(--fp-glow-rgb), 0.35);
}

.fp-module-art .fp-led {
    fill: var(--fp-hi);
}

.fp-module-art text {
    fill: var(--fp-text);
    font-size: 15px;
    font-weight: 600;
}

.fp-module-art .fp-host-name {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.fp-module-art .fp-probe-more :is(rect, line) {
    fill: none;
    stroke-dasharray: 6 6;
    opacity: 0.7;
}

.fp-module-art .fp-probe-more text {
    font-size: 26px;
    font-weight: 400;
    fill: rgb(var(--fp-glow-rgb));
}

.fp-module-art .fp-water-line {
    fill: none;
    stroke: rgba(var(--fp-glow-rgb), 0.55);
    stroke-width: 1.5;
}

.fp-module-art .fp-bubbles circle {
    fill: none;
    stroke: rgba(var(--fp-glow-rgb), 0.6);
    stroke-width: 1.5;
}

.fp-module-art .fp-probe-long {
    font-size: 13px;
}

/* 手機：示意圖縮到約 336～366px 寬（原寸 520），探頭標籤只剩 8～10px；放大到約 11px（NH₃-N 仍放得進 58 寬的探頭） */
@media (max-width: 767.98px) {
    .fp-module-art text {
        font-size: 17px;
    }

    .fp-module-art .fp-host-name {
        font-size: 22px;
    }

    .fp-module-art .fp-probe-long {
        font-size: 16px;
        letter-spacing: -0.02em;
    }
}
