/* ==========================================================================
   力丞鑽孔切割工程行 — 前台樣式
   數值以 1920 寬設計稿量測為基準；1400–1920 之間用 clamp(…vw…) 等比縮放，
   1400 以下改由斷點重排。斷點方向統一為「桌機 base、往下 max-width 覆寫」，
   因為設計來源只有桌機稿，桌機值是唯一可追溯的事實，手機規則集中在檔尾。
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    --c-bg: #313131;
    --c-bg-deep: #232323;
    --c-bg-works: #202020;
    --c-text: #e5eae4;
    --c-title-sub: #c7c7c7;
    --c-desc: #bcbcbc;
    --c-gold: #c29952;
    --c-gold-line: #876d3f;
    --c-grid-line: #4f4f4f;
    --c-grid-dot: #6b6b6b;
    --c-btn: #252525;
    --c-btn-hover: #876535;
    --c-orange: #cf571c;
    --c-footer-dim: #464646;
    --grad-gold: linear-gradient(90deg, #c29952 0%, #ecc389 50%, #cba86c 100%);
    --grad-gold-text: linear-gradient(90deg, #b49051 0%, #c2a672 100%);

    --ff-base: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --ff-slab: 'Ultra', 'Rockwell Extra Bold', 'Rockwell', serif;
    --ff-num: 'Roboto', 'Noto Sans TC', sans-serif;

    /* 表頭：黑底 126 + 金線 4 = 130 */
    --header-h: 130px;
    --z-header: 50;
    --z-menu: 60;
    --z-mbar: 65;
    --z-backtop: 40;

    /* 進場動畫（見第 16 節） */
    --reveal-dur: .8s;
    --reveal-ease: cubic-bezier(.22, 1, .36, 1);
    --reveal-shift: 32px;
    --reveal-shift-x: 48px;
}

/* ---------- 2. Base ---------- */
html {
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--ff-base);
    font-size: 18px;
    line-height: 2;
    letter-spacing: .05em;
    -webkit-font-smoothing: antialiased;
    /* Chrome 預設會壓縮相鄰全形標點（如「），」）；設計稿（Photoshop）不壓縮，關閉以對齊斷行 */
    text-spacing-trim: space-all;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

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

p {
    margin: 0;
}

/* 設計稿內容寬 1608（1920 兩側各 156）；1400 以上依視窗等比收窄，避免 1440 時貼邊 */
@media (min-width: 1400px) {
    .container {
        max-width: min(1632px, calc(84vw + 24px));
    }
}

/* body 被表頭鎖捲時避免背景位移 */
body.is-menu-open {
    overflow: hidden;
}

/* ---------- 3. 共用元件 ---------- */

/* 區塊標題：英文（OUR + 金色字）+ 中文副標 */
.sec-title {
    margin: 0;
    text-align: center;
    font-weight: 700;
    line-height: 1;
}

.sec-title--start {
    text-align: left;
}

.sec-title__en {
    display: block;
    color: var(--c-title-sub);
    font-size: clamp(24px, 1.5625vw, 30px);
    letter-spacing: 1.6px;
    line-height: 36px;
}

.sec-title__en em {
    font-style: normal;
    color: var(--c-gold);
}

.sec-title__zh {
    display: block;
    margin-top: 9px;
    color: var(--c-title-sub);
    font-size: clamp(20px, 1.25vw, 24px);
    letter-spacing: 2.4px;
    line-height: 36px;
}

/* 灰色浮水印大字：設計稿為水平拉寬的粗襯線字，以 Ultra + scaleX 重現；純裝飾 */
/* width: fit-content：scaleX 只放大文字本身；若用滿寬 block，連同空白一起放大會撐出水平捲軸 */
.watermark {
    width: fit-content;
    margin: 0;
    font-family: var(--ff-slab);
    /* 量測：首頁/公司簡介字高 60px → 77px；服務頁字高 41px → 55px（--sm） */
    font-size: clamp(40px, 4.01vw, 77px);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(67, 67, 67, .9) 0%, rgba(67, 67, 67, .25) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: scaleX(1.334);
    pointer-events: none;
    user-select: none;
}

.watermark--sm {
    font-size: clamp(30px, 2.865vw, 55px);
}

.watermark--center {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

.watermark--start {
    transform-origin: left center;
}

/* 段落標題（金色） */
.intro-title {
    margin: 0 0 7px;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 36px;
}

/* 外框按鈕：底 #252525、邊框/文字/箭頭 #e5eae4；hover 底色 #876535 */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 192px;
    height: 47px;
    padding: 0 26px 0 34px;
    border: 1px solid var(--c-text);
    background: var(--c-btn);
    color: var(--c-text);
    font-size: 18px;
    letter-spacing: 1.5px;
    line-height: 1;
    transition: background-color .25s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--c-btn-hover);
    color: var(--c-text);
}

/* 箭頭用 CSS mask 畫，顏色跟隨文字色，免切圖 */
.btn-arrow::after,
.btn-back::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 7h12.5M7 1.5 12.5 7 7 12.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 7h12.5M7 1.5 12.5 7 7 12.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-back::before {
    transform: scaleX(-1);
}

/* ---------- 4. 表頭 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    pointer-events: none;
}

.site-header .container {
    pointer-events: none;
}

.site-header__bar {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 126px;
    background: rgba(0, 0, 0, .8);
    pointer-events: auto;
}

/* 底部金色漸層線 4px */
.site-header__bar::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c5a260 0%, #c2a377 35%, #b38d58 70%, #c8a57d 100%);
}

.site-header__logo {
    display: flex;
    align-items: center;
    margin-left: 32px;
}

.site-header__logo img {
    width: clamp(260px, 19.583vw, 376px);
}

.site-nav {
    margin-left: auto;
    align-items: stretch;
}

.site-nav__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__item {
    position: relative;
    /* 設計稿各項寬 128/132/130/130/128（含左分隔線），依 --nw 等比縮放 */
    --nw: 130;
    width: clamp(104px, calc(var(--nw) * 100vw / 1920), calc(var(--nw) * 1px));
    border-left: 1px solid #3b3b3b;
}

.site-nav__item:nth-child(1),
.site-nav__item:nth-child(5) {
    --nw: 128;
}

.site-nav__item:nth-child(2) {
    --nw: 132;
}

.site-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 2px;
    text-align: center;
    line-height: 1;
}

.site-nav__zh {
    color: #dadada;
    font-size: clamp(16px, .9375vw, 18px);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 25px;
    transition: color .2s ease;
}

.site-nav__en {
    margin-top: 8px;
    color: #cdae81;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 14px;
}

.site-nav__item:hover .site-nav__zh,
.site-nav__item:focus-within .site-nav__zh,
.site-nav__item.is-active .site-nav__zh {
    color: var(--c-gold);
}

/* 下拉選單：金色 39 度漸層、文字 #313131；hover 反白為 #313131 底 */
.site-nav__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: -1px;
    right: 0;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    background: linear-gradient(39deg, #9d7b41 0%, #e3c289 50%, #d3b47e 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.site-nav__item.has-dropdown:hover .site-nav__dropdown,
.site-nav__item.has-dropdown:focus-within .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__dropdown li {
    padding: 3px 0;
}

.site-nav__dropdown a {
    display: block;
    height: 35px;
    color: #313131;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 35px;
    text-align: center;
    transition: background-color .2s ease, color .2s ease;
}

.site-nav__dropdown a:hover,
.site-nav__dropdown a:focus-visible {
    background: #313131;
    color: var(--c-text);
}

/* 加 LINE 聯繫：綠底 80% */
.site-nav__line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(104px, 6.719vw, 129px);
    padding-top: 25px;
    background: rgba(47, 100, 31, .8);
    color: #cdae81;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1;
    transition: background-color .2s ease;
}

.site-nav__line img {
    width: 48px;
    height: 48px;
}

.site-nav__line span {
    margin-top: 9px;
}

.site-nav__line:hover {
    background: rgba(47, 100, 31, 1);
    color: #cdae81;
}

.site-header__toggler {
    margin-left: auto;
    align-self: center;
    margin-right: 10px;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
}

/* ---------- 5. 手機選單 ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    visibility: hidden;
    transition: visibility .3s;
}

/* 打開時 visibility 立即生效（才能馬上移焦點）；關閉時延遲 .3s 等滑出動畫結束 */
.mobile-menu.is-open {
    visibility: visible;
    transition: visibility 0s;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(159, 148, 130, .85);
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

/* 面板寬 = 設計稿 264/481 ≈ 55%；展開前移出畫面且不帶陰影，避免收合時陰影洩漏 */
.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    min-width: 264px;
    max-width: 400px;
    padding: 89px 18px 120px;
    background: rgba(0, 0, 0, .85);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .3s ease;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: none;
}

.mobile-menu__close {
    position: absolute;
    top: 27px;
    right: 26px;
    padding: 0;
    border: 0;
    background: none;
    color: #e5c28a;
    line-height: 0;
}

.mobile-menu__list,
.mobile-menu__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 分隔線：#4c422f > #c2a377 > #4c422f 中濃兩端淡 */
.mobile-menu__list>li {
    position: relative;
}

.mobile-menu__list>li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #4c422f 0%, #c2a377 50%, #4c422f 100%);
}

.mobile-menu__list>li>a,
.mobile-menu__sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #dadada;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1;
}

.mobile-menu__list>li>a {
    height: 66px;
}

.mobile-menu__list>li:last-child>a {
    height: 64px;
}

.mobile-menu__list>li:first-child>a {
    height: 46px;
    align-items: flex-start;
    padding-top: 9px;
}

/* 箭頭外掛在文字右側，左側補等寬 padding 讓文字本身維持置中 */
.mobile-menu__sub-toggle {
    position: relative;
    gap: 10px;
    height: 60px;
    padding-left: 24px;
}

/* 設計稿「專業服務」與子選單之間另有一條分隔線 */
.mobile-menu__sub-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #4c422f 0%, #c2a377 50%, #4c422f 100%);
}

.mobile-menu__arrow {
    color: #b49c6b;
    transform: rotate(180deg);
    transition: transform .25s ease;
}

.has-sub.is-open .mobile-menu__arrow {
    transform: none;
}

/* 子選單：收合時高度 0；展開高度由內容決定 */
/* 子選單：依設計稿展開時上下各留 8/10px，項目行高 40.5 */
.mobile-menu__sub {
    display: none;
}

.has-sub.is-open .mobile-menu__sub {
    display: block;
    padding: 8px 0 10px;
}

.mobile-menu__sub a {
    display: block;
    color: #dadada;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 40.5px;
    text-align: center;
}

.mobile-menu__list a:hover,
.mobile-menu__sub-toggle:hover {
    color: var(--c-gold);
}

/* ---------- 6. 手機底部快捷列 ---------- */
.social-links-btn-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mbar);
    border-top: 1px solid var(--c-gold);
}

.social-links-btn-mobile a {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: #fff;
    font-size: clamp(15px, 3.74vw, 18px);
    font-weight: 700;
    letter-spacing: .7px;
    line-height: 1;
}

.social-links-btn-mobile img {
    width: 40px;
    height: 40px;
    margin-right: 1px;
}

.social-links-btn-mobile .s-line-btn {
    background: #335d24;
}

.social-links-btn-mobile .s-phone-btn {
    background: #8f6d38;
}

.social-links-btn-mobile .s-location-btn {
    background: #565656;
}

/* ---------- 7. 回到頂部 ---------- */
.back-to-top {
    position: fixed;
    right: 37px;
    bottom: 40px;
    z-index: var(--z-backtop);
    width: 72px;
    height: 72px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.back-to-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top img {
    width: 100%;
    height: 100%;
}

/* ---------- 8. 主視覺 ---------- */
.hero {
    position: relative;
    /* 依素材比例決定高度（1920 稿為 949），但不超過一個螢幕高 */
    height: min(49.427vw, 100svh);
    min-height: 600px;
    overflow: hidden;
    background: #1b1b1b;
}

.hero__swiper {
    position: absolute;
    inset: 0;
}

.hero__swiper .swiper-slide picture,
.hero__img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__img {
    object-fit: cover;
}

/* 文字區扣掉表頭後置中 */
.hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 扣表頭後置中，再上修 6px 使文字群中心對齊設計稿 */
    padding: calc(var(--header-h) - 6px) 20px 0;
    text-align: center;
    pointer-events: none;
}

.hero__content a {
    pointer-events: auto;
}

.hero__en {
    font-weight: 700;
    line-height: 1;
}

.hero__en-1 {
    display: block;
    color: var(--c-text);
    font-size: clamp(22px, 2.083vw, 40px);
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero__en-2 {
    display: block;
    margin-top: -5px;
    color: var(--c-gold);
    font-size: clamp(32px, 3.125vw, 60px);
    letter-spacing: 3px;
    line-height: 1.2;
}

.hero__divider {
    display: block;
    width: clamp(220px, 19.219vw, 369px);
    height: 1px;
    margin: clamp(16px, 1.406vw, 27px) 0 clamp(14px, 1.146vw, 22px);
    background: var(--c-gold);
}

.hero__zh {
    color: var(--c-text);
    font-size: clamp(22px, 1.823vw, 35px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.66;
}

.hero__btn {
    justify-content: center;
    gap: 8px;
    min-width: 205px;
    height: 49px;
    margin-top: clamp(22px, 1.875vw, 36px);
    padding: 0 26px 0 24px;
    background: rgba(29, 29, 29, .8);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero__btn img {
    width: 32px;
    height: 32px;
}

/* 內頁：主視覺下緣陰影 #222 → 透明 */
body:not([data-page="index"]) .main_section {
    position: relative;
}

body:not([data-page="index"]) .main_section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 33px;
    background: linear-gradient(180deg, #222 0%, rgba(34, 34, 34, 0) 100%);
    pointer-events: none;
}

/* ---------- 9. 首頁：專業服務格線 ---------- */
.home-service {
    position: relative;
    overflow-x: clip;
    background: var(--c-bg);
}

/* 直線貫穿整區：容器左緣 -1、1/3、2/3、右緣 */
.home-service__lines {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.home-service__lines::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--bs-gutter-x, 1.5rem) * .5 - 1px);
    right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    background:
        linear-gradient(var(--c-grid-line), var(--c-grid-line)) 0 0 / 1px 100% no-repeat,
        linear-gradient(var(--c-grid-line), var(--c-grid-line)) 33.333% 0 / 1px 100% no-repeat,
        linear-gradient(var(--c-grid-line), var(--c-grid-line)) 66.667% 0 / 1px 100% no-repeat,
        linear-gradient(var(--c-grid-line), var(--c-grid-line)) 100% 0 / 1px 100% no-repeat;
}

.home-service__row {
    position: relative;
    border-bottom: 1px solid var(--c-grid-line);
}

.home-service__row--head .container {
    position: relative;
    height: 214px;
    padding-top: 71px;
}

.home-service__row--head .sec-title {
    padding-left: 32px;
}

.home-service__row--foot {
    height: 212px;
}

/* 交點小方塊 9×9：條帶寬 = 內容寬 + 9，讓百分比定位剛好落在格線上 */
.grid-dots {
    position: absolute;
    left: calc(var(--bs-gutter-x, 1.5rem) * .5 - 5px);
    right: calc(var(--bs-gutter-x, 1.5rem) * .5 - 4px);
    bottom: -4px;
    height: 9px;
    z-index: 1;
    background:
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 0 0 / 9px 9px no-repeat,
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 33.333% 0 / 9px 9px no-repeat,
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 66.667% 0 / 9px 9px no-repeat,
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 100% 0 / 9px 9px no-repeat;
}

.svc-cell {
    position: relative;
    min-height: 301px;
}

/* 每格底線往左右延伸到視窗邊（滿版橫線），由 section 的 overflow-x: clip 收容 */
.svc-cell::after {
    content: "";
    position: absolute;
    left: -100vw;
    right: -100vw;
    bottom: 0;
    height: 1px;
    background: var(--c-grid-line);
}

/* 每格左下、右下角方塊；相鄰格在共用角重疊，不影響外觀 */
.svc-cell::before {
    content: "";
    position: absolute;
    left: -5px;
    right: -4px;
    bottom: -3px;
    z-index: 1;
    height: 9px;
    background:
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) left / 9px 9px no-repeat,
        linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) right / 9px 9px no-repeat;
}

.svc-item {
    position: relative;
    display: block;
    height: 100%;
    padding: 35px 33px 30px 32px;
    color: var(--c-text);
}

.svc-item__no {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 26px;
}

.svc-item__head {
    display: flex;
    align-items: flex-start;
    margin: 10px 0 0 48px;
}

.svc-item__icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
}

.svc-item__titles {
    display: flex;
    flex-direction: column;
    margin: 0 0 0 16px;
    line-height: 1;
}

.svc-item__title {
    font-size: clamp(24px, 1.5625vw, 30px);
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 40px;
}

.svc-item__en {
    margin-top: 5px;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 18px;
}

.svc-item__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 0 53px;
}

.svc-item__desc {
    display: flex;
    flex-direction: column;
    color: var(--c-desc);
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 29px;
}

/* 圓形箭頭：底 #565149；hover 改 #795d39 */
.svc-item__arrow {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-top: 1px;
    border-radius: 50%;
    background: #565149;
    color: var(--c-text);
    transition: background-color .25s ease;
}

.svc-item:hover .svc-item__arrow,
.svc-item:focus-visible .svc-item__arrow {
    background: #795d39;
}

/* ---------- 10. 首頁：關於 + 合作（同一視覺場景） ---------- */
.home-intro {
    position: relative;
    padding: 61px 0 95px;
    background: var(--c-bg) url("../images/00-hp/ap_bg1920.png") center bottom / 100% auto no-repeat;
}

/* 五項優勢 */
/* 設計稿為「等間距」分佈（標籤間距約 68px），以 flex gap 重現 */
.strengths {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 68px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.strengths__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.strengths__item img {
    width: 100px;
    height: 100px;
}

.strengths__label {
    margin-top: 16px;
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 26px;
}

.home-intro .strengths {
    margin-top: 68px;
}

/* 設計稿此組中心落在 x≈942（比畫面中線偏左 18px），桌機依稿重現；窄螢幕回到置中 */
@media (min-width: 1200px) {
    .home-intro .strengths {
        padding-right: clamp(0px, 1.875vw, 36px);
    }
}

.home-intro__text p:not(.watermark) {
    letter-spacing: .9px;
    line-height: 36px;
}

.home-intro__text p+p {
    margin-top: 4px;
}

.home-intro__text .btn-outline {
    margin-top: 35px;
}

.home-intro__text--partners .btn-outline {
    margin-top: 28px;
}

.home-intro__about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 67px;
}

.home-intro__about .home-intro__text {
    flex: 0 1 790px;
    padding-top: 16px;
}

.home-intro__media--about {
    flex: 0 0 43.78%;
}

.home-intro__media img {
    display: block;
    width: 100%;
}

.home-intro__partners {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 82px;
}

.home-intro__media--partners {
    position: relative;
    z-index: 1;
    flex: 0 0 50.44%;
}

.home-intro__text--partners {
    flex: 0 0 41.3%;
}

.home-intro__text--partners .watermark {
    margin: -14px 0 88px;
}

/* ---------- 11. 首頁：案例分享 ---------- */
.home-works {
    padding: 74px 0 71px;
    background: var(--c-bg-works) url("../images/00-hp/work_bg1920.png") center top / 100% auto no-repeat;
}

/* 卡片 410 寬、間距 74，三欄總寬 1378 */
.works-grid {
    --bs-gutter-x: 74px;
    --bs-gutter-y: 60px;
    max-width: calc(1378px + 74px);
    /* 保留 Bootstrap row 的負 margin 機制（欄位各自有 gutter-y 上距） */
    margin: calc(31px - var(--bs-gutter-y)) auto 0;
}

.home-works .sec-title__zh {
    margin-top: 16px;
}

.work-card {
    height: 100%;
}

/* 金色漸層邊框：外層漸層底 + 1px 內距 */
.work-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1px;
    background: linear-gradient(90deg, #c29952 0%, #ecc389 50%, #cba86c 100%);
    color: inherit;
}

.work-card__media {
    display: block;
    aspect-ratio: 408 / 423;
    overflow: hidden;
    background: #111;
}

.work-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.work-card__link:hover .work-card__media img {
    transform: scale(1.05);
}

.work-card__body {
    display: block;
    flex: 1 0 auto;
    min-height: 111px;
    padding: 21px 24px 0 21px;
    background: #efefef;
}

.work-card__title {
    display: block;
    color: #313131;
    font-size: clamp(19px, 1.146vw, 22px);
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 32px;
}

.work-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 11px;
}

.work-card__views {
    color: #9b9a9a;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 22px;
}

.work-card__more {
    display: inline-flex;
    gap: 12px;
    margin-top: -8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--c-gold);
    color: var(--c-gold);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 26px;
}

.home-works__intro {
    margin-top: 62px;
    text-align: center;
}

.home-works__intro .intro-title {
    margin-bottom: 5px;
}

.home-works__intro p {
    letter-spacing: .9px;
    line-height: 40px;
}

.home-works__intro .btn-outline {
    margin-top: 40px;
}

/* ---------- 12. 首頁：加入我們 ---------- */
.home-join {
    position: relative;
    padding: 66px 0 94px;
    background: #282726 url("../images/00-hp/join_bg1920.png") center top / cover no-repeat;
}

.join-mark {
    margin: 0;
    font-family: var(--ff-slab);
    font-size: clamp(48px, 4.792vw, 92px);
    line-height: 1;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, #815c2d 0%, rgba(129, 92, 45, .15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
}

.home-join__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 52px;
}

.home-join__text p {
    letter-spacing: .9px;
    line-height: 40px;
}

.home-join__text .btn-outline {
    margin-top: 41px;
}

.home-join__media {
    flex: 0 0 39.3%;
}

.home-join__media img {
    display: block;
    width: 100%;
}

.home-join__text .home-join__slogan {
    margin-top: 40px;
    font-size: clamp(18px, 1.25vw, 24px);
    letter-spacing: 1.2px;
    line-height: 30px;
}

/* ---------- 13. Footer ---------- */
.footer-brand {
    background: linear-gradient(90deg, #242424 0%, #464646 100%);
}

.footer-brand__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    height: 128px;
}

.footer-brand__logo img {
    display: block;
    width: 300px;
}

.footer-brand__fb img {
    display: block;
    width: 80px;
    transition: transform .25s ease;
}

.footer-brand__fb:hover img {
    transform: scale(1.06);
}

.footer-contact {
    padding: 33px 0 28px;
    background: var(--c-orange);
    color: var(--c-text);
}

.footer-contact__title {
    margin: 0;
    font-family: var(--ff-slab);
    font-size: clamp(32px, 2.292vw, 44px);
    font-weight: 400;
    letter-spacing: 3.5px;
    line-height: 1;
    text-align: center;
}

.footer-contact__row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 1920 時 66px；隨寬度收斂，避免 1366~1600 時電話/統編被擠到折行 */
    gap: clamp(28px, 3.44vw, 66px);
    margin-top: 34px;
}

/* 設計稿此列中心在 x≈947（比中線偏左 13px），桌機依稿重現 */
@media (min-width: 1200px) {
    .footer-contact__row {
        padding-right: clamp(0px, 1.354vw, 26px);
    }
}

.footer-contact__sep {
    flex: 0 0 1px;
    width: 1px;
    height: 75px;
    background: var(--c-text);
}

.footer-contact__phone {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-contact__phone img {
    width: 60px;
    height: 60px;
}

.footer-contact__phone-text {
    display: flex;
    flex-direction: column;
}

.footer-contact__phone-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 24px;
}

.footer-contact__phone-num {
    white-space: nowrap;
    margin-top: 8px;
    font-family: var(--ff-num);
    font-size: clamp(28px, 1.823vw, 35px);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 36px;
}

.footer-contact__line {
    display: flex;
    align-items: center;
    gap: 23px;
}

.footer-contact__qr {
    width: 91px;
    height: 91px;
    background: #fff;
}

.footer-contact__info p,
.footer-contact__tax {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 26px;
}

.footer-contact__info p+p {
    margin-top: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 41px;
    margin: 76px 0 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 26px;
    transition: color .2s ease;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-counter {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 25px;
    color: var(--c-footer-dim);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 22px;
}

.footer-copy {
    border-top: 1px solid var(--c-footer-dim);
    background: var(--c-orange);
}

.footer-copy p {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 71px;
    color: var(--c-footer-dim);
    font-size: 16.5px;
    letter-spacing: .2px;
    line-height: 26px;
    text-align: center;
}

.footer-copy img {
    width: 24px;
    height: 24px;
    margin-right: 3px;
}

/* ---------- 13-1. 內頁共用 ---------- */
.watermark--end {
    margin-left: auto;
    transform-origin: right center;
}

/* 段落群組：同群段落間距 5px（行距 36 → 段距 41），群組之間多空一行 */
.text-group p {
    /* 設計稿內文每行 43 字 / 欄寬 810 → 字距需 ≤ .84px 才不會提早換行 */
    letter-spacing: .8px;
    line-height: 36px;
}

.text-group p+p {
    margin-top: 5px;
}

.text-group+.text-group {
    margin-top: 45px;
}

/* 兩側粗金線的置中標題（5大專業項目） */
.line-title {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 40px;
}

.line-title::before,
.line-title::after {
    content: "";
    flex: 1 1 0;
    height: 6px;
    background: var(--c-gold-line);
}

.line-title b {
    margin-right: 1px;
    font-size: 38px;
    font-style: italic;
    letter-spacing: 0;
}

/* 五大專業項目卡片：預設疊 #141414 約 74% + 底部淡出 #151515；hover 移除平面遮罩 */
/* flex 換行置中：5 欄 → 3 欄（3+2）→ 2 欄時，最後一列仍置中 */
.svc-cards {
    --cols: 5;
    --gap: 31px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.svc-cards__item {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    aspect-ratio: 297 / 357;
    padding: 1px;
    overflow: hidden;
    background: var(--grad-gold);
}

.svc-cards__img {
    position: absolute;
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
}

.svc-cards__item::before,
.svc-cards__item::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 1;
    pointer-events: none;
}

.svc-cards__item::before {
    background: rgba(20, 20, 20, .74);
    transition: opacity .35s ease;
}

.svc-cards__item::after {
    background: linear-gradient(180deg, rgba(21, 21, 21, 0) 55%, rgba(21, 21, 21, .8) 85%, #151515 100%);
}

.svc-cards__item:hover::before,
.svc-cards__item:focus-visible::before {
    opacity: 0;
}

.svc-cards__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.svc-cards__title {
    color: var(--c-gold);
    font-size: clamp(19px, 1.302vw, 25px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 36px;
    white-space: nowrap;
}

.svc-cards__en {
    margin-top: 13px;
    color: var(--c-text);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 20px;
}

/* ---------- 13-2. 公司簡介 ---------- */
.about-intro {
    position: relative;
    padding: 66px 0 97px;
    background: var(--c-bg);
}

.about-intro__row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 89px;
}

.about-intro__media {
    flex: 0 0 26.62%;
}

.about-intro__media img {
    display: block;
    width: 100%;
    aspect-ratio: 428 / 464;
    object-fit: cover;
}

.about-intro__text {
    flex: 0 0 67.17%;
    padding-top: 108px;
}

.about-intro__mark {
    position: absolute;
    top: -9px;
    right: 0;
}

.about-intro__text .intro-title {
    margin-bottom: 15px;
    letter-spacing: 2.3px;
}

.about-intro .line-title {
    margin-top: 61px;
}

.about-intro .svc-cards {
    margin-top: 41px;
}

/* 核心優勢：上下緣陰影 #0e050a 投到相鄰區塊 */
.about-core {
    position: relative;
    z-index: 1;
    padding: 66px 0 78px;
    background: #070707 url("../images/01/01item_bg1920.png") center top / 100% auto no-repeat;
    box-shadow: 0 0 22px rgba(14, 5, 10, .55);
}

.about-core__title {
    margin: 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 36px;
    text-align: center;
}

.about-core__list {
    display: grid;
    /* 設計稿 icon 中心間距 325px，整組置中 */
    grid-template-columns: repeat(5, minmax(0, 325px));
    justify-content: center;
    margin: 57px 0 0;
    padding: 0;
    list-style: none;
}

.about-core__list li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-core__list li+li::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 3px;
    left: 6px;
    width: 1px;
    background: var(--c-gold-line);
}

.about-core__list img {
    width: 100px;
    height: 100px;
}

.about-core__list span {
    margin-top: 21px;
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 26px;
}

.about-core__note {
    margin-top: 83px;
    letter-spacing: 1px;
    line-height: 26px;
    text-align: center;
}

.about-expertise {
    position: relative;
    padding: 108px 0 121px;
    background: #232323 url("../images/01/ex_bg1920.png") center bottom / 100% auto no-repeat;
}

.about-expertise__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.about-expertise__text {
    flex: 0 0 50.37%;
    padding-top: 8px;
}

.about-expertise__mark {
    margin-top: 66px;
}

.about-expertise__media {
    flex: 0 0 42.29%;
}

.about-expertise__media img {
    display: block;
    width: 100%;
}

/* ---------- 13-3. 專業服務內頁 ---------- */
.service-page {
    position: relative;
    padding: 66px 0 92px;
    background: var(--c-bg) url("../images/02/02bg1920.png") center bottom / 100% auto no-repeat;
}

/* 頁標題：上下 3px 漸層金線、漸層金字 */
.service-page__title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    margin: 40px 0 0;
    text-align: center;
}

.service-page__title::before,
.service-page__title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c29952 0%, #ecc288 50%, #cba96c 100%);
}

.service-page__title::before {
    top: 0;
}

.service-page__title::after {
    bottom: 0;
}

.service-page__title span {
    background: linear-gradient(90deg, #c29952 0%, #ecc288 50%, #cba96c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(24px, 1.5625vw, 30px);
    font-weight: 700;
    letter-spacing: 2.3px;
    line-height: 40px;
}

.service-page__mark {
    margin-top: 26px;
}

.service-page__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 47px;
}

/* 合成圖原寬 784（= 內容寬 1608 的 48.76%）；左側 8px 透明邊以負邊距抵銷，讓金色細框貼齊內容左緣 */
.service-page__media {
    flex: 0 0 48.76%;
    margin-left: -.4975%;
}

.service-page__media img {
    display: block;
    width: 100%;
}

.service-page__text {
    flex: 0 0 48.57%;
    padding-top: 7px;
}

.service-page__heading {
    display: flex;
    align-items: flex-start;
    margin: 0 0 9px;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 36px;
}

.service-page__heading::before {
    content: "";
    flex: 0 0 6px;
    height: 24px;
    margin: 7px 20px 0 0;
    background: var(--c-gold);
}

/* ｜更多專業項目｜ */
.bar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 87px 0 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 28px;
}

.bar-title::before,
.bar-title::after {
    content: "";
    width: 3px;
    height: 28px;
    background: var(--c-gold);
}

.service-page .svc-cards {
    margin-top: 52px;
}

/* ---------- 13-4. 合作企業 ---------- */
.partners-list {
    padding: 66px 0 87px;
    background: var(--c-bg);
}

.partners-list__intro {
    margin-top: 35px;
    letter-spacing: .8px;
    line-height: 36px;
    text-align: center;
}

/* 一列 4 張（設計稿 2 張靠左），卡片 384 寬、間距 24 */
.partners-list__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
    margin-top: 52px;
}

.partner-card {
    text-align: center;
}

.partner-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 385 / 217;
    padding: 15px 16px;
    background: var(--c-bg-deep);
    background-clip: content-box;
    box-shadow: inset 0 0 0 15px var(--c-bg-deep);
    outline: 1px solid var(--c-gold-line);
    outline-offset: -16px;
    /* Safari/iOS 不把 aspect-ratio 算出的高度當「確定高度」，子層 max-height: 80% 會失效、
       圖片被寬度撐高再把框撐大（近正方形 logo 那張會變高）。
       改成尺寸容器，讓 img 用 cqh 取高度；size 容器也不會被內容撐高 */
    container-type: size;
}

.partner-card__logo img {
    max-width: 70%;
    max-height: 80cqh;
    object-fit: contain;
}

.partner-card__name {
    margin: 21px 0 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.146vw, 22px);
    font-weight: 400;
    letter-spacing: .5px;
    line-height: 32px;
}

.partner-card__desc {
    display: flex;
    flex-direction: column;
    margin-top: 9px;
    color: var(--c-desc);
    letter-spacing: .8px;
    line-height: 29px;
}

/* 信任區：頂端 3px 金線 + 向上投影；底色 #232323 → #313131 */
.partners-trust {
    position: relative;
    z-index: 1;
    padding: 75px 0 125px;
    background: linear-gradient(180deg, #232323 0, #232323 205px, #313131 525px, #313131 100%);
    box-shadow: 0 -6px 18px rgba(14, 5, 10, .5);
}

.partners-trust .container {
    position: relative;
}

.partners-trust .container::before {
    content: "";
    position: absolute;
    top: -75px;
    left: calc(var(--bs-gutter-x, 1.5rem) * .5 + 1px);
    right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    height: 3px;
    background: var(--c-gold-line);
}

.partners-trust__title {
    margin: 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: 2.3px;
    line-height: 36px;
    text-align: center;
}

.strengths--divided {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 290px));
    justify-content: center;
    gap: 0;
    margin-top: 39px;
}

.strengths--divided .strengths__item {
    position: relative;
}

.strengths--divided .strengths__item+.strengths__item::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 1px;
    left: 0;
    width: 1px;
    background: var(--c-gold-line);
}

.partners-trust__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 74px;
}

.partners-trust__media {
    flex: 0 0 38.43%;
}

.partners-trust__media img {
    display: block;
    width: 100%;
}

.partners-trust__text {
    flex: 0 0 56.47%;
    padding-top: 5px;
}

.partners-trust__name {
    /* 「《」字形在全形框右半，設計稿為懸掛標點（墨跡貼齊欄左緣），以負縮排對齊 */
    text-indent: -.583em;
    margin: 0 0 25px;
    color: var(--c-title-sub);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 36px;
}

.partners-trust__btn {
    justify-content: center;
    gap: 7px;
    min-width: 260px;
    height: 50px;
    margin-top: 29px;
    padding: 0 30px;
}

.partners-trust__btn img {
    width: 32px;
    height: 32px;
}

/* ---------- 13-5. 案例分享（列表 / 內頁） ---------- */
.works-page {
    padding: 66px 0 154px;
    background: var(--c-bg) url("../images/04/04bg1920.png") center top / 100% auto no-repeat;
}

.works-page__intro {
    margin-top: 33px;
    text-align: center;
}

.works-page__intro .intro-title {
    margin-bottom: 7px;
}

/* 設計稿此頁副標與說明中心在 x≈975（偏右 15px），桌機依稿重現 */
@media (min-width: 1200px) {

    .works-page__intro .intro-title,
    .works-page__intro p:not(.works-page__count) {
        padding-left: clamp(0px, 1.5625vw, 30px);
    }
}

.works-page__intro p {
    letter-spacing: .8px;
    line-height: 36px;
}

/* ｜ 共N則工程案例 ｜：兩側 1px 細直線 */
.works-page__intro .works-page__count {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 41px;
    color: #bd9550;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: 24px;
}

.works-page__count::before,
.works-page__count::after {
    content: "";
    width: 2px;
    height: 19px;
    background: #bd9550;
}

.works-page__count::after {
    margin-left: 4px;
}

.works-grid--list {
    --bs-gutter-y: 58px;
    margin-top: calc(35px - var(--bs-gutter-y));
}

.works-page--detail {
    padding-bottom: 87px;
}

.work-detail {
    margin-top: 38px;
    padding: 39px 78px 80px 75px;
    background: rgba(35, 35, 35, .7);
}

.work-detail__title {
    margin: 0;
    margin-left: 3px;
    padding-bottom: 28px;
    background: linear-gradient(90deg, #c29952 0%, #ecc288 50%, #cba96c 100%) left bottom / 100% 1px no-repeat;
    color: var(--c-gold);
    font-size: clamp(22px, 1.458vw, 28px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 40px;
    text-align: center;
}

/* 內文為後台編輯器輸出的 HTML：段落沿用設計稿內文樣式；空白段落（<p>&nbsp;</p>）即設計稿的段落間空行 */
.work-detail__content {
    margin-top: 50px;
    overflow-wrap: anywhere;
}

.work-detail__content p {
    margin: 0;
    letter-spacing: .8px;
    line-height: 36px;
}

.work-detail__content p+p {
    margin-top: 5px;
}

.work-detail__content h2,
.work-detail__content h3,
.work-detail__content h4 {
    margin: 28px 0 10px;
    color: var(--c-gold);
    font-size: clamp(19px, 1.146vw, 22px);
    font-weight: 700;
    line-height: 1.6;
}

.work-detail__content ul,
.work-detail__content ol {
    margin: 8px 0;
    padding-left: 1.4em;
    line-height: 36px;
}

.work-detail__content a {
    color: var(--c-gold);
    text-decoration: underline;
}

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

.work-detail__content table {
    max-width: 100%;
}

/* 列表分頁：超過 9 則才出現 */
.blog-pagination {
    margin-top: 56px;
}

.blog-pagination .pagination {
    gap: 8px;
    margin: 0;
}

.blog-pagination .page-link {
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--c-gold-line);
    border-radius: 0 !important;
    background: transparent;
    color: var(--c-text);
    font-size: 16px;
    line-height: 42px;
    text-align: center;
    padding: 0 12px;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link:focus {
    background: var(--c-btn-hover);
    border-color: var(--c-btn-hover);
    color: var(--c-text);
    box-shadow: none;
}

.blog-pagination .page-item.active .page-link {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-bg-deep);
}

.blog-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: #4a4a4a;
    color: #6b6b6b;
}

.work-detail__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 37px 35px;
    margin-top: 55px;
    margin-left: 2px;
}

.work-detail__gallery a {
    display: block;
    overflow: hidden;
}

.work-detail__gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 460 / 306;
    object-fit: cover;
    transition: transform .4s ease;
}

.work-detail__gallery a:hover img {
    transform: scale(1.04);
}

.work-detail__back {
    margin-top: 38px;
    text-align: center;
}

.btn-back {
    padding: 0 24px 0 36px;
}

/* ---------- 13-6. 徵人訊息 ---------- */
.careers-page {
    padding: 66px 0 83px;
    background: var(--c-bg) url("../images/05/05bg1920.png") center bottom / 100% auto no-repeat;
}

.job-list {
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

/* 職缺卡：不透明 #232323 底，最後一張可壓在底部背景圖交界上 */
.job-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 216px;
    border-top: 1px solid var(--c-gold-line);
    border-bottom: 1px solid var(--c-gold-line);
    background: var(--c-bg-deep);
}

.job-card+.job-card {
    margin-top: 36px;
}

.job-card__head {
    display: flex;
    flex: 0 0 31.72%;
    align-items: center;
    gap: 37px;
    padding-left: 11.82%;
}

.job-card__no {
    color: var(--c-gold);
    font-family: var(--ff-slab);
    font-size: clamp(40px, 2.813vw, 54px);
    letter-spacing: 1px;
    line-height: 1;
}

.job-card__title {
    margin: 0;
    color: var(--c-gold);
    font-size: clamp(20px, 1.25vw, 24px);
    font-weight: 700;
    letter-spacing: .7px;
    line-height: 36px;
}

/* 左右區之間的直分隔線：上下各留 30px */
.job-card__body {
    position: relative;
    display: flex;
    flex: 0 1 893px;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0 30px 63px;
}

.job-card__body::before {
    content: "";
    position: absolute;
    top: 29px;
    bottom: 29px;
    left: 0;
    width: 1px;
    background: var(--c-gold-line);
}

.job-card__body p {
    /* 設計稿換行列為 44 字（含「核心任務：」標籤）：字距 .8px × 44 = 827 ≤ 欄寬 830 < 45 字 */
    max-width: 830px;
    letter-spacing: .8px;
    line-height: 36px;
}

.job-card__body p+p {
    margin-top: 5px;
}

.job-card__body b {
    color: var(--c-gold);
    font-weight: 400;
}

.careers-join {
    margin-top: 52px;
    text-align: center;
}

.careers-join .intro-title {
    margin: 44px 0 8px;
    letter-spacing: 1px;
}

.careers-join p:not(.join-mark) {
    letter-spacing: .8px;
    line-height: 36px;
}

.careers-join .btn-outline {
    margin-top: 53px;
}

/* ---------- 14. RWD ---------- */
@media (max-width: 1599.98px) {
    .hero {
        height: min(56.25vw, 100svh);
    }
}

@media (max-width: 1399.98px) {
    .svc-item__head {
        margin-left: 24px;
    }

    /* 欄寬約 372px：縮小說明字級與圓鈕，讓三行說明維持設計稿的斷行 */
    .svc-item__body {
        margin-left: 16px;
    }

    .svc-item__desc {
        font-size: 16px;
        letter-spacing: .5px;
        line-height: 27px;
    }

    .svc-item__arrow {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .strengths {
        gap: 0 40px;
    }
}

@media (max-width: 1199.98px) {
    /* 手機版表頭依「手機版選單」設計稿：滿版深色底、高 90 + 金線 4（481 寬時），往下等比縮 */
    :root {
        --header-h: calc(clamp(64px, 18.71vw, 90px) + 4px);
    }

    .site-header .container {
        max-width: none;
        padding: 0;
    }

    .site-header__bar {
        height: clamp(64px, 18.71vw, 90px);
    }

    .site-header__logo {
        margin-left: clamp(14px, 4.16vw, 20px);
    }

    .site-header__logo img {
        width: clamp(190px, 62.4vw, 300px);
    }

    .site-header__toggler {
        margin-right: clamp(10px, 4vw, 19px);
    }

    .site-header__toggler img {
        width: clamp(38px, 9.98vw, 48px);
        height: auto;
    }

    .hero {
        height: min(133.333vw, 100svh);
    }

    .back-to-top {
        right: 16px;
        bottom: 66px;
        width: 56px;
        height: 56px;
    }

    body {
        padding-bottom: 49px;
    }

    .home-service__lines::before {
        background:
            linear-gradient(var(--c-grid-line), var(--c-grid-line)) 0 0 / 1px 100% no-repeat,
            linear-gradient(var(--c-grid-line), var(--c-grid-line)) 50% 0 / 1px 100% no-repeat,
            linear-gradient(var(--c-grid-line), var(--c-grid-line)) 100% 0 / 1px 100% no-repeat;
    }

    .grid-dots {
        background:
            linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 0 0 / 9px 9px no-repeat,
            linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 50% 0 / 9px 9px no-repeat,
            linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 100% 0 / 9px 9px no-repeat;
    }

    .home-service__row--head .container {
        height: 170px;
        padding-top: 52px;
    }

    .home-service__row--foot {
        height: 80px;
    }

    .home-intro__about,
    .home-intro__partners,
    .home-join__inner {
        gap: 40px;
    }

    .home-intro__text--partners {
        flex-basis: 45%;
    }

    .home-intro__text--partners .watermark {
        margin-bottom: 40px;
    }

    .strengths {
        gap: 24px 32px;
    }

    .footer-contact__row {
        flex-wrap: wrap;
        gap: 28px 40px;
    }

    .footer-contact__row .footer-contact__sep {
        display: none;
    }

    /* 內頁：平板 */
    .svc-cards {
        --cols: 3;
        --gap: 24px;
    }

    .partners-list__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .strengths--divided {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .about-intro__text {
        padding-top: 72px;
    }

    .job-card__head {
        flex-basis: 34%;
        gap: 20px;
        padding-left: 5%;
    }

    .job-card__body {
        padding-left: 40px;
        padding-right: 32px;
    }

    .work-detail {
        padding: 36px 48px 56px;
    }
}

/* 平板橫放：橫式 banner（16:9），高度不超過一屏 */
@media (min-width: 768px) and (max-width: 1199.98px) and (min-aspect-ratio: 1/1) {
    .hero {
        height: min(56.25vw, 100svh);
        min-height: 480px;
    }
}

@media (max-width: 991.98px) {
    .strengths__item {
        flex: 0 0 calc((100% - 64px) / 3);
    }

    /* 首頁圖文區：直式平板以下改上下堆疊；圖片不放大超過原尺寸 */
    .home-intro__about,
    .home-intro__partners,
    .home-join__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .home-intro__about .home-intro__text,
    .home-intro__text--partners,
    .home-intro__media--about,
    .home-intro__media--partners,
    .home-join__media {
        flex: 0 0 auto;
    }

    .home-intro__media--about,
    .home-intro__media--partners,
    .home-join__media {
        width: 100%;
        max-width: 704px;
        margin: 0 auto;
    }

    .home-intro__media--partners {
        order: 2;
    }

    /* 服務格 2 欄時欄寬較窄：縮小內縮與圓鈕，避免說明文字被擠到逐字換行 */
    .svc-item {
        padding: 30px 20px 26px 22px;
    }

    .svc-item__head {
        margin-left: 10px;
    }

    .svc-item__body {
        margin-left: 14px;
        gap: 10px;
    }

    .svc-item__desc {
        font-size: 16px;
        letter-spacing: .5px;
        line-height: 27px;
    }

    .svc-item__arrow {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    /* 內頁：直式平板 — 左右並排的區塊全部改為上下堆疊 */
    .about-intro__row,
    .about-expertise__row,
    .service-page__row,
    .partners-trust__row {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .about-intro__media,
    .about-intro__text,
    .about-expertise__text,
    .about-expertise__media,
    .service-page__media,
    .service-page__text,
    .partners-trust__media,
    .partners-trust__text {
        flex: 0 0 auto;
    }

    .about-intro__row {
        margin-top: 48px;
    }

    .about-intro__media {
        width: min(424px, 100%);
        margin: 0 auto;
    }

    .about-intro__text {
        padding-top: 0;
    }

    .about-intro__mark {
        position: static;
        margin: 0 auto 24px;
    }

    .about-intro .line-title {
        margin-top: 56px;
    }

    .about-core__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 36px;
    }

    .about-core__list li+li::before {
        display: none;
    }

    .about-core__note {
        margin-top: 48px;
        padding: 0 8px;
    }

    .about-expertise {
        padding: 64px 0 80px;
    }

    .about-expertise__mark {
        margin-top: 32px;
    }

    .service-page__media {
        width: min(784px, 100%);
        margin: 0 auto;
    }

    .service-page__row {
        margin-top: 32px;
    }

    .bar-title {
        margin-top: 64px;
    }

    .partners-trust__media {
        width: min(616px, 100%);
        margin: 0 auto;
    }

    .strengths--divided {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 32px;
    }

    .strengths--divided .strengths__item::before {
        display: none;
    }

    /* 職缺卡：編號＋職稱置上，內文置下；直分隔線改為橫線 */
    .job-card {
        flex-direction: column;
    }

    .job-card__head {
        flex: 0 0 auto;
        padding: 28px 28px 20px;
    }

    .job-card__body {
        flex: 0 0 auto;
        padding: 20px 28px 28px;
    }

    .job-card__body::before {
        top: 0;
        bottom: auto;
        left: 28px;
        right: 28px;
        width: auto;
        height: 1px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    /* 手機主視覺：設計稿 481 寬時高 565（117.5vw），文字依比例縮小，按鈕不顯示（改由底部快捷列聯繫） */
    .hero {
        height: 117.5vw;
        min-height: 0;
    }

    .hero__en-1 {
        font-size: 5.07vw;
        letter-spacing: .38vw;
    }

    .hero__en-2 {
        margin-top: -.6vw;
        font-size: 7.63vw;
        letter-spacing: .38vw;
    }

    .hero__divider {
        width: 46.8vw;
        margin: 3.4vw 0 3.6vw;
    }

    .hero__zh {
        font-size: 4.68vw;
        letter-spacing: .4vw;
    }

    .hero__btn {
        display: none;
    }

    .home-service__lines::before {
        background:
            linear-gradient(var(--c-grid-line), var(--c-grid-line)) 0 0 / 1px 100% no-repeat,
            linear-gradient(var(--c-grid-line), var(--c-grid-line)) 100% 0 / 1px 100% no-repeat;
    }

    .grid-dots {
        background:
            linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 0 0 / 9px 9px no-repeat,
            linear-gradient(var(--c-grid-dot), var(--c-grid-dot)) 100% 0 / 9px 9px no-repeat;
    }

    .home-service__row--head .container {
        height: 141px;
        padding-top: 32px;
    }

    .home-service__row--head .sec-title {
        padding-left: 20px;
    }

    .svc-cell {
        min-height: 0;
    }

    .svc-item {
        padding: 28px 20px 28px 20px;
    }

    .svc-item__head,
    .svc-item__body {
        margin-left: 12px;
    }

    .svc-item__desc {
        font-size: 16px;
        line-height: 27px;
    }

    .svc-item__arrow {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .home-service__row--foot {
        height: 48px;
    }

    /* 浮水印維持水平拉寬比例，字級改以視窗寬計，確保不超出畫面 */
    .watermark {
        font-size: 8.5vw;
    }

    .watermark--sm {
        font-size: 5.2vw;
    }

    .home-intro {
        padding: 48px 0 70px;
    }

    .home-intro .strengths {
        margin-top: 36px;
    }

    .strengths__item img {
        width: 72px;
        height: 72px;
    }

    .strengths__label {
        margin-top: 10px;
        font-size: 15px;
        line-height: 22px;
        letter-spacing: .5px;
    }

    .home-intro__about {
        margin-top: 48px;
    }

    .home-intro__partners {
        margin-top: 56px;
    }

    .home-intro__text p:not(.watermark),
    .home-works__intro p,
    .home-join__text p {
        line-height: 30px;
    }

    .home-intro__text .btn-outline,
    .home-works__intro .btn-outline,
    .home-join__text .btn-outline {
        margin-top: 28px;
    }

    .home-works {
        padding: 56px 0 60px;
    }

    .works-grid {
        --bs-gutter-x: 24px;
        --bs-gutter-y: 32px;
        max-width: 464px;
    }

    .home-works__intro {
        text-align: left;
    }

    .home-join {
        padding: 50px 0 60px;
    }

    .home-join__inner {
        margin-top: 28px;
    }

    .footer-brand__inner {
        height: 100px;
    }

    .footer-brand__logo img {
        width: 220px;
    }

    .footer-brand__fb img {
        width: 60px;
    }

    .footer-contact__row {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact__info p,
    .footer-contact__tax,
    .footer-nav a {
        font-size: 16px;
        white-space: normal;
    }

    .footer-nav {
        gap: 4px 24px;
        margin-top: 40px;
    }

    .footer-counter {
        flex-wrap: wrap;
        gap: 4px 24px;
    }

    .footer-copy p {
        display: block;
        padding: 18px 0;
        font-size: 13px;
        line-height: 22px;
    }

    .footer-copy img {
        width: 20px;
        height: 20px;
        vertical-align: -4px;
    }

    /* 內頁：手機 */
    .about-intro,
    .service-page,
    .partners-list,
    .works-page,
    .careers-page {
        padding-top: 44px;
    }

    .text-group p,
    .work-detail__content p,
    .work-detail__content ul,
    .work-detail__content ol,
    .partners-list__intro,
    .works-page__intro p,
    .careers-join p:not(.join-mark),
    .job-card__body p {
        line-height: 30px;
    }

    .text-group+.text-group {
        margin-top: 30px;
    }

    .svc-cards {
        --cols: 2;
        --gap: 14px;
    }

    .svc-cards__text {
        bottom: 14px;
    }

    .svc-cards__title {
        font-size: 16px;
        line-height: 24px;
        white-space: normal;
        padding: 0 6px;
    }

    .svc-cards__en {
        margin-top: 4px;
        font-size: 11px;
    }

    .line-title {
        gap: 14px;
    }

    .line-title::before,
    .line-title::after {
        height: 4px;
    }

    .about-core {
        padding: 48px 0 56px;
    }

    .about-core__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-core__list img {
        width: 76px;
        height: 76px;
    }

    .about-core__list span {
        margin-top: 12px;
        font-size: 16px;
    }

    .service-page__title {
        height: 76px;
        margin-top: 28px;
    }

    .service-page__mark {
        margin-top: 18px;
    }

    .service-page {
        padding-bottom: 64px;
    }

    .partners-list__intro {
        margin-top: 24px;
        text-align: left;
    }

    .partners-list__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
        margin-top: 32px;
    }

    .partner-card__logo {
        padding: 10px;
        box-shadow: inset 0 0 0 10px var(--c-bg-deep);
        outline-offset: -11px;
    }

    .partner-card__name {
        margin-top: 14px;
        font-size: 18px;
    }

    .partner-card__desc {
        font-size: 14px;
        line-height: 24px;
    }

    .partners-trust {
        padding: 56px 0 64px;
    }

    .partners-trust .container::before {
        top: -56px;
    }

    .partners-trust__row {
        margin-top: 48px;
    }

    .partners-trust__name {
        margin-bottom: 16px;
    }

    .partners-trust__btn {
        min-width: 0;
    }

    .works-page {
        padding-bottom: 72px;
    }

    .works-page__intro {
        margin-top: 24px;
    }

    .works-page__intro .works-page__count {
        margin-top: 24px;
    }

    .works-grid--list {
        --bs-gutter-y: 32px;
        margin-top: 0;
    }

    .work-detail {
        margin-top: 28px;
        padding: 28px 18px 32px;
    }

    .work-detail__title {
        padding-bottom: 18px;
    }

    .work-detail__content {
        margin-top: 28px;
    }

    .work-detail__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 32px;
        margin-left: 0;
    }

    .job-list {
        margin-top: 36px;
    }

    .job-card+.job-card {
        margin-top: 20px;
    }

    .job-card__head {
        padding: 22px 20px 16px;
        gap: 16px;
    }

    .job-card__body {
        padding: 16px 20px 22px;
    }

    .job-card__body::before {
        left: 20px;
        right: 20px;
    }

    .careers-page {
        padding-bottom: 64px;
    }

    .careers-join {
        margin-top: 44px;
    }

    .careers-join .intro-title {
        margin-top: 28px;
    }

    .careers-join .btn-outline {
        margin-top: 32px;
    }
}

@media (max-width: 575.98px) {
    .strengths__item {
        flex-basis: calc((100% - 32px) / 2);
    }

    .strengths--divided {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-core__note {
        text-align: left;
    }

    .hero__btn {
        min-width: 0;
    }
}

/* ---------- 15. 背景素材斷點 ----------
   素材提供 750/1200/1600/1920/2560 五種寬度，各自長寬比不同（構圖不同），
   依素材整數寬度換圖；只覆寫 background-image，保留 base 的 size/position/repeat */
@media (min-width: 1921px) {
    .home-intro { background-image: url("../images/00-hp/ap_bg2560.png"); }
    .home-works { background-image: url("../images/00-hp/work_bg2560.png"); }
    .home-join { background-image: url("../images/00-hp/join_bg2560.png"); }
    .about-core { background-image: url("../images/01/01item_bg2560.png"); }
    .about-expertise { background-image: url("../images/01/ex_bg2560.png"); }
    .service-page { background-image: url("../images/02/02bg2560.png"); }
    .works-page { background-image: url("../images/04/04bg2560.png"); }
    .careers-page { background-image: url("../images/05/05bg2560.png"); }
}

@media (max-width: 1600px) {
    .home-intro { background-image: url("../images/00-hp/ap_bg1600.png"); }
    .home-works { background-image: url("../images/00-hp/work_bg1600.png"); }
    .home-join { background-image: url("../images/00-hp/join_bg1600.png"); }
    .about-core { background-image: url("../images/01/01item_bg1600.png"); }
    .about-expertise { background-image: url("../images/01/ex_bg1600.png"); }
    .service-page { background-image: url("../images/02/02bg1600.png"); }
    .works-page { background-image: url("../images/04/04bg1600.png"); }
    .careers-page { background-image: url("../images/05/05bg1600.png"); }
}

@media (max-width: 1200px) {
    .home-intro { background-image: url("../images/00-hp/ap_bg1200.png"); }
    .home-works { background-image: url("../images/00-hp/work_bg1200.png"); }
    .home-join { background-image: url("../images/00-hp/join_bg1200.png"); }
    /* 例外：手機／平板改 cover 置底（桌機維持 base 的 100% auto + top）。
       這兩個寬度區塊常比「寬度撐滿」的底圖高，100% auto 會露出純色缺口；
       cover 讓紋理鋪滿整區，代價是左右各裁掉一點（素材左右是均勻紋理，無妨） */
    .about-core {
        background-image: url("../images/01/01item_bg1200.png");
        background-position: center bottom;
        background-size: cover;
    }
    .about-expertise { background-image: url("../images/01/ex_bg1200.png"); }
    .service-page { background-image: url("../images/02/02bg1200.png"); }
    .works-page { background-image: url("../images/04/04bg1200.png"); }
    .careers-page { background-image: url("../images/05/05bg1200.png"); }
}

@media (max-width: 750px) {
    .home-intro { background-image: url("../images/00-hp/ap_bg750.png"); }
    .home-works { background-image: url("../images/00-hp/work_bg750.png"); }
    .home-join { background-image: url("../images/00-hp/join_bg750.png"); }
    .about-core { background-image: url("../images/01/01item_bg750.png"); }
    .about-expertise { background-image: url("../images/01/ex_bg750.png"); }
    .service-page { background-image: url("../images/02/02bg750.png"); }
    .works-page { background-image: url("../images/04/04bg750.png"); }
    .careers-page { background-image: url("../images/05/05bg750.png"); }
}

/* ---------- 16. 進場動畫 ----------
   - 隱藏狀態只在 html.reveal-on 下成立（master 的 head 內聯腳本加上；減少動態效果時不加），JS 失敗時內容照常可見
   - 位移用獨立的 translate／scale 屬性而非 transform：浮水印的 scaleX 拉寬、卡片 hover 放大不會被蓋掉
   - 用 animation 而非 transition：不會覆寫按鈕等元素原本的 hover transition
   - 只動 opacity 與位移，不改尺寸與排版，元素佔位從頭到尾不變 */
.reveal-on [data-reveal]:not(.is-revealed) {
    opacity: 0;
}

.reveal-on [data-reveal].is-revealed {
    animation: reveal-in var(--reveal-dur) var(--reveal-ease) var(--reveal-delay, 0ms) both;
}

/* fade：浮水印大字只淡入 */
[data-reveal="up"],
[data-reveal="left"],
[data-reveal="right"] {
    --reveal-y: var(--reveal-shift);
}

/* 左右滑入只在圖文並排（≥992）時使用，窄螢幕上下堆疊時退回上移。
   滑動中的元素會撐出水平捲軸，需 overflow-x: clip 收住（clip 不影響垂直方向，區塊陰影仍可外溢）；
   不支援 clip 的舊瀏覽器一律上移 */
@supports (overflow-x: clip) {
    .reveal-on .main_section {
        overflow-x: clip;
    }

    @media (min-width: 992px) {
        [data-reveal="left"] {
            --reveal-x: calc(var(--reveal-shift-x) * -1);
            --reveal-y: 0px;
        }

        [data-reveal="right"] {
            --reveal-x: var(--reveal-shift-x);
            --reveal-y: 0px;
        }
    }
}

/* 未寫 to：結束值即元素原本的樣式 */
@keyframes reveal-in {
    from {
        opacity: 0;
        translate: var(--reveal-x, 0px) var(--reveal-y, 0px);
    }
}

/* 主視覺文字在首屏，不等 JS 觀察，直接依序播放 */
.reveal-on .hero__content > * {
    --reveal-y: 24px;
    animation: reveal-in var(--reveal-dur) var(--reveal-ease) both;
}

.reveal-on .hero__en {
    animation-delay: .2s;
}

.reveal-on .hero__divider {
    animation-name: reveal-line;
    animation-delay: .45s;
}

.reveal-on .hero__zh {
    animation-delay: .6s;
}

.reveal-on .hero__btn {
    animation-delay: .75s;
}

/* 金線由中間向兩側展開 */
@keyframes reveal-line {
    from {
        opacity: 0;
        scale: 0 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
