/**
 * 服務項目／品牌介紹頁 Figma（node 26:2）
 */

body.layercloud-figma-services .site-header > .container {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

body.layercloud-figma-services .site-header {
    position: static;
    height: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

body.layercloud-figma-services .site-footer {
    display: none !important;
}

body.layercloud-figma-services .main-content {
    padding-top: 0 !important;
}

body.layercloud-figma-services .mobile-nav {
    top: 83px;
    z-index: 600;
}

@media (max-width: 1023px) {
    body.layercloud-figma-services .mobile-nav {
        top: 56px;
    }
}

.figma-services-page {
    --figma-blue: #0059ca;
    --figma-text: #333333;
    --figma-text-soft: #666666;
    --figma-bg-soft: #f6f4f3;
    --figma-max: 1200px;
    --font-zh: "Noto Sans TC", "Inter", sans-serif;
    --font-ui: "Arial", "Noto Sans TC", sans-serif;
    background: #ffffff;
    color: var(--figma-text);
    font-family: var(--font-zh);
    position: relative;
    overflow-x: hidden;
}

/* 與首頁共用頂欄／選單鈕 */
.figma-services-page .figma-home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: 83px;
    background: #ffffff;
    box-shadow: 0 4px 13.7px rgba(0, 0, 0, 0.25);
}

.figma-services-page .figma-home-header__inner {
    max-width: var(--figma-max);
    margin: 0 auto;
    padding: 0 26px;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.figma-services-page .figma-home-header__brand {
    display: flex;
    align-items: center;
    gap: 15.478px;
    text-decoration: none;
    color: inherit;
    grid-column: 2;
    justify-self: center;
}

.figma-services-page .figma-home-header__icon {
    width: 28px;
    height: 36px;
}

.figma-services-page .figma-home-header__logotype {
    width: 120px;
    height: auto;
}

.figma-services-page .figma-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
}

@media (min-width: 1024px) {
    .figma-services-page .figma-menu-toggle {
        margin-right: -14px;
    }
}

.figma-services-page__main {
    padding-top: 83px;
}

@media (max-width: 1023px) {
    .figma-services-page .figma-home-header {
        height: 56px;
    }

    .figma-services-page .figma-home-header__inner {
        padding: 0 8px;
    }

    .figma-services-page .figma-home-header__icon {
        width: 16.8px;
        height: 21.6px;
    }

    .figma-services-page .figma-home-header__logotype {
        width: 72px;
    }

    .figma-services-page__main {
        padding-top: 56px;
    }
}

/* Hero — 桌面主視覺 Figma 146:427；設計稿 1200×579，寬度 100% 時以 aspect-ratio 等比例縮放高度 */
.figma-svc-hero {
    position: relative;
    width: 100%;
    max-width: var(--figma-max);
    margin: 0 auto;
    aspect-ratio: 1200 / 579;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.figma-svc-hero__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.figma-svc-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.figma-svc-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.figma-svc-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.figma-svc-hero__text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    font-size: clamp(18px, 3vw, 30px);
    letter-spacing: 8.4px;
    text-shadow: 0 4px 10.1px rgba(0, 0, 0, 0.5), 0 4px 4px rgba(0, 0, 0, 0.5);
    padding: 24px;
}

.figma-svc-hero__text .line1 {
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: inherit;
    line-height: 49px;
    margin: 0 0 0.15em;
}

.figma-svc-hero__text .line2 {
    font-family: var(--font-zh);
    font-weight: 400;
    font-size: inherit;
    line-height: 49px;
    margin: 0;
    letter-spacing: 8.4px;
}

/* 電腦端：固定高度 579px，圖片 cover 等比例填滿 */
@media (min-width: 901px) {
    .figma-svc-hero {
        height: 579px;
        aspect-ratio: auto;
    }
}

/* 電腦端：BANNER 滿版寬度，維持 1200:579 比例（與設計稿一致） */
@media (min-width: 1024px) {
    .figma-svc-hero {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* 品牌理念 */
.figma-svc-philosophy {
    position: relative;
    padding: 80px 20px 24px;
    text-align: center;
}

.figma-svc-philosophy__title {
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 400;
    color: var(--figma-blue);
    margin: 0 0 20px;
}

.figma-svc-philosophy__quote {
    display: block;
    width: auto;
    max-width: 56px;
    height: auto;
    margin: 0 auto 16px;
}

/* 品牌區塊 — 桌面與首頁 .figma-features 相同：緊貼網格、1.22/1 欄寬、圖角相鄰；圖片 cover + 置中 */
.figma-svc-brands {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--figma-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 48px;
    box-sizing: border-box;
}

.figma-svc-brands > article {
    margin: 0;
}

.figma-svc-brand-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
}

.figma-svc-brand-row--reverse {
    direction: rtl;
}

.figma-svc-brand-row--reverse > * {
    direction: ltr;
}

.figma-svc-brand-row__media {
    min-height: 280px;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
}

.figma-svc-brand-row__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.figma-svc-brand-row__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.figma-svc-brand-row__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 32px 40px 48px;
    max-width: 420px;
    box-sizing: border-box;
    background: var(--figma-bg-soft);
}

.figma-svc-brand-row--reverse .figma-svc-brand-row__text {
    padding: 40px 48px 40px 32px;
    margin-left: auto;
}

.figma-svc-brand-row__title {
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 400;
    color: var(--figma-blue);
    margin: 0 0 11px;
}

.figma-svc-brand-row__subtitle {
    font-family: var(--font-zh);
    font-size: 16px;
    font-weight: 400;
    color: var(--figma-text-soft);
    margin: 0 0 24px;
}

.figma-svc-brand-row__body {
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 28px;
    color: var(--figma-text);
    margin: 0 0 24px;
}

.figma-svc-brand-row__body p {
    margin: 0 0 0.5em;
}

.figma-svc-brand-row__body p:last-child {
    margin-bottom: 0;
}

.figma-svc-btn-outline {
    display: flex;
    width: 151px;
    height: 32px;
    padding: 4px 35px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border: 1px solid var(--figma-text);
    background: transparent;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.2;
    color: var(--figma-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.figma-svc-btn-outline:hover {
    background: var(--figma-text);
    color: #ffffff;
}

/* 桌面：灰底僅在版心網格內；兩區文字與按鈕皆置左（與設計稿一致） */
@media (min-width: 901px) {
    .figma-svc-brand-row__text {
        text-align: left;
        align-items: flex-start;
        max-width: none;
    }

    .figma-svc-brand-row__title,
    .figma-svc-brand-row__subtitle,
    .figma-svc-brand-row__body {
        width: 100%;
        max-width: 420px;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    /* 第二列：撐滿文字欄軌道，避免 margin-left:auto 讓灰底變窄 */
    .figma-svc-brand-row--reverse .figma-svc-brand-row__text {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        justify-self: stretch;
        /* 康傅淨水：標題／內文／按鈕整組在灰底內水平置中（維持文字左對齊） */
        align-items: center;
        /* 整組內容右移 2rem，不調字級／行寬／斷行 */
        padding-left: calc(32px + 2rem);
    }

    .figma-svc-brand-row--reverse .figma-svc-brand-row__title,
    .figma-svc-brand-row--reverse .figma-svc-brand-row__subtitle,
    .figma-svc-brand-row--reverse .figma-svc-brand-row__body {
        /* 略增寬度，減少最末行僅剩「機。」等孤字斷行 */
        max-width: 448px;
    }

    .figma-svc-brand-row--reverse .figma-svc-brand-row__body {
        text-wrap: pretty;
    }

    /* 按鈕與標題／內文同左緣（與 448px 內容區對齊，非整欄置中） */
    .figma-svc-brand-row--reverse .figma-svc-btn-outline {
        align-self: flex-start;
        margin-left: calc((100% - min(100%, 448px)) / 2);
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .figma-svc-brand-row,
    .figma-svc-brand-row--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .figma-svc-brand-row__media {
        align-self: auto;
    }

    .figma-svc-brand-row--reverse .figma-svc-brand-row__text {
        margin-left: 0;
        margin-right: 0;
        padding: 32px 20px;
    }

    .figma-svc-brand-row__text {
        padding: 32px 20px;
        max-width: none;
        text-align: left;
        align-items: stretch;
    }

    .figma-svc-brand-row__title,
    .figma-svc-brand-row__subtitle,
    .figma-svc-brand-row__body {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}

/* 服務流程 */
.figma-svc-process {
    position: relative;
    padding: 40px 20px 64px;
    max-width: var(--figma-max);
    margin: 0 auto;
}

.figma-svc-process__title {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 24px;
    font-weight: 400;
    color: var(--figma-blue);
    margin: 0 0 40px;
}

/* 軌道：水平線對齊四個步驟頂端圓點中心（Figma 2012:548） */
.figma-svc-process__track {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.figma-svc-process__line {
    display: none;
}

.figma-svc-process__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.figma-svc-process__step {
    flex: 0 1 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.figma-svc-process__dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    line-height: 0;
}

.figma-svc-process__dot img {
    width: 10px;
    height: 10px;
    display: block;
    object-fit: contain;
}

.figma-svc-process__circle {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    border: 2px solid var(--figma-blue);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 24px;
    color: var(--figma-blue);
}

.figma-svc-process__label {
    font-family: "Arial", "Noto Sans TC", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 40px;
    color: var(--figma-text);
}

.figma-svc-process__sub {
    font-family: var(--font-zh);
    font-size: 14px;
    font-weight: 400;
    color: var(--figma-text-soft);
    line-height: 1.4;
}

/* 行動版垂直流程線（Figma 43:333）；桌面版隱藏 */
.figma-svc-process__vline {
    display: none;
}

/* 電腦版：細線穿過四個頂點圓點中心（欄寬 126px、欄距 24px，與 Figma 一致） */
@media (min-width: 901px) {
    .figma-svc-process__step {
        flex: 0 0 126px;
    }

    .figma-svc-process__line {
        display: block;
        position: absolute;
        z-index: 0;
        left: calc(126px / 2);
        width: calc(100% - 126px);
        top: 5px;
        transform: translateY(-50%);
        height: 1.5px;
        background-color: var(--figma-blue);
        pointer-events: none;
    }
}

/* CTA：figma-svc-cta-shared.css（與單一商品頁共用） */

/* 頁尾 */
.figma-services-page .figma-home-footer {
    position: relative;
    min-height: 420px;
    color: #ffffff;
}

.figma-services-page .figma-home-footer__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.figma-services-page .figma-home-footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.figma-services-page .figma-home-footer__inner {
    position: relative;
    z-index: 1;
    max-width: var(--figma-max);
    margin: 0 auto;
    padding: 120px 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.figma-services-page .figma-home-footer__contact h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15.888px;
    margin: 0 0 17px;
    color: #ffffff;
}

.figma-services-page .figma-home-footer__contact address {
    font-family: var(--font-zh);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
}

.figma-services-page .figma-home-footer__contact address p {
    margin: 0 0 0.5em;
}

.figma-services-page .figma-home-footer__contact address p:last-child {
    margin-bottom: 0;
}

.figma-services-page .figma-home-footer__contact a {
    color: #ffffff;
    text-decoration: none;
}

.figma-services-page .figma-home-footer__contact a:hover {
    text-decoration: underline;
}

.figma-services-page .figma-home-footer__copy {
    font-family: var(--font-zh);
    font-size: 14px;
    text-align: center;
    color: #ffffff;
    opacity: 0.85;
}

/* 行動版頁尾：figma-home-footer-mobile.css（Figma 2001:366） */

/* —— 品牌介紹頁行動版（≤900px；主視覺圖 Figma 146:424，其餘 43:333；桌面樣式維持不變） —— */
@media (max-width: 900px) {
    .figma-svc-hero {
        aspect-ratio: 375 / 180;
        margin-top: 0;
    }

    .figma-svc-hero__text {
        font-size: 13px;
        letter-spacing: 3.64px;
        text-shadow: 0 1.263px 3.19px rgba(0, 0, 0, 0.5), 0 1.263px 1.263px rgba(0, 0, 0, 0.5);
        padding: 16px;
    }

    .figma-svc-hero__text .line1,
    .figma-svc-hero__text .line2 {
        font-size: 13px;
        line-height: 20px;
        letter-spacing: 3.64px;
    }

    .figma-svc-philosophy {
        padding: 40px 20px 40px;
    }

    .figma-svc-philosophy__title {
        font-size: 13px;
        margin: 0 0 4px;
    }

    .figma-svc-philosophy__quote {
        display: none;
    }

    .figma-svc-brands {
        padding: 0 0 32px;
        max-width: none;
    }

    .figma-svc-brand-row__media {
        width: 100%;
        height: 250px;
        margin: 0;
        max-width: none;
        overflow: hidden;
    }

    .figma-svc-brand-row__media img {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        object-fit: cover;
    }

    .figma-svc-brand-row__text {
        padding: 24px 20px 32px;
        text-align: center;
        align-items: center;
        gap: 0;
    }

    .figma-svc-brand-row__title {
        font-size: 13px;
        margin: 0 0 11px;
        text-align: center;
        width: 100%;
        max-width: 283px;
    }

    .figma-svc-brand-row__subtitle {
        font-size: 13px;
        margin: 0 0 11px;
        text-align: center;
        width: 100%;
        max-width: 283px;
    }

    .figma-svc-brand-row__body {
        font-size: 12px;
        line-height: 28px;
        margin: 0 0 24px;
        text-align: center;
        width: 100%;
        max-width: 283px;
    }

    .figma-svc-brand-row__body p {
        text-align: center;
    }

    .figma-svc-btn-outline {
        display: flex;
        width: 84px;
        height: 18px;
        padding: 2px 16px;
        justify-content: center;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        border: 0.561px solid var(--figma-text);
        font-size: 10px;
        line-height: 1.2;
        margin-left: auto;
        margin-right: auto;
    }

    .figma-svc-process {
        padding: 32px 20px 48px;
    }

    .figma-svc-process__title {
        font-size: 13px;
        margin: 0 0 28px;
    }

    .figma-svc-process__steps {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 126px;
        margin: 0 auto;
    }

    .figma-svc-process__step {
        flex: 0 0 auto;
        width: 100%;
        max-width: 126px;
        gap: 0;
    }

    .figma-svc-process__dot {
        width: 6px;
        height: 6px;
        margin-bottom: 12px;
    }

    .figma-svc-process__dot picture {
        display: block;
        width: 6px;
        height: 6px;
        line-height: 0;
    }

    .figma-svc-process__dot img {
        width: 6px;
        height: 6px;
    }

    .figma-svc-process__circle {
        width: 71px;
        height: 71px;
        border-width: 1px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .figma-svc-process__label {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .figma-svc-process__sub {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .figma-svc-process__vline {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 55px;
        flex-shrink: 0;
        margin-top: 12px;
    }

    .figma-svc-process__vline img {
        display: block;
        width: 55px;
        height: 1px;
        max-width: none;
        transform: rotate(90deg);
        transform-origin: center;
    }
}
