* {
    /*outline: 1px solid red !important;*/
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Helvetica", "Arial", "LiHei Pro", "黑體-繁", "微軟正黑體", sans-serif;
}


/*====================================*/
/*  box-img
/*====================================*/
.content img {
    height: unset !important;
}

/*box-img 1x1*/
.box-img {
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.box-img img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*box-img 16x9*/
.box-img-16-9 {
    overflow: hidden;
    width: 100%;
    padding-top: calc(9 / 16 * 5%);
    position: relative;
}

.box-img-16-9 img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: unset;
    width: 100%;
    height: auto;
    object-fit: cover;
}



/*box-img 5x4*/
.box-img-5-4 {
    overflow: hidden;
    width: 100%;
    padding-top: calc(4 / 5 * 100%);
    position: relative;
}

.box-img-5-4 img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*box-img 4x5 直式*/
.box-img-4-5 {
    overflow: hidden;
    width: 100%;
    padding-top: calc(5 / 4 * 100%);
    position: relative;
}

.box-img-4-5 img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-nav-area.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.bg-240046 {
    background-color: #240046;
}

.text-240046 {
    color: #240046;
}


/*====================================*/
/*  header
/*====================================*/

.main-nav li a {
    font-size: 1rem;
    font-weight: 500;
}

.header-nav-area {
    padding: 10px 0;
}

li.d-lg-none {
    margin: 5px;
    padding: 7px 15px;
    background-color: #7f56b4;
}

i.ion-navicon {
    color: #fff;
    font-size: 35px;
}

.swiper.mySwiper .swiper-button-next,
.swiper.mySwiper .swiper-button-prev {
    margin-top: 0;
    transform: translate(0);
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.swiper.mySwiper .swiper-button-next:hover,
.swiper.mySwiper .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.3rem !important;
}

.banner-content-inner {
    width: 100%;
    height: 145px;
    /* 你可以依需要調整高度 */
    background-image: url('../images/bg/home-1.png');
    background-size: cover;
    background-position: center;
}


/*====================================*/
/*  跑馬燈
/*====================================*/

:root {
    --marquee-speed: 3s;
    /* 調整速度 */
    --marquee-move: -100%;
    /* JS 會覆蓋成精準距離 */
}

.marquee {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    white-space: nowrap;
    background-color: #7f56b4;
    display: flex;
    align-items: center;
}

/* 讓字體在不同寬度下合理伸縮 */
.marquee__inner {
    display: inline-block;
    /* 改成 inline-flex */
    white-space: nowrap;
    /* 防止換行 */
}

/* 兩份內容重複以達無縫滾動 */
.marquee__item {
    font-size: 1rem;
    color: #fff;
}

/* hover 暫停 */
.marquee:hover .marquee__inner {
    animation-play-state: paused;
}

/* 無障礙，偏好減少動畫時停用 */
@media (prefers-reduced-motion: reduce) {
    .marquee__inner {
        animation: none;
    }
}


@keyframes marquee-right-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--marquee-move));
    }
}

/*====================================*/
/*  blog
/*====================================*/

.blog-ptb50 {
    padding: 50px 0;
}

.blog-sidebar h1,
.blog-sidebar h2,
.blog-sidebar h3,
.blog-sidebar h4,
.blog-sidebar h5,
.blog-sidebar h6,
.blog-sidebar p {
    color: #fff !important;
}

.sp-y {
    padding: 50px 0;
}

/*====================================*/
/*  feature-area 4個icon
/*====================================*/

.feature-area {
    width: 100%;
    display: inline-grid;
    justify-items: center;
}

.bg-efefef {
    background-color: #efefef;
}

.feature-item__icon {
    background-color: transparent;
    border-radius: unset;
}

/*====================================*/
/*  about-area
/*====================================*/

.about-area {
    text-align: center;
}

.about-area p {
    margin-bottom: 5px;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-group img {
    max-width: 220px;
    /* 桌機按鈕大小 */
    height: auto;
    transition: transform 0.2s ease;
}

.responsive-hr {
    width: 60%;
    margin: 0 auto 40px;
    border-top: 1px solid #000;
}


/*====================================*/
/*  portfolio-page-area 相本
/*====================================*/
.portfolio-page-area .row {
    --bs-gutter-x: 0.3rem;
}

.mfp-title {
    text-align: center;
    padding: 10px;
    font-size: 1rem;
}

.section-top img {
    width: 60%;
}

/* 讓每個 col 裡的內容等高對齊 */
.equal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 10px;
}

/* 圖片區塊保持原比例框，但可以撐滿 */
.equal-card .portfolio-item__thumb {
    flex-shrink: 0;
    /* 圖片不壓縮 */
}

.equal-card p {
    margin-top: 10px;
    margin-bottom: 15px;
}

/*====================================*/
/*  Scroll Top Button
/*====================================*/

/* 浮動按鈕容器 */
.floating-icons {
    position: fixed;
    right: 25px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

/* 單一按鈕樣式 */
.icon-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.icon-btn:hover img {
    transform: scale(1.1);
}

.btn-scroll-top.show {
    width: 45px;
    height: 45px;
    background-color: transparent;
    color: transparent;
    box-shadow: none;
}

/* 頂部按鈕預設隱藏 */
.btn-scroll-top {
    display: none;
}

.show-scroll-top {
    display: flex;
}

/*====================================*/
/*  map
/*====================================*/

.contact-map {
    height: 400px;
    width: 100%;
    display: block;
    overflow: hidden;
}


/*====================================*/
/*  footer
/*====================================*/
.footer-area .footer-widget-area {
    padding: 50px 0;
    width: 100%;
    display: inline-grid;
    justify-content: center;
}


/* 主要樣式 */
.footer-area {
    background-color: #fff !important;
    color: #222;
    letter-spacing: 2px;
}

.footer-area:before {
    background-color: transparent;
    content: none;
}


.footer-widget-area {
    padding: 48px 0;
}

/* 以固定 max-width 的 container 置中（和畫面中那種集中白框效果一致） */
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* 水平排版：logo 固定寬度，聯絡資訊撐剩餘空間；整組置中 */
.footer-content {
    display: flex;
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* 將整組內容置中在 container */
    gap: 64px;
    /* logo 與文字間距 */
}

/* logo 區塊（固定寬度以保持與右側文字比例） */
.logo-wrap {
    display: flex;
    justify-content: flex-start;
}

.footer-logoImg {
    max-width: 222px;
    height: auto;
    display: block;
}

/* 聯絡資訊區（左對齊文字）*/
.contact-wrap {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
}

.contact-wrap p {
    margin: 4px 0;
}

/* 紫色版權底 */
.footer-bottom {
    background: #240046;
    padding: 12px 0;
}

.footer-bottom .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    color: #fff;
    margin: 0;
    font-size: 13px;
}

/*====================================*/
/* 聯絡我們
/*====================================*/

.breadcrumb {
    padding: 40px 0 30px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 0;
    background-color: #240046;
}

.breadcrumb_content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumb_title {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.comment-area-wrapper {
    margin-top: 20px;
    border-top: 1px solid #e1e1e1;
    padding-top: 20px;
    margin-right: 100px;
}

.contact-section2__title,
.contact-section2__title2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #212121;
    line-height: 1.3;
    text-transform: capitalize;
    text-align: center;
    display: inline-block;
}

.contact-section2__title {
    margin: 0px 0 30px;
}

.contact-section2__title2 {
    margin: 0px 0 10px;
}

.contact-section2_list li {
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
    /* icon 與文字間距 */
}

.contact-section2_list__icon {
    color: #603490;
    margin-right: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
    /* 不讓 icon 被縮小 */
    height: 50px;
    width: 50px;
    border-radius: 100%;
    box-shadow: 0 0 1px 0 #7f56b4;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul:last-child {
    margin-bottom: 0;
}

.contact-section2_list__text {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    display: block;
}

.contact-section2_list_text2 {
    font-size: 0.85rem;
    font-weight: 400;
    color: #858585;
    display: block;
    padding-top: 10px;
}

.contact-section2_list__text,
.contact-section2_list_text2 {
    flex-grow: 1;
    /* 文字部分撐滿剩餘空間 */
}

.contact-form-area {
    padding: 0 20px;
}

.btn-hvr-brand {
    border-color: #7f56b4;
    color: #7f56b4 !important;
}

.btn-hvr-brand:hover {
    background-color: #240046 !important;
    border-color: #240046 !important;
    color: #FFFFFF !important;
}

.contact-section2_content {
    padding: 0 20px;
}


.comment-area-wrapper .form-input-item {
    margin-top: 20px;
}

.contact-wrap a {
    color: #000;
}

.contact-wrap a:hover {
    color: #7f56b4;
}

/*====================================*/
/*  media
/*====================================*/

@media (max-width: 991px) {
    .comment-area-wrapper {
        margin-right: 0;
        margin-top: 0;
    }
}


/* 手機版背景圖 */
@media (max-width: 767px) {
    .banner-content-inner {
        height: 80px;
        background-image: url('../images/bg/sm-home-1.png');
    }

    .btn-group img {
        max-width: 100%;
        /* 手機滿版按鈕 */
    }

    .footer-content {
        flex-direction: column;
        gap: 18px;
    }

    .logo-wrap {
        justify-content: center;
    }

    .contact-wrap {
        text-align: center;
        font-size: 0.85rem;
    }

    .logo-wrap,
    .contact-wrap {
        width: 100%;
    }

    .footer-inner {
        padding: 18px;
    }

    .responsive-hr {
        width: 100%;
    }

    .equal-card p {

        font-size: 0.85em;
    }
}


@media (max-width: 576px) {
    .col-xs-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}