/* 背景波浪-start */
.main-container {
    /* background: rgba(30, 140, 230, 0.08); */
    background-color: #f0f0f0;
}

.wave {
    position: fixed;
    left: 0;
    bottom: -180px;
    width: 100%;
    height: 62vh;
    max-height: 720px;
    min-height: 360px;
    display: block;
    pointer-events: none;
    z-index: 0;
}

/* 背景波浪-end */

/* 聯絡我們 Banner-start */
.contact-banner-section {
    position: relative;
    z-index: 1;
    height: 260px;
    background-image: url("/static/image/page_heder_2.webp");
    background-size: cover;
    background-position: center 46%;
    background-repeat: no-repeat;

    .my-container {
        height: auto;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-image: none;
    }

    .contact-banner__content {
        max-width: 720px;
    }

    .banner-title {
        margin: 0 0 12px;
        font-size: 36px;
        font-weight: 500;
        line-height: 1.2;
        color: var(--black-color);
    }

    .contact-banner__desc {
        margin: 0;
        font-size: 16px;
        line-height: 1.7;
        color: var(--black-color);
    }
}

/* 聯絡我們 Banner-end */

/* 聯絡資訊-start */
.contact-info-section {
    position: relative;
    z-index: 1;
    padding: 0 0 80px;
    background: transparent;
    margin-top: 80px;

    .contact-info-panel {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
        width: min(100%, 1480px);
        margin-left: auto;
        min-height: 640px;
        overflow: hidden;
        background: #ffffff;
    }

    .contact-info-panel__main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 72px 100px 72px 80px;
    }

    .contact-info-panel__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 32px;
    }

    .contact-info-panel__heading {
        max-width: 520px;
    }

    .contact-info-panel__tip {
        margin: 0 0 10px;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.06em;
        color: var(--yellow-color);
    }

    .contact-info-panel__title {
        margin: 0 0 18px;
        font-size: clamp(32px, 3.6vw, 44px);
        font-weight: 700;
        line-height: 1.2;
        color: var(--main-color);
    }

    .contact-info-panel__desc {
        margin: 0;
        font-size: 15px;
        line-height: 1.9;
        color: rgba(24, 24, 24, 0.68);
    }

    .contact-info-panel__cta {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 22px;
        border-radius: 999px;
        background: var(--main-color);
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;

        &:hover {
            background: var(--main-color);
            color: #ffffff;
        }
    }

    .contact-info-panel__divider {
        height: 1px;
        margin: 40px 0;
        background: #e6e6e6;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 40px;
    }

    .contact-info__block {
        min-width: 0;
    }

    .contact-info__label {
        margin: 0 0 10px;
        font-size: 16px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--yellow-color);
    }

    .contact-info__text {
        margin: 0;
        font-size: 18px;
        line-height: 1.8;
        color: var(--black-color);

        a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;

            &:hover {
                color: var(--yellow-color);
            }
        }
    }

    .contact-info__social {
        display: flex;
        align-items: center;
        gap: 14px;

        .contact-info__social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 42px;
            background-color: var(--main-color);
            transition: background-color 0.2s ease, transform 0.2s ease;

            img,
            svg {
                width: 22px;
                height: 22px;
            }

            &:hover {
                background-color: var(--yellow-color);
                transform: translateY(-1px);
            }
        }
    }

    .contact-info-panel__gallery {
        position: relative;
        min-height: 100%;
        background: #ffffff;
    }

    .contact-marquee {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .contact-marquee__track {
        display: flex;
        flex-direction: column;
        width: 100%;
        animation: contact-marquee-up 48s linear infinite;
        will-change: transform;
    }

    .contact-marquee__group {
        display: flex;
        flex-direction: column;
        gap: 52px;
        padding: 12px;
        flex-shrink: 0;

        .product-card {
            width: 280px;
            height: auto;
            padding: 0;
            border: none;
            border-radius: 0;
            background: transparent;
            box-shadow: none;

            &:hover {
                transform: none;
                border: none;
                box-shadow: none;
            }
        }

        .product-card__media {
            border-radius: 0;

            .product-card__img {
                padding: 0;
            }
        }
    }

    .contact-info-panel__gallery:hover .contact-marquee__track {
        animation-play-state: paused;
    }
}

@keyframes contact-marquee-up {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-info-section {
        .contact-marquee__track {
            animation: none;
        }
    }
}
/* 聯絡資訊-end */

/* 聯絡表單-start */
.contact-form-section {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-bottom: 100px;

    .contact-form-layout {
        display: grid;
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.15fr);
        gap: 64px 80px;
        align-items: start;
    }

    .contact-form__intro {
        padding-top: 4px;
    }

    .contact-form__title {
        margin: 0 0 28px;
        font-size: clamp(28px, 3.2vw, 36px);
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: 0.02em;
        color: var(--main-color);
    }

    .contact-form__desc {
        padding-bottom: 0;
        p {
            margin: 0 0 16px;
            line-height: 1.9;
            color: rgba(24, 24, 24, 0.68);
            text-align: left;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    .contact-map__placeholder {
        margin-top: 40px;
    }

    .contact-form__notes {
        margin: 36px 0 0;
        padding: 0;
        list-style: none;

        li {
            position: relative;
            margin: 0 0 10px;
            padding-left: 1.1em;
            font-size: 15px;
            line-height: 1.7;
            color: rgba(24, 24, 24, 0.58);

            &::before {
                content: "*";
                position: absolute;
                left: 0;
                top: 0;
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;

        .contact-form__field {
            margin-bottom: 30px;
        }

        .contact-form__label {
            display: block;
            margin: 0 0 8px;
            font-size: 18px;
            font-weight: 500;
            line-height: 1.4;
            color: var(--main-color);
        }

        .contact-form__input,
        .contact-form__textarea {
            width: 100%;
            min-height: 62px;
            padding: 0 16px;
            border: 1px solid #d8d8d8;
            background: #ffffff;
            font-size: 15px;
            color: var(--black-color);
            box-shadow: none;
            transition: border-color 0.2s ease, background 0.2s ease;

            &::placeholder {
                color: rgba(24, 24, 24, 0.38);
            }

            &:focus {
                border-color: rgba(24, 24, 24, 0.45);
                background: #ffffff;
            }
        }

        .contact-form__select-wrap {
            display: block;
            width: 100%;
            margin-left: 0;

            &.product-list-sort {
                display: block;
            }

            .product-list-sort__dropdown {
                position: relative;
                display: block;
                width: 100%;
                min-width: 0;
            }

            .product-list-sort__select--native {
                position: absolute;
                width: 1px;
                height: 1px;
                padding: 0;
                margin: -1px;
                overflow: hidden;
                clip: rect(0, 0, 0, 0);
                white-space: nowrap;
                border: 0;
            }

            .product-list-sort__trigger {
                display: inline-flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                width: 100%;
                min-width: 0;
                min-height: 62px;
                height: 62px;
                padding: 0 18px 0 16px;
                border: 1px solid #d8d8d8;
                background: #ffffff;
                font-size: 15px;
                font-weight: 500;
                line-height: 1;
                color: #6b7280;
                cursor: pointer;
                transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;

                &:hover,
                .product-list-sort__dropdown.is-open & {
                    color: var(--black-color);
                    border-color: rgba(30, 140, 230, 0.35);
                    box-shadow: 0 4px 14px rgba(30, 140, 230, 0.08);
                }
            }

            .product-list-sort__value {
                flex: 1;
                min-width: 0;
                text-align: left;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .product-list-sort__chevron {
                flex-shrink: 0;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 16px;
                height: 16px;
                color: rgba(24, 24, 24, 0.55);
                transition: transform 0.25s ease, color 0.2s ease;

                svg {
                    width: 12px;
                    height: 12px;
                }
            }

            .product-list-sort__dropdown.is-open .product-list-sort__chevron {
                transform: rotate(180deg);
                color: var(--main-color);
            }

            .product-list-sort__menu {
                position: absolute;
                top: calc(100% + 8px);
                left: 0;
                right: 0;
                z-index: 30;
                margin: 0;
                padding: 6px;
                list-style: none;
                border: 1px solid rgba(24, 24, 24, 0.08);
                border-radius: 16px;
                background: #ffffff;
                box-shadow: 0 14px 36px rgba(24, 24, 24, 0.12);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-8px) scale(0.98);
                transform-origin: top center;
                transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
                pointer-events: none;
            }

            .product-list-sort__dropdown.is-open .product-list-sort__menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }

            .product-list-sort__option {
                padding: 10px 14px;
                border-radius: 10px;
                font-size: 14px;
                line-height: 1.4;
                color: var(--black-color);
                cursor: pointer;
                transition: background 0.18s ease, color 0.18s ease;

                &:hover {
                    background: rgba(30, 140, 230, 0.08);
                    color: var(--main-color);
                }

                &.is-selected {
                    background: linear-gradient(to right, var(--main-color), rgba(30, 140, 230, 0.6));
                    color: #ffffff;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 0;
                        height: 0;
                        border-top: 24px solid transparent;
                        border-bottom: 24px solid transparent;
                        border-right: 36px solid rgba(255, 255, 255, 0.1);
                    }
                }

                &.is-selected:hover {
                    background: var(--main-color);
                    color: #ffffff;
                }
            }
        }

        .contact-form__textarea {
            min-height: 160px;
            padding: 14px 16px;
            resize: vertical;
            line-height: 1.6;
        }

        .contact-form__submit {
            width: 260px;
            height: 62px;
            margin: 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 168px;
            min-height: 52px;
            margin-top: 8px;
            padding: 0 36px;
            border: none;
            border-radius: 999px;
            background: var(--main-color);
            color: #ffffff;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s ease, background 0.2s ease;

            &:hover {
                opacity: 0.92;
                color: #ffffff;
            }
        }
    }
}

/* 聯絡表單-end */

/* 地圖區塊-start */
.contact-map-section {
    position: relative;
    z-index: 1;
    padding: 0 0 100px;
    background: transparent;

    .contact-map__placeholder {
        overflow: hidden;
        min-height: 560px;
        background: #f3f3f3;

        .map_part {
            display: block;
            width: 100%;
            height: 560px;
            border: 0;
        }
    }
}

/* 地圖區塊-end */

/* 聯絡頁頁腳層級-start */
.site-footer {
    position: relative;
    z-index: 1;
}

/* 聯絡頁頁腳層級-end */