/*
Theme Name: 富宸全方位 Full Trend
Theme URI: https://fulltrend-globe.com
Author: nongdesign
Author URI: https://github.com/nongdesign
Description: 富宸全方位股份有限公司（Full Trend Co.,Ltd.）官方網站主題。PCB 設備/材料代理商的 B2B 形象與產品型錄站，由 Repair-Pro HTML template 轉換而成的 WordPress classic theme。
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fulltrend
Tags: classic-theme, business, catalog
*/

/* =========================================================
   主題覆寫層（在 template 樣式之後載入，故能蓋過原字型）
   實際版面樣式來自 assets/css/{bootstrap,style,responsive}.css
   ========================================================= */

:root {
    --ft-font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", "Heiti TC", sans-serif;
}

/* 全站文字一律使用 Noto Sans TC
   （強制覆蓋 template 既有的 Rubik / Open Sans / Titillium Web / Assistant / Rasa 等字型） */
* {
    font-family: var(--ft-font-sans) !important;
}

/* 還原 Font Awesome 6 圖示字型。
   重點：同時鎖定「元素」與「::before」並加 !important —— template 對
   .icon-box i:before 設了舊圖示字型(Flaticon/FA4)、且比例優先序更高，
   只有用 !important 才能讓 FA6 的字型與字重(solid=900)生效，圖示才不會變方塊。 */
.fa, .fas, .fa-solid,
.fa::before, .fas::before, .fa-solid::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.far, .fa-regular,
.far::before, .fa-regular::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}
.fab, .fa-brands,
.fab::before, .fa-brands::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* CJK 無空格斷詞，避免長字串溢出 */
body {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Logo 鎖定組合：圖標 + 公司名（富宸全方位 / Full Trend Co., Ltd. 垂直排列）。
   顏色由 CSS 的 color / currentColor 統一控制（同時套用到 logo 圖標與文字）。 */
.ft-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.ft-logo-link svg {
    display: block;
    width: auto;
    height: 56px;
    flex: none;
}
.ft-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}
.ft-logo-zh {
    font-size: 28px; /* header */
    font-weight: 700;
    letter-spacing: 1px;
}
.ft-logo-en {
    font-size: 15px; /* header */
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

/* 顏色：改這裡的 color 即可同時換 logo 圖標與文字顏色 */
.main-header .logo .ft-logo-link {
    color: var(--ft-c-logo-header, #1d2733); /* 淺色 header → 深色 logo + 文字（後台可調） */
}
.main-header .logo .ft-logo-link:hover {
    color: var(--ft-c-primary, #3aa9c9); /* hover 轉主色 */
}
.footer-section .logo-widget .ft-logo-link {
    color: var(--ft-c-logo-footer, #ffffff); /* 深色頁尾 → 白色 logo + 文字（後台可調） */
}
.footer-section .logo-widget .ft-logo-link svg {
    height: 50px;
}
.footer-section .logo-widget .ft-logo-zh {
    font-size: 26px;
}
.footer-section .logo-widget .ft-logo-en {
    font-size: 14px;
}

/* 移除頁面載入動畫（preloader）— 不再於載入/切換頁面時閃一下 loading */
.preloader {
    display: none !important;
}

/* 隱藏 header 搜尋 UI（本站不提供搜尋；搜尋功能另於 inc/disable-search.php 停用） */
.main-header .more-option {
    display: none !important;
}

/* =========================================================
   首頁 Hero（Swiper，取代 Revolution Slider）
   ========================================================= */
.ft-hero {
    position: relative;
}
.ft-hero .ft-hero-swiper {
    width: 100%;
    height: 600px;
}
.ft-hero .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.ft-hero .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--ft-c-hero-overlay-rgba, rgba(13, 26, 46, 0.55));
}
.ft-hero .container {
    position: relative;
    z-index: 2;
}
.ft-hero-caption {
    max-width: 640px;
    color: #fff;
}
.ft-hero-caption h2 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
}
.ft-hero-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 28px;
}
.ft-hero .swiper-button-prev,
.ft-hero .swiper-button-next {
    color: #fff;
}
.ft-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}
.ft-hero .swiper-pagination-bullet-active {
    opacity: 1;
}
@media (max-width: 767px) {
    .ft-hero .ft-hero-swiper {
        height: 430px;
    }
    .ft-hero-caption h2 {
        font-size: 28px;
    }
    .ft-hero-caption p {
        font-size: 16px;
    }
}

/* =========================================================
   移除 template 殘留的灰色 placeholder 裝飾背景
   （關於區塊的 :before 為大面積裝飾面板，置於文字後方，
     放照片會影響可讀性，故移除）
   ========================================================= */
.about-section .about-content:before,
.video-section:before {
    background-image: none;
}

/* =========================================================
   Contact Form 7 表單樣式（模板未含 CF7 樣式，補上以符合主題外觀）
   ========================================================= */
.contact-form-box .wpcf7 { max-width: 100%; }
.wpcf7-form p { margin: 0 0 20px; }
.wpcf7-form label {
    display: block !important; /* 蓋過模板的 label{display:none !important} */
    font-weight: 500;
    color: var(--ft-c-heading, #222222);
    margin-bottom: 6px;
}
.wpcf7-form .wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--ft-c-border, #e5e5e5);
    border-radius: 4px;
    background: #fff;
    color: var(--ft-c-heading, #222222);
    line-height: 1.6;
    transition: border-color 0.2s ease;
}
.wpcf7-form textarea {
    height: 160px;
    resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--ft-c-primary, #60c5e4);
    outline: none;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: var(--ft-c-body-text, #848484); }
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    min-width: 180px;
    height: 52px;
    padding: 0 36px;
    border: none;
    border-radius: 4px;
    background: var(--ft-c-primary, #60c5e4);
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.wpcf7-form .wpcf7-submit:hover { filter: brightness(0.92); }
.wpcf7-form .wpcf7-spinner { margin: 0 0 0 10px; }
.wpcf7-not-valid-tip { color: #d63638; font-size: 13px; margin-top: 4px; }
.wpcf7-form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
}

/* =========================================================
   產品型錄卡片：統一圖片高度，網格對齊（比照 shop-page.html 方正網格）
   ========================================================= */
.shop-page .single-item .img-box figure { margin: 0; }
.shop-page .single-item .img-box figure img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   卡片 hover 動畫加快為 0.25s（服務項目 + 產品型錄）
   ========================================================= */
.service-section .overlay-box,
.service-section .img-content,
.service-section .inner-box:hover .overlay-box,
.service-section .inner-box:hover .img-content,
.service-section .img-content a,
.shop-page .overlay-box,
.shop-page .img-content,
.shop-page .inner-box:hover .overlay-box,
.shop-page .inner-box:hover .img-content,
.shop-page .single-item .img-content a {
    transition: all 0.25s ease !important;
}

/* 服務單頁的 sidebar-title 對齊產品型錄的 sidebar-title 樣式
   （模板只有 .shop-page .sidebar-title 有樣式，服務頁不在 .shop-page 下故無樣式）*/
.sidebar-page-container .sidebar-title {
    position: relative;
    display: block;
    font-size: 20px;
    line-height: 30px;
    color: var(--ft-c-heading, #222222);
    margin-bottom: 22px;
}

/* =========================================================
   服務卡片 hover 時，滑入的文字與按鈕垂直置中
   （首頁「核心服務」+「服務項目」頁，皆為 .service-section）
   ========================================================= */
.service-section .img-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0 !important;
    height: 100%;
    transform: translateY(24px);
}
.service-section .inner-box:hover .img-content {
    top: 0 !important;
    transform: translateY(0);
}

/* 預約表單 textarea 也撐滿容器寬度、樣式對齊 input（模板只設了 input）*/
.appointment-section .appointment-area textarea {
    width: 100%;
    height: 110px;
    padding: 10px;
    border: 1px solid #8a9699;
    margin-bottom: 20px;
    background: transparent;
    color: #fff;
    resize: vertical;
}
.appointment-section .appointment-area textarea::placeholder { color: #b7c0c3; }

/* 首頁「為何選擇富宸」中間圖片高度切齊 430px（原圖過高） */
.choose-section .img-box figure { margin: 0; }
.choose-section .img-box figure img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
}

/* 移除模板「預約技術諮詢」區塊的 margin-top:-136px,否則其背景會往上
   蓋住「為何選擇富宸」(choose-section)底部（桌面版可見的重疊)。 */
.appointment-section { margin-top: 0; }

/* choose-section 模板上方已有 90px padding、下方為 0;補上下方 90px 使上下對稱 */
.choose-section { padding-bottom: 90px; }

/* =========================================================
   詳情頁內容美化 — 服務單頁 .service-detail / 產品單頁 .single-content
   設計語彙(呼應 PCB 主題):品牌青「線路 trace」直條標題、菱形「焊點 pad」
   列點與分類 tag、型號規格以技術 spec 區塊呈現。顏色皆走顏色控制變數。
   ========================================================= */

/* 特色圖:圓角 + 柔和陰影 */
.service-detail .image-box { margin-bottom: 34px; }
.service-detail .image-box img,
.single-product .img-box figure img {
    width: 100%;
    height: auto;               /* 避免 the_post_thumbnail() 的 height 屬性把圖片拉變形 */
    border-radius: 10px;
    box-shadow: 0 18px 45px -20px rgba(13, 26, 46, 0.4);
}

/* 標題:左側青色 trace 直條 */
.service-detail .content h2,
.single-content > h2 {
    position: relative;
    margin: 0 0 24px;
    padding-left: 22px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ft-c-heading, #222222);
}
.service-detail .content h2::before,
.single-content > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 5px;
    border-radius: 3px;
    background: var(--ft-c-primary, #60c5e4);
}

/* 內文:舒適行高與量測寬度 */
.service-detail .content .text,
.single-content .text {
    max-width: 760px;
    color: var(--ft-c-body-text, #848484);
    font-size: 16px;
    line-height: 1.95;
}
.service-detail .content .text > :first-child,
.single-content .text > :first-child { margin-top: 0; }
.service-detail .content .text p,
.single-content .text p { margin: 0 0 18px; }
.service-detail .content .text h3, .service-detail .content .text h4,
.single-content .text h3, .single-content .text h4 {
    margin: 30px 0 12px;
    color: var(--ft-c-heading, #222222);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.service-detail .content .text a,
.single-content .text a { color: var(--ft-c-primary, #60c5e4); text-decoration: underline; }
/* 菱形焊點列點 */
.service-detail .content .text ul,
.single-content .text ul { margin: 0 0 18px; padding: 0; list-style: none; }
.service-detail .content .text ul li,
.single-content .text ul li { position: relative; padding-left: 26px; margin-bottom: 11px; }
.service-detail .content .text ul li::before,
.single-content .text ul li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 11px;
    width: 8px;
    height: 8px;
    background: var(--ft-c-primary, #60c5e4);
    transform: rotate(45deg);
}

/* 產品:型號 / 規格 — 技術 spec 區塊 */
.single-content .product-model {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0 0 24px;
    padding: 15px 20px;
    background: #f5f8fb;
    border: 1px solid var(--ft-c-border, #e5e5e5);
    border-left: 4px solid var(--ft-c-primary, #60c5e4);
    border-radius: 6px;
    font-size: 16px;
    color: var(--ft-c-heading, #222222);
}
.single-content .product-model strong { font-weight: 700; letter-spacing: 0.5px; }

/* 產品:分類 — 焊點 tag */
.single-content .catagories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed var(--ft-c-border, #e5e5e5);
    color: var(--ft-c-body-text, #848484);
    font-size: 14px;
}
.single-content .catagories .cat-label { margin-right: 4px; }
.single-content .catagories a {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--ft-c-primary, #60c5e4);
    border-radius: 999px;
    color: var(--ft-c-primary, #60c5e4);
    font-size: 13px;
    line-height: 1.6;
    transition: all 0.25s ease;
}
.single-content .catagories a:hover {
    background: var(--ft-c-primary, #60c5e4);
    color: #fff;
}
/* 模板把 .single-product .text 整段當成青色短標語(22px/600)；產品頁 .text 是完整內文，
   用相同 specificity 的選擇器(本檔較晚載入即勝)還原為一般內文樣式。 */
.shop-page .single-product .single-content .text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;
    /* !important 蓋過 ft-color-map.css 較晚載入、把 .text 重新上成 --ft-c-primary 的規則 */
    color: var(--ft-c-body-text, #848484) !important;
}
.shop-page .single-product .single-content .text p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--ft-c-body-text, #848484) !important;
}
.shop-page .single-product .single-content .text strong {
    color: var(--ft-c-heading, #222222);
    font-weight: 700;
}

/* =========================================================
   關於我們（template-about.php）— PCB「電路板」設計語彙
   節奏:淺(使命)→ 白(核心業務)→ 深色電路板(優勢,視覺主秀)→ CTA。
   全部走 .ft-about-* 命名空間,不與 Repair-Pro 模板類別衝突;
   顏色皆走顏色控制變數(--ft-c-*)。
   ========================================================= */

/* eyebrow 小標:品牌青 trace 線 + 中英雙標 */
.ft-about .ft-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ft-c-heading, #222222);
    margin-bottom: 16px;
}
.ft-about .ft-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--ft-c-primary, #60c5e4);
}
.ft-about .ft-eyebrow span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ft-c-primary, #60c5e4);
}
.ft-about .ft-eyebrow--light { color: #ffffff; }

.ft-about .ft-about-head { margin-bottom: 44px; }
.ft-about .ft-about-head h3 {
    font-size: 30px;
    line-height: 1.3;
    margin: 0;
    color: var(--ft-c-heading, #222222);
}
.ft-about .ft-about-head--light h3 { color: #ffffff; }

/* --- 使命 --- */
.ft-about-mission { padding: 90px 0 80px; background: #f6f8fa; }
.ft-about-mission .ft-about-lead { max-width: 900px; }
.ft-about-mission .ft-about-lead h2 {
    font-size: 32px;
    line-height: 1.5;
    margin: 0 0 34px;
    color: var(--ft-c-heading, #222222);
}
.ft-about-mission-body {
    max-width: 820px;
    padding-left: 28px;
    border-left: 2px solid var(--ft-c-primary, #60c5e4);
}
.ft-about-mission-body p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--ft-c-body-text, #848484);
    margin: 0 0 16px;
}
.ft-about-mission-body p:last-child { margin-bottom: 0; }

/* 經營理念四字 — 焊點 pad 徽章 */
.ft-about-values {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.ft-about-values li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ft-c-heading, #222222);
}
.ft-about-values .ft-pad {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ft-c-primary, #60c5e4);
    box-shadow: 0 0 0 4px rgba(96, 197, 228, 0.18);
}

/* --- 核心業務 --- */
.ft-about-core { padding: 84px 0; background: #ffffff; }
.ft-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ft-card {
    position: relative;
    padding: 40px 32px 34px;
    background: #ffffff;
    border: 1px solid #e8eaee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 頂部青色 trace,hover 由左向右描繪 */
.ft-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ft-c-primary, #60c5e4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.ft-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px -26px rgba(13, 26, 46, 0.5);
    border-color: transparent;
}
.ft-card:hover::before { transform: scaleX(1); }
.ft-card-pad {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(96, 197, 228, 0.12);
    color: var(--ft-c-primary, #60c5e4);
    font-size: 26px;
    margin-bottom: 22px;
}
.ft-card h4 {
    font-size: 19px;
    margin: 0 0 14px;
    color: var(--ft-c-heading, #222222);
}
.ft-card p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ft-c-body-text, #848484);
    margin: 0;
}

/* --- 優勢(深色電路板,視覺主秀)--- */
.ft-about-adv {
    position: relative;
    padding: 90px 0;
    background-color: #23262f;
    background-image:
        linear-gradient(rgba(96, 197, 228, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 197, 228, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    overflow: hidden;
}
/* 板角焊點光暈 */
.ft-about-adv::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(96, 197, 228, 0.22), transparent 70%);
    pointer-events: none;
}
.ft-about-adv .container { position: relative; z-index: 1; }
.ft-about-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ft-adv-item {
    display: flex;
    gap: 18px;
    padding: 30px 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 197, 228, 0.18);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.ft-adv-item:hover {
    border-color: rgba(96, 197, 228, 0.55);
    background: rgba(96, 197, 228, 0.07);
}
.ft-adv-node {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ft-c-primary, #60c5e4);
    color: #10131a;
    font-size: 22px;
    box-shadow: 0 0 0 6px rgba(96, 197, 228, 0.14);
}
.ft-adv-body h4 {
    font-size: 18px;
    margin: 2px 0 12px;
    color: #ffffff;
}
.ft-adv-body p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #b8bfca;
    margin: 0;
}

/* --- CTA --- */
.ft-about-cta { padding: 70px 0; background: #ffffff; }
.ft-about-cta-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.ft-about-cta-inner h3 {
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 26px;
    color: var(--ft-c-heading, #222222);
}

/* --- 響應式 --- */
@media (max-width: 991px) {
    .ft-about-grid,
    .ft-about-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .ft-about-mission { padding: 60px 0 54px; }
    .ft-about-mission .ft-about-lead h2 { font-size: 25px; line-height: 1.45; }
    .ft-about-core,
    .ft-about-adv,
    .ft-about-cta { padding: 60px 0; }
    .ft-about-grid,
    .ft-about-adv-grid { grid-template-columns: 1fr; }
    .ft-about .ft-about-head h3 { line-height: 1.4; }
}

/* --- 尊重「減少動態」偏好 --- */
@media (prefers-reduced-motion: reduce) {
    .ft-card,
    .ft-card::before,
    .ft-adv-item { transition: none; }
    .ft-card:hover { transform: none; }
}

/* =========================================================
   手機版 header + off-canvas 選單(<= 767px)重建
   設計:安靜的白底 header 列(深色置中 logo + 精緻漢堡)+ 自右側滑入的
   深色「電路板」off-canvas 抽屜(青色 trace 選單項、逐項 stagger、遮罩模糊)。
   ========================================================= */

/* 桌機:手機專屬元素一律不顯示 */
.ft-mobile-logo,
.ft-mnav,
.ft-mnav-backdrop { display: none; }

@media only screen and (max-width: 767px) {

    /* 隱藏頂部標語列 + outer-area + 桌機內嵌選單 + 搜尋 */
    .main-header > .container,
    .main-header .outer-area,
    .main-header .header-lower .navbar-collapse,
    .main-header .sticky-header .navbar-collapse,
    .main-header .more-option {
        display: none !important;
    }

    /* --- 手機版 header 永遠 sticky 釘在頂端 --- */
    /* page-wrapper 基底為 overflow:hidden(會建立 scroll container 而破壞 sticky);
       改為 overflow-x:clip(一樣防橫向捲動、但不建立 scroll container)+ overflow-y:visible */
    .page-wrapper {
        overflow-x: clip;
        overflow-y: visible;
    }
    .main-header {
        position: sticky;
        top: 0;
        z-index: 990;   /* 高於內容、低於選單遮罩(1000)/抽屜(1001) */
    }
    /* main-header 已常駐,原本捲動才淡入的浮動 sticky-header 於手機版不再需要 */
    .main-header .sticky-header { display: none !important; }

    /* --- 手機主 header 列:乾淨白底 + 細陰影 --- */
    .main-header .header-lower,
    .main-header .sticky-header {
        padding: 0;
        background: #ffffff;
        box-shadow: 0 2px 14px rgba(20, 28, 46, 0.08);
        border-bottom: 1px solid rgba(20, 28, 46, 0.06);
    }
    .main-header .header-lower .container,
    .main-header .sticky-header .container,
    .main-header .header-lower .row,
    .main-header .sticky-header .row,
    .main-header .header-lower [class*="col-"],
    .main-header .sticky-header [class*="col-"],
    .main-header .header-lower .menu-bar,
    .main-header .sticky-header .menu-bar,
    .main-header .header-lower .main-menu,
    .main-header .sticky-header .main-menu {
        position: static;
    }
    /* menu-bar 內是空的 inline-block(main-menu),其行框會在 logo 下方多撐出高度,
       使 logo 下方空白多於上方;漢堡為絕對定位不佔高度,故將行框歸零,
       讓 header-lower 高度 = logo 列、上下對稱 */
    .main-header .header-lower .menu-bar,
    .main-header .sticky-header .menu-bar {
        line-height: 0;
        font-size: 0;
    }

    /* logo 置中,深色(白底) */
    .ft-mobile-logo {
        display: block;
        height: 62px;
        text-align: center;
        padding: 0 66px;   /* 兩側預留空間,避免與右側漢堡重疊 */
    }
    .ft-mobile-logo .ft-logo-link {
        height: 62px;
        align-items: center;
        color: var(--ft-c-logo-header, #1d2733);
    }
    .ft-mobile-logo .ft-logo-link svg { height: 34px; }
    .ft-mobile-logo .ft-logo-zh { font-size: 19px; }
    .ft-mobile-logo .ft-logo-en { font-size: 11px; }

    /* --- 漢堡按鈕(精緻、絕對定位靠右、垂直置中於列)--- */
    .main-header .header-lower .navbar-header,
    .main-header .sticky-header .navbar-header {
        position: absolute;
        top: 19px;
        right: 16px;
        margin: 0;
        padding: 0;
    }
    /* 選擇器需 >= 模板 responsive.css 的 .main-menu .navbar-header .navbar-toggle */
    .main-header .main-menu .navbar-header .navbar-toggle {
        position: relative;
        display: block;
        width: 30px;
        height: 24px;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        -webkit-appearance: none;
        appearance: none;
    }
    .main-header .main-menu .navbar-header .navbar-toggle .icon-bar {
        position: absolute;
        left: 3px;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--ft-c-heading, #222831);
        transition: transform .3s ease, opacity .2s ease;
    }
    .main-header .main-menu .navbar-header .navbar-toggle .icon-bar:nth-child(1) { top: 5px; }
    .main-header .main-menu .navbar-header .navbar-toggle .icon-bar:nth-child(2) { top: 11px; width: 18px; }
    .main-header .main-menu .navbar-header .navbar-toggle .icon-bar:nth-child(3) { top: 17px; }

    /* --- 背景遮罩(模糊淡入)--- */
    .ft-mnav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 13, 20, 0.5);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
        z-index: 1000;
    }
    body.ft-mnav-active .ft-mnav-backdrop { opacity: 1; visibility: visible; }

    /* --- off-canvas 抽屜(自右滑入,深色電路板)--- */
    .ft-mnav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 84vw;
        max-width: 340px;
        background-color: #1e212b;
        background-image:
            linear-gradient(rgba(96, 197, 228, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(96, 197, 228, 0.05) 1px, transparent 1px);
        background-size: 40px 40px;
        box-shadow: -18px 0 50px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ft-mnav::before {   /* 右上角青色光暈 */
        content: "";
        position: absolute;
        top: -70px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(96, 197, 228, 0.25), transparent 70%);
        pointer-events: none;
    }
    body.ft-mnav-active .ft-mnav { transform: translateX(0); }

    /* 抽屜頂部:品牌 + 關閉 X */
    .ft-mnav-top {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .ft-mnav-brand.ft-logo-link { gap: 10px; color: #ffffff; }
    .ft-mnav-brand svg { height: 30px; }
    .ft-mnav-brand .ft-logo-zh { font-size: 17px; }
    .ft-mnav-brand .ft-logo-en { font-size: 10px; }
    .ft-mnav-close {
        position: relative;
        flex: none;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.06);
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }
    .ft-mnav-close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: #cfd6e0;
        transition: background .2s ease;
    }
    .ft-mnav-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
    .ft-mnav-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
    .ft-mnav-close:hover span { background: var(--ft-c-primary, #60c5e4); }

    /* 選單項目 */
    .ft-mnav-menu { flex: 1 1 auto; padding: 10px 0; }
    .ft-mnav-menu .navigation { list-style: none; margin: 0; padding: 0; }
    .ft-mnav-menu .navigation > li {
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateX(26px);
        transition: opacity .4s ease, transform .4s ease;
    }
    .ft-mnav-menu .navigation > li > a {
        display: block;
        padding: 16px 26px;
        color: #eef1f5;
        font-size: 16.5px;
        font-weight: 500;
        letter-spacing: 0.4px;
        text-decoration: none;
        transition: color .2s ease, padding .25s ease;
    }
    .ft-mnav-menu .navigation > li::before {   /* 青色 trace 直條 */
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        background: var(--ft-c-primary, #60c5e4);
        transform: translateY(-50%);
        transition: height .25s ease;
    }
    .ft-mnav-menu .navigation > li.current > a,
    .ft-mnav-menu .navigation > li.current-menu-item > a,
    .ft-mnav-menu .navigation > li.current_page_item > a,
    .ft-mnav-menu .navigation > li.current-menu-ancestor > a,
    .ft-mnav-menu .navigation > li.active > a,
    .ft-mnav-menu .navigation > li > a:hover {
        color: var(--ft-c-primary, #60c5e4);
        padding-left: 32px;
    }
    .ft-mnav-menu .navigation > li.current::before,
    .ft-mnav-menu .navigation > li.current-menu-item::before,
    .ft-mnav-menu .navigation > li.current_page_item::before,
    .ft-mnav-menu .navigation > li.current-menu-ancestor::before,
    .ft-mnav-menu .navigation > li.active::before,
    .ft-mnav-menu .navigation > li:hover::before { height: 58%; }

    /* 開啟時項目逐一滑入(stagger) */
    body.ft-mnav-active .ft-mnav-menu .navigation > li { opacity: 1; transform: translateX(0); }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(1) { transition-delay: .10s; }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(2) { transition-delay: .16s; }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(3) { transition-delay: .22s; }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(4) { transition-delay: .28s; }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(5) { transition-delay: .34s; }
    body.ft-mnav-active .ft-mnav-menu .navigation > li:nth-child(6) { transition-delay: .40s; }

    /* 抽屜底部聯絡快捷 */
    .ft-mnav-contact {
        padding: 18px 26px 26px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .ft-mnav-contact a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        color: #b9c1cd;
        font-size: 14px;
        text-decoration: none;
        transition: color .2s ease;
    }
    .ft-mnav-contact a i {
        flex: none;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(96, 197, 228, 0.12);
        color: var(--ft-c-primary, #60c5e4);
        font-size: 13px;
    }
    .ft-mnav-contact a:hover { color: #ffffff; }

    /* 開啟時鎖住背景捲動 */
    body.ft-mnav-active { overflow: hidden; }
}

/* 尊重「減少動態」偏好 */
@media only screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .ft-mnav,
    .ft-mnav-backdrop,
    .ft-mnav-menu .navigation > li { transition: none; }
}
