/* =============================================
   建邦紙器有限公司 - Main CSS
   Theme: 米白底 ＋ 咖啡金（對照新版首頁設計圖）
   ============================================= */

:root {
    /* 色票 */
    --c-bg: #f5f3ef; /* 頁面底色（米白） */
    --c-bg2: #ece8e1; /* 交錯區塊底色 */
    --c-surface: #ffffff; /* 卡片 */
    --c-border: #e2dbd0; /* 細邊框 */
    --c-ink: #2b2623; /* 標題深咖 */
    --c-text: #4b443e; /* 內文 */
    --c-muted: #7d746b; /* 次要文字 */
    --c-brown: #a17f57; /* 主色：咖啡金 */
    --c-brown-dark: #82633f; /* hover / 深色 */
    --c-gold: #d4b088; /* 深底上的亮金 */
    --c-dark: #262220; /* Footer 深色 */

    --font-main:
        "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 6px 24px rgba(60, 44, 28, 0.08);
    --shadow-lift: 0 12px 32px rgba(60, 44, 28, 0.14);

    --header-h: 80px;

    /* 舊 class 相容用：讓尚未改版的頁面不會失去顏色變數 */
    --c-magenta: var(--c-brown);
    --c-orange: var(--c-gold);
    --c-purple: var(--c-brown-dark);
    --c-pink: var(--c-brown-dark);
    --grad-main: linear-gradient(135deg, #b8935f 0%, #9a7750 100%);
    --grad-text: linear-gradient(90deg, #dcbc90, #b98d5a);
    --shadow-glow: var(--shadow-soft);
}

@media (max-width: 991px) {
    :root {
        --header-h: 68px;
    }
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c-brown-dark);
}

:focus-visible {
    outline: 2px solid var(--c-brown);
    outline-offset: 3px;
}

.py-6 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   NAVBAR
   ============================================= */
#mainNav {
    background: rgba(247, 245, 241, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    min-height: var(--header-h);
    transition:
        box-shadow 0.3s ease,
        background 0.3s ease;
}
#mainNav.scrolled {
    background: rgba(247, 245, 241, 0.98);
    box-shadow: 0 4px 20px rgba(60, 44, 28, 0.1);
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.navbar-brand {
    margin-right: 1rem;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.brand-zh {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.brand-en {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    white-space: nowrap;
}
@media (max-width: 400px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    .brand-zh {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }
    .brand-en {
        font-size: 0.5rem;
    }
}

.navbar-nav .nav-link {
    color: var(--c-ink) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.9rem !important;
    position: relative;
    transition: color 0.2s;
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--c-brown);
    transition: all 0.25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--c-brown-dark) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    left: 0.9rem;
    right: 0.9rem;
}

.navbar-toggler {
    border: 1px solid var(--c-border);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: transparent;
}
.navbar-toggler-icon-custom {
    color: var(--c-ink);
    font-size: 1.4rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    #mainNav .navbar-collapse {
        background: #f7f5f1;
        padding: 0.5rem 0 1rem;
        border-top: 1px solid var(--c-border);
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-glow {
    background: var(--c-brown);
    border: 1px solid var(--c-brown);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.08em;
    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}
.btn-glow:hover,
.btn-glow:focus-visible {
    background: var(--c-brown-dark);
    border-color: var(--c-brown-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(130, 99, 63, 0.35);
}

/* 深底（Banner）上的描邊按鈕 */
.btn-outline-light-custom {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}
.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff;
}

/* 「查看更多案例」小按鈕 */
.btn-more {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--c-brown);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-more:hover {
    background: var(--c-brown-dark);
    color: #fff;
}

/* CTA 條上的描邊按鈕 */
.btn-cta-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    border-radius: var(--radius-sm);
    padding-left: 2.6rem;
    padding-right: 2.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    transition:
        background 0.2s,
        color 0.2s;
}
.btn-cta-outline:hover {
    background: #fff;
    color: var(--c-brown-dark);
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
    line-height: 1.4;
    margin-bottom: 1.4rem;
}
.title-sep {
    font-weight: 300;
    color: var(--c-brown);
    margin: 0 0.25em;
}
.section-lead {
    font-size: 1rem;
    color: var(--c-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.85;
}
.about-text {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--c-text);
    margin-bottom: 1rem;
}

/* =============================================
   BANNER（滿版）
   ============================================= */
.section-banner {
    position: relative;
    overflow: hidden;
    background: #1f1b18;
    line-height: 0;
}
.banner-swiper {
    width: 100%;
}

.section-banner .swiper-slide {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    display: flex;
    align-items: center;
}
@media (max-width: 1024px) {
    .section-banner .swiper-slide {
        height: 90svh;
    }
}
@media (max-width: 768px) {
    .section-banner .swiper-slide {
        height: 88svh;
        min-height: 600px;
    }
}
@media (max-width: 480px) {
    .section-banner .swiper-slide {
        height: 100svh;
        min-height: 620px;
    }
}

.banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 遮罩：左深右淺，讓文字清楚、右側產品圖不被壓暗 */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(24, 19, 15, 0.9) 0%,
        rgba(24, 19, 15, 0.62) 48%,
        rgba(24, 19, 15, 0.18) 100%
    );
    z-index: 1;
}
@media (max-width: 991px) {
    .banner-overlay {
        background: linear-gradient(
            180deg,
            rgba(24, 19, 15, 0.88) 0%,
            rgba(24, 19, 15, 0.7) 55%,
            rgba(24, 19, 15, 0.4) 100%
        );
    }
}

/* 整張 slide 可點擊（後台「圖片連結」有填才會輸出） */
.banner-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    line-height: 1.5;
    padding-top: var(--header-h);
    padding-bottom: 56px;
}

.banner-text {
    max-width: 620px;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #e8dccb;
    margin-bottom: 18px;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold);
    flex-shrink: 0;
}

.banner-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    margin: 0 0 16px;
}
.banner-title .gradient-text {
    background: linear-gradient(90deg, #e2c49a, #b98d5a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.banner-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.06em;
    line-height: 1.8;
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* 重點關鍵字列（gap 已縮小，避免「專業團隊」被右側產品圖壓到） */
.banner-keywords {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 16px 20px;
}
.banner-keywords li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bk-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.bk-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left;
}
.bk-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
}
.bk-text small {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.banner-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.banner-btn-row .btn {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
}

/* ---------------------------------------------
   浮動產品圖（透明背景 PNG / WebP）
   結構：
     .banner-float-col
       └ .banner-float-wrap   ← 滑鼠視差（JS 更新 --mx / --my）
           ├ .banner-float-img    ← 上下漂浮
           └ .banner-float-shadow ← 地面陰影（與漂浮同步）
   各層各自負責一種 transform，互不衝突
   --------------------------------------------- */
.banner-float-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-float-wrap {
    --float-amp: 16px; /* 漂浮幅度 */
    --float-dur: 5s; /* 漂浮週期（圖片與陰影共用） */
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-bottom: 28px; /* 留給地面陰影 */
    transform: perspective(900px)
        translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0)
        rotateY(calc(var(--mx, 0) * 6deg)) rotateX(calc(var(--my, 0) * -4deg));
    transition: transform 0.25s ease-out;
}

.banner-float-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 66svh;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
    will-change: transform;
    animation: bannerFloat var(--float-dur) ease-in-out infinite;
}

.banner-float-shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 68%;
    height: 22px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    filter: blur(6px);
    transform: translateX(-50%);
    animation: bannerShadow var(--float-dur) ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-0.6deg);
    }
    50% {
        transform: translateY(calc(var(--float-amp) * -1)) rotate(0.6deg);
    }
}
@keyframes bannerShadow {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.5;
    }
}

/* 進場：只在目前顯示的 slide 觸發，每次輪播到都會重播 */
.swiper-slide-active .banner-float-col {
    animation: bannerFloatIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
@keyframes bannerFloatIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* 平板／手機：文字置中，產品圖縮小放在文字下方，並降低漂浮幅度 */
@media (max-width: 991px) {
    .banner-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .banner-float-col {
        margin-top: 1.4rem;
    }
    .banner-float-wrap {
        --float-amp: 8px;
        padding-bottom: 18px;
    }
    .banner-float-img {
        max-height: 26svh;
    }
}
@media (max-width: 767px) {
    .banner-content {
        padding-bottom: 60px;
    }
    .banner-text {
        text-align: center;
    }
    .banner-keywords {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 12px 26px;
        margin-bottom: 22px;
    }
    .banner-btn-row {
        display: flex;
        width: 100%;
    }
    .banner-btn-row .btn {
        flex: 1;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }
    .banner-float-img {
        max-height: 22svh;
    }
}
@media (max-width: 480px) {
    .banner-title {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }
    .banner-sub {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    .bk-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .bk-text strong {
        font-size: 0.9rem;
    }
    .banner-float-img {
        max-height: 18svh;
    }
}

/* 分頁點 */
.banner-pagination {
    position: absolute !important;
    bottom: 24px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    transform: none !important;
    z-index: 10;
}
.banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    margin: 0 !important;
    transition: background 0.3s;
}
.banner-pagination .swiper-pagination-bullet-active {
    background: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(212, 176, 136, 0.3);
}

/* 進度條 */
.banner-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}
.banner-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--c-gold);
    transition: width 0.1s linear;
}

/* =============================================
   2. 公司簡介
   ============================================= */
.section-about {
    position: relative; /* 讓 ::before 以本區塊為定位基準 */
    background: var(--c-bg);
    overflow: hidden; /* 避免背景圖溢出 */
    isolation: isolate; /* 把 z-index 堆疊層鎖在本區塊內，不影響其他 section */
}
.section-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--about-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -2;
}
.about-photo {
    margin: 0;
    height: 100%;
    min-height: 340px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-brown-dark);
    letter-spacing: 0.04em;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.check-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 4px 0;
    color: var(--c-text);
}
.check-list li i {
    color: var(--c-brown);
    flex-shrink: 0;
    line-height: 1;
}

/* 手機／平板：欄位變單欄堆疊後不需要撐滿高度，改回固定比例更好看 */
@media (max-width: 991px) {
    .about-photo {
        height: auto;
        min-height: 0;
    }
    .about-photo img {
        aspect-ratio: 4 / 3;
        height: auto;
    }
}

/* =============================================
   服務項目（子頁）補充樣式
   貼在 main.css 最下方即可；其餘全部沿用既有 class
   ============================================= */

/* 子頁的服務卡片：等高、hover 微浮起（首頁 .service-card 不受影響） */
.service-card--page {
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.service-card--page:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-brown);
}

/* 條列項目貼底，讓同一列的卡片虛線對齊 */
.service-card--page .service-desc {
    flex-grow: 1;
}

/* 子頁置中標題下方的 lead 顏色，與首頁其他 lead 一致 */
.section-services-page .section-lead {
    color: var(--c-text);
}

/* 重點服務條在子頁置於卡片下方，不需要上方額外間距 */
.section-services-page .services-highlight {
    margin-top: 0;
}

@media (max-width: 575px) {
    .section-services-page .services-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* =============================================
   精選產品（列表頁）：左側盒型選單 + 右側產品
   貼在 main.css 最下方；產品卡沿用首頁 .case-card
   若先前已貼過舊版 .product-side 相關規則，請整段刪除後再貼這份
   ============================================= */

.product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- 左側盒型選單：一格一格的色塊，active 為咖啡金實心並帶箭頭缺口 ---- */
.box-menu {
    position: sticky;
}
.box-menu-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--c-ink);
}
.box-menu-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--c-brown);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0;
}
.box-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.box-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.8rem 1rem 0.8rem 1.15rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-ink);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
    overflow: hidden;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        padding-left 0.25s ease;
}
/* 左側色條：預設細、hover 加寬、active 由實心底色取代 */
.box-menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--c-gold);
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}
.box-menu-count {
    flex-shrink: 0;
    min-width: 28px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f3ece2;
    color: var(--c-brown-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}
.box-menu-item:hover {
    background: #f3ece2;
    border-color: var(--c-gold);
    color: var(--c-brown-dark);
    padding-left: 1.5rem;
}
.box-menu-item:hover::before {
    width: 8px;
}

.box-menu-item.is-active {
    background: linear-gradient(135deg, var(--c-brown), var(--c-brown-dark));
    border-color: var(--c-brown-dark);
    color: #fff;
    padding-left: 1.5rem;
    box-shadow: 0 8px 20px rgba(130, 99, 63, 0.28);
}
.box-menu-item.is-active::before {
    width: 8px;
    background: var(--c-gold);
}
.box-menu-item.is-active .box-menu-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
/* 桌機：active 右側的小箭頭，指向右邊的產品區 */
@media (min-width: 992px) {
    .box-menu-item.is-active::after {
        content: "";
        position: absolute;
        right: -1px;
        top: 50%;
        width: 10px;
        height: 10px;
        background: var(--c-surface);
        transform: translate(50%, -50%) rotate(45deg);
    }
}

/* 平板 / 手機：改成橫向可滑動的膠囊 */
@media (max-width: 991px) {
    .box-menu {
        position: static;
    }
    .box-menu-title {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    .box-menu-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .box-menu-list li {
        flex: 0 0 auto;
    }
    .box-menu-item {
        border-radius: 999px;
        padding: 0.45rem 0.9rem 0.45rem 1.1rem;
        white-space: nowrap;
        font-size: 0.88rem;
    }
    .box-menu-item::before {
        display: none;
    }
    .box-menu-item:hover,
    .box-menu-item.is-active {
        padding-left: 1.1rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .product-grid {
        gap: 12px;
    }
}

/* ---- 智慧型分頁（品牌色版本；舊的 .smart-pagination 規則請刪除，避免互相覆蓋） ---- */
.smart-pagination {
    margin-top: 2.5rem;
}
.smart-pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.smart-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
a.smart-pagination-link:hover {
    background: #f3ece2;
    border-color: var(--c-brown);
    color: var(--c-brown-dark);
}
.smart-pagination-link.is-current {
    background: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
}
.smart-pagination-link.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.smart-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--c-muted);
}
@media (max-width: 575px) {
    .smart-pagination-link {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
    }
    .smart-pagination-list {
        gap: 6px;
    }
}

/* 空狀態（若最新消息的 CSS 已有 .news-empty-state 可省略此段） */
.news-empty-state {
    padding: 3rem 1rem;
    color: var(--c-muted);
}
.news-empty-icon {
    font-size: 2.6rem;
    color: var(--c-brown);
}

/* =============================================
   精選產品（內頁）
   貼在 main.css 最下方；其餘沿用既有 class
   ============================================= */

/* 子頁 banner：產品名稱可能很長，允許換行並略縮字級 */
.sub-banner-title--wrap {
    white-space: normal;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    line-height: 1.45;
    max-width: 900px;
}
@media (max-width: 575px) {
    .sub-banner-title--wrap {
        font-size: 1.2rem;
    }
}

/* ---- 主圖 ---- */
.product-detail-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}
.product-detail-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---- 產品資訊 ---- */
.product-detail-class {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: #f3ece2;
    color: var(--c-brown-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.product-detail-class:hover {
    background: var(--c-brown);
    color: #fff;
}
.product-detail-class + .product-detail-intro {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--c-border);
}
.product-detail-intro {
    font-size: 1rem;
    line-height: 2;
    color: var(--c-text);
    overflow-wrap: anywhere;
}
.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 1.8rem;
}
.product-detail-actions .btn-glow {
    padding-left: 2rem;
    padding-right: 2rem;
}
/* 「返回列表」小按鈕在這裡不需要位移動畫，與詢價按鈕等高 */
.product-detail-actions .btn-more-cases {
    padding: 0.62rem 1.6rem;
}
.product-detail-actions .btn-more-cases:hover {
    transform: none;
}

/* ---- 產品說明（CKEditor 內容）---- */
.product-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.4rem;
    font-size: 1rem;
    line-height: 2;
    color: var(--c-text);
    overflow-wrap: anywhere;
}
.product-content::after {
    content: "";
    display: block;
    clear: both;
}
.product-content > :first-child {
    margin-top: 0;
}
.product-content > :last-child {
    margin-bottom: 0;
}
.product-content h2,
.product-content h3,
.product-content h4 {
    color: var(--c-ink);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin: 2rem 0 0.9rem;
}
.product-content h2 {
    font-size: 1.4rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--c-brown);
}
.product-content h3 {
    font-size: 1.2rem;
}
.product-content h4 {
    font-size: 1.05rem;
}
.product-content p {
    margin: 0 0 1rem;
}
.product-content a {
    color: var(--c-brown-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-content img,
.product-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.product-content figure {
    margin: 1.5rem 0;
}
.product-content figure img {
    display: block;
    margin: 0 auto;
}
.product-content figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--c-muted);
}
.product-content iframe {
    max-width: 100%;
}
.product-content ul,
.product-content ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.product-content li {
    margin-bottom: 0.3rem;
}
.product-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.4rem;
    border-left: 3px solid var(--c-brown);
    background: var(--c-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-ink);
}
.product-content hr {
    border: 0;
    border-top: 1px dashed var(--c-border);
    margin: 2rem 0;
}
.product-table-scroll {
    overflow-x: auto;
    margin: 1.2rem 0;
    -webkit-overflow-scrolling: touch;
}
.product-content table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.7;
}
.product-content th,
.product-content td {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--c-border);
    text-align: left;
}
.product-content th {
    background: #f3ece2;
    color: var(--c-ink);
    font-weight: 700;
}

/* ---- 相關產品：桌機四欄 ---- */
.case-grid.related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =============================================
   RWD
   ============================================= */
@media (max-width: 991px) {
    .case-grid.related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-content {
        padding: 1.8rem;
    }
}
@media (max-width: 575px) {
    .case-grid.related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .related-grid .case-card-body {
        padding: 0.8rem 0.85rem 1rem;
    }
    .related-grid .case-card-title {
        font-size: 0.9rem;
        line-height: 1.45;
    }
    .related-grid .case-card-desc {
        font-size: 0.78rem;
    }

    .product-detail-intro {
        font-size: 0.95rem;
        line-height: 1.9;
    }
    /* 按鈕堆疊成滿版，好按 */
    .product-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-detail-actions .btn,
    .product-detail-actions .btn-more-cases {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .product-content {
        padding: 1.2rem 1rem;
        font-size: 0.95rem;
        line-height: 1.9;
    }
    .product-content h2 {
        font-size: 1.2rem;
    }
    .product-content h3 {
        font-size: 1.08rem;
    }
}
@media (max-width: 359px) {
    .case-grid.related-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   內頁：主圖 + 簡介 + 說明 同一個區塊（.section-cases 格狀背景）
   ============================================= */
/* 說明卡片與上方主圖、簡介之間的間距：適中，不要拉太開 */
.product-detail-body {
    margin-top: 2.5rem;
}
@media (max-width: 991px) {
    .product-detail-body {
        margin-top: 2rem;
    }
}
@media (max-width: 575px) {
    .product-detail-body {
        margin-top: 1.5rem;
    }
}

/* =============================================
   相關產品：深色背景（不使用圖片）
   ============================================= */
.section-related-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark);
}
/* 兩顆柔和的咖啡金光暈，避免大片純色顯得死板 */
.section-related-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(212, 176, 136, 0.16) 0%,
            transparent 42%
        ),
        radial-gradient(
            circle at 4% 100%,
            rgba(161, 127, 87, 0.18) 0%,
            transparent 40%
        );
    z-index: -1;
}
/* 白色卡片放在深底上：邊框改為半透明，hover 亮起金色 */
.section-related-dark .case-card {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.section-related-dark .case-card:hover,
.section-related-dark .case-card:focus-visible {
    border-color: var(--c-gold);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* 隱藏的 h2 是卡片的第一個子元素，讓「真正的第一個內容」也去掉上方外距 */
.product-content > .visually-hidden + * {
    margin-top: 0;
}

/* =============================================
   最新消息（列表 + 內頁）
   貼在 main.css 最下方。
   相依（請先貼過）：
   - product-page-append.css   → .smart-pagination、.news-empty-state
   - product-detail-append.css → .sub-banner-title--wrap、.section-related-dark、.case-grid.related-grid
   舊版 .news-* / .related-news-* / .section-glow-bg 等規則已不使用，請刪除以免互相覆蓋
   ============================================= */

/* ---------- 列表頁 ---------- */
.section-cases.section-news {
    padding-top: 64px;
}
#news-list {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 標籤篩選狀態列 */
.news-filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 1.2rem;
    padding: 0.75rem 1.1rem;
    background: #f3ece2;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--c-ink);
}
.news-filter-status i {
    color: var(--c-brown);
    margin-right: 6px;
}
.news-filter-clear {
    color: var(--c-brown-dark);
    font-weight: 600;
    text-decoration: none;
}
.news-filter-clear:hover {
    text-decoration: underline;
}

/* 文章卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.news-card:hover,
.news-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-brown);
    outline: none;
}
.news-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-bg2);
}
.news-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img,
.news-card:focus-visible .news-card-img img {
    transform: scale(1.06);
}
.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--c-brown);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.news-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.1rem 1.25rem 1.3rem;
}
.news-card-date {
    font-size: 0.8rem;
    color: var(--c-muted);
}
.news-card-date i {
    margin-right: 6px;
    color: var(--c-brown);
}
.news-card-title {
    margin: 0.45rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: var(--c-ink);
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card-title {
    color: var(--c-brown-dark);
}
.news-card-desc {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--c-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-brown-dark);
}
.news-card-more i {
    display: inline-block;
    transition: transform 0.25s ease;
}
.news-card:hover .news-card-more i {
    transform: translateX(4px);
}

/* 側欄 */
.news-sidebar {
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-side-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.2rem;
}
.news-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--c-border);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.news-side-title i {
    color: var(--c-brown);
}

.news-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.news-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: #fbfaf8;
    color: var(--c-text);
    font-size: 0.85rem;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.news-tag-count {
    font-size: 0.72rem;
    color: var(--c-muted);
}
.news-tag-pill:hover {
    background: #f3ece2;
    border-color: var(--c-brown);
    color: var(--c-brown-dark);
}
.news-tag-pill.is-active {
    background: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
}
.news-tag-pill.is-active .news-tag-count {
    color: rgba(255, 255, 255, 0.8);
}

.news-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-popular-list li + li {
    border-top: 1px dashed var(--c-border);
}
.news-popular-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    text-decoration: none;
}
.news-popular-rank {
    flex-shrink: 0;
    width: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-gold);
    line-height: 1.4;
}
.news-popular-list li:nth-child(-n + 3) .news-popular-rank {
    color: var(--c-brown);
}
.news-popular-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.news-popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--c-ink);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-popular-link:hover .news-popular-title {
    color: var(--c-brown-dark);
}
.news-popular-date {
    font-size: 0.75rem;
    color: var(--c-muted);
}

.news-side-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--c-brown), var(--c-brown-dark));
    border-color: var(--c-brown-dark);
}
.news-side-cta-icon {
    font-size: 1.8rem;
    color: var(--c-gold);
}
.news-side-cta-text {
    margin: 0.6rem 0 1rem;
    font-weight: 700;
    line-height: 1.7;
    color: #fff;
}
.news-side-cta .btn-glow {
    background: #fff;
    border-color: #fff;
    color: var(--c-brown-dark);
}
.news-side-cta .btn-glow:hover {
    background: var(--c-bg);
    border-color: var(--c-bg);
    box-shadow: none;
}

/* ---------- 內頁 ---------- */
.section-cases.news-detail-section {
    padding-top: 56px;
}
.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    color: var(--c-muted);
}
.news-article-meta i {
    margin-right: 6px;
    color: var(--c-brown);
}
.news-article-class {
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    background: #f3ece2;
    color: var(--c-brown-dark);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.news-article-class i {
    color: inherit;
}
.news-article-hero {
    margin: 0 0 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
    background: var(--c-surface);
}
.news-article-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

/* CKEditor 內容 */
.news-article-content {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.4rem;
    font-size: 1rem;
    line-height: 2;
    color: var(--c-text);
    overflow-wrap: anywhere;
}
.news-article-content::after {
    content: "";
    display: block;
    clear: both;
}
.news-article-content > :first-child {
    margin-top: 0;
}
.news-article-content > :last-child {
    margin-bottom: 0;
}
.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: var(--c-ink);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin: 2rem 0 0.9rem;
}
.news-article-content h2 {
    font-size: 1.4rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--c-brown);
}
.news-article-content h3 {
    font-size: 1.2rem;
}
.news-article-content h4 {
    font-size: 1.05rem;
}
.news-article-content p {
    margin: 0 0 1rem;
}
.news-article-content a {
    color: var(--c-brown-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.news-article-content img,
.news-article-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.news-article-content figure {
    margin: 1.5rem 0;
}
.news-article-content figure img {
    display: block;
    margin: 0 auto;
}
.news-article-content figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--c-muted);
}
.news-article-content iframe {
    max-width: 100%;
}
.news-article-content ul,
.news-article-content ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.news-article-content li {
    margin-bottom: 0.3rem;
}
.news-article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.4rem;
    border-left: 3px solid var(--c-brown);
    background: var(--c-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-ink);
}
.news-article-content hr {
    border: 0;
    border-top: 1px dashed var(--c-border);
    margin: 2rem 0;
}
.news-table-scroll {
    overflow-x: auto;
    margin: 1.2rem 0;
    -webkit-overflow-scrolling: touch;
}
.news-article-content table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.7;
}
.news-article-content th,
.news-article-content td {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--c-border);
    text-align: left;
}
.news-article-content th {
    background: #f3ece2;
    color: var(--c-ink);
    font-weight: 700;
}

/* 標籤 */
.news-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.4rem;
}
.news-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.85rem;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.news-article-tag i {
    color: var(--c-brown);
}
.news-article-tag:hover {
    background: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
}
.news-article-tag:hover i {
    color: #fff;
}

/* 上一篇 / 下一篇 */
.news-pager {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 2rem;
}
.news-pager-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem 1.2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-decoration: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
.news-pager-link.is-next {
    text-align: right;
    grid-column: 2;
}
.news-pager-link:hover {
    border-color: var(--c-brown);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}
.news-pager-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--c-brown);
}
.news-pager-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--c-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- RWD ---------- */
@media (max-width: 991px) {
    .section-cases.section-news {
        padding-top: 40px;
    }
    .section-cases.news-detail-section {
        padding-top: 40px;
    }
    /* 側欄改為一般流動，放在文章列表下方 */
    .news-sidebar {
        position: static;
    }
    .news-article-content {
        padding: 1.8rem;
    }
}
@media (max-width: 767px) {
    .section-cases.section-news,
    .section-cases.news-detail-section {
        padding-top: 28px;
    }
}
@media (max-width: 575px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-card-body {
        padding: 1rem 1rem 1.15rem;
    }
    .news-article-content {
        padding: 1.2rem 1rem;
        font-size: 0.95rem;
        line-height: 1.9;
    }
    .news-article-content h2 {
        font-size: 1.2rem;
    }
    .news-article-content h3 {
        font-size: 1.08rem;
    }
    .news-pager {
        grid-template-columns: 1fr;
    }
    .news-pager-link.is-next {
        grid-column: auto;
    }
}
/* =============================================
   精選產品：RWD 間距（拿掉區塊標題後重新配置）
   ============================================= */

/* 上方少了標題，上內距比一般 .py-6 略小；下內距維持 .py-6 的原值 */
.section-cases.section-products {
    padding-top: 64px;
}
@media (max-width: 991px) {
    .section-cases.section-products {
        padding-top: 40px;
    }
}
@media (max-width: 767px) {
    .section-cases.section-products {
        padding-top: 28px;
    }
}

/* 點類別 / 換頁後錨點落在 #product-list，預留固定導覽列與一點呼吸空間 */
#product-list {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 桌機：側欄 sticky 已設定；補上與產品區的最小間距 */
@media (min-width: 992px) {
    .box-menu {
        padding-right: 4px;
    }
}

/* 平板 / 手機：膠囊列滿版滑動（抵銷 container 的左右內距），選單與產品之間留 4px 額外間距 */
@media (max-width: 991px) {
    .box-menu-list {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        scroll-snap-type: x proximity;
    }
    .box-menu-list li {
        scroll-snap-align: start;
    }
    .box-menu-title {
        margin-bottom: 8px;
    }
}

/* 手機：兩欄產品卡的內距與字級縮小，避免文字擠壓 */
@media (max-width: 575px) {
    .product-grid .case-card-body {
        padding: 0.8rem 0.85rem 1rem;
    }
    .product-grid .case-card-title {
        font-size: 0.9rem;
        line-height: 1.45;
        margin-bottom: 0.35rem;
    }
    .product-grid .case-card-desc {
        font-size: 0.78rem;
        line-height: 1.55;
    }
    .smart-pagination {
        margin-top: 2rem;
    }
}
/* 超小螢幕：改單欄，避免兩欄卡片太窄 */
@media (max-width: 359px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   桌機：選單包成面板，讓面板上緣與右側第一排產品卡上緣對齊
   （原本「類別一覽」標題在色塊上方，把第一格往下推，造成上緣不齊）
   ============================================= */
@media (min-width: 992px) {
    .box-menu {
        padding: 1.3rem 1.1rem 1.2rem;
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
    }
    .box-menu-title {
        margin: 0 0 1rem;
        padding-bottom: 0.9rem;
        border-bottom: 1px dashed var(--c-border);
    }
    /* 面板底色改為白色，active 的小箭頭缺口顏色跟著換 */
    .box-menu-item.is-active::after {
        background: var(--c-surface);
    }
}

/* =============================================
   3. 服務項目
   ============================================= */
.section-services {
    position: relative;
    background: var(--c-bg);
    overflow: hidden;
    isolation: isolate;
}
.section-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--services-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}
.services-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.services-highlight {
    position: relative;
    margin-top: 1.6rem;
    padding: 1.6rem 1.8rem;
    background: var(--c-surface);
    border: 2px solid var(--c-brown);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.services-highlight-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f3ece2;
    color: var(--c-brown);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-highlight strong {
    display: block;
    color: var(--c-ink);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.services-highlight-en {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--c-brown);
    margin-bottom: 0.6rem;
}
.services-highlight p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--c-muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.service-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f3ece2;
    color: var(--c-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-ink);
    margin: 0;
    line-height: 1.3;
}
.service-en {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--c-muted);
}
.service-desc {
    font-size: 0.88rem;
    color: var(--c-muted);
    line-height: 1.75;
    margin-bottom: 0.7rem;
}
.service-list {
    list-style: none;
    margin: 0;
    padding: 0.7rem 0 0;
    border-top: 1px dashed var(--c-border);
}
.service-list li {
    position: relative;
    padding-left: 1.05rem;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--c-text);
    margin-bottom: 0.3rem;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-brown);
}

@media (max-width: 767px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.2rem 1.3rem;
    margin: -1.5rem -1.4rem 1rem; /* 貼齊卡片邊緣但保留卡片圓角的視覺效果 */
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    isolation: isolate;
}
.service-card-head-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.service-card-head-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.75) 45%,
        rgba(255, 255, 255, 0.4) 100%
    );
}

.service-card-head .service-icon {
    background: var(--c-brown);
    border: none;
    color: #fff;
}
.service-card-head h3 {
    color: var(--c-ink);
}
.service-card-head .service-en {
    color: var(--c-brown-dark);
}

/* ---- 核心服務卡片 ---- */
.service-card--core {
    border-color: var(--c-brown);
    background: #fffdfa;
}
.service-core-badge {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--c-brown-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

/* ---- CTA 按鈕（實心版，呼應設計稿） ---- */
.btn-services-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.85rem 2rem;
    background: var(--c-brown);
    border: 1.5px solid var(--c-brown);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}
.btn-services-more:hover,
.btn-services-more:focus-visible {
    background-color: var(--c-brown-dark);
    border-color: var(--c-brown-dark);
    color: #fff;
    transform: translateX(4px);
}

/* =============================================
   4. 精選案例
   ============================================= */
.section-cases {
    position: relative;
    background: var(--c-bg);
    overflow: hidden;
    isolation: isolate;
}

.section-cases::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--c-brown) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-brown) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.06;
    z-index: -2;
}

/* 大面積暈染色塊：右上、左下各一顆柔和光暈，呼應主色 */
.section-cases::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(161, 127, 87, 0.16) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 5% 100%,
            rgba(212, 176, 136, 0.18) 0%,
            transparent 40%
        );
    z-index: -1;
}

.section-head-row {
    margin-bottom: 2rem;
}
.section-lead-left {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--c-muted);
    max-width: 640px;
    margin: 0.8rem 0 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    display: block;
    text-decoration: none;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.case-card:hover,
.case-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-brown);
    outline: none;
}

.case-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-bg2);
}
.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img,
.case-card:focus-visible .case-card-img img {
    transform: scale(1.08);
}

.case-card-body {
    padding: 1.1rem 1.2rem 1.4rem;
}
.case-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-ink);
    margin: 0 0 0.5rem;
    transition: color 0.25s ease;
}
.case-card:hover .case-card-title,
.case-card:focus-visible .case-card-title {
    color: var(--c-brown-dark);
}
.case-card-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--c-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-more-cases {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.4rem;
    border: 1.5px solid var(--c-brown);
    border-radius: 999px;
    background: transparent;
    color: var(--c-brown-dark);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}
.btn-more-cases:hover,
.btn-more-cases:focus-visible {
    background-color: var(--c-brown);
    color: #fff;
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    /* 手機/平板時點陣密度不變，光暈稍微收斂即可 */
    .section-cases::after {
        background:
            radial-gradient(
                circle at 90% 0%,
                rgba(161, 127, 87, 0.12) 0%,
                transparent 45%
            ),
            radial-gradient(
                circle at 5% 100%,
                rgba(212, 176, 136, 0.14) 0%,
                transparent 40%
            );
    }
}
@media (max-width: 575px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =============================================
   5. 紙器製作流程
   ============================================= */
.section-process {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark);
}
.section-process::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--process-bg-img);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.section-process .section-head-row {
    margin-bottom: 2.2rem;
}

/* 淺色版標頭文字（深底專用） */
.section-eyebrow--light {
    color: var(--c-gold);
}
.section-title--light {
    color: #fff;
}
.section-lead-left--light {
    color: rgba(255, 255, 255, 0.72);
}

.process-flow {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 12px;
}
.process-step {
    position: relative;
    text-align: center;
    padding: 0 0.4rem;
}
/* 步驟之間的箭頭 */
.process-step:not(:last-child)::after {
    content: "\F138"; /* bootstrap-icons: chevron-right */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 28px;
    right: -14px;
    font-size: 1.1rem;
    color: var(--c-gold);
    opacity: 0.7;
}
.process-step-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--c-brown);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lift);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}
.process-step:hover .process-step-icon {
    background: var(--c-brown-dark);
    transform: translateY(-4px);
}
.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}
.process-step-num {
    display: inline-block;
    margin-right: 0.25em;
    color: var(--c-gold);
    font-weight: 800;
}
.process-step p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

@media (max-width: 991px) {
    .process-flow {
        grid-template-columns: repeat(3, 1fr);
    }
    .process-step:not(:last-child)::after {
        display: none;
    }
}
@media (max-width: 575px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 10px;
    }
    .process-step-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }
    .process-step h3 {
        font-size: 0.92rem;
    }
    .section-process .section-head-row {
        text-align: center;
    }
    .section-lead-left--light {
        max-width: 100%;
    }
}

/* 淺色版 CTA 按鈕（深底專用） */
.btn-more-cases--light {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}
.btn-more-cases--light:hover,
.btn-more-cases--light:focus-visible {
    background-color: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
}

/* =============================================
   6. 優勢 ＋ 品質認證
   ============================================= */
.section-advantage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-bg);
}
.section-advantage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--advantage-bg-img);
    background-size: cover;
    background-position: left bottom; /* 桌機／平板預設：顯示左下角 */
    opacity: 1;
    z-index: 1;
}
/* 米白遮罩，確保深色文字與白色卡片在淺色背景圖上仍清楚可讀 */
.section-advantage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(245, 243, 239, 0.9) 0%,
        rgba(245, 243, 239, 0.94) 100%
    );
    z-index: -1;
}

.section-advantage .container {
    position: relative;
    z-index: 1;
}

.advantage-sub {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-brown-dark);
    margin: 0.6rem 0 0.8rem;
}

/* ---- 無認證：橫向排列（左標題／右圖示列） ---- */
.advantage-row {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}
.advantage-row-head {
    flex: 0 0 320px;
    max-width: 320px;
}
.advantage-row-head .section-lead-left {
    max-width: none;
    margin-top: 0;
}

/* ---- 共用：優勢卡片 grid ---- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
    margin-top: 1.6rem;
}
.advantage-grid.is-wide {
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    gap: 0;
}
.advantage-item {
    text-align: center;
}
.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f3ede3);
    color: var(--c-brown);
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    box-shadow:
        0 6px 16px rgba(60, 44, 28, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition:
        background-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
.advantage-item:hover .advantage-icon {
    background: linear-gradient(145deg, var(--c-brown), var(--c-brown-dark));
    color: #fff;
    box-shadow:
        0 10px 24px rgba(130, 99, 63, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}
.advantage-item h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--c-ink);
    margin-bottom: 0.3rem;
}
.advantage-item p {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--c-text); /* 從 var(--c-muted) 改為較深的 var(--c-text) */
    margin: 0;
}

/* 橫排版本：桌機才加中間分隔線，避免手機/平板時擠成一堆線 */
@media (min-width: 992px) {
    .advantage-grid.is-wide .advantage-item {
        padding: 0 1.2rem;
    }
    .advantage-grid.is-wide .advantage-item:not(:first-child) {
        border-left: 1px solid var(--c-border);
    }
    .adv-divider {
        border-right: 1px solid var(--c-border);
        padding-right: 2.5rem;
    }
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 1.6rem;
}
.cert-item {
    margin: 0;
    text-align: center;
}
.cert-img-wrap {
    background: #fff;
    border: 1px solid var(--c-border);
    padding: 6px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-soft);
}
.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cert-item figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--c-text);
}

/* =============================================
   RWD：平板 / 手機
   ============================================= */
@media (max-width: 991px) {
    .advantage-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .advantage-row-head {
        flex: none;
        max-width: 100%;
    }
    .advantage-grid.is-wide {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 18px;
    }
    .advantage-grid.is-wide .advantage-item {
        padding: 0;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 平板（含 iPad）：改為置中顯示 */
    .section-advantage::before {
        background-position: center;
        opacity: 0.35;
    }
}
@media (max-width: 575px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantage-grid,
    .advantage-grid.is-wide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* 手機：維持置中顯示 */
    .section-advantage::before {
        background-position: center;
        opacity: 0.25;
    }
}

/* =============================================
   7. CTA 條
   ============================================= */
.section-cta-strip {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #a2805a 0%, #b39068 100%);
    color: #fff;
    padding: 56px 0;
}
.cta-strip-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    pointer-events: none;
}
.section-cta-strip h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: #fff;
}
.section-cta-strip p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.cta-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cta-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
}
.cta-contact li i {
    width: 22px;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
}
.cta-contact a,
.cta-contact span {
    color: #fff;
    text-decoration: none;
    word-break: break-all;
}
.cta-contact a:hover {
    text-decoration: underline;
}
@media (max-width: 991px) {
    .section-cta-strip {
        padding: 44px 0;
        text-align: center;
    }
    .cta-strip-photo {
        width: 100%;
        opacity: 0.2;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .cta-contact {
        display: inline-block;
        text-align: left;
    }
}

/* =============================================
   詢問表單
   ============================================= */
.section-inquiry {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-bg);
}
.section-inquiry::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--inquiry-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -2;
}

.section-inquiry .section-lead {
    color: var(--c-brown-dark);
    font-weight: 600;
}

@media (max-width: 991px) {
    .section-inquiry::before {
        opacity: 0.25;
    }
}
.contact-form-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2.4rem;
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.form-control-dark {
    background: #fbfaf8 !important;
    border: 1px solid #d9d0c3 !important;
    border-radius: var(--radius-sm) !important;
    color: var(--c-ink) !important;
    font-family: var(--font-main);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.form-control-dark:focus {
    background: #fff !important;
    border-color: var(--c-brown) !important;
    box-shadow: 0 0 0 3px rgba(161, 127, 87, 0.18) !important;
    outline: none;
}
.form-control-dark::placeholder {
    color: #a0968b;
}
.contact-form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(38, 34, 32, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}
@media (max-width: 767px) {
    .contact-form-card {
        padding: 1.5rem 1.2rem;
    }
    .contact-form-card .row.g-3 {
        --bs-gutter-y: 0.6rem;
        --bs-gutter-x: 0.6rem;
    }
    .form-control-dark {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.85rem;
    }
    .contact-form-card .btn-glow.btn-lg {
        font-size: 0.92rem;
        padding: 0.7rem 1rem;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--c-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 3rem 0 1.2rem;
    border-top: 0;
}
.footer-glow {
    display: none;
}
.footer-desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.8;
}
.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    margin-bottom: 1rem;
}
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--c-gold);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.7rem;
}
.footer-contact li i {
    color: var(--c-gold);
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}
.social-btn:hover {
    background: var(--c-brown);
    color: #fff;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--c-gold);
}
.text-muted-footer {
    color: rgba(255, 255, 255, 0.35);
}

/* Footer LINE QR */
.footer-line-qr {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-line-qr-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #06c755;
    margin-bottom: 0.6rem;
}
.line-qr-frame {
    display: inline-flex;
    padding: 0.6rem;
    background: #fff;
    border-radius: 10px;
}
.footer-line-qr-frame img {
    display: block;
    width: 100px;
    height: 100px;
}
.footer-line-qr-id {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 767px) {
    .footer-line-qr {
        align-items: center;
        text-align: center;
    }
    .footer-line-qr-frame img {
        width: 88px;
        height: 88px;
    }
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--c-brown);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lift);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s,
        background 0.2s;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--c-brown-dark);
}
@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* =============================================
   SCROLL REVEAL（沿用原 JS：.reveal-on-scroll / .is-visible）
   ============================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll.no-js {
    opacity: 1;
    transform: none;
}

/* =============================================
   RESPONSIVE 通用間距
   ============================================= */
@media (max-width: 991px) {
    .py-6 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
@media (max-width: 767px) {
    .py-6 {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* =============================================
   減少動態偏好：關閉所有動畫與位移
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-on-scroll,
    .back-to-top,
    .banner-progress-bar {
        transition: none;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    .banner-float-img,
    .banner-float-shadow,
    .swiper-slide-active .banner-float-col {
        animation: none;
    }
    .banner-float-wrap {
        transform: none;
        transition: none;
    }
}

.btn-about-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid var(--c-brown);
    border-radius: 999px;
    color: var(--c-brown-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.btn-about-more:hover,
.btn-about-more:focus-visible {
    background-color: var(--c-brown);
    color: #fff;
    transform: translateX(4px);
}

.btn-about-more i {
    transition: transform 0.25s ease;
}

.btn-about-more:hover i {
    transform: translateX(3px);
}

/* Eyebrow 小標籤，增加版面層次 */
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--c-brown);
    margin-bottom: 0.6rem;
}

.btn-about-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid var(--c-brown);
    border-radius: 999px;
    background-color: var(--c-brown); /* 新增 */
    color: #fff; /* 改成白字 */
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.btn-about-more:hover,
.btn-about-more:focus-visible {
    background-color: var(--c-brown-dark);
    border-color: var(--c-brown-dark);
    color: #fff;
    transform: translateX(4px);
}

/* =============================================
   關於我們（子頁）專用樣式
   ============================================= */

.section-sub-banner {
    position: relative;
    overflow: hidden;
    height: 300px; /* 從 340px 降低 */
    background: #1f1b18;
    display: flex;
    flex-direction: column;
}

.sub-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sub-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(24, 19, 15, 0.75) 0%,
        rgba(24, 19, 15, 0.55) 60%,
        rgba(24, 19, 15, 0.75) 100%
    );
    z-index: 1;
}

/* 主要內容：置中顯示，佔滿剩餘空間（扣掉底部麵包屑） */
.sub-banner-content {
    position: relative;
    z-index: 2;
    flex: 1; /* 保留：仍佔滿麵包屑以外的空間，但... */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* 改成靠底部對齊，而不是置中 */
    text-align: center;
    padding: 0 16px 50px; /* 底部留一點呼吸空間即可，不用大片留白 */
}

.sub-banner-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--c-gold);
    margin-bottom: 0.9rem;
}

.sub-banner-title {
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1.4;
    white-space: nowrap; /* 不斷行 */
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    margin: 0;
}

/* 麵包屑：固定貼在 banner 底部，獨立一條 bar */
.sub-banner-breadcrumb {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    flex-shrink: 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    justify-content: center; /* 置中顯示 */
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.breadcrumb-list li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.4);
}
.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-list a:hover {
    color: var(--c-gold);
}
.breadcrumb-list .active {
    color: var(--c-gold);
}

@media (max-width: 575px) {
    .section-sub-banner {
        height: 220px;
    }
    .sub-banner-content {
        padding-bottom: 22px;
    }
}

/* =============================================
   關於我們：淺／深交錯區塊背景（各自搭配不同紋理）
   ============================================= */

/* 淺色 1：品牌故事－點陣 */
.section-light-pattern {
    position: relative;
    isolation: isolate;
    background: var(--c-bg);
}
.section-light-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--c-brown) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: 0.07;
    z-index: -1;
}

/* =============================================
   我們的使命：深底 + 背景圖（沿用 .section-process 的作法）
   ============================================= */
.section-mission-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark);
}
.section-mission-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--mission-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 1; /* 圖片本身透明度，避免蓋掉文字對比 */
    z-index: -2;
}

/* 淺色版文字（沿用首頁流程區塊已有的 --light class，若專案裡已存在可省略此段） */
.section-lead--light {
    color: rgba(255, 255, 255, 0.72);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* 深底版卡片：預設半透明深卡片，hover 時翻轉成實體白卡片 */
.mission-card--dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.mission-card--dark:hover {
    background: #fff; /* 改成實體白色 */
    border-color: #fff;
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

/* icon 顏色：預設在深底上用金色系，hover 變白卡片時要換回深咖啡色 */
.mission-card--dark .mission-card-icon-wrap {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}
.mission-card--dark .mission-card-icon {
    color: var(--c-gold);
    transition: color 0.3s ease;
}
.mission-card--dark:hover .mission-card-icon-wrap {
    background: linear-gradient(145deg, #ffffff, #f3ede3);
}
.mission-card--dark:hover .mission-card-icon {
    color: var(
        --c-brown-dark
    ); /* hover 時 icon 用深咖啡色，比一般 --c-brown 更深 */
}

/* 文字顏色：預設白字，hover 變白卡時要換回深色文字才看得清楚 */
.mission-card-text--light {
    color: #fff;
    transition: color 0.3s ease;
}
.mission-card--dark:hover .mission-card-text--light {
    color: var(--c-ink);
}

/* =============================================
   合作承諾：深底 + 背景圖
   ============================================= */
.section-promise-dark {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark);
}
.section-promise-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--promise-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    z-index: -2;
}

/* 淺色版強調文字（原本 .text-accent-solid 是深咖啡色，深底上要換成金色） */
.text-accent-solid--light {
    color: var(--c-gold);
    font-weight: 800;
}

/* 淺色版內文段落 */
.about-text--light {
    color: rgba(255, 255, 255, 0.75);
}

/* 時間軸：深底版分隔線改用半透明白，取代原本的淺咖啡虛線 */
.promise-steps--dark .promise-step-item--dark {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.promise-steps--dark .promise-step-item--dark:last-child {
    border-bottom: none;
}

/* 步驟號碼圓圈：改用金色描邊＋透明底，呼應深底質感 */
.promise-steps--dark .promise-step-num {
    background: transparent;
    border: 1.5px solid var(--c-gold);
    color: var(--c-gold);
}

/* 步驟標題／描述文字：換成淺色 */
.promise-step-label--light {
    color: #fff !important;
}
.promise-step-desc--light {
    color: #fff !important;
}

@media (max-width: 575px) {
    .section-promise-dark::before {
        opacity: 0.22;
    }
}

/* 深色 1：我們的使命－交叉格線 */
.section-alt-pattern {
    position: relative;
    isolation: isolate;
    background: var(--c-bg2);
}
.section-alt-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--c-brown) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-brown) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.06;
    z-index: -1;
}

/* 淺色 2：我們相信－斜線 */
.section-light-pattern2 {
    position: relative;
    isolation: isolate;
    background: var(--c-bg);
}
.section-light-pattern2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        var(--c-brown) 0px,
        var(--c-brown) 1px,
        transparent 1px,
        transparent 24px
    );
    opacity: 0.05;
    z-index: -1;
}

/* 深色 2：合作承諾－點陣（密度跟區塊一不同，避免重複感） */
.section-alt-pattern2 {
    position: relative;
    isolation: isolate;
    background: var(--c-bg2);
}
.section-alt-pattern2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--c-brown) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.08;
    z-index: -1;
}

@media (max-width: 575px) {
    .section-light-pattern::before,
    .section-alt-pattern::before,
    .section-light-pattern2::before,
    .section-alt-pattern2::before {
        opacity: 0.04; /* 手機螢幕密度感較強，opacity 再壓低避免視覺雜訊 */
    }
}

/* ---- 品牌理念徽章 ---- */
.about-philosophy-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.philosophy-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    box-shadow: var(--shadow-soft);
}
.philosophy-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3ece2;
    color: var(--c-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.philosophy-badge-label {
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: 0.04em;
}

/* ---- 裝飾背景：點陣 / 線條 / 交叉（僅供子頁使用，未套用於任何首頁區塊） ---- */
.section-dot-pattern {
    position: relative;
    isolation: isolate;
}
.section-dot-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--c-brown) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.08;
    z-index: -1;
}

.section-line-pattern {
    position: relative;
    isolation: isolate;
}
.section-line-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        var(--c-brown) 0px,
        var(--c-brown) 1px,
        transparent 1px,
        transparent 26px
    );
    opacity: 0.05;
    z-index: -1;
}

.section-cross-pattern {
    position: relative;
    isolation: isolate;
}
.section-cross-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--c-brown) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-brown) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.05;
    z-index: -1;
}

/* ---- 使命卡片 ---- */
.mission-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.mission-card-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f3ede3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(60, 44, 28, 0.12);
}
.mission-card-icon {
    font-size: 1.5rem;
    color: var(--c-brown);
}
.mission-card-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: 0.03em;
    margin: 0;
}

/* ---- 引言區塊 ---- */
.about-quote-block {
    padding: 1.8rem 2rem;
    border-left: 3px solid var(--c-brown);
    background: var(--c-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.about-quote {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--c-ink);
}
@media (max-width: 575px) {
    .about-quote-block {
        padding: 1.4rem 1.4rem;
    }
    .about-quote {
        font-size: 1rem;
    }
}

/* ---- 核心價值卡片 ---- */
.value-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-brown);
}
.value-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f3ece2;
    color: var(--c-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.value-card-en {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--c-brown);
    text-transform: uppercase;
}
.value-card-zh {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: 0.06em;
    margin: 0.2rem 0 0.6rem;
}
.value-card-desc {
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--c-muted);
    margin: 0;
}

/* ---- 服務快覽項目 ---- */
.about-service-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.about-service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}
.about-service-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f3ece2;
    color: var(--c-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.about-service-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-ink);
    margin: 0 0 0.3rem;
}
.about-service-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--c-muted);
}

/* ---- 合作承諾步驟（時間軸） ---- */
.promise-steps {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.promise-step-item {
    padding-bottom: 1.4rem;
    border-bottom: 1px dashed var(--c-border);
}
.promise-step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.promise-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-brown);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promise-step-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 0.3rem;
}
.promise-step-desc {
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--c-muted);
}

/* ---- 子頁 CTA 區塊（跟首頁 .section-cta-strip 完全獨立，互不影響） ---- */
.section-cta {
    background: var(--c-bg2);
}
.cta-box {
    max-width: 900px;
    margin: 0 auto;
}

/* ---- Footer 品牌區：Logo 放大、文字改白色 ---- */
.site-footer .footer-brand {
    text-decoration: none;
}
.site-footer .footer-logo {
    width: 96px;
    height: 96px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}
.site-footer .brand-zh {
    color: #fff;
    font-size: 1.5rem;
}
.site-footer .brand-en {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    white-space: normal; /* 原本 nowrap，手機會撐破版面 */
}

@media (max-width: 767px) {
    .site-footer .footer-logo {
        width: 80px;
        height: 80px;
    }
    .site-footer .brand-zh {
        font-size: 1.3rem;
    }
}
@media (max-width: 400px) {
    .site-footer .footer-logo {
        width: 64px;
        height: 64px;
    }
    .site-footer .brand-zh {
        font-size: 1.15rem;
    }
}

/* =============================================
   聯絡我們
   相依：.section-sub-banner、.section-inquiry、.contact-form-card、
        .form-control-dark、.section-alt-pattern、.line-qr-frame 等既有樣式
   ============================================= */

/* ---- 聯絡資訊卡片 ---- */
.contact-info-card {
    height: 100%;
    padding: 2rem 1.3rem 1.8rem;
    text-align: center;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--c-brown);
}
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f3ede3);
    color: var(--c-brown);
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(60, 44, 28, 0.12);
    transition:
        background 0.25s ease,
        color 0.25s ease;
}
.contact-info-card:hover .contact-info-icon {
    background: linear-gradient(145deg, var(--c-brown), var(--c-brown-dark));
    color: #fff;
}
.contact-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--c-brown);
}
.contact-info-title {
    margin: 0.2rem 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--c-ink);
}
.contact-info-value {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}
a.contact-info-value:hover {
    color: var(--c-brown-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- 表單卡片補充 ---- */
.contact-form-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--c-border);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.contact-form-heading i {
    color: var(--c-brown);
}
.contact-form-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    text-align: center;
    color: var(--c-muted);
}
.contact-form-note i {
    margin-right: 4px;
    color: var(--c-brown);
}

/* ---- 側欄 ---- */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 992px) {
    .contact-side {
        position: sticky;
        top: calc(var(--header-h) + 16px);
    }
}

.contact-line-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--c-dark), #3b332d);
    box-shadow: var(--shadow-lift);
    color: #fff;
}
.contact-line-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #06c755;
    color: #fff;
    font-size: 1.7rem;
}
.contact-line-title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
}
.contact-line-text {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}
.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.2rem;
    border: 1px solid #06c755;
    border-radius: 999px;
    background: #06c755;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}
.btn-line:hover,
.btn-line:focus-visible {
    background: #05a848;
    border-color: #05a848;
    color: #fff;
    transform: translateY(-2px);
}

.contact-steps-card {
    padding: 1.5rem 1.5rem 1.2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.contact-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--c-border);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.contact-side-title i {
    color: var(--c-brown);
}
.contact-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.contact-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0.8rem 0;
}
.contact-steps li + li {
    border-top: 1px dashed var(--c-border);
}
.contact-steps-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c-brown);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}
.contact-steps strong {
    display: block;
    font-size: 0.95rem;
    color: var(--c-ink);
}
.contact-steps p {
    margin: 0.1rem 0 0;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--c-muted);
}

/* ---- 地圖 ---- */
.contact-map {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg2);
    box-shadow: var(--shadow-soft);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- LINE Modal ---- */
.line-qr-id {
    margin: 0.8rem 0 0;
    font-weight: 700;
    color: var(--c-ink);
}
.line-qr-tip {
    margin: 0.2rem 0 0.6rem;
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* ---- RWD ---- */
@media (max-width: 767px) {
    .contact-map {
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 575px) {
    .contact-info-card {
        padding: 1.5rem 1rem;
    }
    .contact-line-card {
        padding: 1.3rem 1.2rem;
    }
    .contact-steps-card {
        padding: 1.2rem 1.2rem 1rem;
    }
    .contact-form-heading {
        font-size: 1.05rem;
    }
}

/* =============================================
   隱私權政策
   ============================================= */
.policy-toc {
    padding: 1.3rem 1.2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
@media (min-width: 992px) {
    .policy-toc {
        position: sticky;
        top: calc(var(--header-h) + 16px);
    }
}
.policy-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--c-border);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--c-ink);
}
.policy-toc-title i {
    color: var(--c-brown);
}
.policy-toc ol {
    margin: 0;
    padding-left: 1.3rem;
}
.policy-toc li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.policy-toc li::marker {
    color: var(--c-brown);
    font-weight: 700;
}
.policy-toc a {
    color: var(--c-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.policy-toc a:hover {
    color: var(--c-brown-dark);
}

.policy-card {
    padding: 2.4rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    font-size: 0.98rem;
    line-height: 2;
    color: var(--c-text);
    overflow-wrap: anywhere;
    counter-reset: policy;
}
.policy-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 1.2rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: #f3ece2;
    color: var(--c-brown-dark);
    font-size: 0.85rem;
    font-weight: 600;
}
.policy-section {
    margin-top: 2rem;
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.policy-section h2 {
    counter-increment: policy;
    margin: 0 0 0.8rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--c-brown);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--c-ink);
}
.policy-section h2::before {
    content: counter(policy) ". ";
    color: var(--c-brown);
}
.policy-card p {
    margin: 0 0 1rem;
}
.policy-card ul {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.policy-card li {
    margin-bottom: 0.25rem;
}
.policy-card li::marker {
    color: var(--c-brown);
}
.policy-card a {
    color: var(--c-brown-dark);
    text-underline-offset: 3px;
}
.policy-contact {
    list-style: none;
    padding-left: 0 !important;
}
.policy-contact i {
    margin-right: 8px;
    color: var(--c-brown);
}

@media (max-width: 991px) {
    .policy-card {
        padding: 1.8rem;
    }
}
@media (max-width: 575px) {
    .policy-card {
        padding: 1.3rem 1.1rem;
        font-size: 0.94rem;
        line-height: 1.9;
    }
    .policy-section h2 {
        font-size: 1.1rem;
    }
}

/* 首頁最新消息 */
.section-home-news .section-head-row {
    margin-bottom: 2rem;
}
.section-home-news .news-card-body {
    padding: 1rem 1.05rem 1.2rem;
}
@media (max-width: 575px) {
    .section-home-news .section-head-row {
        margin-bottom: 1.5rem;
    }
}

/* =============================================
   首頁：精選產品背景圖
   層級：格線(-2) → 背景圖(-3) → 光暈(-1)
   ============================================= */
.section-cases--bg::before {
    /* 覆蓋原本的格線，改成背景圖 */
    background-image: var(--cases-bg-img);
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    opacity: 0.6; /* 背景圖濃度，太搶眼就調低 */
    z-index: -2;
}

@media (max-width: 991px) {
    .section-cases--bg::before {
        opacity: 0.4;
        background-position: center top;
    }
}
@media (max-width: 575px) {
    .section-cases--bg::before {
        opacity: 0.3;
    }
}

/* =============================================
   首頁：最新消息（深色背景版）
   所有規則都掛在 .section-home-news--bg 底下，不影響最新消息列表頁 / 內頁
   ============================================= */
.section-home-news--bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--c-dark);
}

/* 取代 .section-alt-pattern 的交叉格線，改鋪背景圖。
   各尺寸的背景色與位置一致；opacity 調低讓背景更淡 */
.section-home-news--bg::before {
    background-image: var(--news-bg-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.55; /* 想更淡就調小，例如 0.4 */
    z-index: -2;
}

/* 遮罩：同樣所有尺寸一致，不隨 RWD 改變 */
.section-home-news--bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 30, 0.25);
    z-index: -1;
    pointer-events: none;
}

/* ---- 標題區 ---- */
.section-home-news--bg .section-head-row {
    margin-bottom: 2.2rem;
}
.section-home-news--bg .section-title {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.section-home-news--bg .section-eyebrow {
    color: var(--c-gold);
}
.section-home-news--bg .section-lead-left {
    color: rgba(255, 255, 255, 0.8);
}

/* ---- 卡片 ---- */
.section-home-news--bg .news-card {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.section-home-news--bg .news-card:hover,
.section-home-news--bg .news-card:focus-visible {
    border-color: var(--c-gold);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}
.section-home-news--bg .news-card-body {
    padding: 1rem 1.05rem 1.2rem;
}

/* ---- 「查看更多消息」：置中，並與上方卡片保持間距 ---- */
.section-home-news-more {
    display: flex;
    justify-content: center;
    margin-top: 3rem; /* 桌機間距 */
}
.section-home-news--bg .btn-more-cases {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.section-home-news--bg .btn-more-cases:hover,
.section-home-news--bg .btn-more-cases:focus-visible {
    background-color: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
}

/* ---- RWD ---- */
@media (max-width: 991px) {
    .section-home-news--bg .section-head-row {
        margin-bottom: 1.8rem;
    }
    .section-home-news-more {
        margin-top: 2.5rem;
    }
}
@media (max-width: 575px) {
    .section-home-news--bg .section-head-row {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .section-home-news--bg .section-lead-left {
        max-width: 100%;
    }
    .section-home-news-more {
        margin-top: 2rem; /* 手機卡片是單欄，仍保留明確間距 */
    }
}
