@charset "UTF-8";
/* =========================================================
   新市當鋪 — 首頁 custom.css
   結構：1.Tokens 2.Base 3.Layout 4.共用元件 5.Header
        6.Hero 7.信任列 8.服務 9.品牌CTA 10.流程 11.案例
        12.FAQ 13.Footer 14.浮動元件 15.動畫 16.RWD
   ========================================================= */

/* ============ 1. Design Tokens ============ */
:root {
    --orange: #ff9900;          /* 主要按鈕 / active */
    --orange-deep: #fa6600;     /* 深橘強調 */
    --orange-a: #ee9700;        /* 標題漸層起 */
    --orange-b: #fa7600;        /* 標題漸層迄 */
    --heading: #414141;         /* 主標題深灰 */
    --text: #5d5d5d;            /* 內文 */
    --text-2: #535353;
    --grey-bg: #f3f3f3;         /* 服務區 */
    --blue-bg: #eaf2f4;         /* 流程 / 案例 */
    --cream: #fff9ec;           /* 色碼標示：卡片 hover / 步驟卡 #fff9ec */
    --cream-line: #f6d9a8;      /* 卡片 hover 邊 */
    --dark: #414141;            /* 深灰按鈕 */
    --line-green: #06c755;      /* LINE 綠 */
    --faq-green: #00bd93;       /* 色碼標示：FAQ 綠按鈕 #00bd93 */
    --wrap: 1600px;
    --hd-h: 108px;              /* header 高度 */
    --z-header: 60;
    --z-menu: 90;
    --z-float: 40;
}

/* ============ 2. Base ============ */
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); overflow-x: clip; }
body {
    margin: 0;
    font-family: "Noto Sans TC", "Inter", "微軟正黑體", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
    overflow-x: clip;
    max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.txt-orange { color: var(--orange); }

/* ============ 3. Layout ============ */
.wrap {
    width: min(100% - clamp(2rem, 7vw, 18rem), var(--wrap));
    margin-inline: auto;
    position: relative;
}
.section-head { text-align: center; }
.section-title {
    font-size: 1.875rem;      /* 30px */
    font-weight: 700;
    color: var(--heading);
    line-height: 1.5;
    letter-spacing: .02em;
}
.section-title .txt-orange { color: #fa6600; }   /* 色碼標示：標題強調橘字 #fa6600 */
.section-sub {
    margin-top: 1rem;
    max-width: 1200px;   /* 行長上限，非斷行點：長度足以讓現有文案自然單行，實際寬度仍由文字與容器決定 */
    margin-inline: auto;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.9;
}

/* ============ 4. 共用元件（按鈕）============ */
.btn-plus { font-weight: 400; margin-left: .35em; }

.btn-outline-orange {
    display: block;
    text-align: center;
    padding: .78rem 1rem;
    border: 1px solid var(--orange);
    border-radius: 3px;
    color: var(--orange);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .15em;
    transition: background .25s, color .25s;
}
.btn-outline-orange:hover,
.btn-outline-orange:focus-visible {
    background: var(--orange);
    color: #fff;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 2.2rem;
    background: var(--dark);
    color: #fff;
    font-weight: 500;
    font-size: 1.0625rem;
    letter-spacing: .1em;
    border-radius: 3px;
    transition: background .25s, transform .25s;
}
.btn-dark:hover, .btn-dark:focus-visible { background: #2b2b2b; transform: translateY(-2px); }

.btn-orange-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 2.4rem;
    background: linear-gradient(180deg, #ff9d1a, #fb8501);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: .1em;
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(251, 133, 1, .28);
    transition: filter .25s, transform .25s;
}
.btn-orange-solid:hover, .btn-orange-solid:focus-visible { filter: brightness(1.06); transform: translateY(-2px); }

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 2rem;
    background: var(--faq-green);
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: .08em;
    border-radius: 3px;
    transition: filter .25s, transform .25s;
}
.btn-line:hover, .btn-line:focus-visible { filter: brightness(1.07); transform: translateY(-2px); }
.btn-line .bi-line { font-size: 1.4em; }

/* ============ 5. Header ============ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--hd-h);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    height: 84px;
}
.header-inner {
    width: min(100% - clamp(2rem, 7vw, 18rem), 1600px);
    margin-inline: auto;
    display: flex;
    align-items: center;
}
.header-logo { margin-right: auto; }   /* Logo 靠左，導覽＋電話鈕群組靠右 */
.header-logo img { width: 262px; height: auto; }
.site-header.scrolled .header-logo img { width: 228px; }

.header-nav { align-items: center; gap: 3.3rem; }
.nav-item { position: relative; }
.nav-item > .nav-link,
a.nav-item {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;   /* 18px */
    font-weight: 500;
    color: #242424;        /* 色碼標示：導覽文字 #242424 */
    padding: .3rem .12rem;
    transition: color .2s;
}
/* 螢光筆 hover/active：劃過文字下半段，非底線、不佔滿字高 */
.nav-item > .nav-link::before,
a.nav-item::before {
    content: "";
    position: absolute;
    left: -2px; right: -2px;
    bottom: .5em;
    height: .62em;         /* 約字高 2/3，如螢光筆劃過下 2/3 */
    background: #ffc267;   /* 色碼標示：roll-in 底下色塊 #ffc267 */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
    pointer-events: none;
}
.nav-has-dropdown:hover > .nav-link::before,
a.nav-item:hover::before,
.nav-item.is-active > .nav-link::before,
a.nav-item.is-active::before { transform: scaleX(1); }

/* 懸停橋接：補上導覽項目與下拉面板間的空隙，游標可順利移入 */
.nav-has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 26px;
}

/* 下拉面板 */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 202px;
    background: #fff;
    padding: .3rem 0;
    /* 向左向下一點點錯位背景：實心橘色矩形位移（左 4px、下 6px 露出）+ 柔和陰影 */
    box-shadow:
        -4px 6px 0 0 var(--orange),
        0 16px 30px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s;
    z-index: 5;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item-link {
    display: block;
    text-align: center;
    padding: .62rem 1.6rem;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #535353;                     /* 色碼標示：下拉文字 #535353 */
    white-space: nowrap;
    border-bottom: 1px solid #ffd696;   /* 淡橘分隔線（對齊設計稿）*/
    transition: color .2s, background .2s;
}
.dropdown-item-link:last-child { border-bottom: 0; }
.dropdown-item-link.is-active { color: var(--orange); font-weight: 700; }
.dropdown-item-link:hover,
.dropdown-item-link:focus-visible { color: var(--orange); background: #fff8f0; }

/* 電話膠囊 */
.header-phone {
    align-items: center;
    gap: .6rem;
    margin-left: 2.6rem;   /* 導覽與電話鈕間距 */
    padding: .55rem 1.5rem .55rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9c00, #ff7800);   /* 色碼標示：#ff9c00 > #ff7800 */
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 120, 0, .3);
    transition: transform .25s, filter .25s;
}
.header-phone:hover, .header-phone:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.hp-ico {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    /* background: rgba(255, 255, 255, .22); */
    border-radius: 50%;
    font-size: 1.15rem;
    border: 3px solid #fff;
}
.hp-text { display: flex; flex-direction: column; line-height: 1.15; }
.hp-text small { font-size: .8rem; opacity: .95; }
.hp-text strong { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }

/* 漢堡 */
.header-burger {
    width: 46px; height: 46px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.header-burger span {
    display: block; height: 3px; border-radius: 3px;
    background: var(--orange);
    transition: transform .3s, opacity .3s, background .3s;
}
.site-header:not(.scrolled) .header-burger span { background: #ff8a00; }

/* ============ 6. Hero ============ */
.hero {
    position: relative;
    height: 44.06vw;          /* 846/1920 */
    max-height: 900px;
    min-height: 520px;
    overflow: hidden;
}
.heroSwiper, .hero .swiper-wrapper, .hero-slide { height: 100%; }
.hero-slide {
    background-image: var(--hero-1920);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;                /* 蓋過 Swiper 預設 z-index:1 */
    display: flex;
    align-items: center;
    pointer-events: none;
}
.hero-overlay .wrap { pointer-events: none; }
.hero-copy { pointer-events: auto; margin-bottom: 7vw; }  /* 上移使文字落在上中段 */
.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.55;
    letter-spacing: .02em;
}
.hero-title .txt-orange { font-weight: 700; color: #fa6600; }   /* 色碼標示：Hero 橘字 #fa6600 */
.hero-en {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
/* 左側 LINE 浮動鈕：固定跟隨捲動，不隨 Hero 捲走。
   fixed 的包含塊是 viewport，不受 .hero 的 overflow:hidden 裁切；層級與其他浮動元件同級。 */
.hero-line {
    position: fixed;
    left: clamp(6px, 1.4vw, 26px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(64px, 5.7vw, 100px);
    pointer-events: auto;
    transition: transform .25s;
    z-index: var(--z-float);
}
.hero-line img { width: 100%; height: auto; }   /* 維持正方比例，避免變形 */
/* hover 位移要疊在置中的 translateY 上，否則會跳回未置中的位置 */
.hero-line:hover { transform: translateY(calc(-50% - 4px)); }

/* ============ 7. 信任 / LINE 導流列 ============ */
.section-services {
    position: relative;
    background: var(--grey-bg);
    padding-top: 92px;         /* 灰底頂 → 承載信任列下半 */
    padding-bottom: 88px;
}
.trust-holder { margin-top: -180px; z-index: 6; }
.trust-bar {
    display: flex;
    height: 174px;                     /* 設計稿 1920 基準：y=758–931 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, .16);
}
.tb-left {
    flex: 0 0 34%;
    background: linear-gradient(120deg, #ffaa17 0%, #fa8100 100%);   /* 色碼標示：#ffaa17 > #fa8100 */
    color: #fff;
    padding: 1.6rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;       /* 標題與按鈕置中 */
    text-align: center;
    gap: 1.1rem;
}
.tb-left-title { font-size: 1.6rem; font-weight: 700; letter-spacing: .03em; }
.tb-line-btn {
    display: flex;
    align-items: center;
    justify-content: center;   /* 按鈕內容置中 */
    gap: .7rem;
    align-self: center;        /* 按鈕置中 */
    width: 86%;                /* 約設計按鈕寬（面板 75%）*/
    padding: .9rem 1.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #e1e1e1 100%);   /* 色碼標示 */
    color: #535353;            /* 色碼標示：灰字 #535353 */
    font-size: 1.16rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(14, 5, 10, .19);   /* 色碼標示：#0e050a 19% */
    transition: transform .25s, box-shadow .25s;
}
.tb-line-badge {
    flex: 0 0 auto;
    width: 42px;
    height: auto;                  /* 維持橢圓比例，不變形 */
    display: block;
}
.tb-line-btn:hover, .tb-line-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.2); }

.tb-right {
    flex: 1;
    background: linear-gradient(90deg, #404040 0%, #2e2e2e 100%);
    display: flex;
    align-items: stretch;
}
.tb-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}
.tb-item + .tb-item::before {
    content: "";
    position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 1px; background: rgba(255, 255, 255, .16);
}
.tb-item img { width: 40px; height: 40px; }
.tb-item-text { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.tb-item-text strong { color: #fff; font-size: 1.65rem; font-weight: 700; }
.tb-item-text small { color: #a7a7a7; font-size: .8rem; letter-spacing: .1em; margin-top: 3px; }   /* 色碼標示 #a7a7a7 */

/* ============ 8. 多元專業服務 ============ */
.services-deco-left {
    position: absolute;
    left: -8px; top: 0px;
    width: clamp(280px, 33vw, 620px);
    pointer-events: none;
    z-index: 1;
    opacity: .95;
}
.services-deco-right {
    position: absolute;
    right: 0; bottom: 0px;             /* 保持在灰底服務區內，不延伸進品牌 CTA */
    width: clamp(280px, 34vw, 660px);
    pointer-events: none;
    z-index: 1;
}
.services-body { z-index: 2; margin-top: 64px; }
.service-grid {
    margin-top: 3.4rem;
    max-width: 1300px;          /* 對齊設計稿服務卡列寬（約 1311px，邊距較其他區大）*/
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    background: #fff;
    border: 1px solid #ececec;
    padding: 3.4rem 2rem 3rem;
    text-align: center;
    transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.service-icon { height: 104px; display: grid; place-items: center; margin-bottom: 1rem; }
.service-icon img { width: 80px; height: 80px; object-fit: contain; }
.service-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, var(--orange-a), var(--orange-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.service-desc {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.9;
    min-height: 3.4em;
    margin-bottom: 2.4rem;
}
.service-card:hover,
.service-card:focus-within {
    background: var(--cream);
    border-color: #f3e2c6;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .06);
}
.service-card:hover .btn-outline-orange,
.service-card:focus-within .btn-outline-orange {
    background: var(--orange);
    color: #fff;
}

/* ============ 9. 品牌介紹 CTA ============ */
.section-brand {
    position: relative;
    background: #ff8a00 url("../images/00-hp/ab_bg1920.png") center/cover no-repeat;
    padding: clamp(3.6rem, 7vw, 6.4rem) 0;
    color: #fff;
    text-align: center;
}
.brand-inner { max-width: 980px; margin-inline: auto; }
.brand-title { font-size: 1.75rem; font-weight: 700; letter-spacing: .04em; }
.brand-script { width: clamp(280px, 30vw, 460px); height: auto; margin: .8rem auto 2rem; }
.brand-text {
    font-size: 1rem;
    line-height: 2.1;
    color: #fff;
    max-width: 820px;
    margin: 0 auto 2.4rem;
}
.section-brand .btn-dark { padding-inline: 2.6rem; }

/* ============ 10. 借款流程 ============ */
.section-process {
    position: relative;
    background: var(--blue-bg);
    padding-top: min(26.4vw, 506px);   /* 預留照片空間，避免 margin 塌陷 */
    padding-bottom: 70px;
}
.process-photo {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 32.45vw;          /* 623/1920 */
    max-height: 640px;
    background: url("../images/00-hp/step_bg1920.png") center/cover no-repeat;
}
.process-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: clamp(2.8rem, 4.6vw, 4.4rem) clamp(1.6rem, 3.4vw, 3.4rem) clamp(2.8rem, 4vw, 4rem);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .1);
}
.process-panel .section-title { font-weight: 700; }
.process-big { font-size: 1.5em; font-weight: 700; vertical-align: -.02em; color: #fa6600; }   /* 色碼標示：數字 #fa6600 */
.process-sub {
    margin-top: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
}
.step-grid {
    margin-top: 3.2rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.step-card {
    flex: 1 1 0;
    border: 1px solid var(--orange);
    background: #fff;
    padding: 1.9rem 1.5rem 1.7rem;
    position: relative;
    min-height: 300px;   /* 首頁流程區與借款專案頁共用同一高度 */
    display: flex;
    flex-direction: column;
}
.step-card--cream { background: var(--cream); }
.step-icon { align-self: flex-end; height: 64px; }
.step-icon img { width: 58px; height: 58px; object-fit: contain; }
.step-no {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);   /* 色碼標示：步驟數字 #ff9900 */
    line-height: 1;
    /* 彈性空隙留在 icon 下方，數字／標題因而緊貼下方分隔線（不隨卡片變高而拉開）*/
    margin-top: auto;
}
.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
    margin: .7rem 0 1rem;
}
.step-desc {
    font-size: .85rem;
    color: var(--text);
    padding-top: 1rem;
    border-top: 1px solid var(--orange);   /* 色碼標示：分隔線 #ff9900 */
}
.step-arrow {
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #414141;   /* 色碼標示：箭頭 #414141 */
    font-size: 1.1rem;
}
.process-cta { text-align: center; margin-top: 2.4rem; }

/* ============ 11. 成功案例 ============ */
.section-cases {
    position: relative;
    background: var(--blue-bg);
    padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(3rem, 6vw, 5rem);
}
.cases-script { width: clamp(240px, 26vw, 400px); height: auto; margin: 0 auto .6rem; }
.case-list { margin-top: 2.8rem; display: flex; flex-direction: column; gap: 36px; }
.case-card {
    background: #fff;
    display: flex;
    align-items: stretch;
    padding: 3.7rem 3rem;
    box-shadow: 0 10px 26px rgba(60, 90, 100, .08);
}
.case-head {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2rem;
    position: relative;
}
.case-head::after {
    content: "";
    position: absolute; right: 0; top: 6%; bottom: 6%;
    width: 1px; background: var(--orange);   /* 色碼標示：分隔線 #ff9900 */
}
.case-badge { width: 54px; height: 54px; flex: 0 0 auto; }
.case-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(90deg, #ff9900 0%, #fa8100 100%);   /* 色碼標示：文字漸層 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.case-amount { font-style: normal; font-size: 1.7rem; margin: 0 .08em; }
.case-role { margin-top: .5rem; font-size: .95rem; color: var(--text); }
.case-body {
    flex: 1;
    padding-left: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.case-body p { font-size: .95rem; color: var(--text); line-height: 2.15; }
.cases-cta { text-align: center; margin-top: 3rem; }

/* ============ 12. 常見問答 CTA ============ */
.section-faq {
    position: relative;
    background: #ced9db;
    overflow: hidden;
    min-height: 693px;
    display: flex;
    align-items: center;
    padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}
.faq-photo {
    position: absolute; inset: 0;
    background: url("../images/00-hp/qa_bg1920.png") center/cover no-repeat;
}
.faq-mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(206, 217, 219, 0) 26%,
        rgba(206, 217, 219, .82) 46%,
        rgba(206, 217, 219, .96) 60%);
}
.section-faq .wrap { z-index: 2; }
.faq-content { width: 52%; margin-left: auto; }
.faq-title { font-size: 1.7rem; font-weight: 700; color: var(--heading); letter-spacing: .02em; }
.faq-title .txt-orange { color: #fa6600; }   /* 色碼標示：橘字 #fa6600 */
.faq-sub { margin-top: 1rem; font-size: 1rem; color: #5d5d5d; line-height: 1.9; }
.faq-accordion { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}
.faq-num {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.faq-q-text { flex: 1; font-size: 1.1rem; font-weight: 700; color: var(--heading); }
.faq-caret { color: var(--orange); font-size: .9rem; transition: transform .3s; }
.faq-item:not(.is-open) .faq-caret { transform: rotate(180deg); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    background: #f5f5f5;   /* 色碼標示：答案灰底 #f5f5f5 */
    transition: grid-template-rows .35s ease;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
    overflow: hidden;
    padding: 0 1.4rem;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.95;
    transition: padding .35s ease;
}
.faq-item.is-open .faq-a > p { padding: 0 1.4rem 1.2rem; }
.faq-actions { margin-top: 1.8rem; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ 13. Footer ============ */
.site-footer {
    background: linear-gradient(155deg, #ff8820 0%, #ff5e00 100%);   /* 色碼標示：#ff8820 > #ff5e00 */
    color: #fff;
    padding: 3.2rem 0 1.4rem;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.6rem;
}
.footer-logo img { width: 240px; height: auto; }
.footer-social { display: flex; gap: 14px; }
.footer-social img { width: 46px; height: 46px; transition: transform .25s; }
.footer-social a:hover img { transform: translateY(-3px); }

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: .6rem 0 2rem;
}
.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #ffd58c;   /* 色碼標示：CONTACT US / SERVICE #ffd58c */
    margin-bottom: 1rem;
}
.footer-heading-service { margin-top: 1.8rem; }
.footer-contact-row { display: flex; gap: 1.4rem; align-items: flex-start; }
.footer-qr {
    width: 118px; height: 118px;
    background: #fff; padding: 6px; border-radius: 4px;
    flex: 0 0 auto;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.02rem;
    margin-bottom: .7rem;
}
.footer-contact-list .bi { opacity: .95; }
.fc-ico { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.footer-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 0;
}
.footer-service-list li { position: relative; padding: 0 1rem; font-size: 1.02rem; }
.footer-service-list li:not(:last-child)::after {
    content: "|";
    position: absolute; right: -2px; top: 0;
    opacity: .5;
}
.footer-service-list li:first-child { padding-left: 0; }
.footer-service-list a { transition: opacity .2s; }
.footer-service-list a:hover { opacity: .75; }

.footer-terms-list { counter-reset: t; }
.footer-terms-list li {
    counter-increment: t;
    font-size: .92rem;
    line-height: 1.85;
    margin-bottom: .55rem;
    padding-left: 1.4rem;
    position: relative;
}
.footer-terms-list li::before {
    content: counter(t) ".";
    position: absolute; left: 0; top: 0;
    font-weight: 700;
}
.footer-stat { display: flex; gap: 2.4rem; margin-top: 1.2rem; }
.footer-stat .bi { font-size: .7rem; margin-right: .3rem; vertical-align: middle; }
.footer-stat span { font-size: .95rem; font-weight: 500; display: inline-flex; align-items: center; }
.fc-diamond { width: 15px; height: 15px; margin-right: .35rem; object-fit: contain; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .55);   /* 色碼標示：分隔線 #ffffff */
    padding-top: 1.2rem;
    text-align: center;
}
.footer-bottom p { font-size: .82rem; color: #ffb683; line-height: 1.7; }   /* 色碼標示：版權文字 #ffb683 */
/* 製作單位連結：與版權文字同色、無底線，僅以 hover 提示可點 */
.footer-credit { color: inherit; text-decoration: none; transition: color .2s; }
.footer-credit:hover, .footer-credit:focus-visible { color: #ffffff; }
.footer-bottom .bi { margin-right: .3rem; }
.fc-lock { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: .3rem; }

/* ============ 14. 浮動元件 ============ */
.back-to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 56px; height: 56px;
    z-index: var(--z-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top img { width: 100%; height: 100%; }

/* Off-canvas 選單 */
.menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(220, 220, 220, .80);   /* 色碼標示：遮罩 #dcdcdc 80% */
    opacity: 0; visibility: hidden;
    transition: opacity .3s;
    z-index: 80;
}
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: clamp(250px, 55vw, 360px);
    max-width: calc(100% - 40px);
    height: 100vh; height: 100dvh;
    background: #f6f6f4;                     /* 色碼標示：面板底 #f6f6f4 */
    z-index: 85;                             /* 低於底部固定鈕（95），高於遮罩（80）*/
    transform: translateX(100%);
    /* 陰影往左投，收合時會越過畫面右緣染色（fixed 不受 html 的 overflow-x: clip 裁切），故只在展開時掛上 */
    box-shadow: none;
    transition: transform .32s ease, box-shadow .32s ease;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}
body.menu-open .mobile-menu {
    transform: translateX(0);
    box-shadow: -6px 0 24px rgba(14, 5, 10, .23);   /* 色碼標示：陰影 #0e050a 23% */
}
.menu-close {
    align-self: flex-end;
    margin: 1rem 1.2rem .4rem;
    width: 44px; height: 44px;
    background: transparent; border: 0;
    color: var(--orange);                    /* 色碼標示：X #ff9900 */
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-nav { flex: 1; overflow-y: auto; padding: 3.4rem 0 72px; }   /* 依手機稿下移首列，底部避開固定鈕 */
.mm-link {
    display: block;
    text-align: center;
    padding: 1.28rem 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #242424;                          /* 色碼標示：文字 #242424 */
    border-bottom: 1px solid #ffd696;        /* 色碼標示：分隔線 #ffd696 */
    transition: color .2s;
}
.mm-link:hover, .mm-link:focus-visible,
.mm-link.is-active { color: var(--orange); font-weight: 700; }   /* 色碼標示：active #ff9900 */
.mobile-menu-actions { display: flex; }
.mm-act {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: .45rem;
    padding: 1.1rem .6rem;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
}
.mm-act-line { background: linear-gradient(90deg, #59c294 0%, #019d64 100%); }   /* 色碼標示 */
.mm-act-phone { background: linear-gradient(90deg, #ff9823 0%, #eb6400 100%); }  /* 色碼標示 */
.mm-act img { width: 22px; height: 22px; object-fit: contain; }
.mm-act .bi { font-size: 1.2em; }

/* 手機底部固定列（master 內建，微調配色） */
.social-links-btn-mobile { z-index: 95; }   /* 高於選單，永遠在最上層 */
.social-links-btn-mobile .s-line-btn,
.social-links-btn-mobile .s-phone-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: .45rem;
    color: #fff; font-weight: 700; font-size: 1rem;
    padding: .95rem .4rem;
}
.social-links-btn-mobile .s-line-btn { background: linear-gradient(90deg, #59c294 0%, #019d64 100%); }   /* 色碼標示 */
.social-links-btn-mobile .s-phone-btn { background: linear-gradient(90deg, #ff9823 0%, #eb6400 100%); }  /* 色碼標示 */
.social-links-btn-mobile img { width: 22px; height: 22px; object-fit: contain; }
.social-links-btn-mobile .bi { margin-right: .3rem; }

/* ============ 12b. 公司簡介（About）============ */
/* 介紹區（承載信任列下半，與首頁服務區同機制）*/
.section-about-intro {
    position: relative;
    background: #fff;
    padding-top: 92px;
    padding-bottom: clamp(2.4rem, 5vw, 4.6rem);
}
.about-intro-body { margin-top: 40px; }
.about-head { position: relative; margin-bottom: 2.8rem; }
.about-script {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -46%);
    width: clamp(150px, 15vw, 250px);
    height: auto;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}
.about-head .section-title { position: relative; z-index: 1; }

.about-intro-grid {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: clamp(2rem, 4vw, 4.4rem);
    align-items: center;
}
.about-intro-figure { position: relative; padding: 0; }
.about-figure-script {
    display: none;
}
.about-figure-frame {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
}
.about-figure-frame::before { display: none; }
.about-figure-frame img { width: 100%; height: auto; object-fit: cover; }

.about-lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.7;
    margin-bottom: 1.4rem;
}
.about-intro-text p {
    font-size: 1rem;
    color: var(--text);
    line-height: 2;
    margin-bottom: 1rem;
}

/* 隱私與權益承諾 */
.section-about-privacy {
    position: relative;
    background: #fff;
    padding: clamp(1.6rem, 3vw, 3rem) 0 clamp(2.4rem, 5vw, 4.4rem);
}
.about-privacy-head { margin-bottom: 2.2rem; position: relative; z-index: 2; }
/* 手繪裝飾（01bgline）緊貼 panel 右上角：底緣壓在 panel 頂緣，右側略出血 */
.about-privacy-panel-wrap { position: relative; }
.about-privacy-brush {
    position: absolute;
    /* 右緣貼齊視窗右緣：wrap 觸及 max-width 後，-vw 已不足以跨過留白，改由實際留白換算 */
    right: calc((100% - 100vw) / 2);
    bottom: calc(100% - 10px);   /* 底緣壓在 panel 頂緣上方 10px，緊貼 panel */
    /* 寬度＝視窗留白＋壓入 panel 的量，確保任何螢幕都同時觸及螢幕右緣與 panel 右上角，不脫節 */
    width: max(200px, calc((100vw - 100%) / 2 + 21.7%));
    height: auto;
    pointer-events: none;
    z-index: 3;
}
.about-privacy-head .section-title { line-height: 1.5; }
.hl-orange { color: #ff9900; }   /* 色碼標示：隱私標題前段 #ff9900 */
.about-privacy-panel {
    position: relative;
    background: linear-gradient(120deg, #fa7600 0%, #ffaf26 100%);   /* 色碼標示：#fa7600 > #ffaf26 */
    color: #fff;
    border-radius: 4px;
    padding: clamp(2rem, 3.4vw, 3.2rem) clamp(1.8rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
}
.about-privacy-text { flex: 1; }
.about-privacy-text p {
    font-size: 1rem;
    line-height: 2;
    color: #fff;
    margin-bottom: 1.2rem;
}
.about-privacy-text p:last-child { margin-bottom: 0; }
.about-privacy-illu {
    flex: 0 0 auto;
    width: clamp(240px, 30%, 420px);
    height: auto;
    opacity: .9;
}

/* 三項服務優勢 */
.section-about-features {
    background: #fff;
    padding: clamp(1.8rem, 3.4vw, 3.2rem) 0;
}
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.about-feature {
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
}
.about-feature + .about-feature::before {
    content: "";
    position: absolute; left: 0; top: 16%; bottom: 16%;
    width: 1px; background: var(--orange);   /* 色碼標示：分隔線 #ff9900 */
}
.about-feature-icon { height: 100px; display: grid; place-items: center; margin-bottom: 1rem; }
.about-feature-icon img { width: 88px; height: 88px; object-fit: contain; }
.about-feature-title { font-size: 1.4rem; font-weight: 700; color: var(--heading); }

/* 現金諮詢 CTA */
.section-about-cta {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    display: flex;
    align-items: center;
    padding: clamp(2.4rem, 4vw, 3.6rem) 0;
}
/* 上緣橘色細線：素材頂端雖烘焙了同一條線，但 cover 在素材比容器高時（1440／手機）會把它裁掉，
   且遮罩會蓋掉最淡的左段，故改由 CSS 重繪並置於遮罩之上。色值取自素材 y=0 取樣。 */
.section-about-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg,
        #fffefc 0%,     /* 色碼標示：左端近白 */
        #ffeaca 25%,
        #ffcc7f 50%,
        #ffae33 75%,
        #ff9a03 100%);  /* 色碼標示：右端飽和橘 */
}
.about-cta-photo {
    position: absolute; inset: 0;
    background: url("../images/01/01ba_bg1920.png") center/cover no-repeat;
}
.about-cta-mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(244, 246, 247, .96) 30%,
        rgba(244, 246, 247, .82) 46%,
        rgba(244, 246, 247, 0) 66%);
}
.section-about-cta .wrap { z-index: 2; }
.about-cta-content { width: 60%; }
.about-cta-title { font-size: 1.7rem; font-weight: 700; color: var(--heading); }
.about-cta-lead { margin-top: 1rem; font-size: 1.05rem; color: #4a4a4a; line-height: 1.9; }
.about-cta-btn { margin-top: 1.4rem; border: 1px solid #ffffff; }   /* 色碼標示：外框 #ffffff 1px */
.about-cta-foot { margin-top: 1.8rem; font-size: .95rem; color: #5d5d5d; line-height: 1.95; }

/* ============ 12c. 內頁共用（借款專案 / 流程 / 常見問答 / 成功案例）============ */
/* 內頁第一區塊皆承載信任列下半（與首頁服務區同機制）*/
.section-cases-page,
.section-faq-page,
.section-flow,
.section-loan-intro {
    position: relative;
    padding-top: 92px;
}

/* ---- 成功案例頁 ---- */
.section-cases-page { background: var(--blue-bg); padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-cases-page .case-card { padding: 4.7rem 3rem; }
.cases-page-body { margin-top: 40px; }
.cases-page-head { margin-bottom: 1rem; position: relative; }
.cases-page-script {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -72%);
    width: clamp(300px, 34vw, 592px); height: auto;
    opacity: .95;
    filter: brightness(0) invert(1);
    z-index: 0; pointer-events: none;   /* 設計稿為白色手寫字，避免灰色原檔在藍底上消失 */
}
.cases-page-head .section-title,
.cases-page-head .section-sub,
.cases-page-head .cases-count { position: relative; z-index: 1; }
.cases-count { margin-top: 1.4rem; text-align: right; color: var(--orange); font-weight: 700; font-size: 1rem; }
.section-cases-page .case-list { margin-top: 1.4rem; }

/* ---- 常見問答頁 ---- */
.section-faq-page { background: var(--blue-bg); }
.faq-page-body { margin-top: 40px; }
.faq-page-head { position: relative; margin-bottom: 2.6rem; }
.faq-page-script {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -62%);
    width: clamp(220px, 24vw, 378px); height: auto;
    opacity: 1; z-index: 0; pointer-events: none;
}
.faq-page-head .section-title, .faq-page-head .section-sub { position: relative; z-index: 1; }
.faq-page-grid {
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: clamp(1.6rem, 3vw, 3rem);
    align-items: start;
}
.faq-page-accordion { margin-top: 0; }
.faq-page-accordion .faq-q-text { font-size: 1.05rem; }
/* faq-visual：只放 05pic.png（素材本身已含橘底與 Get Answers 手寫字），不另加背景或文字 */
.faq-visual { position: relative; }
.faq-visual-photo { padding: 0; }
.faq-visual-photo img { width: 100%; height: auto; display: block; }
.faq-page-cta { margin-top: clamp(2rem, 4vw, 3.4rem); }
/* 僅本頁：右側收白（共用的 .faq-mask 是取照片灰藍做無縫融合，首頁維持原樣）*/
.faq-page-cta .faq-mask {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 26%,
        rgba(255, 255, 255, .85) 46%,
        rgba(255, 255, 255, .97) 60%);   /* 色碼標示：白 #ffffff */
}
.faq-partner-title { margin-top: 1.6rem; color: var(--orange); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.faq-partner-text { margin-top: .6rem; font-size: 1rem; color: #5d5d5d; line-height: 1.9; }   /* 色碼標示 #5d5d5d */
.faq-cta-line { margin-top: 1.2rem; border: 1px solid #ffffff; }   /* 色碼標示：外框 #ffffff 1px */

/* ---- 借款流程頁 ---- */
.section-flow {
    position: relative;
    background: #fff;   /* 流程步驟區純白底；桌面照片移至溫馨提醒區 */
    padding-bottom: 0;
}
.flow-body { margin-top: 40px; position: relative; z-index: 2; }   /* 步驟疊在米白延伸層之上（步驟05白卡壓在米白上）*/
.flow-head { position: relative; margin-bottom: 2.6rem; }
.flow-script {
    position: absolute; left: 50%; top: 0;
    transform: translate(-50%, -20%);
    width: clamp(180px, 18vw, 302px); height: auto;
    opacity: 1; z-index: 0; pointer-events: none;
}
.flow-head .section-title, .flow-lead, .flow-head .section-sub { position: relative; z-index: 1; }
.flow-lead { margin-top: 1.2rem; font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.flow-list { display: flex; flex-direction: column; gap: 26px; }
/* 步驟卡「錯位疊放」：照片往左突出橘框卡片、右半壓進卡片蓋住左框（設計 照片x156–571 / 卡框x399–1764）*/
.flow-row { position: relative; }
.flow-photo {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 26%; aspect-ratio: 415 / 222;   /* 設計照片比例 1.87:1 */
    overflow: hidden; z-index: 2;
}
.flow-photo img { width: 100%; height: 100%; object-fit: cover; }
.flow-text {
    margin-left: 15%;                       /* 卡框左緣 ≈ x399/1608 */
    min-height: clamp(190px, 15vw, 260px);
    border: 1px solid var(--orange); background: #fff;
    padding: 2.2rem 3rem 2.2rem 13%;        /* 左內距（列寬相對）讓文字避開突出照片 */
    display: flex; flex-direction: column; justify-content: center;
}
.flow-row--cream .flow-text { background: var(--cream); }
.flow-no { font-size: 2rem; font-weight: 700; color: var(--orange); line-height: 1; }   /* 色碼標示：數字 #ff9900 */
.flow-title { font-size: 1.35rem; font-weight: 700; color: var(--heading); margin: .5rem 0 1rem; }
.flow-desc { font-size: 1rem; color: var(--text); line-height: 2; }

/* 溫馨提醒區：米白 #fff9ec 底 + 桌面照片帶於底部滿版（跨區壓在白卡下半與 LINE 按鈕後方）*/
.flow-remind-wrap {
    position: relative; z-index: 1;
    margin-top: clamp(2.4rem, 4vw, 4rem);
    background: #fff9ec url("../images/03/03bg_1920.png") center bottom / 100% auto no-repeat;   /* 色碼標示：底色 #fff9ec */
    padding-bottom: clamp(120px, 10.5vw, 205px);   /* 讓白卡下緣與 LINE 按鈕壓在底部桌面照片帶上（跨區重疊）*/
}
/* 米白底往上延伸，橫跨最後一步（步驟05）中段 —— 設計：白→米白交界落在步驟05卡片內 */
.flow-remind-wrap::before {
    content: ""; position: absolute; z-index: 0;
    left: 50%; transform: translateX(-50%);
    width: 100vw; bottom: 100%;
    height: clamp(130px, 11.5vw, 200px);   /* 上延至步驟05中段（提醒區margin + 步驟05半高）*/
    background: #fff9ec;
}
.flow-remind {
    position: relative;
    padding-top: clamp(58px, 6.5vw, 104px);   /* 讓出左上手繪裝飾空間 */
}
/* R01 手繪裝飾：掛在提醒區左上並橫跨內容（設計 x155–995, 840×140，跨第 5 步驟下緣至白卡上方）*/
.flow-remind-script {
    position: absolute; left: 0;
    top: clamp(18px, 2.2vw, 42px);   /* 下移讓手繪字壓進白卡約自身高度四成 */
    width: clamp(280px, 44vw, 680px); height: auto;
    z-index: 2; pointer-events: none;
}
/* 白卡：含標題 + 3 點，寬度貼近設計 x155–1765（≈滿版 wrap）*/
.flow-remind-card {
    position: relative; z-index: 1;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
    padding: clamp(2rem, 3.2vw, 3rem) clamp(1.8rem, 4vw, 4.6rem);
    text-align: center;
}
.flow-remind-title { font-size: 1.6rem; font-weight: 700; color: #414141; margin-bottom: 1.8rem; }   /* 色碼標示：#414141 */
.flow-remind-title .txt-orange { color: #fa6600; }   /* 色碼標示：溫馨提醒 #fa6600 */
.flow-remind-list {
    /* 收縮到最長一項的寬度再置中：整組在卡片內置中，三項編號仍互相對齊 */
    width: fit-content; max-width: 100%; margin: 0 auto; text-align: left;
    display: flex; flex-direction: column; gap: .3rem;
}
.flow-remind-list li { display: flex; align-items: flex-start; gap: 1rem; padding: .7rem 0; font-size: 1rem; color: #5d5d5d; }   /* 色碼標示：內文 #5d5d5d */
.flow-remind-num {
    flex: 0 0 auto; width: 26px; height: 26px;
    display: grid; place-items: center;
    background: #ff9900; color: #fff; font-size: .85rem; font-weight: 700;   /* 色碼標示：數字方框 #ff9900 */
    margin-top: 2px;
}
.flow-remind-cta { margin-top: clamp(2rem, 3vw, 2.8rem); text-align: center; }
.flow-remind-cta .btn-line { background: #00bd93; border: 1px solid #ffffff; }   /* 色碼標示：綠底 #00bd93 + 外框 #ffffff 1px */

/* ---- 借款專案詳頁 ---- */
.section-loan-intro { background: var(--grey-bg); padding-bottom: clamp(2.4rem, 5vw, 4.4rem); }
.loan-intro-body { margin-top: 40px; }
.loan-head { position: relative; margin-bottom: 2.4rem; }
.loan-script {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -40%);
    width: clamp(180px, 18vw, 302px); height: auto;
    opacity: 1; z-index: 0; pointer-events: none;
}
.loan-head .section-title { position: relative; z-index: 1; }
.loan-intro-card {
    background: #fff;
    display: flex;
    gap: clamp(1.8rem, 3vw, 3.6rem);
    padding: clamp(3rem, 4.4vw, 4.6rem);
    box-shadow: 0 14px 34px rgba(0,0,0,.06);
    align-items: center;
}
.loan-intro-photo { flex: 0 0 45%; align-self: center; }
.loan-intro-photo img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 720 / 430;
    border-radius: 2px;
    object-fit: cover;
}
.loan-intro-text { flex: 1; }

/*
 * 桌機：主圖從白卡左緣突出、其餘壓在卡片上。
 * 比例取自 1920 稿（wrap 1600 / 卡 1505 / 圖 720×430 / 突出 105 / 圖文間距 65），
 * 全部換算成百分比，故涵蓋所有桌機寬度而非只有對稿的那一個。
 * 百分比基準：卡片的 width/margin/padding 相對 .wrap；圖片的 flex-basis/margin 相對卡片 content box（= 卡寬 − 右內距）。
 */
@media (min-width: 1200px) {
    .loan-intro-card {
        position: relative;
        align-items: flex-start;
        box-sizing: border-box;
        width: 94.0625%;                       /* 1505/1600 */
        margin-left: 6.5625%;                  /* 105/1600 */
        padding: var(--loan-card-top, 3.8125%) 6.5625% var(--loan-card-top, 3.8125%) 0;
        gap: 4.6429%;                          /* 65/1400（content box）*/
    }
    .loan-intro-photo {
        flex: 0 0 51.4286%;                    /* 720/1400 */
        margin-left: -7.5%;                    /* -105/1400 ⇒ 突出卡片左緣 */
        align-self: flex-start;
    }
    .loan-intro-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 720 / 430;
        object-fit: cover;
        border-radius: 0;
    }
    .loan-intro-text { flex: 1; min-width: 0; }

    /* 各頁主圖與卡片頂緣的間距（取自各自設計稿，換算為相對 .wrap 的比例）*/
    .route-loan-government .loan-intro-card { --loan-card-top: 4.625%; }   /* 74/1600 */
    .route-loan-vehicle    .loan-intro-card { --loan-card-top: 3.8125%; }  /* 61/1600 */
    .route-loan-luxury     .loan-intro-card { --loan-card-top: 4.4375%; }  /* 71/1600 */
    .route-loan-business   .loan-intro-card { --loan-card-top: 3.8125%; }  /* 61/1600 */
    .route-loan-machinery  .loan-intro-card { --loan-card-top: 4.1875%; }  /* 67/1600 */
    .route-loan-estate     .loan-intro-card { --loan-card-top: 4.1875%; }  /* 67/1600 */
}

.loan-en {
    font-size: 1.3rem; font-weight: 700; color: #fa8100;   /* 色碼標示：英文 #fa8100 */
    letter-spacing: .04em; padding-bottom: .9rem; margin-bottom: 1.1rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #ff9900, rgba(255,153,0,0)) 1;   /* 橘長條淡出 #ff9900 */
}
.loan-points { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 1rem; }
.loan-points li { font-size: 1.1rem; font-weight: 700; color: var(--heading); display: inline-flex; align-items: center; gap: .4rem; }
.loan-points .bi { color: var(--orange); }
.loan-tick { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.loan-desc { font-size: 1rem; color: var(--text); line-height: 2.05; margin-bottom: 1rem; }
.loan-docs-title {
    font-size: 1.15rem; font-weight: 700; color: #fa6600;   /* 色碼標示：應備文件 #fa6600 */
    margin: 1.7rem 0 1rem; padding-left: .8rem; position: relative;
}
.loan-docs-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; background: var(--orange); }
.loan-docs { counter-reset: d; }
.loan-docs li { counter-increment: d; font-size: 1rem; color: var(--text); line-height: 2.1; padding-left: 1.5rem; position: relative; }
.loan-docs li::before { content: counter(d) "."; position: absolute; left: 0; color: var(--text); }
.loan-docs-note { margin-top: .6rem; font-size: .9rem; color: #8a8a8a; }

.section-loan-process {
    background: #ff9410 url("../images/02/02step_bg1920.png") center/cover no-repeat;
    padding: clamp(4rem, 7vw, 6.6rem) 0;
}
.loan-process-title { color: #ffffff; }   /* 色碼標示：橘底流程標題白字 */
.loan-process-title .process-big { color: #ffdc7f; }   /* 色碼標示：數字 #ffdc7f */
.section-loan-process .step-grid { margin-top: 2.4rem; }
.section-loan-process .process-cta { margin-top: 2.4rem; }

.section-loan-more {
    position: relative;
    background: var(--grey-bg);
    padding: clamp(3.2rem, 6vw, 5.4rem) 0 clamp(3.4rem, 6vw, 5.4rem);
    overflow: hidden;
}
.section-loan-more > .wrap { position: relative; z-index: 2; }
.loan-more-deco {
    position: absolute;
    display: block;
    right: 0;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
.loan-more-deco-line {
    width: clamp(220px, 35vw, 672px);
    bottom: 0;
}
.section-loan-more .service-grid { margin-top: 3rem; }

/* ============ 15. 動畫（AOS 已載入，補 reduced-motion）============ */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* ============ 16. RWD ============ */
/* 高解析筆電微縮 */
@media (max-width: 1600px) { html { font-size: 15.5px; } }
@media (max-width: 1440px) { html { font-size: 15px; } }
@media (max-width: 1280px) { html { font-size: 14.5px; } }

/* 依設計切圖規格切換各斷點 art direction 素材 */
@media (min-width: 2560px) {
    .hero-slide { background-image: var(--hero-2560); }
    .section-brand { background-image: url("../images/00-hp/ab_bg2560.png"); }
    .process-photo { background-image: url("../images/00-hp/step_bg2560.png"); }
    .faq-photo { background-image: url("../images/00-hp/qa_bg2560.png"); }
}

@media (min-width: 1440px) and (max-width: 1919.98px) {
    .hero-slide { background-image: var(--hero-1440); }
    .section-brand { background-image: url("../images/00-hp/ab_bg1440.png"); }
    .process-photo { background-image: url("../images/00-hp/step_bg1440.png"); }
    .faq-photo { background-image: url("../images/00-hp/qa_bg1440.png"); }
    .about-cta-photo { background-image: url("../images/01/01ba_bg1440.png"); }
    .flow-remind-wrap { background-image: url("../images/03/03bg_1440.png"); }
    .section-loan-process { background-image: url("../images/02/02step_bg1440.png"); }
}

@media (min-width: 1024px) and (max-width: 1439.98px) {
    .hero-slide { background-image: var(--hero-1024); }
    .section-brand { background-image: url("../images/00-hp/ab_bg1024.png"); }
    .process-photo { background-image: url("../images/00-hp/step_bg1024.png"); }
    .faq-photo { background-image: url("../images/00-hp/qa_bg1024.png"); }
    .about-cta-photo { background-image: url("../images/01/01ba_bg1024.png"); }
    .flow-remind-wrap { background-image: url("../images/03/03bg_1024.png"); }
    .section-loan-process { background-image: url("../images/02/02step_bg1024.png"); }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-slide { background-image: var(--hero-768); }
    .section-brand { background-image: url("../images/00-hp/ab_bg768.png"); }
    .process-photo { background-image: url("../images/00-hp/step_bg768.png"); }
    .faq-photo { background-image: url("../images/00-hp/qa_bg768.png"); }
    .about-cta-photo { background-image: url("../images/01/01ba_bg768.png"); }
    .flow-remind-wrap { background-image: url("../images/03/03bg_768.png"); }
    .section-loan-process { background-image: url("../images/02/02step_bg768.png"); }
}

/* 1920px 設計稿垂直座標基準（瀏覽器捲軸會使 clientWidth 約為 1905px） */
@media (min-width: 1800px) {
    #main-section > .section-services { height: 1196px; }
    #main-section > .section-services .section-sub { max-width: 1200px; }
    #main-section > .section-services .service-grid {
        max-width: 1312px;
        margin-top: 2.1rem;
        gap: 8px;
    }
    #main-section > .section-services .service-card {
        height: 432px;
        padding-inline: 1.75rem;
    }
    #main-section > .section-services .service-icon { margin-bottom: 1.65rem; }
    #main-section > .section-services .service-desc { margin-bottom: 4.15rem; }
    #main-section > .section-brand {
        height: 574px;
        display: flex;
        align-items: center;
    }
    #main-section > .section-brand > .wrap { width: min(100% - clamp(2rem, 7vw, 18rem), var(--wrap)); }
    #main-section > .section-brand .brand-title { font-size: 1.875rem; }
    #main-section > .section-brand .brand-script { width: 536px; }
    #main-section > .section-brand .brand-text {
        max-width: 760px;
        font-size: 1.125rem;
    }
    #main-section > .section-brand .btn-dark { width: 250px; height: 52px; padding: 0; }
    #main-section > .section-process { height: 1284px; }
    #main-section > .section-process .process-panel {
        height: 777px;
        padding-inline: 68px;
    }
    #main-section > .section-process .step-card {
        flex: 0 0 249px;   /* 高度由 base 的 min-height 統一，不在此寫死 */
    }
    #main-section > .section-process .step-arrow { flex-basis: 55px; }
    #main-section > .section-cases { height: 914px; padding: 40px 0 0; }
    #main-section > .section-cases .cases-script { width: 480px; }
    #main-section > .section-cases .case-list { margin-top: 35px; }
    #main-section > .section-cases .cases-cta { margin-top: 48px; }
    #main-section > .section-faq { height: 693px; min-height: 693px; }
    #main-section > .section-faq .faq-content { width: 780px; }

    /* 公司簡介 1920px 設計稿：介紹與隱私區共用原本總高，但交界位於 y=1512。 */
    .section-about-intro { height: 666px; }
    .section-about-intro .about-head { margin-bottom: 20px; }
    .section-about-intro .about-intro-grid {
        grid-template-columns: 736px 1fr;
        gap: 60px;
        align-items: start;
    }
    .section-about-intro .about-intro-figure { padding: 0; }
    /* 01pic.png 已包含完整橘框與 Reliable 手寫字，不再用 CSS 重複包框。 */
    .section-about-intro .about-figure-script { display: none; }
    .section-about-intro .about-figure-frame {
        width: 736px;
        border: 0;
        padding: 0;
        background: transparent;
    }
    .section-about-intro .about-figure-frame::before { display: none; }
    .section-about-intro .about-figure-frame img { display: block; width: 736px; height: 440px; }
    .section-about-intro .about-intro-text { margin-top: 34px; }
    .section-about-intro .about-lead { font-size: 1.375rem; line-height: 1.75; }
    .section-about-intro .about-intro-text p { font-size: 1.125rem; line-height: 2; }

    .section-about-privacy { height: 458px; padding: 0; }
    .about-privacy-head { margin-bottom: 43px; }
    .about-privacy-head .section-sub { margin-top: .45rem; }
    .about-privacy-panel {
        height: 328px;
        padding: 0 48px;
        gap: 24px;
    }
    .about-privacy-text p { font-size: 1.125rem; line-height: 2; margin-bottom: 1.35rem; }
    .about-privacy-illu { width: 584px; max-height: 320px; object-fit: contain; }
    .section-about-features { height: 360px; }
    .section-about-features { padding-top: 63px; }
    .about-feature-title { font-size: 1.5rem; }
    .section-about-cta { height: 530px; }
    .about-cta-content { width: 830px; }
    .about-cta-title { font-size: 1.5rem; }
    .about-cta-lead { font-size: 1.125rem; }
    .about-cta-foot { font-size: 1.125rem; line-height: 2; }
    .about-cta-btn { width: 250px; height: 54px; padding: 0; justify-content: center; }

    body:has(.section-faq-page) .site-footer { min-height: 575px; }
    .route-faq .faq-page-body { width: 1610px; }
    .route-faq .faq-page-grid {
        grid-template-columns: 780px 765px;
        gap: 60px;
    }
    .route-faq .faq-page-accordion { gap: 28px; }
    .route-faq .faq-page-accordion .faq-q {
        min-height: 66px;
        padding: .5rem .75rem;
    }
    .route-faq .faq-page-accordion .faq-num { width: 50px; height: 50px; font-size: 1.1rem; }
    .route-faq .faq-page-accordion .faq-q-text { font-size: 1.1rem; }
    .route-faq .faq-page-accordion .faq-a > p { padding-inline: 4.65rem 1.25rem; }
    .route-faq .faq-page-accordion .faq-item.is-open .faq-a > p {
        padding: .5rem 1.25rem 1.2rem 4.65rem;
    }
    .route-faq .faq-visual {
        height: auto;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        background: transparent;
    }
    .route-faq .faq-visual-photo,
    .route-faq .faq-visual-photo img {
        width: 765px;
        height: auto;
    }
    /* 05pic.png 已包含完整橘色底與手寫字，不再重複疊加文字。 */
    .route-faq .faq-visual-script { display: none; }
    .route-faq .faq-page-cta {
        height: 650px;
        min-height: 650px;
        margin-top: 65px;
    }

    /* 案例筆數為動態，高度不寫死（設計稿 2169px 是滿版筆數的座標）；底距交由 padding-bottom */

    .section-loan-process { height: 651px; }
    .section-loan-more { height: 1077px; }
    .section-loan-more { padding-top: 48px; padding-bottom: 0; }
    .section-loan-more .service-grid {
        width: 1312px;
        max-width: 1312px;
        margin-top: 32px;
        gap: 8px;
        transform: translateX(-6px);
    }
    .section-loan-more .service-card {
        width: 432px;
        height: 432px;
        padding: 3.4rem 2rem 3rem;
    }
    .section-loan-more .loan-more-deco-line { width: 672px; right: 0; bottom: 0; }

    .loan-head { margin-bottom: calc(2.4rem + 32px); }
    .loan-en {
        font-size: 1.6rem;
        padding-bottom: 1.2rem;
        margin-bottom: 1.45rem;
    }
    .loan-points { gap: .45rem 1rem; margin-bottom: .8rem; }
    .loan-points li { font-size: 1.5rem; }
    .loan-tick { width: 24px; height: 24px; }
    .loan-desc { font-size: 1.125rem; line-height: 2.2; margin-bottom: .65rem; }
    .loan-docs-title { font-size: 1.5rem; margin: 1.45rem 0 .8rem; }
    .loan-docs li { font-size: 1.125rem; line-height: 2.25; }
    .loan-docs-note { font-size: 1rem; }

    /* 卡高與區塊高由內容驅動：文案長度各頁不同，寫死會在資料或字級變動時留白／裁切 */

    .site-footer { min-height: 572px; padding-bottom: calc(5.4rem - 7px); }
    .site-footer .footer-logo img { width: 273px; }
    .site-footer .footer-social img { width: 40px; height: 40px; }
}

/* 平板橫向以下：導覽收合 */
@media (max-width: 1199.98px) {
    :root { --hd-h: 84px; }
    .header-nav, .header-phone { display: none !important; }
    .header-burger { display: flex; }
    .site-header { background: transparent; box-shadow: none; }
    .site-header.scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
    .header-logo img,
    .site-header.scrolled .header-logo img { width: clamp(172px, 50vw, 200px); }   /* 小螢幕合理縮放，捲動前後完全一致 */
    .site-header, .site-header.scrolled { height: var(--hd-h); }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-holder { margin-top: -120px; }
    .tb-item { gap: .55rem; padding: .75rem .5rem; }
    .tb-item img { width: 32px; height: 32px; }
    .tb-item-text strong { font-size: 1rem; white-space: nowrap; }
    .tb-item-text small { font-size: .65rem; letter-spacing: .06em; }
}

/* 平板直向 */
@media (max-width: 991.98px) {
    .hero { height: 60vw; min-height: 440px; }
    .hero-title { font-size: 2.1rem; }

    .trust-bar { flex-direction: column; height: auto; }
    .tb-left { flex-basis: auto; min-height: 130px; align-items: center; text-align: center; }
    .tb-right { min-height: 112px; }
    .tb-line-btn { align-self: center; }
    .tb-item-text strong { font-size: 1.1rem; }

    .case-card { flex-direction: column; padding: 1.8rem; }
    .case-head { flex-basis: auto; padding-right: 0; padding-bottom: 1.2rem; }
    .case-head::after { right: 0; left: 0; top: auto; bottom: 0; width: auto; height: 1px; }
    .case-body { padding-left: 0; padding-top: 1.2rem; }

    .faq-content { width: 66%; }
    .faq-mask { background: linear-gradient(90deg, rgba(206,217,219,0) 8%, rgba(206,217,219,.9) 34%); }
    /* 同步本段起訖，避免被 base 的 .faq-page-cta .faq-mask（特異性較高）蓋回桌機百分比 */
    .faq-page-cta .faq-mask { background: linear-gradient(90deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.92) 34%); }

    .footer-main { grid-template-columns: 1fr; gap: 2rem; }

    .section-process { padding-top: 36vw; }
    .process-photo { height: 42vw; }
    .step-grid { flex-wrap: wrap; gap: 14px; }
    .step-card { flex: 1 1 30%; min-width: 150px; }
    .step-arrow { display: none; }
}

/* 手機 */
@media (max-width: 767.98px) {
    html { font-size: 14px; }
    :root {
        /* 依桌機 40–70px 的垂直層級，換算為手機寬度可連續縮放的 spacing scale。 */
        --m-section-y: clamp(44px, 11.5vw, 56px);
        --m-section-y-compact: clamp(36px, 9.5vw, 46px);
        --m-head-content: clamp(28px, 7.5vw, 36px);
        --m-title-sub: clamp(8px, 2.5vw, 12px);
        --m-content-gap: clamp(24px, 6.5vw, 32px);
    }
    .wrap { width: min(100% - 32px, var(--wrap)); }
    .section-title { font-size: 1.65rem; line-height: 1.45; }
    .section-sub { margin-top: var(--m-title-sub); line-height: 1.85; }

    /* 手機稿：Hero 延伸至導流列後方，導流列以負 margin 壓在 Hero 下緣。 */
    .hero { height: clamp(480px, calc(43.5vw + 341px), 550px); max-height: none; min-height: 0; }
    .heroSwiper, .hero .swiper-wrapper, .hero-slide { height: 100%; }
    .hero-slide { background-image: var(--hero-768); background-position: 68% center; }   /* 手機 art direction：保留人物 */
    .section-brand { background-image: url("../images/00-hp/ab_bg768.png"); }
    .process-photo { background-image: url("../images/00-hp/step_bg768.png"); }
    .faq-photo { background-image: url("../images/00-hp/qa_bg768.png"); }
    .about-cta-photo { background-image: url("../images/01/01ba_bg768.png"); }
    .flow-remind-wrap { background-image: url("../images/03/03bg_768.png"); }
    .section-loan-process { background-image: url("../images/02/02step_bg320.png"); }
    /* 文字疊在照片上，底部白漸層 scrim 讓深色文字可讀，與照片一體 */
    .hero-overlay {
        position: absolute; inset: 0;
        display: flex; align-items: flex-end; justify-content: center;
        background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.8) 58%, #fff 92%);
        padding: 0 0 clamp(112px, calc(31vw + 14px), 156px);   /* 文字上移，與被上拉的信任列拉開間距 */
    }
    .hero-overlay .wrap { width: calc(100% - 48px); }
    .hero-copy { margin-bottom: 0; text-align: left; }
    .hero-title { font-size: 1.55rem; line-height: 1.6; }
    .hero-en { color: #8a8a8a; text-shadow: none; font-size: .82rem; letter-spacing: .08em; margin-top: .55rem; }
    .hero-line { display: none; }   /* 手機已有底部固定 LINE CTA，避免與透明 Header／Logo 重疊 */

    .trust-holder {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-left: 16px;
        margin-right: 16px;
        margin-top: clamp(-95px, -19.75vw, -78px);
        z-index: 6;
    }
    .trust-bar { flex-direction: column; width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 0; overflow: hidden; }
    .tb-left { min-width: 0; min-height: clamp(130px, calc(16.8vw + 76px), 157px); padding: 1.3rem 1.2rem; gap: .9rem; }
    .tb-left-title { font-size: 1.15rem; }
    .tb-line-btn { width: 100%; padding: .78rem 1rem; font-size: 1rem; }
    /* tb-right 本身位於第二層，但三個信任項目仍是設計稿的三欄橫排。 */
    .tb-right { flex-direction: row; width: 100%; min-width: 0; min-height: clamp(125px, calc(16.15vw + 73px), 151px); }
    .tb-item {
        min-width: 0;
        flex: 1 1 0;
        flex-direction: column;
        padding: 1rem .15rem;
        gap: .5rem;
        justify-content: center;
        text-align: center;
    }
    .tb-item img { width: 28px; height: 28px; }
    .tb-item-text { align-items: center; min-width: 0; }
    .tb-item-text strong { font-size: clamp(.72rem, 2.75vw, .92rem); white-space: nowrap; }
    .tb-item-text small { font-size: clamp(.46rem, 1.85vw, .58rem); letter-spacing: .02em; }
    .tb-item + .tb-item::before { left: 0; right: auto; top: 18%; bottom: 18%; width: 1px; height: auto; }
    .section-services { padding-top: 0; padding-bottom: var(--m-section-y); }
    .services-deco-left, .services-deco-right { display: none; }
    .services-body { margin-top: var(--m-head-content); }
    .service-grid { margin-top: var(--m-head-content); }
    .service-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-desc { min-height: 0; }

    .section-brand { padding-block: var(--m-section-y); }
    .brand-title { font-size: 1.3rem; }
    .brand-script { margin-top: var(--m-title-sub); margin-bottom: var(--m-content-gap); }
    .brand-text { margin-bottom: var(--m-head-content); }

    .section-process { padding-top: 0; }
    .process-photo { position: relative; height: 56vw; }
    /* 照片改為 relative 後需以負 margin 拉回，才能維持桌機的白面板穿越照片下緣（18.8% 照片高）*/
    .process-panel { margin-top: -10.5vw; padding-block: var(--m-section-y); }
    .process-panel .step-grid { margin-top: var(--m-head-content); }
    .process-cta { margin-top: var(--m-head-content); }
    .step-card { flex: 1 1 100%; min-height: 0; }

    .faq-content { width: 100%; }
    .section-faq { min-height: 0; }
    .faq-photo { position: relative; inset: auto; width: 100%; height: 56vw; }
    .faq-mask { display: none; }
    .section-faq { flex-direction: column; background: #eef2f3; padding-top: 0; }
    .section-faq .wrap { margin-top: 0; padding-block: var(--m-section-y-compact) var(--m-section-y); }
    .faq-sub { margin-top: var(--m-title-sub); }
    .faq-accordion { margin-top: var(--m-content-gap); }
    .faq-actions { margin-top: var(--m-head-content); }
    .faq-actions .btn-dark, .faq-actions .btn-line { flex: 1; justify-content: center; }

    .footer-top { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
    .footer-stat { flex-direction: column; gap: .4rem; }

    .social-links-btn-mobile .s-line-btn,
    .social-links-btn-mobile .s-phone-btn {
        height: 48px;
        padding-block: 0;
        font-size: 1.1rem;
    }
    .back-to-top { right: 14px; bottom: 66px; width: 46px; height: 46px; }
    body { padding-bottom: 48px; }  /* 精準讓開 48px 手機底部固定列 */
}

@media (min-width: 768px) {
    .social-links-btn-mobile { display: none !important; }
    body { padding-bottom: 0; }
}

/* ---- 內頁 RWD（借款專案 / 流程 / 常見問答）---- */
@media (max-width: 991.98px) {
    .faq-page-grid { grid-template-columns: 1fr; }
    .faq-visual { max-width: 520px; margin: 0 auto; }
    .loan-intro-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .loan-intro-photo { flex-basis: auto; align-self: auto; }
    .loan-intro-photo img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 720 / 430;
        border-radius: 0;
        object-fit: cover;
    }
    .loan-intro-text { padding: clamp(1.5rem, 4vw, 2.2rem); }
    /* 平板/手機：步驟卡改單欄，照片在上滿版、文字在下，橘框包整卡 */
    .flow-row { border: 1px solid var(--orange); background: #fff; overflow: hidden; }
    .flow-row--cream { background: var(--cream); }
    .flow-photo { position: static; transform: none; width: 100%; aspect-ratio: 288 / 154; }
    .flow-photo img { width: 100%; height: 100%; object-fit: cover; }
    .flow-text { margin-left: 0; min-height: 0; border: 0; background: transparent; padding: clamp(1.4rem, 3vw, 2rem); }
    .flow-row--cream .flow-text { background: transparent; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .loan-intro-card { padding: 2rem; gap: 2rem; }
    .loan-intro-photo { flex-basis: 49%; }
}

@media (max-width: 767.98px) {
    .section-cases-page, .section-faq-page, .section-flow, .section-loan-intro { padding-top: 0; }
    .cases-page-body, .faq-page-body, .flow-body, .loan-intro-body { margin-top: var(--m-head-content); }
    .cases-page-head, .faq-page-head, .flow-head, .loan-head { margin-bottom: var(--m-head-content); }
    .cases-page-head .section-sub,
    .faq-page-head .section-sub,
    .flow-head .section-sub { margin-top: 10px; }
    .cases-count { text-align: center; }
    .cases-page-head .cases-count { margin-top: 16px; }
    .section-cases-page .case-list { margin-top: 0; }
    .faq-visual-script { font-size: 1.8rem; }
    .faq-page-grid { gap: 32px; }
    .faq-page-cta { margin-top: 48px; }
    .flow-text { padding: 1.4rem 1.4rem; }
    .flow-list { margin-top: 0; }
    .flow-lead { margin-top: 14px; }
    .flow-remind-wrap { margin-top: var(--m-section-y); padding-bottom: clamp(120px, 40vw, 200px); }
    .flow-remind-card { padding: 1.6rem 1.3rem; }
    .flow-remind-title { margin-bottom: var(--m-content-gap); font-size: 1.3rem; }
    .flow-remind-cta { margin-top: var(--m-head-content); }
    .loan-points li { font-size: 1rem; }
    .section-loan-intro { padding-bottom: var(--m-section-y); }
    .loan-intro-card { margin-top: 0; }
    .section-loan-process { padding-block: var(--m-section-y); }
    .section-loan-process .step-grid { flex-wrap: wrap; gap: 12px; }
    .section-loan-process .step-grid { margin-top: var(--m-head-content); }
    .section-loan-process .step-arrow { display: none; }
    .section-loan-process .step-card { flex: 1 1 100%; min-height: 0; }
    .section-loan-process .process-cta { margin-top: var(--m-head-content); }
    .section-loan-more { padding-block: var(--m-section-y); }
    .section-loan-more .service-grid { margin-top: var(--m-head-content); }
}

/* ---- 公司簡介 RWD ---- */
@media (max-width: 991.98px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-intro-figure { max-width: 560px; margin: 0 auto; }
    .about-privacy-panel { flex-direction: column; align-items: flex-start; }
    .about-privacy-illu { width: min(360px, 70%); align-self: center; }
    .about-cta-content { width: 78%; }
}

@media (max-width: 767.98px) {
    .section-about-intro { padding-top: 0; }
    .about-intro-body { margin-top: var(--m-head-content); }
    .about-head { margin-bottom: var(--m-head-content); }
    .about-figure-script { font-size: 1.5rem; }
    .about-intro-grid { gap: var(--m-head-content); }

    .section-about-privacy { padding-block: var(--m-section-y); }
    /* right 繼承 base 的視窗留白換算，手機同樣貼齊螢幕右緣 */
    .about-privacy-brush { width: 150px; bottom: calc(100% - 8px); opacity: .85; }
    .about-privacy-head { margin-bottom: var(--m-head-content); }
    .about-privacy-panel { padding: 1.6rem 1.4rem; }

    .section-about-features { padding-block: var(--m-section-y); }
    .about-feature-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .about-feature { padding: 1.2rem; }
    .about-feature + .about-feature::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; }

    /* 照片改為 relative 排在最上方，上緣不留白，讓細線與照片直接接住上一區 */
    .section-about-cta { min-height: 0; padding-top: 0; }
    .about-cta-photo { position: relative; inset: auto; width: 100%; height: 56vw; }
    .about-cta-mask { background: linear-gradient(180deg, rgba(244,246,247,0) 40%, rgba(244,246,247,.95) 82%); }
    .section-about-cta { flex-direction: column; background: #f4f6f7; }
    .about-cta-content { width: 100%; }
    .section-about-cta .wrap { margin-top: 0; padding-block: var(--m-section-y-compact) var(--m-section-y); }
    .about-cta-lead { margin-top: 10px; }
    .about-cta-btn { margin-top: 24px; }
    .about-cta-foot { margin-top: 28px; }
}
