/**
 * 聯絡我們頁 Figma（node 27:124）
 */

body.layercloud-figma-contact .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-contact .site-header {
    position: static;
    height: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

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

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

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

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

.figma-contact-page {
    --figma-blue: #0059ca;
    --figma-text: #333333;
    --figma-text-soft: #666666;
    --figma-panel: #f9f9f9;
    --figma-border-input: #cccccc;
    --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-contact-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-contact-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-contact-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-contact-page .figma-home-header__icon {
    width: 28px;
    height: 36px;
}

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

.figma-contact-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-contact-page .figma-menu-toggle {
        margin-right: -14px;
    }
}

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

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

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

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

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

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

/* Hero — 與關於頁（template-services .figma-svc-hero）相同：1200×579 比例、桌面滿版 */
.figma-contact-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-contact-hero__media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

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

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

.figma-contact-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-contact-hero__text .figma-contact-hero__line {
    font-family: var(--font-zh);
    font-weight: 400;
    font-size: inherit;
    line-height: 49px;
    margin: 0;
}

.figma-contact-hero__text .figma-contact-hero__line--bold {
    font-weight: 700;
    margin: 0 0 0.15em;
}

.figma-contact-hero__text .figma-contact-hero__line:not(.figma-contact-hero__line--bold) {
    letter-spacing: 8.4px;
}

@media (min-width: 901px) {
    .figma-contact-hero {
        height: 579px;
        aspect-ratio: auto;
    }
}

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

/* 行動版 Hero 文字排版（對應 Figma 設計稿） */
@media (max-width: 900px) {
    .figma-contact-hero {
        aspect-ratio: 375 / 180;
    }

    .figma-contact-hero__text {
        text-align: center;
        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-contact-hero__text .figma-contact-hero__line {
        font-size: 13px;
        line-height: 20px;
        white-space: nowrap;
    }

    .figma-contact-hero__text .figma-contact-hero__line:not(.figma-contact-hero__line--bold) {
        letter-spacing: 3.64px;
    }

    .figma-contact-hero__text .figma-contact-hero__line--bold {
        font-size: 13px;
        letter-spacing: 3.64px;
        margin: 0 0 0.25em;
    }
}

/* 主體兩欄 */
.figma-contact-body {
    padding: 48px 20px 72px;
}

.figma-contact-body__inner {
    max-width: var(--figma-max);
    margin: 0 auto;
}

.figma-contact-page-success {
    max-width: 100%;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #e8f4fc;
    border: 1px solid var(--figma-blue);
    color: var(--figma-text);
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
}

.figma-contact-body__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px 48px;
    align-items: start;
}

@media (max-width: 960px) {
    .figma-contact-body__cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 左欄表單 */
.figma-contact-form-panel {
    background: var(--figma-panel);
    border-radius: 8px;
    padding: 28px 24px 32px;
    box-sizing: border-box;
}

.figma-contact-form-panel__title {
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 20px;
    color: var(--figma-blue);
    margin: 0 0 24px;
}

.figma-contact-page-field {
    margin-bottom: 18px;
}

.figma-contact-page-field--message {
    margin-bottom: 22px;
}

.figma-contact-page-label {
    display: block;
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 10px;
    color: var(--figma-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.figma-contact-page-req {
    color: var(--figma-blue);
}

.figma-contact-page-input,
.figma-contact-page-textarea,
.figma-contact-page-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--figma-border-input);
    border-radius: 2px;
    background: #ffffff;
    font-family: var(--font-zh);
    font-size: 12px;
    color: var(--figma-text);
    padding: 10px 12px;
}

.figma-contact-page-input {
    height: 40px;
}

.figma-contact-page-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.figma-contact-page-select-wrap {
    position: relative;
}

.figma-contact-page-select {
    height: 40px;
    appearance: none;
    padding-right: 36px;
    color: var(--figma-text);
}

.figma-contact-page-select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background: url("../img/figma-home/select-arrow.svg") center / contain no-repeat;
    pointer-events: none;
}

.figma-contact-page-submit-wrap {
    margin-top: 8px;
}

.figma-contact-page-submit {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 4px;
    background: var(--figma-blue);
    color: #ffffff;
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.figma-contact-page-submit:hover {
    opacity: 0.94;
}

/* 右欄 */
.figma-contact-brands {
    font-family: var(--font-zh);
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 2.24px;
    color: var(--figma-text);
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}

@media (max-width: 960px) {
    .figma-contact-brands {
        justify-content: center;
        order: 1;
        width: 100%;
    }

    .figma-contact-body__aside {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.figma-contact-brands__label {
    display: inline;
}

.figma-contact-brands__sep {
    display: inline;
    user-select: none;
    pointer-events: none;
}

.figma-contact-brands__tab {
    border: none;
    background: none;
    padding: 2px 0;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    border-radius: 2px;
    -webkit-tap-highlight-color: transparent;
}

.figma-contact-brands__tab:hover .figma-contact-brands__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.figma-contact-body__aside[data-contact-panel="tw"][data-contact-brand="tk"] .figma-contact-brands__mark--tk:hover .figma-contact-brands__label,
.figma-contact-body__aside[data-contact-panel="tw"][data-contact-brand="kf"] .figma-contact-brands__mark--kf:hover .figma-contact-brands__label,
.figma-contact-body__aside[data-contact-panel="global"] .figma-contact-brands__mark--intl:hover .figma-contact-brands__label {
    text-decoration: none;
}

.figma-contact-brands__tab:focus-visible {
    outline: 2px solid var(--figma-blue);
    outline-offset: 2px;
}

.figma-contact-brands__mark {
    font-weight: 400;
    color: var(--figma-text);
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.figma-contact-body__aside[data-contact-panel="tw"][data-contact-brand="tk"] .figma-contact-brands__mark--tk {
    font-weight: 500;
    color: var(--figma-blue);
}

.figma-contact-body__aside[data-contact-panel="tw"][data-contact-brand="kf"] .figma-contact-brands__mark--kf {
    font-weight: 500;
    color: var(--figma-blue);
}

.figma-contact-body__aside[data-contact-panel="global"] .figma-contact-brands__mark--intl {
    font-weight: 500;
    color: var(--figma-blue);
}

/* 與 .figma-contact-info-grid 同寬雙欄：箭頭在「右欄」內置中，不貼齊整欄最外側（避免過右） */
.figma-contact-info-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
    align-items: center;
    margin-bottom: 16px;
}

.figma-contact-info-head__title {
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 20px;
    color: var(--figma-blue);
    margin: 0;
    min-width: 0;
}

.figma-contact-info-head__nav {
    position: relative;
    justify-self: center;
    width: 72px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .figma-contact-body {
        padding-bottom: 0px !important;
    }

    .figma-contact-info-head {
        display: contents;
    }

    .figma-contact-info-head__title {
        order: 2;
        width: 100%;
        text-align: center;
        margin-bottom: 24px;
    }

    /* 行動版隱藏左右箭頭，改用滑動手勢 */
    .figma-contact-info-head__nav {
        display: none !important;
    }
}

.figma-contact-info-head__arrows-visual {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
}

.figma-contact-info-head__arrows-svg {
    display: block;
    width: 24px;
    height: 13px;
}

/* 台灣檢視：右箭頭為主色（往全球）；全球檢視：左箭頭為主色（回台灣） */
.figma-contact-body__aside[data-contact-panel="tw"] .figma-contact-info-head__arrow-path--left {
    fill: #bfb4b4;
}

.figma-contact-body__aside[data-contact-panel="tw"] .figma-contact-info-head__arrow-path--right {
    fill: var(--figma-blue);
}

.figma-contact-body__aside[data-contact-panel="global"] .figma-contact-info-head__arrow-path--left {
    fill: var(--figma-blue);
}

.figma-contact-body__aside[data-contact-panel="global"] .figma-contact-info-head__arrow-path--right {
    fill: #bfb4b4;
}

.figma-contact-info-head__arrow-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: 50%;
    min-height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
}

.figma-contact-info-head__arrow-hit:focus-visible {
    outline: 2px solid var(--figma-blue);
    outline-offset: 2px;
}

.figma-contact-info-head__arrow-hit--left {
    left: 0;
}

.figma-contact-info-head__arrow-hit--right {
    right: 0;
}

.figma-contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    margin-bottom: 40px;
}

@media (max-width: 960px) {
    .figma-contact-info-panel:not([hidden]) {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .figma-contact-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        width: 100%;
        max-width: 300px;
    }

    .figma-contact-info-grid--intl {
        max-width: 300px;
    }

    .figma-contact-map {
        width: 300px;
        height: 224px;
        margin: 0 auto;
        max-width: none;
    }
}

/* 全球採購：兩欄排列（與 Figma 34:214 區塊對齊） */
.figma-contact-info-grid--intl {
    margin-bottom: 40px;
}

.figma-contact-info-block__label {
    font-family: var(--font-zh);
    font-weight: 700;
    font-size: 10px;
    color: var(--figma-text);
    margin: 0 0 6px;
    text-transform: none;
}

.figma-contact-info-block__value {
    font-family: var(--font-zh);
    font-weight: 400;
    font-size: 10px;
    line-height: 1.6;
    color: var(--figma-text-soft);
    margin: 0;
    word-break: break-word;
}

.figma-contact-info-block__value a {
    color: var(--figma-text-soft);
    text-decoration: none;
}

.figma-contact-info-block__value a:hover {
    text-decoration: underline;
}

.figma-contact-map {
    border-radius: 4px;
    overflow: hidden;
    max-width: 340px;
}

.figma-contact-map img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

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

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

.figma-contact-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-contact-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-contact-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-contact-page .figma-home-footer__contact address p {
    margin: 0 0 0.5em;
}

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

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

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

.figma-contact-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） */