@charset "UTF-8";

/* ===== Commercial 頁面基礎 ===== */
.commercial-page {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* =========================================================
   Header：UI 與原本 navbar 完全相同，只把底色改成黑色。
   （原本 navbar 樣式來自 app.scss + Bootstrap，這裡只做黑底覆蓋）
   ========================================================= */
.commercial-dark-nav {
    background-color: #000;
}

/* 桌機（navbar-expand-xl 展開、選單在黑色橫條上）：只把「上層」選單文字改白。
   注意：
   - 只選 .navbar-nav > .nav-item > .nav-link（直接子代），不動下拉 popup 內的
     .dropdown-item，否則白底 popup 會白字看不到。
   - 加上 .show > .nav-link，覆蓋 Bootstrap 下拉開啟時的 active-color（預設近黑），
     否則開啟中的項目會在黑底上變黑字。 */
@media (min-width: 1200px) {
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link,
    .commercial-dark-nav .navbar-nav .show > .nav-link {
        color: #fff;
    }

    /* hover 字體維持白色（覆蓋基礎 app.scss 的 .nav-item a:hover 綠色），不變綠 */
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link:hover,
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link:focus {
        color: #fff;
    }

    /* 上層項目：改 flex 讓文字與 chevron（::after）垂直置中（原本 Bootstrap 是 block，沒對齊）。
       另預留一條透明底線，dropdown 開啟（.show）時亮綠色，用透明底線佔位避免開啟瞬間文字上下位移。 */
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link {
        display: flex;
        align-items: center;
        border-bottom: 1px solid transparent;
    }

    /* Bootstrap 5.3 開啟時把 .show 加在 nav-link（<a>）本身，不是父層 <li>，
       所以直接選 .nav-link.show，另外用 aria-expanded 保險。 */
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link.show,
    .commercial-dark-nav .navbar-nav > .nav-item > .nav-link[aria-expanded="true"] {
        border-bottom-color: #6EBE49;
    }
}

/* 手機漢堡按鈕在黑底上要看得見（原本 icon 為深色）；border 拔掉 */
.commercial-dark-nav .navbar-toggler {
    border: none;
}

.commercial-dark-nav .navbar-toggler:focus {
    box-shadow: none;
}

/* 漢堡 icon 改純白：直接覆蓋成白色 stroke 的 SVG（不用 filter，避免原圖半透明殘留變灰） */
.commercial-dark-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =========================================================
   Header popup（下拉選單）：桌機浮動 popup 與手機 offcanvas 統一改成
   半透明深色玻璃底（#000000B8 + backdrop-filter blur(32px)），文字改白、hover 綠。
   caret 換成新加的 menu-drop.svg（白色 chevron）。
   ========================================================= */

/* dropdown-toggle 的 caret 改用 menu-drop.svg；無子選單的 .close 維持 layout 既有的
   `content:none`（此規則以 :not(.close) 排除，不會替它補回箭頭）。 */
.commercial-dark-nav .dropdown-toggle:not(.close)::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    background: url("../menu-drop.svg") no-repeat center / contain;
}

/* 桌機（navbar 展開 ≥1200px）：下拉為浮動 popup，套玻璃底 + 白字 */
@media (min-width: 1200px) {
    .commercial-dark-nav .dropdown-menu {
        background: var(--color-bg-ground-72, #000000B8);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        border: none;
        /* 往下移一點，讓上層項目開啟時的綠色底線露出來、不被 popup 蓋住 */
        margin-top: 4px;
    }

    .commercial-dark-nav .dropdown-menu .dropdown-item {
        color: #fff;
    }

    /* 選單內的子選項 hover 變綠色 */
    .commercial-dark-nav .dropdown-menu .dropdown-item:hover,
    .commercial-dark-nav .dropdown-menu .dropdown-item:focus {
        color: #6EBE49;
        background-color: transparent;
    }
}

/* 手機（offcanvas 模式 <1200px）：整個 offcanvas 面板套玻璃底 + 白字，
   內部 dropdown-menu 改透明（不再疊第二層深色），關閉鈕改白。 */
@media (max-width: 1199.98px) {
    .commercial-dark-nav .offcanvas {
        background: var(--color-bg-ground-72, #000000B8);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
    }

    /* offcanvas-body 拿掉 padding、內層 ul 也歸零右內距（原 pe-3），
       讓展開的白背景寬度貼齊外層面板。 */
    .commercial-dark-nav .offcanvas .offcanvas-body {
        padding: 0;
    }

    /* 蓋掉 ul 的 .pe-3（Bootstrap utility 帶 !important），右內距才會歸零 */
    .commercial-dark-nav .offcanvas .offcanvas-body .navbar-nav {
        padding-right: 0 !important;
    }

    .commercial-dark-nav .offcanvas .nav-link,
    .commercial-dark-nav .offcanvas .dropdown-item {
        color: #fff;
    }

    /* mobile 父層（上層項目）置中；用 inline-flex 讓寬度=內容寬，
       底線才只到文字寬（縮小、不整行）。比照桌機：透明底線佔位，展開（.show）時亮綠。 */
    .commercial-dark-nav .offcanvas .nav-item {
        text-align: center;
    }

    .commercial-dark-nav .offcanvas .navbar-nav > .nav-item > .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid transparent;
    }

    .commercial-dark-nav .offcanvas .navbar-nav > .nav-item > .nav-link.show,
    .commercial-dark-nav .offcanvas .navbar-nav > .nav-item > .nav-link[aria-expanded="true"] {
        border-bottom-color: #6EBE49;
    }

    /* 上層項目 hover 維持白 */
    .commercial-dark-nav .offcanvas .nav-link:hover,
    .commercial-dark-nav .offcanvas .nav-link:focus {
        color: #fff;
        background-color: transparent;
    }

    /* 選單內的子選項 hover 變綠色 */
    .commercial-dark-nav .offcanvas .dropdown-item:hover,
    .commercial-dark-nav .offcanvas .dropdown-item:focus {
        color: #6EBE49;
        background-color: transparent;
    }

    /* 展開的子選單區塊加一層淡白底，與父層面板做出層次 */
    .commercial-dark-nav .offcanvas .dropdown-menu {
        background: #FFFFFF0D;
        border: none;
    }

    /* 關閉鈕改純白：brightness(0) 先壓成全黑再 invert(1) 反成純白；opacity 拉滿（預設 .5） */
    .commercial-dark-nav .offcanvas .btn-close {
        filter: brightness(0) invert(1);
        opacity: 1;
    }

    /* offcanvas 遮罩背景移除（不要黑色半透明遮罩） */
    .offcanvas-backdrop {
        background-color: transparent;
    }
}

/* =========================================================
   KV 輪播 banner（圖片已內嵌文字，這裡只做外框與控制項樣式）
   ========================================================= */
.commercial-kv {
    width: 100%;
    background-color: #000;
}

.commercial-kv-swiper {
    width: 100%;
    overflow: hidden;
    /* 控制項配色：跟 page 一致（白箭頭、綠色作用中圓點） */
    --swiper-navigation-color: #fff;
    --swiper-navigation-size: 20px;
    --swiper-pagination-color: #6ebe49;
}

.commercial-kv-slide {
    position: relative;
    display: block;
}

/* 底部漸層：只覆蓋底部 30%、緊貼底部 */
.commercial-kv-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.72) 45.67%
    );
    pointer-events: none;
}

.commercial-kv-img {
    display: block;
    width: 100%;
    height: auto;
}

/* 控制項容器：包一層 flex，pagination 靠左、箭頭組靠右（space-between）。
   左右邊距一次調這裡的 padding-x，不必逐一改各項的 left/right。 */
.commercial-kv-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%; /* ← 左右邊距一次調這裡 */
    pointer-events: none; /* 只有按鈕與圓點可點 */
}

/* 箭頭組：兩顆並排靠右 */
.commercial-kv-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

/* 分頁圓點：短橫線，作用中為綠色。靠左（flex 流內），與箭頭圓心對齊 */
.commercial-kv-swiper .commercial-kv-pagination {
    position: static;
    width: auto;
    text-align: left;
    pointer-events: auto;
}

.commercial-kv-swiper .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    opacity: 0.55;
    margin: 0 6px !important;
    transition:
        background 0.3s,
        opacity 0.3s;
}

.commercial-kv-swiper .swiper-pagination-bullet-active {
    background: #6ebe49;
    opacity: 1;
}

/* 左右箭頭：白色圓框（黑底白線）。放進 flex 流內（覆蓋 Swiper 的絕對定位） */
.commercial-kv-swiper .commercial-kv-prev,
.commercial-kv-swiper .commercial-kv-next {
    position: static;
    top: auto;
    margin: 0;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition:
        background 0.2s,
        border-color 0.2s;
}

.commercial-kv-swiper .commercial-kv-prev:hover,
.commercial-kv-swiper .commercial-kv-next:hover {
    background: rgba(108, 194, 74, 0.25);
    border-color: #6ebe49;
}

/* 手機：箭頭隱藏（改用滑動 + 圓點）。
   圖底部的文字幾乎貼到下緣，所以在圖下方留一段黑色帶放圓點，
   圓點靠底、整段黑到底（貼齊 footer）。 */
@media (max-width: 768px) {
    /* 箭頭組隱藏（改用滑動 + 圓點） */
    .commercial-kv-nav {
        display: none;
    }

    .commercial-kv {
        background-color: #000;
    }

    /* 底部漸層在手機縮短為 20% */
    .commercial-kv-slide::after {
        height: 8%;
    }

    /* 圖下方黑色帶（section 多一點 padding-bottom） */
    .commercial-kv-swiper {
        padding-bottom: 80px;
    }

    /* 控制項落在黑色帶內、靠近底部；padding-x 一次控制邊距 */
    .commercial-kv-controls {
        bottom: 40px;
        padding: 0 16px;
    }

    /* 圓點改 flex 撐滿整排（箭頭隱藏後 pagination 獨佔一列） */
    .commercial-kv-swiper .commercial-kv-pagination {
        width: 100%;
        display: flex;
        gap: 20px;
    }

    /* 解除固定寬度，每個 bullet 等分撐滿 100% 寬度（space-between 均分效果） */
    .commercial-kv-swiper .swiper-pagination-bullet {
        flex: 1;
        width: auto;
        margin: 0 !important;
    }
}

/* =========================================================
   第二區塊：儲存策略內容（黑底）
   桌機：圖左、文右；手機：文上（標題置中換行）、圖下。
   ========================================================= */
.commercial-content {
    background-color: #000;
    padding: 100px 40px;
}

.commercial-content-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
}

.commercial-content-media {
    flex: 1 1 50%;
    min-width: 0;
}

.commercial-content-media img {
    display: block;
    width: 100%;
    height: auto;
}

.commercial-content-text {
    flex: 1 1 50%;
    min-width: 0;
    text-align: left;
}

.commercial-content-title {
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.commercial-content-body p {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.9;
    text-align: justify;
}

.commercial-content-body p:last-child {
    margin-bottom: 0;
}

/* 標題內的換行：桌機隱藏（單行），手機顯示（"儲存策略" 後換行） */
.commercial-mbr {
    display: none;
}

@media (max-width: 1280px) {
    .commercial-content-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .commercial-content {
        padding: 60px 24px 72px;
    }

    /* DOM 順序為 media→text，column-reverse 後變成 text 在上、image 在下 */
    .commercial-content-inner {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .commercial-content-media,
    .commercial-content-text {
        flex: none;
        width: 100%;
    }

    .commercial-content-title {
        text-align: center;
        font-size: 32px;
    }

    .commercial-mbr {
        display: block;
    }
    /* 內文字級 mobile 一樣為 20px（沿用上面基礎樣式，不覆寫） */
}

/* =========================================================
   產品系列卡片（4 張，外連另開分頁）
   卡片 bg 為背景圖 + 黑色半透明遮罩、bg-center、超出隱藏；
   產品去背圖疊在上方；卡片寬 342px、padding-x 20px。
   ========================================================= */
.commercial-products {
    background-color: #000;
    padding: 80px 24px;
}

.commercial-products-inner {
    max-width: 1440px; /* 4×342 + 3×24（gap）= 卡片達設計寬時剛好一列 */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* 卡片：桌機 4 欄（寬度上限 342px，容器不足時等比縮小、維持一列不破版）。
   背景圖 cover/center、超出隱藏，整張為外連連結 */
.commercial-product-card {
    position: relative;
    width: calc((100% - 3 * 24px) / 4);
    max-width: 342px;
    min-width: 0;
    min-height: 620px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    text-decoration: none;
    transition: transform 0.3s;
}

/* 黑色半透明遮罩（壓在背景圖上、內容之下） */
.commercial-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* 內容區：padding-x 20px，垂直排列（圖→標題→內文→按鈕） */
.commercial-product-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px 20px;
}

/* 產品去背圖：固定高度、置中、等比不裁切 */
.commercial-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    margin-bottom: 28px;
}

.commercial-product-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 文案群組（標題＋內文＋按鈕）：填滿圖片下方剩餘高度，內部再用 flex 讓按鈕靠底 */
.commercial-product-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.commercial-product-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* 內文：flex:1 把按鈕推到卡片底部（各卡按鈕對齊） */
.commercial-product-desc {
    flex: 1;
    margin: 0 0 28px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.7;
}

/* 立即了解按鈕：白色圓框，右側箭頭 icon（只有這顆是連結、可點） */
.commercial-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    align-self: flex-start;
    padding: 11px 14px 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.commercial-product-btn:hover {
    background: rgba(108, 194, 74, 0.25);
    border-color: #6ebe49;
}

.commercial-product-btn-arrow {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 手機：單欄堆疊、卡片滿版（最大仍 342px 置中）、標題縮為 24px */
/* 平板：2 欄（卡片寬度上限仍 342px） */
@media (max-width: 1280px) {
    .commercial-product-title {
        font-size: 26px;
    }
}

@media (max-width: 1199px) {
    .commercial-product-card {
        width: calc((100% - 24px) / 2);
    }
}

/* 手機：單欄堆疊、卡片滿版（最大仍 342px 置中）、標題縮為 24px */
@media (max-width: 768px) {
    .commercial-products {
        padding: 60px 24px;
    }

    .commercial-product-card {
        width: 100%;
        min-height: auto;
    }

    .commercial-product-title {
        font-size: 24px;
    }
    /* 內文與按鈕字級 mobile 一樣為 16px（沿用基礎樣式，不覆寫） */
}

/* =========================================================
   第三區塊：成功案例輪播（控制項樣式沿用 KV，但版面不同）
   圖片為背景 cover/center（單一尺寸、裁切不變形）；文案匡在左下、含綠色 border-top；
   控制項與文案匡共用同一置中容器，所以 prev 對齊文案匡左側。
   ========================================================= */
.commercial-case {
    background-color: #000;
}

.commercial-case-wrap {
    position: relative;
}

.commercial-case-swiper {
    width: 100%;
    overflow: hidden;
}

/* 每張投影片：圖為背景、cover/center、固定高度裁切 */
.commercial-case-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 890px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-decoration: none;
}

/* 底部漸層：只覆蓋底部 30%、緊貼底部（與 KV 一致） */
.commercial-case-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.72) 45.67%
    );
    pointer-events: none;
}

/* 置中容器：文案匡與控制項共用（左緣一致 → prev 對齊文案匡） */
.commercial-case-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.commercial-case-slide .commercial-case-inner {
    padding-bottom: 140px; /* 讓文案匡落在控制項上方 */
}

/* 文案匡：綠色 border-top */
.commercial-case-box {
    max-width: 620px;
    border-top: 1px solid #6ebe49;
    padding-top: 20px;
}

.commercial-case-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

/* 文案匡進場動畫：border 與文案一起 opacity fade in。
   綁在 .swiper-slide-active，所以每次換頁都會重播（loop 的 clone 變 active 時也會觸發）。
   加 delay 讓圖片先滑到定位（slide speed 700ms）再開始淡入；both 使 delay 期間先維持 opacity:0。 */
.commercial-case-swiper .swiper-slide-active .commercial-case-box {
    animation: commercialCaseFadeIn 1s ease 0.6s both;
}

@keyframes commercialCaseFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 控制項：疊在輪播上、與文案匡同容器；左箭頭組 ↔ 右圓點 */
.commercial-case-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 3;
    pointer-events: none; /* 只有按鈕與圓點可點 */
}

.commercial-case-controls .commercial-case-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.commercial-case-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

/* 箭頭：白色圓框（沿用 KV 視覺），放在 flex 流內（覆蓋 Swiper 的絕對定位） */
.commercial-case-prev,
.commercial-case-next {
    position: static;
    margin: 0;
    width: 48px;
    height: 48px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition:
        background 0.2s,
        border-color 0.2s;
}

.commercial-case-prev::after,
.commercial-case-next::after {
    font-size: 18px;
}

.commercial-case-prev:hover,
.commercial-case-next:hover {
    background: rgba(108, 194, 74, 0.25);
    border-color: #6cc24a;
}

/* 分頁圓點：短橫線、作用中為綠色（沿用 KV 視覺），靠右 */
.commercial-case-pagination {
    position: static;
    width: auto;
    text-align: right;
    pointer-events: auto;
}

.commercial-case-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    opacity: 0.55;
    margin: 0 6px !important;
    transition:
        background 0.3s,
        opacity 0.3s;
}

.commercial-case-pagination .swiper-pagination-bullet-active {
    background: #6cc24a;
    opacity: 1;
}

@media (max-width: 1280px) {
    .commercial-case-slide {
        height: 700px;
    }

    .commercial-case-title {
        font-size: 34px;
    }
}

/* 手機：垂直陳列並置中（文案匡置中、箭頭與圓點置中堆疊） */
@media (max-width: 768px) {
    .commercial-case-slide {
        height: 620px;
    }

    .commercial-case-inner {
        padding: 0 24px;
    }

    .commercial-case-slide .commercial-case-inner {
        padding-bottom: 190px;
        text-align: center;
    }

    .commercial-case-box {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* 標題手機 28px，兩行以上以 ellipsis 收尾 */
    .commercial-case-title {
        font-size: 28px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .commercial-case-controls {
        bottom: 40px;
    }

    .commercial-case-controls .commercial-case-inner {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
    }

    .commercial-case-nav {
        justify-content: center;
    }

    .commercial-case-pagination {
        width: auto;
        text-align: center;
    }
}

/* =========================================================
   問卷區塊：桌機文左、動畫右；手機文上、動畫下。
   背景光流（.commercial-q-bg）預設隱藏並下移，Lottie 播完加 .q-bg-in 後由下往上 fade in。
   ========================================================= */
.commercial-questionnaire {
    position: relative;
    overflow: hidden;
    background-color: #000;
    padding: 100px 40px;
}

/* 背景光流：絕對定位在下半部（桌機偏右、動畫後方），初始隱藏且下移 */
.commercial-q-bg {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 6%;
    width: 70%;
    max-width: 1200px;
    height: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 1s ease,
        transform 1s ease;
    /* 進場延遲 2 秒後才開始由下往上 fade in */
    transition-delay: 2s;
}

/* Lottie 播完（JS 加上此 class）→ 由下往上 fade in */
.commercial-questionnaire.q-bg-in .commercial-q-bg {
    opacity: 1;
    transform: translateY(0);
}

.commercial-q-inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 64px;
}

.commercial-q-text {
    flex: 1 1 52%;
    min-width: 0;
    text-align: left;
}

.commercial-q-title {
    margin: 0 0 28px;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.commercial-q-desc {
    margin: 0 0 40px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.9;
    text-align: justify;
}

/* 查看更多按鈕：綠底、深色字與箭頭 */
.commercial-q-btn {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 11px 16px;
    background: #6ebe49;
    border-radius: 4px;
    color: #191919;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s;
}

.commercial-q-btn:hover {
    background: #7fce5a;
}

.commercial-q-btn-arrow {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 動畫欄：Lottie 置中，容器以 220:274 比例撐開高度 */
.commercial-q-media {
    flex: 1 1 48%;
    min-width: 0;
    display: flex;
    justify-content: center;
}

/* Lottie 插畫：捲進視窗即播放一次（不做任何 fade in，進場動作全交給 Lottie 本身的 draw-on）。 */
.commercial-q-lottie {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 220 / 274;
}

@media (max-width: 1280px) {
    .commercial-q-title {
        font-size: 42px;
    }

    .commercial-q-desc {
        font-size: 22px;
    }

    .commercial-q-lottie {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .commercial-questionnaire {
        padding: 60px 24px 72px;
    }

    /* 文上、動畫下（DOM 順序 text→media，直排即符合），置中 */
    .commercial-q-inner {
        flex-direction: column;
        gap: 40px;
    }

    .commercial-q-text {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .commercial-q-title {
        font-size: 36px;
    }

    .commercial-q-desc {
        font-size: 20px;
    }

    .commercial-q-media {
        flex: none;
        width: 100%;
    }

    .commercial-q-lottie {
        max-width: 240px;
    }

    /* 背景光流改置於底部、滿版（略為超出以維持流動感） */
    .commercial-q-bg {
        right: 50%;
        bottom: 0;
        width: 150%;
        transform: translate(50%, 60px);
    }

    .commercial-questionnaire.q-bg-in .commercial-q-bg {
        transform: translate(50%, 0);
    }
}

/* =========================================================
   最後區塊：聯絡我們 CTA
   背景 contact-bg.webp（bg-center、cover、超出隱藏），文案水平置中。
   ========================================================= */
.commercial-contact {
    position: relative;
    overflow: hidden;
    background-color: #000;
    background-image: url("../contact-bg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 90px 40px;
}

/* 黑色半透明遮罩（壓在背景圖上、文案之下） */
.commercial-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.commercial-contact-inner {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.commercial-contact-title {
    margin: 0 0 20px;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.commercial-contact-desc {
    margin: 0 0 32px;
    max-width: 760px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.8;
    text-align: center;
    line-height: 1.5em;
}

/* 聯絡我們按鈕：綠底、深色字與箭頭（沿用問卷區塊按鈕視覺） */
.commercial-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 11px 16px;
    background: #6ebe49;
    border-radius: 4px;
    color: #191919;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s;
}

.commercial-contact-btn:hover {
    background: #7fce5a;
}

.commercial-contact-btn-arrow {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@media (max-width: 1280px) {
    .commercial-contact-title {
        font-size: 40px;
    }

    .commercial-contact-desc {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .commercial-contact {
        padding: 130px 24px;
    }

    .commercial-contact-title {
        font-size: 36px;
    }

    .commercial-contact-desc {
        font-size: 28px;
    }
}

/* =========================================================
   右下角固定浮動聯絡卡（130×148、黑底、logo＋文字＋綠色按鈕）
   ========================================================= */
.commercial-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 130px;
    height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    background: #000;
    border-radius: 8px;
    text-decoration: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* 捲到 footer 時淡出隱藏 */
.commercial-fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.commercial-fab-logo {
    display: block;
    width: 44px;
    height: auto;
}

.commercial-fab-text {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    text-align: center;
}

.commercial-fab-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: #6ebe49;
    border-radius: 4px;
    color: #191919;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.commercial-fab-btn:hover {
    background: #7fce5a;
}

/* =========================================================
   Footer（與 /tw/zh/north-star 相同，樣式取自 north-star style.css）
   ========================================================= */
.ns-footer {
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: #e6e6e6;
}

.ns-footer-title {
    text-align: center;
    padding: 40px 0 20px;
    font-size: 32px;
    color: #000;
    margin: 0;
}

/* 推薦通路 */
.ns-recommend {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ns-recommend-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #575757;
    margin: 24px 0px;
    text-align: center;
}

.ns-recommend-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ns-recommend-logo {
    background-color: #fff;
    border-radius: 12px;
    height: 70px;
    flex: 1;
    max-width: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.ns-recommend-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 追蹤 Seagate 區塊 - 黑底白字 */
.ns-footer-bottom {
    background-color: #000;
    color: #fff;
    padding: 40px 80px 15px;
}

.ns-fallow {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
}

.ns-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.ns-social-icons a img {
    width: 44px;
    height: 44px;
}

.ns-footer-hr {
    border-color: #fff;
}

.ns-footer-link {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    color: #fff;
}

.ns-footer-link a {
    font-size: 11.5px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.ns-footer-link div {
    color: rgba(255, 255, 255, 0.5);
}

.ns-copyright {
    background-color: #000;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding-bottom: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .ns-recommend {
        padding: 0 16px 30px;
        gap: 12px;
    }

    .ns-recommend-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .ns-recommend-logo {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        height: 56px;
    }
    .ns-recommend-product-title {
        font-size: 20px;
        margin: 16px 0px;
    }

    .ns-footer-title {
        font-size: 24px;
        padding: 30px 0 16px;
    }

    .ns-footer-bottom {
        padding: 30px 40px 15px;
    }

    .ns-fallow {
        display: block;
        text-align: center;
    }

    .ns-copyright {
        display: block;
        line-height: 2;
    }
}

/* =========================================================
   提示 modal（partials.notice-modal）：全屏黑色半透明蓋版 + 置中浮窗。
   ========================================================= */
.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

.notice-modal[hidden] {
    display: none;
}

.notice-modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    background: #2c2c2c;
    border-radius: 8px;
    box-shadow: 0px 4px 54px 0px #000000f2;
    text-align: center;
}

.notice-modal-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.notice-modal-desc {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.notice-modal-btn {
    margin-top: 8px;
    padding: 12px 32px;
    background: #6ebe49;
    border: none;
    border-radius: 4px;
    color: #191919;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.notice-modal-btn:hover {
    background: #7fce5a;
}
