/* ==========================================================================
   恒強鋼鐵 前台樣式
   設計稿基準寬 1920px。--dp = 「1 個設計稿 px」在目前視窗的實際長度（上限 1px），
   版面尺寸寫成 calc(n * var(--dp))，在 1920 以下等比縮放、超過 1920 維持原尺寸，
   文字一律再用 max() 設下限，避免小螢幕字過小。
   ========================================================================== */

/* 1. Design tokens ======================================================== */
:root {
    --dp: min(1px, calc(100vw / 1920));

    --c-blue: #335b9f;
    --c-blue-roll: #476ba8;
    --c-navy: #173870;
    --c-navy-bar: #204482;
    --c-yellow: #eeaa26;
    --c-yellow-line: #fec557;
    --c-yellow-nav: #ffcd46;
    --c-heading: #3c3c3c;
    --c-text: #616160;
    --c-gray: #565656;
    --c-line: #dadada;
    --c-link: #1370ce;
    --c-muted: #9d9d9d;
    --c-footer-muted: #8392aa;
    --c-gray-bg: #f5f5f5;

    --ff-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --ff-en: "Montserrat", "Noto Sans TC", sans-serif;

    /* 左側藍色直條寬 = 內容左右留白（設計稿 156px） */
    --side: calc(156 * var(--dp));
    --container: calc(1608 * var(--dp));
    /* 內容左緣：1920 以下等於直條寬；超寬螢幕時內容置中，改跟著 container 左緣 */
    --edge: max(var(--side), calc((100vw - var(--container)) / 2));

    /* 固定 header 高（桌機：白色 logo 列 + 藍色導覽列） */
    --hh-top: max(76px, calc(106 * var(--dp)));
    --hh-nav: max(72px, calc(89 * var(--dp)));
    --hh: calc(var(--hh-top) + var(--hh-nav));

    --z-header: 1030;
    --z-float: 1020;
}

@media (max-width: 1199.98px) {
    :root {
        --hh-top: clamp(64px, 12.4vw, 96px);
        --hh-nav: 0px;
    }
}

@media (max-width: 575.98px) {
    :root {
        /* 手機選單稿：左直條約為畫面寬 7% */
        --side: 7vw;
        --container: calc(100vw - 14vw);
    }
}

/* 2. Base ================================================================= */
html {
    scroll-padding-top: calc(var(--hh) + 16px);
}

body {
    padding-top: var(--hh);
    font-family: var(--ff-zh);
    color: var(--c-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

.site-main {
    /* 刻意出血的裝飾（滿版斜切、穿越陰影）不可撐出水平捲軸 */
    overflow-x: clip;
}

/* Bootstrap container 改為「視窗寬 − 兩側直條寬」，各斷點一致 */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--bs-gutter-x, 1.5rem));
}

/* 內文段落：中文閱讀行高 2 */
.hc-text p {
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .075em;
    /* 瀏覽器會把字距也加在行尾最後一字後面，設計稿不會；用負右邊界抵銷，換行點才與設計稿一致 */
    margin-right: -.075em;
    color: var(--c-text);
}

.hc-text p + p {
    margin-top: calc(4 * var(--dp));
}

/* 3. Buttons ============================================================== */
.hc-btn {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: max(28px, calc(72 * var(--dp)));
    min-width: max(180px, calc(225 * var(--dp)));
    height: max(46px, calc(55 * var(--dp)));
    padding: 0 max(18px, calc(28 * var(--dp))) 0 max(20px, calc(29 * var(--dp)));
    border-bottom: max(4px, calc(5 * var(--dp))) solid var(--c-yellow-line);
    background: var(--c-yellow);
    color: #fff;
    font-size: max(15px, calc(18 * var(--dp)));
    font-weight: 500;
    letter-spacing: .1em;
    transition: background-color .25s ease, border-color .25s ease;
}

.hc-btn:hover,
.hc-btn:focus-visible {
    color: #fff;
    background: #e19a12;
}

.hc-btn__plus {
    position: relative;
    flex: none;
    width: max(14px, calc(17 * var(--dp)));
    height: max(14px, calc(17 * var(--dp)));
    transition: transform .3s ease;
}

.hc-btn__plus::before,
.hc-btn__plus::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
}

.hc-btn__plus::after {
    transform: rotate(90deg);
}

.hc-btn:hover .hc-btn__plus,
.hc-btn:focus-visible .hc-btn__plus {
    transform: rotate(90deg);
}

.hc-btn--blue {
    border-bottom: 0;
    background: var(--c-blue);
}

.hc-btn--blue:hover,
.hc-btn--blue:focus-visible {
    background: var(--c-navy);
}

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

/* Offcanvas 開啟時 Bootstrap 會把焦點移到面板本身，面板不需要外框 */
.mobile-menu:focus-visible {
    outline: none;
}

/* 4. Header =============================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-header);
    /* 左側 --side 寬的藍色＝頁面左直條的頂段 */
    background: var(--c-blue);
}

.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--hh-top);
    margin-left: var(--side);
    padding: calc(5 * var(--dp)) var(--edge) 0 calc(var(--edge) - var(--side) + 44 * var(--dp));
    background: #fff;
}

.site-header__logo {
    display: block;
    margin-top: calc(4 * var(--dp));
    width: max(260px, calc(438 * var(--dp)));
}

.site-header__logo img {
    display: block;
    width: 100%;
}

.site-header__phone {
    align-items: center;
    gap: calc(13 * var(--dp));
    width: calc(261 * var(--dp));
    height: calc(61 * var(--dp));
    min-width: 210px;
    min-height: 50px;
    padding-left: calc(37 * var(--dp));
    border-radius: 100px;
    background: var(--c-yellow);
    color: #fff;
    transition: background-color .25s ease;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
    color: #fff;
    background: #e19a12;
}

.site-header__phone img {
    width: calc(36 * var(--dp));
    min-width: 28px;
}

.site-header__phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.site-header__phone-label {
    font-size: max(13px, calc(17 * var(--dp)));
    font-weight: 700;
    letter-spacing: .02em;
}

.site-header__phone-num {
    font-size: max(16px, calc(20 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
}

.site-header__toggler {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: 0;
    background: none;
}

.site-header__toggler img {
    display: block;
    width: 100%;
}

/* 桌機導覽列 */
.site-nav {
    height: var(--hh-nav);
    margin-left: var(--side);
    margin-right: var(--side);
}

.site-nav__list {
    display: flex;
    justify-content: center;
    height: 100%;
    gap: calc(46 * var(--dp));
    padding-bottom: calc(4 * var(--dp));
}

.site-nav__item {
    position: relative;
    display: flex;
}

.site-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    white-space: nowrap;
}

.site-nav__zh {
    position: relative;
    padding-bottom: calc(6 * var(--dp));
    font-size: max(16px, calc(18 * var(--dp)));
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .05em;
}

/* hover／目前大類：中文下方黃線（設計稿 ROLL-IN 線條） */
.site-nav__zh::after {
    content: "";
    position: absolute;
    left: calc(-11 * var(--dp));
    right: calc(-11 * var(--dp));
    bottom: 0;
    height: 1px;
    background: var(--c-yellow-nav);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.site-nav__en {
    margin-top: calc(7 * var(--dp));
    font-size: max(10px, calc(11 * var(--dp)));
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    color: var(--c-yellow);
}

.site-nav__item:hover .site-nav__zh::after,
.site-nav__item:focus-within .site-nav__zh::after,
body[data-section="about"] [data-nav="about"] .site-nav__zh::after,
body[data-section="technology"] [data-nav="technology"] .site-nav__zh::after,
body[data-section="services"] [data-nav="services"] .site-nav__zh::after,
body[data-section="projects"] [data-nav="projects"] .site-nav__zh::after,
body[data-section="partners"] [data-nav="partners"] .site-nav__zh::after,
body[data-section="esg"] [data-nav="esg"] .site-nav__zh::after,
body[data-section="charity"] [data-nav="charity"] .site-nav__zh::after,
body[data-section="contact"] [data-nav="contact"] .site-nav__zh::after {
    transform: scaleX(1);
}

.site-nav__dropdown {
    position: absolute;
    top: calc(100% - 11 * var(--dp));
    left: 50%;
    width: max(130px, calc(148 * var(--dp)));
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.site-nav__dropdown li + li {
    border-top: 1px solid var(--c-line);
}

.site-nav__dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: max(40px, calc(43 * var(--dp)));
    font-size: max(15px, calc(16 * var(--dp)));
    letter-spacing: .08em;
    color: var(--c-blue);
    transition: background-color .2s ease, color .2s ease;
}

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

/* 手機 off-canvas 選單（Bootstrap Offcanvas 變體） */
.mobile-menu.offcanvas-end {
    --bs-offcanvas-width: max(264px, 55vw);
    --bs-offcanvas-bg: #fff;
    border-left: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 108px 12px calc(48px + 40px);
}

/* 展開時才加陰影，收合後不外洩到畫面右緣 */
.mobile-menu.offcanvas-end.show,
.mobile-menu.offcanvas-end.showing {
    box-shadow: -6px 0 18px rgba(0, 0, 0, .12);
}

.offcanvas-backdrop.show {
    opacity: .8;
}

.offcanvas-backdrop {
    background-color: #ddd;
}

.mobile-menu__close {
    position: absolute;
    top: 22px;
    right: 21px;
    width: 31px;
    height: 31px;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--c-blue);
    line-height: 0;
}

.mobile-menu__item {
    border-bottom: 1px solid #eaeaea;
}

.mobile-menu__item:last-child {
    border-bottom: 0;
}

.mobile-menu__toggle,
.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 63px;
    padding: 0 0 0 52px;
    border: 0;
    background: none;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0;  /* 設計稿字距為 0：「關於恒強」字寬 80px、「技術與優勢」101px */
    text-align: left;
    color: var(--c-heading);
}

.mobile-menu__item:first-child .mobile-menu__toggle {
    min-height: 0;
    padding-top: 0;
}

/* 設計稿只畫了第一項展開；收合時（不在「關於恒強」頁）補下方留白，文字到分隔線的距離與其他列一致（約 24px） */
.mobile-menu__item:first-child .mobile-menu__toggle.collapsed {
    padding-bottom: 17px;
}

/* 設計稿：「+」12×12、線粗 2px；展開後的「–」較短較細（10×1px）且略低 */
.mobile-menu__sign {
    position: relative;
    width: 12px;
    height: 12px;
}

.mobile-menu__sign::before,
.mobile-menu__sign::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background: var(--c-blue);
    transition: transform .25s ease;
}

.mobile-menu__sign::after {
    transform: rotate(90deg);
}

.mobile-menu__toggle:not(.collapsed) .mobile-menu__sign::after {
    transform: rotate(0deg);
}

.mobile-menu__toggle:not(.collapsed) .mobile-menu__sign::after {
    opacity: 0;
}

.mobile-menu__toggle:not(.collapsed) .mobile-menu__sign::before {
    left: 1px;
    width: 10px;
    height: 1px;
    margin-top: 3px;
}

/* 設計稿子項間距約 40.3px（19px × 1.07 + 上下各 10px）；上下內距補足，分隔線位置不變 */
.mobile-menu__sub {
    padding: 5px 0 5px 52px;
}

.mobile-menu__sub a {
    display: block;
    padding: 10px 0;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.07;
    color: var(--c-blue);
}

/* 手機底部來電條 */
.mobile-call-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1050;  /* 設計稿：選單展開時來電條仍在最上層、不被遮罩蓋住 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 48px;
    background: linear-gradient(90deg, #eeaa26 0%, #e78301 100%);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .04em;
}

.mobile-call-bar:hover,
.mobile-call-bar:focus-visible {
    color: #fff;
}

/* 素材 40×40、可見圖形約 21×22（四周含透明留白）；原尺寸顯示即與設計稿圖形大小一致 */
.mobile-call-bar img {
    width: 40px;
}

/* 回到頂部 */
.back-to-top {
    position: fixed;
    right: calc(32 * var(--dp));
    bottom: 40px;
    z-index: var(--z-float);
    width: max(56px, calc(80 * var(--dp)));
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

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

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

@media (max-width: 1199.98px) {
    body {
        padding-bottom: 48px;
    }

    .back-to-top {
        right: 12px;
        bottom: 60px;
    }

    .site-header__top {
        padding-right: max(16px, calc(var(--side) * .5));
    }

    .site-header__logo {
        width: clamp(200px, 50vw, 330px);
    }
}

/* 5. Hero（全站共用）======================================================= */
.hero {
    position: relative;
    /* banner 長寬比依各斷點使用的素材：桌機 2560×864、768 版 2:1、手機 640×736 */
    --banner-r: 2.963;
    /* 直條下緣（斜邊較低那端）落在 banner 高度的比例；設計稿桌機 51.3%、手機 35.4% */
    --strip-p: 51.3%;
    --strip-drop: calc(var(--side) * .6);
}

/* 直條、SCROLL 指示與 banner 共用同一個以 banner 高為基準的定位容器 */
.hero__stage {
    position: relative;
}

.hero__strip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: var(--side);
    height: var(--strip-p);
    background: var(--c-blue);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--strip-drop)));
    pointer-events: none;
}

.hero__banner {
    position: relative;
    margin-left: var(--side);
    aspect-ratio: var(--banner-r);
    background: #dfe6ee;
}

.heroSwiper,
.heroSwiper .swiper-slide,
.heroSwiper picture {
    width: 100%;
    height: 100%;
}

.heroSwiper picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__caption {
    position: absolute;
    right: calc(var(--side) + 2 * var(--dp));
    bottom: calc(62 * var(--dp));
    z-index: 2;
    font-size: max(18px, calc(36 * var(--dp)));
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .08em;
    text-align: right;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* SCROLL 指示：上端接在直條斜邊下方，下端（箭頭）對齊 banner 底 */
.hero__scroll {
    position: absolute;
    left: calc(var(--side) * .29);
    top: calc(var(--strip-p) + 5 * var(--dp));
    bottom: calc(-3 * var(--dp));
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    margin-left: -10px;
    color: var(--c-blue);
}

.hero__scroll-text {
    flex: none;
    writing-mode: vertical-rl;
    font-size: max(12px, calc(17 * var(--dp)));
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1;
}

.hero__scroll-line {
    flex: 1 1 auto;
    width: 1.4px;
    margin-top: calc(8 * var(--dp));
    background: currentColor;
}

/* 兩個向下三角箭頭 */
.hero__scroll-arrows {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: calc(7 * var(--dp));
    padding-top: 1px;
}

.hero__scroll-arrows::before,
.hero__scroll-arrows::after {
    content: "";
    width: 9px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hero__tail {
    position: relative;
    height: max(64px, calc(113 * var(--dp)));
}

/* banner 右下藍色梯形：上緣齊 banner 底，左側斜邊與直條同角度 */
.hero__tail-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(650 * var(--dp));
    height: 100%;
    background: var(--c-blue);
    clip-path: polygon(0 0, 100% 0, 100% 100%, calc(81 * var(--dp)) 100%);
}

.hero__slogan {
    position: absolute;
    left: var(--edge);
    top: calc(24 * var(--dp));
    font-family: var(--ff-en);
    font-size: max(18px, calc(41 * var(--dp)));
    font-weight: 800;
    line-height: 1.073;
    letter-spacing: -.035em;
    color: #565656;
    white-space: nowrap;
}

.hero__slogan span {
    display: block;
}

.hero__slogan-hl {
    color: var(--c-yellow);
}

/* 6. Section heading ====================================================== */
.sec-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.sec-head__en {
    font-size: max(13px, calc(16 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    color: var(--c-blue);
}

.sec-head__zh {
    margin-top: calc(9 * var(--dp));
    font-size: max(24px, calc(30 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.2;
    color: var(--c-heading);
}

.sec-head__aside {
    padding-bottom: calc(4 * var(--dp));
    font-size: max(14px, calc(18 * var(--dp)));
    letter-spacing: .1em;
    color: var(--c-heading);
}

/* 灰長線 + 左側黃短線（黃線壓在灰線上） */
.sec-head__line {
    position: relative;
    height: 1px;
    margin-top: calc(24 * var(--dp));
    background: var(--c-line);
}

.sec-head__line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: calc(88 * var(--dp));
    min-width: 60px;
    height: 3px;
    background: var(--c-yellow);
}

/* 7. Icon badge（白色圓 + 外陰影）========================================== */
.icon-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: calc(122 * var(--dp));
    height: calc(122 * var(--dp));
    min-width: 84px;
    min-height: 84px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 calc(6 * var(--dp)) rgba(255, 255, 255, .55), 0 2px 16px rgba(0, 0, 0, .08);
}

.icon-badge img {
    width: calc(56 * var(--dp));
    min-width: 40px;
}

/* 8. Footer =============================================================== */
.site-footer {
    position: relative;
    border-top: calc(7 * var(--dp)) solid var(--c-yellow);
}

.site-footer__brand {
    padding: calc(30 * var(--dp)) 0 calc(27 * var(--dp));
    background: #fff;
}

.site-footer__logo {
    display: block;
    width: max(240px, calc(438 * var(--dp)));
}

.site-footer__logo img {
    display: block;
    width: 100%;
}

.site-footer__contact {
    gap: 0;
    width: max(190px, calc(231 * var(--dp)));
    min-width: 0;
    height: max(48px, calc(59 * var(--dp)));
    padding-left: max(20px, calc(35 * var(--dp)));
    padding-right: max(20px, calc(36 * var(--dp)));
}

.site-footer__main {
    padding: calc(54 * var(--dp)) 0 calc(28 * var(--dp));
    background: var(--c-navy);
    color: #fff;
}

.office-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: max(38px, calc(41 * var(--dp)));
    padding: 0 calc(18 * var(--dp));
    background: var(--c-navy-bar);
}

.office-bar__title {
    font-size: max(17px, calc(20 * var(--dp)));
    letter-spacing: .1em;
}

.office-bar__en {
    font-size: max(12px, calc(15 * var(--dp)));
    letter-spacing: .1em;
}

.office-info {
    margin-top: calc(5 * var(--dp));
}

.office-info li {
    display: flex;
    align-items: center;
    gap: calc(2 * var(--dp));
    min-height: calc(41 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    letter-spacing: .08em;
}

.office-info img {
    flex: none;
    /* 素材 24×30 含透明留白，圖形本身約 10–14px；用負邊界讓可見圖形對齊內容左緣 */
    width: calc(24 * var(--dp));
    min-width: 20px;
    margin-left: calc(-5 * var(--dp));
}

.office-info a:hover {
    color: var(--c-yellow);
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
    gap: calc(53 * var(--dp));
}

.footer-nav__head {
    display: inline-block;
    font-size: max(15px, calc(18 * var(--dp)));
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.35;
    transition: color .2s ease;
}

.footer-nav__col:not(.footer-nav__col--plain) > .footer-nav__head {
    position: relative;
    padding-bottom: calc(16 * var(--dp));
}

/* 有子選單的欄：標題下黃色短線 */
.footer-nav__col:not(.footer-nav__col--plain) > .footer-nav__head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(38 * var(--dp));
    height: 1px;
    background: var(--c-yellow);
}

.footer-nav__col ul {
    margin-top: calc(6 * var(--dp));
}

.footer-nav__col ul a {
    display: inline-block;
    padding: calc(5.5 * var(--dp)) 0;
    font-size: max(14px, calc(16 * var(--dp)));
    font-weight: 500;
    letter-spacing: .08em;
    transition: color .2s ease;
}

.footer-nav__col--plain li + li {
    margin-top: calc(15 * var(--dp));
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--c-yellow);
}

.site-footer__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: calc(76 * var(--dp));
    padding-top: calc(24 * var(--dp));
    border-top: 1px solid var(--c-footer-muted);
    font-size: max(12px, calc(16 * var(--dp)));
    letter-spacing: .09em;
    color: var(--c-footer-muted);
    text-align: center;
}

.site-footer__copy a {
    transition: color .2s ease;
}

.site-footer__copy a:hover,
.site-footer__copy a:focus-visible {
    color: #fff;
}

.site-footer__copy img {
    flex: none;
    width: calc(18 * var(--dp));
    min-width: 14px;
}

@media (min-width: 1200px) {
    .site-footer__office {
        width: calc(422 * var(--dp));
    }

    .site-footer__office + .site-footer__office {
        margin-left: calc(50 * var(--dp));
    }
}

/* ==========================================================================
   9. 首頁
   ========================================================================== */

/* 9-1 關於恒強 */
.home-about {
    position: relative;
    padding: calc(84 * var(--dp)) 0 calc(98 * var(--dp));
    background: #fcfcfd url("../images/00-hp/ab_bg2560.png") center top / 100% auto no-repeat;
}

body[data-page="index"] .hero__tail {
    /* 首頁 hero 底與關於恒強背景（極淺灰）自然銜接 */
    background: linear-gradient(90deg, #fff 45%, #fbfbfb 80%);
}

.home-about__text {
    max-width: calc(808 * var(--dp) + 0px);
}

.home-about__subtitle {
    margin-top: calc(29 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-blue);
}

.home-about .hc-text {
    margin-top: calc(11 * var(--dp));
}

.home-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(18 * var(--dp)) calc(30 * var(--dp));
    margin: calc(28 * var(--dp)) 0 calc(45 * var(--dp));
}

.home-feature {
    display: flex;
    align-items: center;
    gap: calc(19 * var(--dp));
}

.home-feature__title {
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--c-blue);
}

.home-feature__desc {
    margin-top: calc(4 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 1.56;
    letter-spacing: .1em;
    color: var(--c-text);
}

/* <br> 是依 1920 稿「一行 12 字」加的視覺斷行。字級 15px 下限在 1600 以下生效（18dp = 15px 的寬度），
   欄寬卻繼續縮，一行排不滿 12 字，保留 <br> 會多出孤字行；改由瀏覽器平衡換行 */
@media (max-width: 1599.98px) {
    .home-feature__desc br {
        display: none;
    }

    .home-feature__desc {
        text-wrap: balance;
    }
}

.home-about__media {
    display: flex;
    justify-content: flex-end;
}

.home-about__media img {
    width: calc(695 * var(--dp));
    margin-top: 0;
}

/* 9-2 服務項目：左圖貼齊視窗左緣，上下投影穿越相鄰區塊 */
.home-services {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: calc(759 * var(--dp));
    background: #f8f8f8 url("../images/00-hp/ser_bg2560.png") right center / cover no-repeat;
    box-shadow: 0 0 30px 0 #e7e7e7;
}

.home-services__media {
    flex: 0 0 46.25%;  /* = 888 / 1920，超寬螢幕時照片也等比放大 */
}

.home-services__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-services__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: calc(66 * var(--dp)) var(--edge) calc(41 * var(--dp)) calc(52 * var(--dp));
}

.home-services .sec-head {
    margin-left: calc(13 * var(--dp));
    margin-right: calc(5 * var(--dp));
}

.service-list {
    margin-top: calc(24 * var(--dp));
    display: grid;
    gap: calc(9 * var(--dp));
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: calc(25 * var(--dp));
    padding: calc(30 * var(--dp)) calc(76 * var(--dp)) calc(22 * var(--dp)) calc(29 * var(--dp));
    color: #173870;
    transition: background-color .3s ease, color .3s ease;
}

.service-item__no {
    flex: none;
    margin-top: calc(1 * var(--dp));
    font-size: max(22px, calc(34 * var(--dp)));
    min-width: calc(40 * var(--dp));
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
}

.service-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.service-item__title {
    display: block;
    font-size: max(28px, calc(50 * var(--dp)));
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
}

.service-item__desc {
    display: block;
    margin-top: calc(17 * var(--dp));
    font-size: max(14px, calc(18 * var(--dp)));
    font-weight: 500;
    line-height: 1.56;
    letter-spacing: .08em;
    color: var(--c-text);
    transition: color .3s ease;
}

/* 兩句各佔一行（資料以 <br> 分句）；每句一個區塊各自平衡換行，窄螢幕不留孤字 */
.service-item__desc > span {
    display: block;
    text-wrap: balance;
}

.service-item__arrow {
    flex: none;
    align-self: center;
    width: calc(36 * var(--dp));
    min-width: 26px;
    height: auto;
    margin-top: 0;
    margin-bottom: calc(22 * var(--dp));
}

.service-item:hover,
.service-item:focus-visible {
    background: var(--c-blue-roll);
    color: #fff;
}

.service-item:hover .service-item__desc,
.service-item:focus-visible .service-item__desc {
    color: #fff;
}

/* 9-3 一條龍模式 */
.home-process {
    padding: calc(100 * var(--dp)) 0 calc(72 * var(--dp));
    background: #fff;
}

.home-process__title {
    font-size: max(22px, calc(32 * var(--dp)));
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    color: var(--c-heading);
}

.process {
    display: flex;
    justify-content: space-between;
    margin-top: calc(66 * var(--dp));
}

.process__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(272 * var(--dp));
}

/* 圓與圓之間的藍色箭頭 */
.process__item + .process__item::before {
    content: "";
    position: absolute;
    top: calc(124 * var(--dp));
    right: calc(100% + 18 * var(--dp));
    width: calc(26 * var(--dp));
    height: calc(36 * var(--dp));
    background: var(--c-blue);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%);
}

.process__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(272 * var(--dp));
    aspect-ratio: 1;
    border: calc(11 * var(--dp)) solid #efab26;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 calc(14 * var(--dp)) calc(18 * var(--dp)) rgba(255, 191, 67, .66);
}

.process__circle img {
    width: calc(130 * var(--dp));
}

.process__circle img[width="180"] {
    width: calc(180 * var(--dp));
}

.process__title {
    display: flex;
    align-items: center;
    margin-top: calc(38 * var(--dp));
    font-size: max(17px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-blue);
    white-space: nowrap;
    /* 設計稿：文字外框 #fff 3px */
    paint-order: stroke fill;
    -webkit-text-stroke: 6px #fff;
}

.process__no {
    margin-right: 1px;
    font-size: 1.04em;
}

.home-process__subtitle {
    margin-top: calc(65 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    color: var(--c-heading);
}

.home-process .hc-text {
    margin-top: calc(7 * var(--dp));
}

.home-process .hc-text p {
    line-height: 2.25;
}

.home-process .hc-text p + p {
    margin-top: 0;
}

.home-process .hc-btn {
    margin-top: calc(23 * var(--dp));
}

/* 9-4 工程實績 */
.home-projects {
    position: relative;
    padding: calc(80 * var(--dp)) 0 calc(80 * var(--dp));
    border-top: calc(10 * var(--dp)) solid var(--c-yellow);
    background: #f6f6f6 url("../images/00-hp/pro_bg2560.png") left top / cover no-repeat;
    background-origin: border-box;
}

/* 左黃色直條：底部斜切，露出下方合作夥伴的藍底 */
.home-projects__strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--side);
    background: var(--c-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--side) * .63));
}

.home-projects::after {
    /* 斜切缺口下方的藍色＝合作夥伴區往上延伸的底色 */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--side);
    height: calc(var(--side) * .63);
    background: #1c4085;
    z-index: 0;
}

.home-projects__strip {
    z-index: 1;
}

.home-projects__strip span {
    position: absolute;
    left: calc(var(--side) * .18);
    top: calc(78 * var(--dp));
    writing-mode: vertical-rl;
    font-family: var(--ff-en);
    font-size: max(18px, calc(40 * var(--dp)));
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
}

.home-projects__inner {
    padding-left: calc(74 * var(--dp));
}

.home-projects__list {
    padding-top: calc(45 * var(--dp));
    --bs-gutter-x: calc(41 * var(--dp));
}

.home-projects .hc-btn {
    margin-top: calc(64 * var(--dp));
}

/* 工程實績卡片（共用） */
.project-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 483 / 288;
}

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

.project-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 16, 38, .6);
    opacity: 0;
    transition: opacity .3s ease;
}

.project-card__more {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: max(130px, calc(154 * var(--dp)));
    height: max(32px, calc(37 * var(--dp)));
    padding: 0 calc(16 * var(--dp)) 0 calc(21 * var(--dp));
    background: var(--c-link);
    color: #fff;
    font-size: max(14px, calc(16 * var(--dp)));
    letter-spacing: .1em;
    opacity: 0;
    transform: translate(-50%, -30%);
    transition: opacity .3s ease, transform .3s ease;
}

.project-card__more i {
    font-size: .8em;
}

.project-card:hover .project-card__media::after,
.project-card:focus-within .project-card__media::after {
    opacity: 1;
}

.project-card:hover .project-card__more,
.project-card:focus-within .project-card__more {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.project-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: calc(28 * var(--dp));
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    /* 標籤本身有 26px/14px 下限不再縮小，間距也要給下限，否則窄螢幕兩個框幾乎相黏 */
    gap: max(6px, calc(8 * var(--dp)));
}

.project-card__tags li {
    display: flex;
    align-items: center;
    height: max(26px, calc(31 * var(--dp)));
    padding: 0 calc(12 * var(--dp));
    border: 1px solid var(--c-blue);
    background: #fff;
    font-size: max(14px, calc(16 * var(--dp)));
    letter-spacing: .06em;
    color: var(--c-blue);
}

.project-card__views {
    flex: none;
    font-size: max(13px, calc(16 * var(--dp)));
    letter-spacing: .06em;
    color: var(--c-muted);
}

.project-card__title {
    margin-top: calc(10 * var(--dp));
    padding-bottom: calc(17 * var(--dp));
    border-bottom: 1px solid var(--c-gray);
    font-size: max(18px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
}

.project-card__title a {
    color: var(--c-heading);
    transition: color .3s ease;
}

.project-card:hover .project-card__title a,
.project-card__title a:focus-visible {
    color: var(--c-link);
}

.project-card__info {
    margin: calc(13 * var(--dp)) 0 0;
    font-size: max(15px, calc(18 * var(--dp)));
    letter-spacing: .08em;
    line-height: 2;
    color: var(--c-text);
}

.project-card__info div {
    display: flex;
}

.project-card__info dt {
    font-weight: 400;
}

.project-card__info dd {
    margin: 0;
}

/* 9-5 合作夥伴 */
.home-partners {
    position: relative;
    padding: calc(83 * var(--dp)) 0 calc(69 * var(--dp));
    background: #20488d url("../images/00-hp/parner_bg2560.png") center / cover no-repeat;
    text-align: center;
}

.home-partners__en {
    font-size: max(13px, calc(16 * var(--dp)));
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    color: var(--c-yellow);
}

.home-partners__zh {
    margin-top: calc(9 * var(--dp));
    font-size: max(24px, calc(31 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    color: #fff;
}

.partner-grid {
    padding-top: calc(47 * var(--dp));
    --bs-gutter-x: calc(20 * var(--dp));
    --bs-gutter-y: calc(20 * var(--dp));
}

/* 夥伴卡：外框 10px 米色 + 內框 1px 黃 + 白底 */
.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(110 * var(--dp));
    padding: 0 12px;
    border: calc(10 * var(--dp)) solid #f7efe0;
    outline: 1px solid var(--c-yellow);
    outline-offset: calc(-10 * var(--dp) - 1px);
    background: #fff;
    font-size: max(16px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    color: var(--c-heading);
}

.home-partners__desc {
    margin-top: calc(44 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    letter-spacing: .08em;
    line-height: 1.8;
    color: #f8f8f8;
}

.home-partners .hc-btn {
    margin-top: calc(34 * var(--dp));
}

/* 9-6 永續 / 公益 雙圖 */
.home-links {
    display: flex;
}

.home-link {
    position: relative;
    display: block;
    flex: 1 1 50%;
    overflow: hidden;
    aspect-ratio: 1280 / 383;
    color: #fff;
}

.home-link__bg,
.home-link__bg img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-link__bg img {
    object-fit: cover;
    transition: transform .6s ease;
}

.home-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(98, 98, 98, .6);
    transition: opacity .35s ease;
}

.home-link__text {
    position: absolute;
    left: var(--edge);
    top: calc(103 * var(--dp));
    z-index: 2;
}

.home-link--charity .home-link__text {
    left: calc(117 * var(--dp));
}

.home-link__en {
    display: block;
    font-size: max(13px, calc(16 * var(--dp)));
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;
}

.home-link__zh {
    display: block;
    margin-top: calc(21 * var(--dp));
    font-size: max(22px, calc(30 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
}

.home-link__arrow {
    position: absolute;
    right: calc(93 * var(--dp));
    top: calc(93 * var(--dp));
    z-index: 2;
    width: max(60px, calc(100 * var(--dp)));
    aspect-ratio: 1;
    background: url("../images/00-hp/c_arrow.png") center / 100% no-repeat;
}

.home-link--charity .home-link__arrow {
    right: calc(152 * var(--dp));
}

/* roll-in：遮罩消失、箭頭換黃色版 */
.home-link:hover::before,
.home-link:focus-visible::before {
    opacity: 0;
}

.home-link:hover .home-link__arrow,
.home-link:focus-visible .home-link__arrow {
    background-image: url("../images/00-hp/c_arrow_rollin.png");
}

.home-link:hover .home-link__bg img,
.home-link:focus-visible .home-link__bg img {
    transform: scale(1.04);
}

/* ==========================================================================
   10. 動態偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        /* 關閉動畫時直接呈現最終狀態 */
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ==========================================================================
   11. 內頁共用
   ========================================================================== */
.inner-intro {
    padding: calc(68 * var(--dp)) 0 calc(106 * var(--dp));
}

.page-title {
    text-align: center;
}

.page-title__en {
    font-size: max(13px, calc(16 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    color: var(--c-blue);
}

.page-title__zh {
    position: relative;
    margin-top: calc(9 * var(--dp));
    padding-bottom: calc(24 * var(--dp));
    font-size: max(24px, calc(30 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.2;
    color: var(--c-heading);
}

.page-title__zh::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: calc(88 * var(--dp));
    min-width: 60px;
    height: 3px;
    background: var(--c-yellow);
    transform: translateX(-50%);
}

/* 左側子選單 + 右側內容 */
.inner-layout {
    display: grid;
    /* 左欄至少 194dp（設計稿）；選單字級有 16px 下限，窄螢幕時改以文字實際寬度為準，避免折行後與下一項重疊 */
    grid-template-columns: minmax(calc(194 * var(--dp)), max-content) minmax(0, 1fr);
    margin-top: calc(45 * var(--dp));
}

.side-nav {
    margin-top: calc(-26 * var(--dp));
    /* 左欄貼齊文字寬時，與右側內容保留間距（1920 時文字＋留白仍小於 194，不影響桌機） */
    padding-right: 24px;
}

.side-nav ul {
    position: relative;
}

/* 串連圓點的灰色直線：從第一點中心到最後一點中心 */
.side-nav ul::before {
    content: "";
    position: absolute;
    left: calc(6 * var(--dp));
    top: calc(64.5 * var(--dp) / 2);
    bottom: calc(64.5 * var(--dp) / 2);
    width: 1px;
    background: var(--c-line);
}

.side-nav li {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(64.5 * var(--dp));
}

.side-nav li::before {
    content: "";
    position: relative;
    z-index: 1;
    flex: none;
    width: max(11px, calc(13 * var(--dp)));
    height: max(11px, calc(13 * var(--dp)));
    border-radius: 50%;
    background: var(--c-line);
    transition: background-color .2s ease;
}

.side-nav a {
    margin-left: calc(26 * var(--dp));
    font-size: max(16px, calc(18 * var(--dp)));
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--c-gray);
    transition: color .2s ease;
}

.side-nav li.is-active::before,
.side-nav li:hover::before {
    background: var(--c-blue);
}

.side-nav li.is-active a,
.side-nav a:hover,
.side-nav a:focus-visible {
    color: var(--c-blue);
}

.inner-heading {
    margin-bottom: calc(8 * var(--dp));
    font-size: max(20px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--c-blue);
}

.hc-text .hc-text__gap {
    margin-top: calc(46 * var(--dp));
}

/* 11-1 公司簡介 */
.profile-intro__media img {
    display: block;
    width: calc(616 * var(--dp));
}

.profile-intro__text {
    padding-left: calc(61 * var(--dp));
}

.profile-intro__text .inner-heading {
    margin-top: calc(-6 * var(--dp));
}

.profile-core {
    position: relative;
    min-height: calc(100vw * 1483 / 2560);
    padding: calc(76 * var(--dp)) 0 calc(60 * var(--dp));
    /* 橫式素材的鋼構在右上，靠上對齊。1600 以下字級有下限，內容會比素材高，
       用 100% auto 時素材下緣會停在區塊中間形成色塊斷層，所以改用 cover 一定蓋滿（1600 以上比例相同，畫面不變） */
    background: #f4f4f4 url("../images/01/01bg2560.png") center top / cover no-repeat;
}

/* 置中標題 + 下方藍色細線（核心優勢、一條龍模式共用） */
.underline-title {
    width: fit-content;
    margin: 0 auto;
    padding: 0 calc(2 * var(--dp)) calc(8 * var(--dp));
    border-bottom: 2px solid #778bb3;
    font-size: max(20px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.2;
    color: var(--c-blue);
}

.profile-core__title {
    margin-bottom: calc(69 * var(--dp));
}

.core-list {
    display: grid;
    gap: calc(49 * var(--dp));
}

.core-item {
    display: flex;
    align-items: center;
    gap: calc(28 * var(--dp));
}

.core-item__badge {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: calc(168 * var(--dp));
    height: calc(168 * var(--dp));
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 calc(14 * var(--dp)) rgba(0, 0, 0, .07);
}

.core-item__badge img {
    width: calc(77 * var(--dp));
    min-width: 46px;
}

.core-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.core-item__title {
    display: flex;
    align-items: center;
    gap: calc(13 * var(--dp));
    font-size: max(20px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--c-blue);
}

.core-item__title::before {
    content: "";
    flex: none;
    width: calc(21 * var(--dp));
    height: calc(21 * var(--dp));
    min-width: 14px;
    min-height: 14px;
    border-radius: 50%;
    background: var(--c-yellow);
}

.core-item__sub {
    margin-top: calc(8 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
    color: var(--c-text);
}

.core-item .hc-text {
    margin-top: calc(13 * var(--dp));
}

.profile-core__media {
    padding-left: calc(60 * var(--dp));
}

.profile-core__media img {
    display: block;
    width: calc(616 * var(--dp));
}

.profile-brand {
    padding: calc(99 * var(--dp)) 0 calc(88 * var(--dp));
}

.profile-brand__media img {
    display: block;
    width: calc(760 * var(--dp));
}

.profile-brand__text {
    padding-left: calc(72 * var(--dp));
}

.brand-bar {
    display: flex;
    align-items: center;
    height: max(46px, calc(56 * var(--dp)));
    padding: 0 calc(20 * var(--dp));
    background: var(--c-gray-bg);
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--c-blue);
}

.profile-brand .hc-text p {
    letter-spacing: .1em;
    margin-right: -.1em;
}

.brand-bar + .hc-text {
    margin-top: calc(15 * var(--dp));
}

.hc-text + .brand-bar {
    margin-top: calc(44 * var(--dp));
}

/* 11-2 公司沿革 */
.history-intro__media img {
    display: block;
    width: calc(544 * var(--dp));
}

.history-intro__text {
    padding: calc(47 * var(--dp)) 0 0 calc(73 * var(--dp));
}

.history-intro__lead {
    margin-top: calc(45 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--c-heading);
}

.history-timeline {
    position: relative;
    padding: calc(29 * var(--dp)) 0 calc(94 * var(--dp));
}

/* 建築照片：貼齊視窗右緣 */
.history-timeline__media {
    position: absolute;
    right: 0;
    top: calc(2 * var(--dp));
    width: calc(565 * var(--dp));
    pointer-events: none;
}

.history-timeline__media img {
    display: block;
    width: 100%;
}

.timeline {
    --tl-year-w: calc(325 * var(--dp));
    --tl-dot: max(17px, calc(21 * var(--dp)));
    --tl-year-h: max(36px, calc(54 * var(--dp)));
    position: relative;
    /* 右側讓出建築照：照片貼視窗右緣、寬 565dp，文字欄右界停在照片左緣前。
       說明文字有 15px 下限不會等比縮，沒有這段留白時 1024～1500 寬文字會壓進照片 */
    padding-right: calc(565 * var(--dp) + var(--container) / 2 - 50vw + max(16px, calc(20 * var(--dp))));
}

/* 串連所有圓點的黃色細線（第一點中心 → 最後一點中心） */
.timeline::before {
    content: "";
    position: absolute;
    left: calc(var(--tl-year-w) + 26 * var(--dp) + var(--tl-dot) / 2 - .5px);  /* 對齊整數像素，避免 1px 線被反鋸齒成兩條淡線 */
    top: calc(var(--tl-year-h) / 2);
    bottom: calc(max(30px, calc(48 * var(--dp))) / 2);
    width: 1px;
    background: var(--c-yellow);
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: var(--tl-year-w) var(--tl-dot) minmax(0, 1fr);
    column-gap: calc(26 * var(--dp));
    align-items: start;
}

.timeline__item + .timeline__item {
    margin-top: calc(41.4 * var(--dp));
}

.timeline__item::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    width: var(--tl-dot);
    height: var(--tl-dot);
    margin-top: calc((var(--tl-year-h) - var(--tl-dot)) / 2);
    border: max(4px, calc(6 * var(--dp))) solid var(--c-yellow);
    border-radius: 50%;
    background: #fff;
    position: relative;
    z-index: 1;
}

.timeline__item.is-blue::before {
    border-color: var(--c-blue);
}

.timeline__year {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--ff-en);
    font-size: var(--tl-year-h);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .03em;
    margin-right: calc(-3 * var(--dp));
    text-align: right;
    color: var(--c-yellow);
}

.timeline__item.is-blue .timeline__year {
    color: var(--c-blue);
}

.timeline__body {
    grid-column: 3;
    grid-row: 1;
    padding-top: calc(6 * var(--dp));
}

.timeline__title {
    font-size: max(22px, calc(36 * var(--dp)));
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.2;
    color: var(--c-heading);
}

.timeline__desc {
    margin-top: calc(14 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .1em;
    color: var(--c-text);
}

.timeline__item--tight .timeline__desc {
    margin-top: 0;
}

/* 「至今」：中文字，字級略小並與圓點垂直置中 */
.timeline__item--now {
    --tl-year-h: max(30px, calc(48 * var(--dp)));
}

.timeline__item--now .timeline__year {
    font-family: var(--ff-zh);
    font-weight: 900;
    letter-spacing: .02em;
}

/* 共用：藍底標題列，右側黃色斜切色塊 */
.slant-bar {
    --slant-yellow: calc(324 * var(--dp));
    --slant-run: calc(32 * var(--dp));
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(48px, calc(58 * var(--dp)));
    padding: calc(8 * var(--dp)) calc(var(--slant-yellow) + 12px) calc(8 * var(--dp)) calc(20 * var(--dp));
    background: var(--c-blue);
    font-size: max(18px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    color: #fff;
}

.slant-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--slant-yellow);
    background: var(--c-yellow);
    clip-path: polygon(var(--slant-run) 0, 100% 0, 100% 100%, 0 100%);
}

.slant-bar--center {
    justify-content: center;
    padding-left: calc(var(--slant-yellow) + 12px);
}

.inner-heading--dark {
    color: var(--c-heading);
}

.num-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: max(18px, calc(21 * var(--dp)));
    height: max(18px, calc(21 * var(--dp)));
    margin-right: calc(13 * var(--dp));
    border-radius: 50%;
    background: var(--c-yellow);
    font-family: var(--ff-en);
    font-size: max(11px, calc(14 * var(--dp)));
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

/* 11-3 企業責任 */
.inner-intro--csr {
    padding-bottom: 0;
}

.csr-intro__media img {
    display: block;
    width: calc(589 * var(--dp));
}

.csr-intro__text {
    padding: calc(40 * var(--dp)) 0 0 calc(74 * var(--dp));
}

.csr-bar {
    margin-top: calc(51 * var(--dp));
}

.csr-cards {
    --bs-gutter-x: calc(43 * var(--dp));
    --bs-gutter-y: 32px;
    padding-top: calc(41 * var(--dp));
}

.csr-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 559;
    object-fit: cover;
}

.csr-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(12 * var(--dp));
    padding-bottom: calc(13 * var(--dp));
    border-bottom: 1px solid var(--c-yellow);
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--c-blue);
}

.csr-card__desc {
    margin-top: calc(17 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .075em;
    margin-right: -.075em;
    color: var(--c-text);
}

.csr-video {
    padding: calc(79 * var(--dp)) 0 calc(138 * var(--dp));
}

.csr-video__inner {
    display: flex;
    align-items: flex-start;
    gap: calc(59 * var(--dp));
}

.csr-video__label {
    flex: none;
    width: calc(67 * var(--dp));
    margin-left: calc(-3 * var(--dp));
    margin-top: calc(-3 * var(--dp));
    writing-mode: vertical-rl;
    font-family: var(--ff-en);
    font-size: calc(92.3 * var(--dp));
    font-weight: 800;
    line-height: .72;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: #e4e4e4;
    user-select: none;
}

.csr-video__frame {
    flex: 1 1 auto;
    min-width: 0;
    /* 影片是 16:9；設計稿播放器 1486:773 較寬，沿用的話影片左右會各留一條黑邊 */
    aspect-ratio: 16 / 9;
    background: #000;
}

.csr-video__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.text-yellow {
    color: var(--c-yellow);
}

/* 11-4 未來藍圖 */
.inner-intro--blueprint {
    padding-bottom: calc(83 * var(--dp));
}

.blueprint-pic {
    display: block;
    width: 100%;
    height: auto;
}

.blueprint-intro {
    display: flex;
    align-items: flex-start;
    margin-top: calc(37 * var(--dp));
}

.blueprint-intro__en {
    flex: 0 0 calc(353 * var(--dp));
    font-family: var(--ff-en);
    font-size: max(24px, calc(41 * var(--dp)));
    font-weight: 700;
    line-height: 1.073;
    letter-spacing: -.025em;
    text-align: right;
    color: #565656;
}

.blueprint-intro__text {
    position: relative;
    flex: 0 1 calc(973 * var(--dp));
    margin-left: calc(56 * var(--dp));
    padding-left: calc(58 * var(--dp));
}

/* 中間黃色直線 */
.blueprint-intro__text::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(7 * var(--dp));
    bottom: 0;
    width: 1px;
    background: var(--c-yellow);
}

.stage-list {
    --bs-gutter-x: calc(17 * var(--dp));
    padding-top: calc(58 * var(--dp));
}

.stage-card__bar {
    --stage-top: calc(116 * var(--dp));
    --stage-bottom: calc(92 * var(--dp));
    position: relative;
    display: flex;
    align-items: center;
    height: max(64px, calc(84 * var(--dp)));
    padding-left: calc((var(--stage-top) + var(--stage-bottom)) / 2);
    background: var(--c-blue);
}

/* 左側黃色數字色塊：右緣斜切 */
.stage-card__bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--stage-top);
    background: var(--c-yellow);
    clip-path: polygon(0 0, 100% 0, var(--stage-bottom) 100%, 0 100%);
}

.stage-card__no {
    position: absolute;
    left: calc(26 * var(--dp));
    top: 50%;
    z-index: 1;
    font-family: var(--ff-en);
    font-size: max(34px, calc(54 * var(--dp)));
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
    transform: translateY(-50%);
}

.stage-card__stage {
    flex: 1 1 auto;
    font-size: max(20px, calc(28 * var(--dp)));
    font-weight: 700;
    letter-spacing: .15em;
    text-align: center;
    color: #fff;
}

.stage-card__title {
    margin-top: calc(29 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    text-align: center;
    color: var(--c-blue);
}

.stage-card__desc {
    margin-top: calc(19 * var(--dp));
    padding: 0 calc(25 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .075em;
    color: var(--c-text);
}

.blueprint-outro {
    margin-top: calc(46 * var(--dp));
    padding-top: calc(30 * var(--dp));
    border-top: 1px solid var(--c-blue);
    text-align: center;
}

.blueprint-outro p {
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2.25;
    letter-spacing: .07em;
    color: var(--c-blue);
}

/* 12-1 智慧工廠 */
.inner-intro--factory {
    padding-bottom: calc(54 * var(--dp));
}

.factory-intro__media img {
    display: block;
    width: calc(678 * var(--dp));
    margin-top: calc(-2 * var(--dp));
}

.factory-intro__text {
    padding-left: calc(69 * var(--dp));
}

.factory-intro__text .inner-heading {
    margin-top: calc(-9 * var(--dp));
}

.factory-bar {
    --slant-yellow: calc(394 * var(--dp));
    --slant-run: calc(48 * var(--dp));
    min-height: max(56px, calc(75 * var(--dp)));
    margin-top: calc(58 * var(--dp));
    padding-left: calc(27 * var(--dp));
    flex-wrap: wrap;
    column-gap: calc(22 * var(--dp));
}

.factory-bar__en {
    font-family: var(--ff-en);
    font-weight: 700;
    letter-spacing: .06em;
}

.equipment-list {
    --bs-gutter-x: calc(45 * var(--dp));
    --bs-gutter-y: calc(40 * var(--dp));
    padding-top: calc(37 * var(--dp));
}

.equipment__title {
    display: flex;
    align-items: center;
    gap: calc(29 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    color: var(--c-blue);
}

.equipment__title::before {
    content: "";
    flex: none;
    width: calc(6 * var(--dp));
    min-width: 4px;
    height: calc(24 * var(--dp));
    min-height: 18px;
    background: var(--c-yellow);
}

.equipment__desc {
    margin-top: calc(8 * var(--dp));
    padding-left: calc(1 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .1em;
    color: var(--c-text);
}

.equipment__frame {
    margin-top: calc(16 * var(--dp));
    padding: calc(15 * var(--dp)) calc(19 * var(--dp));
    border: 1px solid var(--c-yellow);
    background: #fff;
}

.equipment__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 596;
    object-fit: cover;
}

.factory-outro {
    padding: calc(75 * var(--dp)) 0 calc(69 * var(--dp));
    background: #f3f3f3 url("../images/02/02-1bg2560.png") center / cover no-repeat;
    text-align: center;
}

.factory-outro__title {
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.71;
    color: var(--c-blue);
}

.factory-outro .hc-text {
    margin-top: calc(11 * var(--dp));
}

/* 12-2 一條龍模式 */
.inner-intro--onestop {
    padding-bottom: calc(46 * var(--dp));
}

.onestop-pic {
    display: block;
    width: 100%;
    height: auto;
}

.onestop-intro {
    display: flex;
    align-items: flex-start;
    margin-top: calc(38 * var(--dp));
}

/* 左側三行藍色標語，右緣黃色直線 */
.onestop-intro__lead {
    flex: 0 0 calc(430 * var(--dp));
    margin-left: calc(-2 * var(--dp));
    border-right: 1px solid var(--c-yellow);
    font-size: max(17px, calc(20 * var(--dp)));
    font-weight: 700;
    line-height: 1.725;
    letter-spacing: .06em;
    color: var(--c-blue);
}

/* 三句各佔一行；拆成區塊讓長句在窄欄各自平衡換行，不留孤字 */
.onestop-intro__lead > span {
    display: block;
    text-wrap: balance;
}

.onestop-intro__text {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: calc(-3 * var(--dp));
    padding-left: calc(81 * var(--dp));
}

.onestop-process {
    min-height: calc(100vw * 1107 / 2560);
    padding: calc(64 * var(--dp)) 0 calc(80 * var(--dp));
    background: #f7f8fa url("../images/02/02-2bg2560.png") center top / 100% auto no-repeat;
}

.onestop-process__sub {
    margin-top: calc(10 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-align: center;
    color: var(--c-heading);
}

.onestop-process .process {
    margin-top: calc(59 * var(--dp));
}

.process__desc {
    width: calc(262 * var(--dp));
    margin-top: calc(22 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .075em;
    /* 設計稿每行剛好排滿全形字，靠左與左右對齊在 1920 外觀相同；
       字級有 15px 下限、欄寬照比例縮，若用 justify 在筆電寬度會把字距撐開 */
    text-align: left;
    color: var(--c-text);
}

.onestop-outro {
    padding: calc(42 * var(--dp)) 0 calc(45 * var(--dp));
    text-align: center;
}

.onestop-outro p {
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2.28;
    letter-spacing: .07em;
    color: var(--c-blue);
}

/* 13 服務項目內頁 */
.inner-intro--service {
    padding-bottom: calc(58 * var(--dp));
}

.service-block + .service-block {
    margin-top: calc(35 * var(--dp));
    padding-top: calc(45 * var(--dp));
    border-top: 1px solid var(--c-line);
}

.service-block__pic {
    display: block;
    width: 100%;
    height: auto;
}

.service-block__bar {
    --slant-yellow: calc(345 * var(--dp));
    --slant-run: calc(41 * var(--dp));
    min-height: max(52px, calc(69 * var(--dp)));
    margin-top: calc(20 * var(--dp));
    padding-left: calc(22 * var(--dp));
    font-size: max(20px, calc(30 * var(--dp)));
    letter-spacing: .08em;
}

.service-block__no {
    margin-right: .4em;
}

.service-block__title {
    margin-top: calc(21 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--c-heading);
}

.service-block__text {
    margin-top: calc(8 * var(--dp));
}

.service-block__bar + .service-block__text {
    margin-top: calc(19 * var(--dp));
}

/* ｜服務內容｜：文字兩側黃色細直線 */
.service-block__list-title {
    display: inline-flex;
    align-items: center;
    gap: calc(11 * var(--dp));
    margin-top: calc(51 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.15;
    color: var(--c-yellow);
}

.service-block__list-title::before,
.service-block__list-title::after {
    content: "";
    width: 2px;
    height: calc(27 * var(--dp));
    min-height: 20px;
    background: currentColor;
}

.service-block__list {
    margin-top: calc(1 * var(--dp));
}

.service-block__list li {
    position: relative;
    padding-left: calc(18 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2.25;
    letter-spacing: .075em;
    color: var(--c-text);
}

.service-block__list li::before {
    content: "";
    position: absolute;
    left: calc(4 * var(--dp));
    top: calc(1.125em - 2px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-yellow);
}

.service-outro {
    padding: calc(76 * var(--dp)) 0 calc(78 * var(--dp));
    background: linear-gradient(90deg, #fbf4e5 0%, #f5f5f5 100%);
    text-align: center;
}

.service-outro__en {
    font-family: var(--ff-en);
    font-size: max(26px, calc(41 * var(--dp)));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--c-yellow);
}

.service-outro__title {
    margin-top: calc(27 * var(--dp));
    font-size: max(18px, calc(22 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    color: var(--c-blue);
}

.service-outro .hc-text {
    margin-top: calc(12 * var(--dp));
}

.service-outro .hc-text p {
    line-height: 2.33;
}

.service-outro .hc-text p + p {
    margin-top: 0;
}

/* 綁紮、運輸兩頁設計稿的段落行距較寬 */
[data-page="rebar-binding"] .service-outro .hc-text p,
[data-page="rebar-transport"] .service-outro .hc-text p {
    line-height: 2.55;
}

/* 各服務頁設計稿的區塊間距略有不同，依稿個別微調 */
[data-page="rebar-binding"] .service-outro,
[data-page="rebar-transport"] .service-outro {
    padding-bottom: calc(68 * var(--dp));
}

[data-page="rebar-binding"] .inner-intro--service {
    padding-bottom: calc(66 * var(--dp));
}

[data-page="rebar-transport"] .inner-intro--service {
    padding-bottom: calc(72 * var(--dp));
}

/* 14 工程實績 */
.inner-intro--projects {
    padding-bottom: calc(112 * var(--dp));
}

.project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(13.5 * var(--dp));
    margin-top: calc(45 * var(--dp));
}

.project-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max(96px, calc(129 * var(--dp)));
    height: max(36px, calc(39 * var(--dp)));
    padding: 0;
    border: 1px solid var(--c-blue);
    background: #fff;
    font-size: max(15px, calc(18 * var(--dp)));
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--c-blue);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.project-filter__btn:hover,
.project-filter__btn:focus-visible,
.project-filter__btn.is-active {
    border-color: var(--c-yellow);
    background: var(--c-yellow);
    color: #fff;
}

.project-count {
    margin-top: calc(17 * var(--dp));
    font-size: max(14px, calc(16 * var(--dp)));
    letter-spacing: .06em;
    line-height: 1.5;
    text-align: right;
    color: var(--c-blue);
}

.project-grid {
    --bs-gutter-x: calc(43 * var(--dp));
    --bs-gutter-y: calc(34 * var(--dp));
    padding-top: calc(31 * var(--dp));
}

.project-grid .project-card__meta {
    margin-top: calc(30 * var(--dp));
}

.project-grid > .is-hidden {
    display: none;
}

.project-detail__title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: max(52px, calc(63 * var(--dp)));
    margin-top: calc(65 * var(--dp));
    padding: 8px 16px;
    background: var(--c-gray-bg);
    font-size: max(20px, calc(28 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-align: center;
    color: var(--c-heading);
}

.project-detail__pic {
    display: block;
    width: calc(890 * var(--dp));
    height: auto;
    margin-top: calc(41 * var(--dp));
}

.project-detail__body {
    margin-top: calc(27 * var(--dp));
}

/* 編輯器內文圖片：設計稿沒有，只確保不撐破版面；桌機與內頁主圖同寬上限 */
.project-detail__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

@media (min-width: 992px) {
    .project-detail__body img {
        max-width: calc(890 * var(--dp));
    }
}

.project-detail__body > h3 {
    font-size: max(15px, calc(18 * var(--dp)));
    font-weight: 500;
    line-height: 2;
    letter-spacing: .08em;
    color: var(--c-blue);
}

.project-detail__body > p {
    margin-top: calc(5 * var(--dp));
    font-size: max(15px, calc(18 * var(--dp)));
    line-height: 2;
    letter-spacing: .095em;
    color: var(--c-text);
}

.project-detail__body > p + h3 {
    margin-top: calc(45 * var(--dp));
}

.project-detail__foot {
    margin-top: calc(46 * var(--dp));
    padding-top: calc(46 * var(--dp));
    border-top: 1px solid var(--c-gray);
    text-align: center;
}

.project-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(26 * var(--dp));
    width: max(140px, calc(154 * var(--dp)));
    height: max(36px, calc(37 * var(--dp)));
    background: #1370cf;  /* 色碼標示：返回列表按鈕 #1370cf（與觀看詳情的 #1370ce 不同） */
    font-size: max(15px, calc(18 * var(--dp)));
    letter-spacing: .1em;
    color: #fff;
    transition: background-color .2s ease;
}

.project-back:hover,
.project-back:focus-visible {
    background: #0d5aa8;
    color: #fff;
}

.project-back i {
    font-size: .8em;
}

.inner-intro--project-detail {
    padding-bottom: calc(69 * var(--dp));
}

/* 15 合作夥伴 */
.inner-intro--partners {
    padding-bottom: calc(76 * var(--dp));
}

.partners-intro,
.inner-body {
    padding-top: calc(45 * var(--dp));
}

.partners-intro__media img {
    display: block;
    width: calc(760 * var(--dp));
}

.partners-intro__text {
    padding-left: calc(68 * var(--dp));
}

/* 英文標語（TOGETHER, WE BUILD BETTER. / STRONGER STEEL, GREENER FUTURE.） */
.display-en {
    margin-top: calc(-10 * var(--dp));
    font-family: var(--ff-en);
    font-size: max(24px, calc(40 * var(--dp)));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: #565656;
}

.partners-intro__text .inner-heading {
    margin-top: calc(21 * var(--dp));
}

.partners-intro__text .hc-text {
    margin-top: calc(27 * var(--dp));
}

.partners-list {
    position: relative;
    padding: calc(52 * var(--dp)) 0 calc(51 * var(--dp));
    background: #fcf8f0;
}

/* 上緣黃色粗線：限寬於內容區 */
.partners-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(var(--container), 100% - 32px);
    height: calc(12 * var(--dp));
    min-height: 6px;
    background: var(--c-yellow);
    transform: translateX(-50%);
}

.partners-list__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(14 * var(--dp));
    font-size: max(18px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    color: var(--c-heading);
}

.partners-list__title img {
    width: calc(48 * var(--dp));
    min-width: 34px;
}

.partners-list__title em {
    font-size: 1.25em;
    font-style: normal;
}

.partners-list__en {
    margin-top: calc(6 * var(--dp));
    font-size: max(13px, calc(18 * var(--dp)));
    font-weight: 500;
    letter-spacing: .1em;
    text-align: center;
    color: var(--c-heading);
}

.partner-grid--full {
    padding-top: calc(54 * var(--dp));
    --bs-gutter-y: calc(20.5 * var(--dp));
}

/* 16 永續發展 */
.inner-intro--esg {
    padding-bottom: calc(90 * var(--dp));
}

.esg-cards {
    --bs-gutter-x: calc(49 * var(--dp));
    --bs-gutter-y: 40px;
    padding-top: calc(65 * var(--dp));
}

/* 卡片：藍色細框 + 往左下錯位的淡灰色塊 */
.esg-card {
    height: 100%;
    padding: 0 calc(14 * var(--dp)) calc(40 * var(--dp));
    border: 1px solid var(--c-blue);
    background: #fff;
    box-shadow: calc(-6 * var(--dp)) calc(9 * var(--dp)) 0 rgba(230, 230, 230, .75);
}

.esg-card__letter {
    margin-top: calc(36 * var(--dp));
    font-family: var(--ff-en);
    font-size: max(48px, calc(67 * var(--dp)));
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: var(--c-blue);
}

.esg-card__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(12 * var(--dp));
    min-height: max(48px, calc(60 * var(--dp)));
    margin-top: calc(29 * var(--dp));
    background: var(--c-blue);
    font-size: max(18px, calc(26 * var(--dp)));
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
}

.esg-card__en {
    font-family: var(--ff-en);
    font-size: max(20px, calc(29 * var(--dp)));
    font-weight: 800;
    letter-spacing: .04em;
}

.esg-card__body {
    padding: 0 calc(39 * var(--dp));
}

.esg-card__sub {
    margin-top: calc(21 * var(--dp));
    font-size: max(17px, calc(20 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    color: var(--c-heading);
}

.esg-card .hc-text {
    margin-top: calc(9 * var(--dp));
}

/* 17 公益計畫 */
.inner-intro--charity {
    padding-bottom: calc(112 * var(--dp));
}

.charity-lead {
    margin-top: calc(39 * var(--dp));
    font-size: max(19px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-align: center;
    color: var(--c-heading);
}

.charity-collage {
    display: block;
    width: 100%;
    height: auto;
    margin-top: calc(40 * var(--dp));
}

.charity-body {
    display: flex;
    align-items: flex-start;
    margin-top: calc(85 * var(--dp));
}

.charity-body__lead {
    flex: 0 0 calc(633 * var(--dp));
    padding-right: calc(65 * var(--dp));
    border-right: 1px solid var(--c-yellow);
    text-align: right;
}

.charity-body__en {
    font-family: var(--ff-en);
    font-size: max(30px, calc(54 * var(--dp)));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.005em;
    color: var(--c-blue);
}

.charity-body__title {
    margin-top: calc(47 * var(--dp));
    font-size: max(18px, calc(24 * var(--dp)));
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.9;
    color: var(--c-blue);
}

/* 設計稿兩句各佔一行；拆成兩個區塊讓每句各自平衡換行（<br> 會讓 text-wrap: balance 失效） */
.charity-body__title > span {
    display: block;
    text-wrap: balance;
}

.charity-body__text {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: calc(-9 * var(--dp));
    padding-left: calc(63 * var(--dp));
}

/* 18 聯絡我們 */
.inner-intro--contact {
    padding-bottom: calc(62 * var(--dp));
}

.contact-pic {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1604 / 383;
    object-fit: cover;
}

.contact-intro {
    display: flex;
    align-items: flex-start;
    margin-top: calc(28 * var(--dp));
}

.contact-intro__en {
    flex: 0 0 calc(697 * var(--dp));
    margin-top: calc(-20 * var(--dp));
    position: relative;
    left: calc(-10 * var(--dp));
    font-family: var(--ff-en);
    font-size: max(60px, calc(146 * var(--dp)));
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
    color: #efefef;
    user-select: none;
}

.contact-intro__text {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: calc(-3 * var(--dp));
}

.contact-offices {
    --bs-gutter-x: calc(66 * var(--dp));
    --bs-gutter-y: 40px;
    padding-top: calc(44 * var(--dp));
}

.office-bar--light {
    background: var(--c-blue);
    color: #fff;
}

.office-info--dark {
    color: var(--c-text);
    margin-top: calc(9 * var(--dp));
}

.office-info--dark li {
    padding-left: calc(1 * var(--dp));
}

.office-info--dark a:hover {
    color: var(--c-blue);
}

.contact-map {
    margin-top: calc(16 * var(--dp));
    aspect-ratio: 770 / 333;
    background: #eef0f2;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   19. RWD
   設計稿只有 1920 桌機版與手機選單稿；以下為各斷點的版面重排。
   斷點沿用 Bootstrap：1199.98 / 991.98 / 767.98 / 575.98。
   ========================================================================== */

/* 背景素材多斷點換圖（只換 background-image，保留 base 的 size / position） */
@media (max-width: 1440px) {
    .home-about { background-image: url("../images/00-hp/ab_bg1440.png"); }
    .home-services { background-image: url("../images/00-hp/ser_bg1440.png"); }
    .home-projects { background-image: url("../images/00-hp/pro_bg1440.png"); }
    .home-partners { background-image: url("../images/00-hp/parner_bg1440.png"); }
    .profile-core { background-image: url("../images/01/01bg1440.png"); }
    .factory-outro { background-image: url("../images/02/02-1bg1440.png"); }
    .onestop-process { background-image: url("../images/02/02-2bg1440.png"); }
}

@media (max-width: 1024px) {
    .home-about { background-image: url("../images/00-hp/ab_bg1024.png"); }
    .home-services { background-image: url("../images/00-hp/ser_bg1024.png"); }
    .home-projects { background-image: url("../images/00-hp/pro_bg1024.png"); }
    .home-partners { background-image: url("../images/00-hp/parner_bg1024.png"); }
    .profile-core { background-image: url("../images/01/01bg1024.png"); }
    .factory-outro { background-image: url("../images/02/02-1bg1024.png"); }
    .onestop-process { background-image: url("../images/02/02-2bg1024.png"); }
}

@media (max-width: 768px) {
    .home-about { background-image: url("../images/00-hp/ab_bg768.png"); }
    .home-services { background-image: url("../images/00-hp/ser_bg768.png"); }
    .home-projects { background-image: url("../images/00-hp/pro_bg768.png"); }
    .home-partners { background-image: url("../images/00-hp/parner_bg768.png"); }
    .profile-core { background-image: url("../images/01/01bg768.png"); }
    .factory-outro { background-image: url("../images/02/02-1bg768.png"); }
    .onestop-process { background-image: url("../images/02/02-2bg768.png"); }
}

/* 工程實績左下藍三角形要接合作夥伴區的底色。768 以下改用方形背景圖，
   頂端實際顯示約 #2a5296，比橫式圖（約 #1c4286）亮，沿用 #1c4085 會比旁邊深一截；
   #345091 是業主 v2 指定色 */
@media (max-width: 768px) {
    .home-projects::after { background: #345091; }
}

@media (max-width: 640px) {
    .home-about { background-image: url("../images/00-hp/ab_bg640.png"); }
    .home-services { background-image: url("../images/00-hp/ser_bg640.png"); }
    .home-projects { background-image: url("../images/00-hp/pro_bg640.png"); }
    .home-partners { background-image: url("../images/00-hp/parner_bg640.png"); }
    .profile-core { background-image: url("../images/01/01bg640.png"); }
    .factory-outro { background-image: url("../images/02/02-1bg640.png"); }
    .onestop-process { background-image: url("../images/02/02-2bg320.png"); }
}

/* 核心優勢在 991 以下就改成上下堆疊（直式區塊），769～991 也要用直式素材；
   沿用 1024 橫式素材的話，cover 會把它放大近 3 倍，只剩一塊模糊的局部 */
@media (min-width: 769px) and (max-width: 991.98px) {
    .profile-core { background-image: url("../images/01/01bg768.png"); }
}

/* 2560 等超寬螢幕：版面維持 1920 尺寸置中，背景改用 2560 素材（base 已是 2560） */

/* ---------- ≤1199：導覽改漢堡選單 ---------- */
@media (max-width: 1199.98px) {
    .home-services__body {
        padding-right: max(24px, var(--side));
    }

    .service-item {
        padding-right: calc(40 * var(--dp));
    }
}

/* ---------- ≤991：雙欄改單欄 ---------- */
@media (max-width: 991.98px) {
    /* 依 dp 縮放的固定寬圖片，單欄時改滿版（保留原始最大寬） */
    .home-about__media img,
    .profile-intro__media img,
    .profile-core__media img,
    .profile-brand__media img,
    .history-intro__media img,
    .csr-intro__media img,
    .factory-intro__media img,
    .partners-intro__media img,
    .project-detail__pic {
        width: 100%;
    }

    .home-about__text {
        max-width: none;
    }

    .home-about__media {
        justify-content: center;
    }

    .home-about__media img {
        max-width: 695px;
    }

    .home-features {
        margin-bottom: 32px;
    }

    /* 服務項目：照片在上、清單在下 */
    .home-services {
        flex-direction: column;
        min-height: 0;
    }

    .home-services__media {
        flex: none;
        aspect-ratio: 888 / 560;
    }

    .home-services__body {
        padding: 40px max(24px, var(--side)) 32px;
    }

    .service-list {
        margin-top: 20px;
    }

    .service-item {
        padding: 20px 20px 18px;
    }

    .service-item__desc {
        margin-top: 10px;
    }

    /* 一條龍：5 個圓改為換行排列，箭頭只在單列時有意義，故隱藏 */
    .process {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 36px;
        margin-top: 40px;
    }

    .process__item {
        width: 33.333%;
        padding: 0 12px;
    }

    .process__item + .process__item::before {
        display: none;
    }

    .process__circle {
        width: min(200px, 100%);
        border-width: 8px;
        box-shadow: 0 10px 14px rgba(255, 191, 67, .66);
    }

    .process__circle img {
        width: 46%;
    }

    .process__circle img[width="180"] {
        width: 64%;
    }

    .process__title {
        margin-top: 20px;
    }

    .process__desc {
        width: auto;
        max-width: 280px;
        margin-top: 12px;
    }

    .home-process__subtitle {
        margin-top: 40px;
    }

    .home-process .hc-btn {
        margin-top: 24px;
    }

    .home-projects .hc-btn,
    .home-partners .hc-btn {
        margin-top: 36px;
    }

    .partner-card {
        min-height: max(76px, calc(110 * var(--dp)));
        border-width: 6px;
        outline-offset: -7px;
    }

    /* 內頁：左側子選單改為內容上方的橫向選單 */
    .inner-layout {
        display: block;
        margin-top: 28px;
    }

    .side-nav {
        margin: 0 0 28px;
        padding-right: 0;
    }

    .side-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
    }

    .side-nav ul::before {
        display: none;
    }

    .side-nav li {
        height: auto;
    }

    .side-nav a {
        margin-left: 8px;
    }

    .profile-intro__text,
    .history-intro__text,
    .csr-intro__text,
    .factory-intro__text,
    .partners-intro__text,
    .profile-brand__text {
        padding-left: 0;
        padding-top: 0;
    }

    .profile-intro__text .inner-heading,
    .factory-intro__text .inner-heading {
        margin-top: 0;
    }

    /* 上下堆疊後區塊變直式，改用直式素材：鋼構圖案在素材底部，所以貼齊底部（尺寸沿用 cover 蓋滿） */
    .profile-core {
        min-height: 0;
        background-position: center bottom;
        padding: 48px 0;
    }

    .profile-core__title {
        margin-bottom: 36px;
    }

    .core-list {
        gap: 32px;
    }

    .profile-core__media {
        padding-left: 0;
    }

    .profile-core__media img {
        max-width: 616px;
        margin-inline: auto;
    }

    .profile-brand {
        padding: 48px 0;
    }

    .history-intro__media img {
        max-width: 544px;
    }

    .history-intro__lead {
        margin-top: 24px;
    }

    .history-timeline {
        padding-top: 32px;
    }

    /* 年表旁的建築照：改為一般排版（父層 column-reverse，照片顯示在年表上方），不再絕對定位壓在文字旁；
       下緣要留距離，否則第一筆年份會貼著照片 */
    .history-timeline__media {
        position: static;
        order: 2;
        width: 100%;
        margin-top: 36px;
        margin-bottom: 32px;
    }

    .history-timeline {
        display: flex;
        flex-direction: column-reverse;
    }

    /* 照片已移到年表下方，不需再讓出右側 */
    .timeline {
        padding-right: 0;
    }

    .history-timeline__media img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
    }

    .csr-bar {
        margin-top: 36px;
    }

    .csr-video__inner {
        gap: 16px;
    }

    .blueprint-intro,
    .onestop-intro,
    .charity-body,
    .contact-intro {
        flex-direction: column;
    }

    .blueprint-intro__en {
        flex: none;
        text-align: left;
    }

    .blueprint-intro__text {
        flex: none;
        margin: 20px 0 0;
        padding-left: 20px;
    }

    .stage-list {
        padding-top: 36px;
    }

    .stage-card__bar {
        --stage-top: max(76px, calc(116 * var(--dp)));
        --stage-bottom: max(60px, calc(92 * var(--dp)));
    }

    .stage-card__no {
        left: 14px;
    }

    .factory-bar,
    .service-block__bar,
    .slant-bar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .onestop-intro__lead {
        flex: none;
        width: 100%;
        margin: 0;
        padding-bottom: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--c-yellow);
    }

    .onestop-intro__text {
        margin-top: 16px;
        padding-left: 0;
    }

    .onestop-process {
        min-height: 0;
        background-size: cover;
        padding: 48px 0;
    }

    .charity-body__lead {
        flex: none;
        width: 100%;
        padding: 0 0 20px;
        border-right: 0;
        border-bottom: 1px solid var(--c-yellow);
        text-align: left;
    }

    .charity-body__title {
        margin-top: 16px;
    }

    .charity-body__text {
        margin-top: 20px;
        padding-left: 0;
    }

    .contact-intro__en {
        flex: none;
        left: 0;
        margin-top: 0;
        font-size: clamp(56px, 14vw, 120px);
    }

    /* 原本用負邊界讓標題壓在 FIND US 底部，手機上看起來黏在一起，改為正距離 */
    .contact-intro__text {
        margin-top: 12px;
        position: relative;
    }

    .project-detail__pic {
        max-width: 890px;
    }

    .site-footer__nav {
        display: none !important;  /* 平板以下 footer 不重複列出完整導覽（已有漢堡選單） */
    }
}

/* ---------- ≤767：手機版 ---------- */
@media (max-width: 767.98px) {
    /* 首頁英文標語：改為 banner 下方一般排版，梯形縮到右上角避免壓字 */
    .hero__tail {
        height: auto;
        padding: 14px 0 6px var(--side);
    }

    .hero__slogan {
        position: static;
        font-size: min(5.6vw, 32px);
        white-space: normal;
    }

    .hero__tail-shape {
        width: 30%;
        height: 42%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
    }

    .home-about {
        padding: 36px 0 48px;
        background-size: cover;
    }

    .home-services__media {
        aspect-ratio: 888 / 640;
    }

    .home-process {
        padding: 48px 0;
    }

    .home-projects {
        padding: 40px 0 48px;
    }

    .home-projects__inner {
        padding-left: 12px;
    }

    .home-projects__strip span {
        font-size: 18px;
        left: calc(var(--side) * .5 - 9px);
        top: 40px;
    }

    .sec-head__row {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .home-partners {
        padding: 48px 0;
    }

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

    /* 永續 / 公益：改為上下堆疊滿版（圖檔改用 768／320 構圖） */
    .home-links {
        flex-direction: column;
    }

    .home-link__text,
    .home-link--charity .home-link__text {
        left: max(24px, var(--side));
        top: 50%;
        transform: translateY(-50%);
    }

    .home-link__arrow,
    .home-link--charity .home-link__arrow {
        right: max(24px, var(--side));
        top: 50%;
        width: 56px;
        transform: translateY(-50%);
    }

    .site-footer__brand {
        padding: 24px 0;
    }

    .site-footer__main {
        padding: 32px 0 20px;
    }

    .site-footer__copy {
        display: block;
        margin-top: 28px;
        padding-top: 20px;
        line-height: 1.8;
    }

    .site-footer__copy img {
        display: inline-block;
        vertical-align: -3px;
        margin-right: 4px;
    }

    .inner-intro {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .hc-text .hc-text__gap {
        margin-top: 20px;
    }

    .timeline {
        --tl-year-w: 74px;
        --tl-dot: 16px;
        --tl-year-h: 28px;
    }

    .timeline__item {
        column-gap: 12px;
    }

    .timeline::before {
        left: calc(var(--tl-year-w) + 12px + var(--tl-dot) / 2 - .5px);
    }

    .timeline__item + .timeline__item {
        margin-top: 28px;
    }

    .timeline__item::before {
        border-width: 4px;
    }

    .timeline__title {
        font-size: 22px;
    }

    .timeline__desc {
        margin-top: 6px;
        line-height: 1.8;
    }

    .timeline__item--now {
        --tl-year-h: 24px;
    }

    .csr-cards,
    .esg-cards {
        --bs-gutter-y: 32px;
    }

    .csr-video {
        padding: 40px 0 48px;
    }

    .csr-video__label {
        display: none;
    }

    .stage-card__bar {
        height: 64px;
    }

    .blueprint-outro {
        margin-top: 32px;
        text-align: left;
    }

    .blueprint-outro p,
    .factory-outro .hc-text p,
    .service-outro .hc-text p,
    [data-page] .service-outro .hc-text p {
        line-height: 1.9;
    }

    /* 只拿掉內文依桌機行長加的 <br>；標題的 <br> 是兩句之間的語意斷句，拿掉會黏成一句 */
    .blueprint-outro br,
    .factory-outro p br,
    .service-outro br {
        display: none;
    }

    .factory-outro {
        padding: 40px 0;
    }

    .factory-bar {
        min-height: 0;
    }

    .equipment-list {
        --bs-gutter-y: 32px;
        padding-top: 28px;
    }

    .service-block + .service-block {
        margin-top: 28px;
        padding-top: 32px;
    }

    .service-block__list-title {
        margin-top: 28px;
    }

    .service-outro {
        padding: 40px 0 44px;
    }

    .service-outro__en {
        font-size: min(6.2vw, 26px);
    }

    .service-outro__title {
        margin-top: 14px;
    }

    .onestop-outro {
        padding: 32px 0;
    }

    .onestop-outro p {
        line-height: 1.9;
    }

    .project-detail__title {
        margin-top: 28px;
    }

    .project-detail__body > p + h3 {
        margin-top: 24px;
    }

    .esg-card {
        box-shadow: -4px 6px 0 rgba(230, 230, 230, .75);
    }

    .partners-list {
        padding: 36px 0;
    }

    .partner-grid--full {
        padding-top: 28px;
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .contact-offices {
        padding-top: 28px;
    }

    /* 以下間距原本都寫成 n × --dp（設計稿 px 等比縮放），手機寬度 --dp 只剩約 0.2px，
       24dp 會縮成 5px 上下，標題、分隔線、清單圓點都黏在一起；手機改用固定 px */

    /* 標題與分隔線（首頁區塊標題、內頁頁面標題、核心優勢／一條龍的底線標題） */
    .sec-head__line {
        margin-top: 14px;
    }

    .home-about__subtitle {
        margin-top: 18px;
    }

    .page-title__zh {
        padding-bottom: 16px;
    }

    .underline-title {
        padding-bottom: 10px;
    }

    /* 首頁合作夥伴：標題與卡片 */
    .home-partners .partner-grid {
        padding-top: 24px;
    }

    /* 首頁四個特色：圖示圓圈與文字（19dp 在 390 寬只剩約 4px） */
    .home-feature {
        gap: 16px;
    }

    /* 服務內容清單：圓點 4px 寬，文字縮排需大於圓點右緣才有空隙 */
    .service-block__list li {
        padding-left: 16px;
    }

    .service-block__list li::before {
        left: 3px;
    }

    /* 合作夥伴頁標語：盾牌移到文字上方置中，文字獨佔整行。
       整句約 18em 寬（12 字＋4 個放大 1.25 倍的字，含字距），容器約 92vw，
       字級取 4.5vw（約 81vw 寬）才能一行放得下，320px 寬實測 259／299px；大於 400px 寬時回到 18px */
    .partners-list__title {
        flex-direction: column;
        gap: 10px;
        font-size: min(18px, 4.5vw);
    }

    .partners-list__title span {
        white-space: nowrap;
    }

    /* 聯絡我們：據點標題列 → 資訊 → 地圖 */
    .office-info--dark {
        margin-top: 10px;
    }

    .contact-map {
        margin-top: 14px;
    }
}

/* ---------- ≤575：小手機 ---------- */
@media (max-width: 575.98px) {
    /* 手機 header：高約 20vw、logo 約 63vw（依手機版選單稿量測） */
    :root {
        --hh-top: clamp(60px, 20vw, 97px);
    }

    .site-header__top {
        padding-left: 3vw;
        padding-right: 2vw;
    }

    .site-header__logo {
        width: min(63vw, 330px);
    }

    /* 手機 banner 改直式素材 640×736，標語沿用桌機的靠右對齊 */
    .hero {
        --banner-r: .8696;
        --strip-p: 35.4%;
    }

    .hero__scroll {
        left: calc(var(--side) * .5);
        top: calc(var(--strip-p) + 20px);
    }

    .hero__scroll-text {
        font-size: 16px;
    }

    .hero__caption {
        bottom: 6%;
        font-size: 5vw;
        letter-spacing: .06em;
    }

    /* 單欄後四項上下相鄰，18dp 的列距在手機只剩 3–4px，圖示圓圈會貼在一起 */
    .home-features {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .process__item {
        width: 50%;
        padding: 0 6px;
    }

    .process__title {
        font-size: 16px;
        -webkit-text-stroke-width: 4px;
    }

    /* 一條龍頁（含說明）：單欄，圓與圓之間顯示向下箭頭 */
    .process--desc .process__item {
        width: 100%;
    }

    .process--desc .process__item + .process__item {
        padding-top: 40px;
    }

    /* 箭頭要落在「上一段文字底」與「下一個圓頂」正中間（兩者相距＝列距 36px＋本項 padding-top 40px，
       再加上一段最後一行的行高留白）。箭頭旋轉後可見高度 18px，實測 top -12px 時上下各約 31px，會略為伸進列距 */
    .process--desc .process__item + .process__item::before {
        display: block;
        top: -12px;
        right: auto;
        left: calc(50% - 9px);
        width: 18px;
        height: 24px;
        transform: rotate(90deg);
    }

    .process--desc .process__circle {
        width: 170px;
    }

    .process--desc .process__desc {
        max-width: 320px;
    }

    .partner-grid--full > li {
        width: 50%;
    }

    .partner-grid--full .partner-card {
        min-height: 68px;
        padding: 6px 8px;
        font-size: 14px;
        letter-spacing: .02em;
    }

    .slant-bar {
        --slant-yellow: 48px;
        --slant-run: 14px;
    }

    .slant-bar--center {
        padding-left: 16px;
    }

    .stage-card__bar {
        --stage-top: 80px;
        --stage-bottom: 62px;
    }

    .project-filter__btn {
        width: auto;
        min-width: 84px;
        padding: 0 14px;
    }

    .home-link__zh {
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    /* 子選單：兩欄網格，4 項時排成 2×2，各項左緣對齊 */
    .side-nav ul {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 10px 32px;
    }

    .core-item {
        align-items: flex-start;
        gap: 16px;
    }

    .core-item__badge {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
    }

    .core-item__badge img {
        width: 38px;
        min-width: 0;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    /* 平板：兩個據點並排，中間留白 */
    .site-footer__office + .site-footer__office {
        padding-left: 32px;
    }
}

@media (max-width: 1199.98px) {
    .icon-badge {
        min-width: 72px;
        min-height: 72px;
    }

    .icon-badge img {
        min-width: 34px;
    }
}

@media (max-width: 767.98px) {
    .blueprint-intro {
        margin-top: 24px;
    }
}

@media (max-width: 575.98px) {
    .slant-bar {
        font-size: 16px;
        letter-spacing: .04em;
    }
}

/* 標題與夥伴名稱換行時平均分配，避免單字落到下一行 */
.home-process__title,
.home-process__subtitle,
.service-item__title,
.underline-title,
.page-title__zh,
.inner-heading,
.charity-lead,
.project-card__title,
.service-block__title,
.stage-card__title,
.esg-card__sub,
.core-item__sub,
.home-partners__desc,
.partner-card,
.timeline__title,
.office-info li > span,
.office-info li > a {
    text-wrap: balance;
}

/* 手機上這幾類長句標題平衡換行後兩行等長，第一行右側留一大截空白；
   業主要求第一行排滿再換行（2026-11-02）。必須寫在上面那組規則之後才蓋得掉 */
@media (max-width: 767.98px) {
    .inner-heading,
    .charity-lead,
    .core-item__sub {
        text-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .partner-grid--full .partner-card {
        font-size: 13px;
        letter-spacing: 0;
    }
}

@media (max-width: 575.98px) {
    .service-item__title {
        font-size: clamp(22px, 7vw, 28px);
    }
}

@media (max-width: 991.98px) {
    .contact-offices {
        --bs-gutter-x: 24px;
    }

    .contact-map {
        aspect-ratio: 4 / 3;
    }
}

/* ===== 進場動畫（AOS）防跑版 =====
   1. 位移縮成 40px：AOS 預設 100px，對企業站來說跳得太大
   2. 播完清掉 transform：AOS 原本留著 translateZ(0)，元素會一直自成圖層，
      穿越設計（跨區塊重疊的圖片、色塊）的 z-index 疊放順序就會跟著改變。
      選擇器要比 aos.css 的 [data-aos^=fade][data-aos^=fade].aos-animate 更具體才蓋得掉
   3. AOS 載入失敗（html.no-aos）時強制顯示：aos.css 已先把元素藏起來，不補救內容會一直看不見 */
[data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
}

html [data-aos^="fade"][data-aos^="fade"].aos-animate {
    transform: none;
}

html.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
